diff --git a/client/DotNet/ArmadaProject.Io.Client/ArmadaProject.Io.Client.csproj b/client/DotNet/ArmadaProject.Io.Client/ArmadaProject.Io.Client.csproj index 087bf7581b0..f4f7f6354cf 100644 --- a/client/DotNet/ArmadaProject.Io.Client/ArmadaProject.Io.Client.csproj +++ b/client/DotNet/ArmadaProject.Io.Client/ArmadaProject.Io.Client.csproj @@ -29,7 +29,6 @@ ../../../proto/k8s.io/apimachinery/pkg/util/intstr/generated.proto; ../../../proto/k8s.io/api/networking/v1/generated.proto; ../../../proto/k8s.io/api/core/v1/generated.proto; - ../../../proto/github.com/gogo/protobuf/gogoproto/gogo.proto; ../../../proto/google/api/*.proto " ProtoRoot="../../../proto/" diff --git a/go.mod b/go.mod index a1d9a5ef8c4..1706eab3cf5 100644 --- a/go.mod +++ b/go.mod @@ -17,9 +17,8 @@ require ( github.com/go-openapi/loads v0.22.0 github.com/go-openapi/runtime v0.28.0 github.com/go-openapi/spec v0.21.0 - github.com/gogo/protobuf v1.3.2 github.com/golang/protobuf v1.5.4 - github.com/google/go-cmp v0.7.0 // indirect + github.com/google/go-cmp v0.7.0 github.com/google/uuid v1.6.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 github.com/hashicorp/go-memdb v1.3.5 @@ -66,7 +65,6 @@ require ( github.com/go-openapi/swag v0.23.1 github.com/go-openapi/validate v0.24.0 github.com/go-playground/validator/v10 v10.25.0 - github.com/gogo/status v1.1.1 github.com/goreleaser/goreleaser/v2 v2.8.1 github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1 github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.1 @@ -85,6 +83,7 @@ require ( golang.org/x/term v0.30.0 golang.org/x/time v0.11.0 google.golang.org/genproto/googleapis/api v0.0.0-20250311190419-81fb87f6b8bf + google.golang.org/protobuf v1.36.5 gopkg.in/inf.v0 v0.9.1 gopkg.in/natefinch/lumberjack.v2 v2.2.1 gopkg.in/yaml.v3 v3.0.1 @@ -143,7 +142,7 @@ require ( github.com/go-playground/universal-translator v0.18.1 // indirect github.com/gobwas/glob v0.2.3 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect - github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a // indirect + github.com/gogo/protobuf v1.3.2 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/snappy v0.0.4 // indirect @@ -194,6 +193,7 @@ require ( github.com/muesli/reflow v0.3.0 // indirect github.com/muesli/termenv v0.16.0 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect + github.com/onsi/ginkgo/v2 v2.19.0 // indirect github.com/pelletier/go-toml/v2 v2.2.3 // indirect github.com/peterbourgon/diskv v2.0.1+incompatible // indirect github.com/pierrec/lz4 v2.0.5+incompatible // indirect @@ -232,7 +232,6 @@ require ( golang.org/x/text v0.23.0 // indirect golang.org/x/xerrors v0.0.0-20240716161551-93cc26a95ae9 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20250227231956-55c901821b1e // indirect - google.golang.org/protobuf v1.36.5 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect k8s.io/cli-runtime v0.26.15 // indirect diff --git a/go.sum b/go.sum index 6c58d9e00b4..7c50a088859 100644 --- a/go.sum +++ b/go.sum @@ -248,17 +248,15 @@ github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91 github.com/go-playground/validator/v10 v10.25.0 h1:5Dh7cjvzR7BRZadnsVOzPhWsrwUr0nmsZJxEAnFLNO8= github.com/go-playground/validator/v10 v10.25.0/go.mod h1:GGzBIJMuE98Ic/kJsBXbz1x/7cByt++cQ+YOuDM5wus= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= +github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= +github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a h1:dR8+Q0uO5S2ZBcs2IH6VBKYwSxPo2vYCYq0ot0mu7xA= -github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/gogo/status v1.1.1 h1:DuHXlSFHNKqTQ+/ACf5Vs6r4X/dH2EgIzR9Vr+H65kg= -github.com/gogo/status v1.1.1/go.mod h1:jpG3dM5QPcqu19Hg8lkUhBFBa3TcLs1DG7+2Jqci7oU= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= @@ -316,6 +314,8 @@ github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OI github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6 h1:k7nVchz72niMH6YLQNvHSdIE7iqsQxK1P41mySCvssg= +github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6/go.mod h1:kf6iHlnVGwgKolg33glAes7Yg/8iWP8ukqeldJSO7jw= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/rpmpack v0.6.1-0.20240329070804-c2247cbb881a h1:JJBdjSfqSy3mnDT0940ASQFghwcZ4y4cb6ttjAoXqwE= github.com/google/rpmpack v0.6.1-0.20240329070804-c2247cbb881a/go.mod h1:uqVAUVQLq8UY2hCDfmJ/+rtO3aw7qyhc90rCVEabEfI= @@ -505,8 +505,8 @@ github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= -github.com/onsi/ginkgo/v2 v2.4.0 h1:+Ig9nvqgS5OBSACXNk15PLdp0U9XPYROt9CFzVdFGIs= -github.com/onsi/ginkgo/v2 v2.4.0/go.mod h1:iHkDK1fKGcBoEHT5W7YBq4RFWaQulw+caOMkAt4OrFo= +github.com/onsi/ginkgo/v2 v2.19.0 h1:9Cnnf7UHo57Hy3k6/m5k3dRfGTMXGvxhHFvkDTCTpvA= +github.com/onsi/ginkgo/v2 v2.19.0/go.mod h1:rlwLi9PilAFJ8jCg9UE1QP6VBpd6/xj3SRC0d6TU0To= github.com/onsi/gomega v1.34.1 h1:EUMJIKUjM8sKjYbtxQI9A4z2o+rruxnzNvpknOXie6k= github.com/onsi/gomega v1.34.1/go.mod h1:kU1QgUvBDLXBJq618Xvm2LUX6rSAfRaFRTcdOeDLwwY= github.com/openconfig/goyang v1.6.2 h1:LVwwlVIIt4nmwacW67yBsxzP5DhDM94SOEMWod1hEA0= @@ -835,6 +835,8 @@ golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapK golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.31.0 h1:0EedkvKDbh+qistFTd0Bcwe/YLh4vHwWEkiI0toFIBU= +golang.org/x/tools v0.31.0/go.mod h1:naFTU+Cev749tSJRXJlna0T3WxKvb1kWEx15xA4SdmQ= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -855,7 +857,6 @@ google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7 google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180518175338-11a468237815/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= @@ -882,7 +883,6 @@ google.golang.org/genproto/googleapis/api v0.0.0-20250311190419-81fb87f6b8bf h1: google.golang.org/genproto/googleapis/api v0.0.0-20250311190419-81fb87f6b8bf/go.mod h1:jbe3Bkdp+Dh2IrslsFCklNhweNTBgSYanP1UXhJDhKg= google.golang.org/genproto/googleapis/rpc v0.0.0-20250227231956-55c901821b1e h1:YA5lmSs3zc/5w+xsRcHqpETkaYyK63ivEPzNTcUUlSA= google.golang.org/genproto/googleapis/rpc v0.0.0-20250227231956-55c901821b1e/go.mod h1:LuRYeWDFV6WOn90g357N17oMCaxpgCnbi/44qJvDn2I= -google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/internal/binoculars/server/binoculars.go b/internal/binoculars/server/binoculars.go index 0a11c59cdb5..e72a2fd608d 100644 --- a/internal/binoculars/server/binoculars.go +++ b/internal/binoculars/server/binoculars.go @@ -4,7 +4,7 @@ import ( "context" "strconv" - "github.com/gogo/protobuf/types" + "google.golang.org/protobuf/types/known/emptypb" "github.com/armadaproject/armada/internal/binoculars/service" "github.com/armadaproject/armada/internal/common" @@ -16,6 +16,7 @@ import ( type BinocularsServer struct { logService service.LogService cordonService service.CordonService + binoculars.UnimplementedBinocularsServer } func NewBinocularsServer(logService service.LogService, cordonService service.CordonService) *BinocularsServer { @@ -42,11 +43,11 @@ func (b *BinocularsServer) Logs(ctx context.Context, request *binoculars.LogRequ return &binoculars.LogResponse{Log: logLines}, nil } -func (b *BinocularsServer) Cordon(ctx context.Context, request *binoculars.CordonRequest) (*types.Empty, error) { +func (b *BinocularsServer) Cordon(ctx context.Context, request *binoculars.CordonRequest) (*emptypb.Empty, error) { err := b.cordonService.CordonNode(armadacontext.FromGrpcCtx(ctx), request) if err != nil { return nil, err } - return &types.Empty{}, nil + return &emptypb.Empty{}, nil } diff --git a/internal/common/eventutil/eventutil.go b/internal/common/eventutil/eventutil.go index 51b9fb56e1b..b7a8667c2db 100644 --- a/internal/common/eventutil/eventutil.go +++ b/internal/common/eventutil/eventutil.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/gogo/protobuf/proto" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" v1 "k8s.io/api/core/v1" networking "k8s.io/api/networking/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/internal/common/eventutil/eventutil_test.go b/internal/common/eventutil/eventutil_test.go index d4c72cae9e6..8a798e6b4d2 100644 --- a/internal/common/eventutil/eventutil_test.go +++ b/internal/common/eventutil/eventutil_test.go @@ -3,9 +3,11 @@ package eventutil import ( "testing" - "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" + "github.com/armadaproject/armada/internal/common/testutil" "github.com/armadaproject/armada/internal/common/util" "github.com/armadaproject/armada/pkg/armadaevents" ) @@ -368,10 +370,8 @@ func TestLimitSequenceByteSize(t *testing.T) { } actual, err := LimitSequenceByteSize(sequence, 1000, true) - if !assert.NoError(t, err) { - return - } - assert.Equal(t, []*armadaevents.EventSequence{sequence}, actual) + require.NoError(t, err) + testutil.AssertProtoEqual(t, []*armadaevents.EventSequence{sequence}, actual) _, err = LimitSequenceByteSize(sequence, 1, true) assert.Error(t, err) @@ -401,7 +401,7 @@ func TestLimitSequenceByteSize(t *testing.T) { if !assert.NoError(t, err) { return } - assert.Equal(t, expected, actual) + testutil.AssertProtoEqual(t, expected, actual) } func TestLimitSequencesByteSize(t *testing.T) { diff --git a/internal/common/ingest/ingestion_pipeline_test.go b/internal/common/ingest/ingestion_pipeline_test.go index fc3c502c89a..2a91da8c396 100644 --- a/internal/common/ingest/ingestion_pipeline_test.go +++ b/internal/common/ingest/ingestion_pipeline_test.go @@ -6,8 +6,8 @@ import ( "time" "github.com/apache/pulsar-client-go/pulsar" - "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/assert" + "google.golang.org/protobuf/proto" "github.com/armadaproject/armada/internal/common/armadacontext" commonconfig "github.com/armadaproject/armada/internal/common/config" @@ -209,7 +209,7 @@ func (s *simpleEventSequenceConverter) Convert(_ *armadacontext.Context, msg *ut for i, sequence := range msg.Events { converted = append(converted, &simpleMessage{ id: msg.MessageIds[i], - size: sequence.Size(), + size: proto.Size(sequence), }) } return &simpleMessages{ @@ -237,7 +237,7 @@ func (s *simpleControlPlaneEventConverter) Convert(_ *armadacontext.Context, msg for i, sequence := range msg.Events { converted = append(converted, &simpleMessage{ id: msg.MessageIds[i], - size: sequence.Size(), + size: proto.Size(sequence), }) } return &simpleMessages{ diff --git a/internal/common/ingest/testfixtures/event.go b/internal/common/ingest/testfixtures/event.go index 7d5e45eef82..5204b6abf8d 100644 --- a/internal/common/ingest/testfixtures/event.go +++ b/internal/common/ingest/testfixtures/event.go @@ -3,8 +3,8 @@ package testfixtures import ( "time" - "github.com/gogo/protobuf/proto" "github.com/google/uuid" + "google.golang.org/protobuf/proto" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" diff --git a/internal/common/mocks/mock_executorapi.go b/internal/common/mocks/mock_executorapi.go index b136f106371..3b783d672d0 100644 --- a/internal/common/mocks/mock_executorapi.go +++ b/internal/common/mocks/mock_executorapi.go @@ -14,10 +14,10 @@ import ( reflect "reflect" executorapi "github.com/armadaproject/armada/pkg/executorapi" - types "github.com/gogo/protobuf/types" gomock "go.uber.org/mock/gomock" grpc "google.golang.org/grpc" metadata "google.golang.org/grpc/metadata" + emptypb "google.golang.org/protobuf/types/known/emptypb" ) // MockExecutorApiClient is a mock of ExecutorApiClient interface. @@ -65,14 +65,14 @@ func (mr *MockExecutorApiClientMockRecorder) LeaseJobRuns(ctx any, opts ...any) } // ReportEvents mocks base method. -func (m *MockExecutorApiClient) ReportEvents(ctx context.Context, in *executorapi.EventList, opts ...grpc.CallOption) (*types.Empty, error) { +func (m *MockExecutorApiClient) ReportEvents(ctx context.Context, in *executorapi.EventList, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ReportEvents", varargs...) - ret0, _ := ret[0].(*types.Empty) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } diff --git a/internal/common/proto/protoutil.go b/internal/common/proto/protoutil.go index c9f5ed76bed..e8159836aaa 100644 --- a/internal/common/proto/protoutil.go +++ b/internal/common/proto/protoutil.go @@ -3,10 +3,14 @@ package protoutil import ( "time" - "github.com/gogo/protobuf/proto" - "github.com/gogo/protobuf/types" + legacyproto "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/proto" + "github.com/pkg/errors" + "google.golang.org/protobuf/types/known/durationpb" + "google.golang.org/protobuf/types/known/timestamppb" + "github.com/armadaproject/armada/internal/common/compress" ) @@ -65,6 +69,14 @@ func MustMarshall(msg proto.Message) []byte { return b } +func MustMarshallLegacyProto(msg legacyproto.Message) []byte { + b, err := legacyproto.Marshal(msg) + if err != nil { + panic(errors.Wrap(err, "Error marshalling object")) + } + return b +} + // MustMarshallAndCompress first marshalls the supplied proto message and then compresses it. // If either of these steps fail then it will panic. The main use case here is for unit tests. // Think carefully if you intend to use this elsewhere @@ -76,7 +88,7 @@ func MustMarshallAndCompress(msg proto.Message, compressor compress.Compressor) return b } -func ToStdTime(ts *types.Timestamp) time.Time { +func ToStdTime(ts *timestamppb.Timestamp) time.Time { if ts == nil { return time.Time{}.UTC() } @@ -84,22 +96,22 @@ func ToStdTime(ts *types.Timestamp) time.Time { return time.Unix(ts.Seconds, int64(ts.Nanos)).UTC() } -func ToTimestamp(t time.Time) *types.Timestamp { - return &types.Timestamp{ +func ToTimestamp(t time.Time) *timestamppb.Timestamp { + return ×tamppb.Timestamp{ Seconds: t.Unix(), Nanos: int32(t.Nanosecond()), } } -func ToStdDuration(pd *types.Duration) time.Duration { +func ToStdDuration(pd *durationpb.Duration) time.Duration { if pd == nil { return 0 } return time.Duration(pd.Seconds)*time.Second + time.Duration(pd.Nanos)*time.Nanosecond } -func ToDuration(d time.Duration) *types.Duration { - return &types.Duration{ +func ToDuration(d time.Duration) *durationpb.Duration { + return &durationpb.Duration{ Seconds: d.Nanoseconds() / 1000000000, Nanos: int32(d.Nanoseconds() % 1000000000), } diff --git a/internal/common/proto/protoutil_test.go b/internal/common/proto/protoutil_test.go index b0fd19a7c39..ea0031169b7 100644 --- a/internal/common/proto/protoutil_test.go +++ b/internal/common/proto/protoutil_test.go @@ -5,13 +5,15 @@ import ( "testing" "time" - "github.com/gogo/protobuf/proto" - "github.com/gogo/protobuf/types" "github.com/google/uuid" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/types/known/durationpb" + "google.golang.org/protobuf/types/known/timestamppb" "github.com/armadaproject/armada/internal/common/compress" + "github.com/armadaproject/armada/internal/common/testutil" "github.com/armadaproject/armada/pkg/armadaevents" ) @@ -27,7 +29,7 @@ var ( func TestUnmarshall_Valid(t *testing.T) { unmarshalled, err := Unmarshall(marshalledMsg, &armadaevents.CancelJob{}) require.NoError(t, err) - assert.Equal(t, msg, unmarshalled) + testutil.AssertProtoEqual(t, msg, unmarshalled) } func TestUnmarshall_Invalid(t *testing.T) { @@ -37,13 +39,13 @@ func TestUnmarshall_Invalid(t *testing.T) { func TestMustUnmarshall(t *testing.T) { unmarshalled := MustUnmarshall(marshalledMsg, &armadaevents.CancelJob{}) - assert.Equal(t, msg, unmarshalled) + testutil.AssertProtoEqual(t, msg, unmarshalled) } func TestDecompressAndUnmarshall_Valid(t *testing.T) { unmarshalled, err := DecompressAndUnmarshall(compressedMsg, &armadaevents.CancelJob{}, decompressor) require.NoError(t, err) - assert.Equal(t, msg, unmarshalled) + testutil.AssertProtoEqual(t, msg, unmarshalled) } func TestDecompressAndUnmarshall_Invalid(t *testing.T) { @@ -53,7 +55,7 @@ func TestDecompressAndUnmarshall_Invalid(t *testing.T) { func TestMustDecompressAndUnmarshall(t *testing.T) { unmarshalled := MustDecompressAndUnmarshall(compressedMsg, &armadaevents.CancelJob{}, decompressor) - assert.Equal(t, msg, unmarshalled) + testutil.AssertProtoEqual(t, msg, unmarshalled) } func TestMarshallAndCompress(t *testing.T) { @@ -69,23 +71,23 @@ func TestMustMarshallAndCompress(t *testing.T) { func TestToTimestamp(t *testing.T) { tests := map[string]struct { - ts *types.Timestamp + ts *timestamppb.Timestamp t time.Time }{ "unix epoch": { - ts: &types.Timestamp{Seconds: 0, Nanos: 0}, + ts: ×tamppb.Timestamp{Seconds: 0, Nanos: 0}, t: utcDate(1970, 1, 1), }, "before unix epoch": { - ts: &types.Timestamp{Seconds: -281836800, Nanos: 0}, + ts: ×tamppb.Timestamp{Seconds: -281836800, Nanos: 0}, t: utcDate(1961, 1, 26), }, "after unix epoch": { - ts: &types.Timestamp{Seconds: 1296000000, Nanos: 0}, + ts: ×tamppb.Timestamp{Seconds: 1296000000, Nanos: 0}, t: utcDate(2011, 1, 26), }, "after the epoch, in the middle of the day": { - ts: &types.Timestamp{Seconds: 1296012345, Nanos: 940483}, + ts: ×tamppb.Timestamp{Seconds: 1296012345, Nanos: 940483}, t: time.Date(2011, 1, 26, 3, 25, 45, 940483, time.UTC), }, } @@ -107,23 +109,23 @@ func TestToTimestamp(t *testing.T) { func TestToStdDuration(t *testing.T) { tests := map[string]struct { - protoDuration *types.Duration + protoDuration *durationpb.Duration stdDuration time.Duration }{ "empty": { - protoDuration: &types.Duration{Seconds: 0, Nanos: 0}, + protoDuration: &durationpb.Duration{Seconds: 0, Nanos: 0}, stdDuration: 0 * time.Second, }, "seconds": { - protoDuration: &types.Duration{Seconds: 100, Nanos: 0}, + protoDuration: &durationpb.Duration{Seconds: 100, Nanos: 0}, stdDuration: 100 * time.Second, }, "seconds and nanos": { - protoDuration: &types.Duration{Seconds: 100, Nanos: 1000}, + protoDuration: &durationpb.Duration{Seconds: 100, Nanos: 1000}, stdDuration: 100*time.Second + 1000*time.Nanosecond, }, "negative": { - protoDuration: &types.Duration{Seconds: -100, Nanos: -1000}, + protoDuration: &durationpb.Duration{Seconds: -100, Nanos: -1000}, stdDuration: -100*time.Second - 1000*time.Nanosecond, }, "nil": { @@ -131,7 +133,7 @@ func TestToStdDuration(t *testing.T) { stdDuration: 0 * time.Second, }, } - types.TimestampNow() + timestamppb.Now() for name, tc := range tests { t.Run(name, func(t *testing.T) { assert.Equal(t, tc.stdDuration, ToStdDuration(tc.protoDuration)) @@ -142,26 +144,26 @@ func TestToStdDuration(t *testing.T) { func TestToDuration(t *testing.T) { tests := map[string]struct { stdDuration time.Duration - protoDuration *types.Duration + protoDuration *durationpb.Duration }{ "empty": { stdDuration: 0 * time.Second, - protoDuration: &types.Duration{Seconds: 0, Nanos: 0}, + protoDuration: &durationpb.Duration{Seconds: 0, Nanos: 0}, }, "seconds": { stdDuration: 100 * time.Second, - protoDuration: &types.Duration{Seconds: 100, Nanos: 0}, + protoDuration: &durationpb.Duration{Seconds: 100, Nanos: 0}, }, "seconds and nanos": { stdDuration: 100*time.Second + 1000*time.Nanosecond, - protoDuration: &types.Duration{Seconds: 100, Nanos: 1000}, + protoDuration: &durationpb.Duration{Seconds: 100, Nanos: 1000}, }, "negative": { stdDuration: -100*time.Second - 1000*time.Nanosecond, - protoDuration: &types.Duration{Seconds: -100, Nanos: -1000}, + protoDuration: &durationpb.Duration{Seconds: -100, Nanos: -1000}, }, } - types.TimestampNow() + timestamppb.Now() for name, tc := range tests { t.Run(name, func(t *testing.T) { assert.Equal(t, tc.protoDuration, ToDuration(tc.stdDuration)) diff --git a/internal/common/pulsarutils/publisher.go b/internal/common/pulsarutils/publisher.go index 90b20839cd9..8bd51bab3a2 100644 --- a/internal/common/pulsarutils/publisher.go +++ b/internal/common/pulsarutils/publisher.go @@ -5,8 +5,8 @@ import ( "time" "github.com/apache/pulsar-client-go/pulsar" - "github.com/gogo/protobuf/proto" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/ingest/utils" diff --git a/internal/common/pulsarutils/publisher_test.go b/internal/common/pulsarutils/publisher_test.go index c5deae6cb5f..71f650e15d0 100644 --- a/internal/common/pulsarutils/publisher_test.go +++ b/internal/common/pulsarutils/publisher_test.go @@ -7,11 +7,11 @@ import ( "time" "github.com/apache/pulsar-client-go/pulsar" - "github.com/gogo/protobuf/proto" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.uber.org/mock/gomock" + "google.golang.org/protobuf/proto" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/armadaerrors" diff --git a/internal/common/testutil/proto.go b/internal/common/testutil/proto.go new file mode 100644 index 00000000000..e045c943dda --- /dev/null +++ b/internal/common/testutil/proto.go @@ -0,0 +1,28 @@ +package testutil + +import ( + "fmt" + "testing" + + "github.com/google/go-cmp/cmp" + "github.com/stretchr/testify/assert" + "google.golang.org/protobuf/testing/protocmp" +) + +func AssertProtoEqual(t *testing.T, expected, actual any, msgAndArgs ...any) bool { + diff := cmp.Diff(expected, actual, protocmp.Transform()) + if diff != "" { + assert.Fail(t, fmt.Sprintf("Not equal: \n"+ + "expected: %s\n"+ + "actual : %s%s", expected, actual, diff), msgAndArgs...) + return false + } + return true +} + +func RequireProtoEqual(t *testing.T, expected, actual any, msgAndArgs ...any) { + if AssertProtoEqual(t, expected, actual, msgAndArgs...) { + return + } + t.FailNow() +} diff --git a/internal/eventingester/convert/conversions.go b/internal/eventingester/convert/conversions.go index cbbd629419e..a29a249ce4c 100644 --- a/internal/eventingester/convert/conversions.go +++ b/internal/eventingester/convert/conversions.go @@ -1,8 +1,8 @@ package convert import ( - "github.com/gogo/protobuf/proto" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/compress" diff --git a/internal/eventingester/convert/conversions_test.go b/internal/eventingester/convert/conversions_test.go index 5e6f5585fea..de9495f8aa6 100644 --- a/internal/eventingester/convert/conversions_test.go +++ b/internal/eventingester/convert/conversions_test.go @@ -6,7 +6,7 @@ import ( "time" "github.com/apache/pulsar-client-go/pulsar" - "github.com/gogo/protobuf/proto" + "github.com/golang/protobuf/proto" "github.com/stretchr/testify/assert" "github.com/armadaproject/armada/internal/common/armadacontext" @@ -14,6 +14,7 @@ import ( "github.com/armadaproject/armada/internal/common/ingest/utils" protoutil "github.com/armadaproject/armada/internal/common/proto" "github.com/armadaproject/armada/internal/common/pulsarutils" + "github.com/armadaproject/armada/internal/common/testutil" "github.com/armadaproject/armada/pkg/armadaevents" ) @@ -64,7 +65,7 @@ func TestSingle(t *testing.T) { assert.Equal(t, jobset, event.Jobset) es, err := extractEventSeq(event.Event) assert.NoError(t, err) - assert.Equal(t, expectedSequence.Events, es.Events) + testutil.AssertProtoEqual(t, expectedSequence.Events, es.Events) } func TestMultiple(t *testing.T) { @@ -81,7 +82,7 @@ func TestMultiple(t *testing.T) { assert.Equal(t, jobset, event.Jobset) es, err := extractEventSeq(event.Event) assert.NoError(t, err) - assert.Equal(t, expectedSequence.Events, es.Events) + testutil.AssertProtoEqual(t, expectedSequence.Events, es.Events) } // Cancellation reason should not be in event storage @@ -140,7 +141,7 @@ func TestCancelled(t *testing.T) { }, }, } - assert.Equal(t, expectedEvents, es.Events) + testutil.AssertProtoEqual(t, expectedEvents, es.Events) } func NewMsg(event ...*armadaevents.EventSequence_Event) *utils.EventsWithIds[*armadaevents.EventSequence] { diff --git a/internal/executor/reporter/event.go b/internal/executor/reporter/event.go index 135a73017ab..105be0a07e4 100644 --- a/internal/executor/reporter/event.go +++ b/internal/executor/reporter/event.go @@ -4,8 +4,8 @@ import ( "fmt" "strconv" - "github.com/gogo/protobuf/types" "github.com/pkg/errors" + "google.golang.org/protobuf/types/known/timestamppb" v1 "k8s.io/api/core/v1" networking "k8s.io/api/networking/v1" @@ -21,7 +21,7 @@ func CreateEventForCurrentState(pod *v1.Pod, clusterId string) (*armadaevents.Ev if err != nil { return nil, err } - now := types.TimestampNow() + now := timestamppb.Now() switch phase { case v1.PodPending: @@ -161,7 +161,7 @@ func CreateJobIngressInfoEvent(pod *v1.Pod, clusterId string, associatedServices } sequence.Events = append(sequence.Events, &armadaevents.EventSequence_Event{ - Created: types.TimestampNow(), + Created: timestamppb.Now(), Event: &armadaevents.EventSequence_Event_StandaloneIngressInfo{ StandaloneIngressInfo: &armadaevents.StandaloneIngressInfo{ RunId: runId, @@ -190,7 +190,7 @@ func CreateSimpleJobPreemptedEvent(pod *v1.Pod) (*armadaevents.EventSequence, er } sequence.Events = append(sequence.Events, &armadaevents.EventSequence_Event{ - Created: types.TimestampNow(), + Created: timestamppb.Now(), Event: &armadaevents.EventSequence_Event_JobRunPreempted{ JobRunPreempted: &armadaevents.JobRunPreempted{ PreemptedJobId: preemptedJobId, @@ -215,7 +215,7 @@ func CreateJobFailedEvent(pod *v1.Pod, reason string, cause armadaevents.Kuberne } sequence.Events = append(sequence.Events, &armadaevents.EventSequence_Event{ - Created: types.TimestampNow(), + Created: timestamppb.Now(), Event: &armadaevents.EventSequence_Event_JobRunErrors{ JobRunErrors: &armadaevents.JobRunErrors{ RunId: runId, @@ -253,7 +253,7 @@ func CreateMinimalJobFailedEvent(jobId string, runId string, jobSet string, queu sequence.JobSetName = jobSet sequence.Events = append(sequence.Events, &armadaevents.EventSequence_Event{ - Created: types.TimestampNow(), + Created: timestamppb.Now(), Event: &armadaevents.EventSequence_Event_JobRunErrors{ JobRunErrors: &armadaevents.JobRunErrors{ RunId: runId, @@ -288,7 +288,7 @@ func CreateReturnLeaseEvent(pod *v1.Pod, reason string, debugMessage string, clu } sequence.Events = append(sequence.Events, &armadaevents.EventSequence_Event{ - Created: types.TimestampNow(), + Created: timestamppb.Now(), Event: &armadaevents.EventSequence_Event_JobRunErrors{ JobRunErrors: &armadaevents.JobRunErrors{ RunId: runId, @@ -326,7 +326,7 @@ func CreateJobUtilisationEvent(pod *v1.Pod, utilisationData *domain.UtilisationD } sequence.Events = append(sequence.Events, &armadaevents.EventSequence_Event{ - Created: types.TimestampNow(), + Created: timestamppb.Now(), Event: &armadaevents.EventSequence_Event_ResourceUtilisation{ ResourceUtilisation: &armadaevents.ResourceUtilisation{ RunId: runId, diff --git a/internal/executor/reporter/event_sender.go b/internal/executor/reporter/event_sender.go index 9cac11f6ce7..a1c9b8dac77 100644 --- a/internal/executor/reporter/event_sender.go +++ b/internal/executor/reporter/event_sender.go @@ -1,7 +1,7 @@ package reporter import ( - "github.com/gogo/protobuf/proto" + "google.golang.org/protobuf/proto" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/eventutil" diff --git a/internal/executor/reporter/event_sender_test.go b/internal/executor/reporter/event_sender_test.go index ce559fa9d3c..df3bf61ed5e 100644 --- a/internal/executor/reporter/event_sender_test.go +++ b/internal/executor/reporter/event_sender_test.go @@ -5,12 +5,12 @@ import ( "testing" "time" - "github.com/gogo/protobuf/proto" - "github.com/gogo/protobuf/types" + "github.com/golang/protobuf/proto" "github.com/google/uuid" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "google.golang.org/grpc" + "google.golang.org/protobuf/types/known/emptypb" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" k8sTypes "k8s.io/apimachinery/pkg/types" @@ -81,7 +81,7 @@ func (fakeClient *fakeExecutorApiClient) LeaseJobRuns(_ context.Context, opts .. } // Reports job run events to the scheduler -func (fakeClient *fakeExecutorApiClient) ReportEvents(_ context.Context, in *executorapi.EventList, opts ...grpc.CallOption) (*types.Empty, error) { +func (fakeClient *fakeExecutorApiClient) ReportEvents(_ context.Context, in *executorapi.EventList, opts ...grpc.CallOption) (*emptypb.Empty, error) { fakeClient.reportedEvents = append(fakeClient.reportedEvents, in) return nil, nil } diff --git a/internal/lookout/repository/getjobspec.go b/internal/lookout/repository/getjobspec.go index ea1216e3a30..56cc251fb85 100644 --- a/internal/lookout/repository/getjobspec.go +++ b/internal/lookout/repository/getjobspec.go @@ -1,10 +1,10 @@ package repository import ( - "github.com/gogo/protobuf/proto" "github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5/pgxpool" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/compress" diff --git a/internal/lookout/repository/getjobspec_test.go b/internal/lookout/repository/getjobspec_test.go index 8314f987e0b..e443bc88161 100644 --- a/internal/lookout/repository/getjobspec_test.go +++ b/internal/lookout/repository/getjobspec_test.go @@ -3,13 +3,14 @@ package repository import ( "testing" - "github.com/gogo/protobuf/proto" "github.com/jackc/pgx/v5/pgxpool" "github.com/stretchr/testify/assert" + "google.golang.org/protobuf/proto" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/compress" "github.com/armadaproject/armada/internal/common/database/lookout" + "github.com/armadaproject/armada/internal/common/testutil" "github.com/armadaproject/armada/internal/lookoutingester/instructions" "github.com/armadaproject/armada/internal/lookoutingester/lookoutdb" "github.com/armadaproject/armada/internal/lookoutingester/metrics" @@ -153,7 +154,7 @@ func assertApiJobsEquivalent(t *testing.T, expected, actual *api.Job) { assert.Equal(t, expected.Priority, actual.Priority) assert.Equal(t, expected.PodSpec, actual.PodSpec) assertSlicesEquivalent(t, expected.PodSpecs, actual.PodSpecs) - assert.Equal(t, expected.Created, actual.Created) + testutil.AssertProtoEqual(t, expected.Created, actual.Created) assertSlicesEquivalent(t, expected.Ingress, actual.Ingress) assertSlicesEquivalent(t, expected.Services, actual.Services) assertSlicesEquivalent(t, expected.K8SIngress, actual.K8SIngress) diff --git a/internal/lookout/repository/util.go b/internal/lookout/repository/util.go index 56531e62b80..3e206bde6e7 100644 --- a/internal/lookout/repository/util.go +++ b/internal/lookout/repository/util.go @@ -6,8 +6,8 @@ import ( "time" "github.com/apache/pulsar-client-go/pulsar" - "github.com/gogo/protobuf/types" "github.com/google/uuid" + "google.golang.org/protobuf/types/known/timestamppb" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" "k8s.io/utils/clock" @@ -682,9 +682,9 @@ func (js *JobSimulator) ApiJob() *api.Job { return js.apiJob } -func timestampOrNow(timestamp time.Time) *types.Timestamp { +func timestampOrNow(timestamp time.Time) *timestamppb.Timestamp { if timestamp.IsZero() { - return types.TimestampNow() + return timestamppb.Now() } return protoutil.ToTimestamp(timestamp) } diff --git a/internal/lookoutingester/instructions/instructions.go b/internal/lookoutingester/instructions/instructions.go index e5940927d17..eb3e7de6c35 100644 --- a/internal/lookoutingester/instructions/instructions.go +++ b/internal/lookoutingester/instructions/instructions.go @@ -4,7 +4,7 @@ import ( "strings" "time" - "github.com/gogo/protobuf/proto" + "google.golang.org/protobuf/proto" v1 "k8s.io/api/core/v1" "k8s.io/utils/pointer" diff --git a/internal/scheduler/api.go b/internal/scheduler/api.go index b663782769b..6317b86b2cb 100644 --- a/internal/scheduler/api.go +++ b/internal/scheduler/api.go @@ -4,13 +4,11 @@ import ( "context" "strconv" - protoutil "github.com/armadaproject/armada/internal/common/proto" - - "github.com/gogo/protobuf/proto" - "github.com/gogo/protobuf/types" "github.com/pkg/errors" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/types/known/emptypb" v1 "k8s.io/api/core/v1" "k8s.io/utils/clock" @@ -20,6 +18,7 @@ import ( "github.com/armadaproject/armada/internal/common/compress" log "github.com/armadaproject/armada/internal/common/logging" "github.com/armadaproject/armada/internal/common/maps" + protoutil "github.com/armadaproject/armada/internal/common/proto" "github.com/armadaproject/armada/internal/common/pulsarutils" priorityTypes "github.com/armadaproject/armada/internal/common/types" "github.com/armadaproject/armada/internal/scheduler/database" @@ -52,6 +51,7 @@ type ExecutorApi struct { priorityClassNameOverride *string clock clock.Clock authorizer auth.ActionAuthorizer + *executorapi.UnimplementedExecutorApiServer } func NewExecutorApi(publisher pulsarutils.Publisher[*armadaevents.EventSequence], @@ -345,7 +345,7 @@ func addAnnotations(job *armadaevents.SubmitJob, annotations map[string]string) } // ReportEvents publishes all eventSequences to Pulsar. The eventSequences are compacted for more efficient publishing. -func (srv *ExecutorApi) ReportEvents(grpcCtx context.Context, list *executorapi.EventList) (*types.Empty, error) { +func (srv *ExecutorApi) ReportEvents(grpcCtx context.Context, list *executorapi.EventList) (*emptypb.Empty, error) { ctx := armadacontext.FromGrpcCtx(grpcCtx) err := srv.authorize(ctx) if err != nil { @@ -353,7 +353,7 @@ func (srv *ExecutorApi) ReportEvents(grpcCtx context.Context, list *executorapi. } err = srv.publisher.PublishMessages(ctx, list.GetEvents()...) - return &types.Empty{}, err + return &emptypb.Empty{}, err } func (srv *ExecutorApi) authorize(ctx *armadacontext.Context) error { diff --git a/internal/scheduler/api_test.go b/internal/scheduler/api_test.go index c0cbcd7795c..d706ed9223a 100644 --- a/internal/scheduler/api_test.go +++ b/internal/scheduler/api_test.go @@ -4,13 +4,13 @@ import ( "testing" "time" - "github.com/gogo/protobuf/proto" "github.com/google/uuid" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.uber.org/mock/gomock" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" clock "k8s.io/utils/clock/testing" @@ -23,6 +23,7 @@ import ( protoutil "github.com/armadaproject/armada/internal/common/proto" "github.com/armadaproject/armada/internal/common/slices" armadaslices "github.com/armadaproject/armada/internal/common/slices" + "github.com/armadaproject/armada/internal/common/testutil" "github.com/armadaproject/armada/internal/common/types" "github.com/armadaproject/armada/internal/common/util" schedulerconfig "github.com/armadaproject/armada/internal/scheduler/configuration" @@ -305,7 +306,7 @@ func TestExecutorApi_LeaseJobRuns(t *testing.T) { mockPulsarPublisher := mocks.NewMockPublisher[*armadaevents.EventSequence](ctrl) mockJobRepository := schedulermocks.NewMockJobRepository(ctrl) mockExecutorRepository := schedulermocks.NewMockExecutorRepository(ctrl) - mockStream := schedulermocks.NewMockExecutorApi_LeaseJobRunsServer(ctrl) + mockStream := schedulermocks.NewMockExecutorApi_LeaseJobRunsServer[any, any](ctrl) mockAuthorizer := servermocks.NewMockActionAuthorizer(ctrl) runIds, err := runIdsFromLeaseRequest(tc.request) @@ -345,7 +346,7 @@ func TestExecutorApi_LeaseJobRuns(t *testing.T) { err = server.LeaseJobRuns(mockStream) require.NoError(t, err) - assert.Equal(t, tc.expectedMsgs, capturedEvents) + testutil.AssertProtoEqual(t, tc.expectedMsgs, capturedEvents) cancel() }) } @@ -372,7 +373,7 @@ func TestExecutorApi_LeaseJobRuns_Unauthorised(t *testing.T) { mockPulsarPublisher := mocks.NewMockPublisher[*armadaevents.EventSequence](ctrl) mockJobRepository := schedulermocks.NewMockJobRepository(ctrl) mockExecutorRepository := schedulermocks.NewMockExecutorRepository(ctrl) - mockStream := schedulermocks.NewMockExecutorApi_LeaseJobRunsServer(ctrl) + mockStream := schedulermocks.NewMockExecutorApi_LeaseJobRunsServer[any, any](ctrl) mockAuthorizer := servermocks.NewMockActionAuthorizer(ctrl) // set up mocks diff --git a/internal/scheduler/database/executor_repository.go b/internal/scheduler/database/executor_repository.go index 989a23936ae..7c14dad898e 100644 --- a/internal/scheduler/database/executor_repository.go +++ b/internal/scheduler/database/executor_repository.go @@ -3,9 +3,9 @@ package database import ( "time" - "github.com/gogo/protobuf/proto" "github.com/jackc/pgx/v5/pgxpool" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/compress" diff --git a/internal/scheduler/database/executor_repository_test.go b/internal/scheduler/database/executor_repository_test.go index aea5f1927d0..c107af4463c 100644 --- a/internal/scheduler/database/executor_repository_test.go +++ b/internal/scheduler/database/executor_repository_test.go @@ -4,6 +4,8 @@ import ( "testing" "time" + "github.com/armadaproject/armada/internal/common/testutil" + "github.com/jackc/pgx/v5/pgxpool" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -76,7 +78,7 @@ func TestExecutorRepository_LoadAndSave(t *testing.T) { slices.SortFunc(tc.executors, executorSort) require.Equal(t, len(tc.executors), len(retrievedExecutors)) for i, expected := range tc.executors { - assert.Equal(t, expected, retrievedExecutors[i]) + testutil.AssertProtoEqual(t, expected, retrievedExecutors[i]) } return nil diff --git a/internal/scheduler/database/job_repository_test.go b/internal/scheduler/database/job_repository_test.go index 93d21b30d24..55640b873fc 100644 --- a/internal/scheduler/database/job_repository_test.go +++ b/internal/scheduler/database/job_repository_test.go @@ -5,6 +5,8 @@ import ( "testing" "time" + "github.com/armadaproject/armada/internal/common/testutil" + "github.com/google/uuid" "github.com/jackc/pgx/v5/pgxpool" "github.com/pkg/errors" @@ -374,7 +376,7 @@ func TestFetchJobRunErrors(t *testing.T) { require.Error(t, err) } else { require.NoError(t, err) - assert.Equal(t, tc.expected, received) + testutil.AssertProtoEqual(t, tc.expected, received) } cancel() return nil diff --git a/internal/scheduler/internaltypes/job_scheduling_info.go b/internal/scheduler/internaltypes/job_scheduling_info.go index 8e248b24978..2902ab48b8a 100644 --- a/internal/scheduler/internaltypes/job_scheduling_info.go +++ b/internal/scheduler/internaltypes/job_scheduling_info.go @@ -3,7 +3,7 @@ package internaltypes import ( "time" - "github.com/gogo/protobuf/proto" + "github.com/golang/protobuf/proto" "github.com/pkg/errors" "golang.org/x/exp/maps" v1 "k8s.io/api/core/v1" diff --git a/internal/scheduler/jobdb/reconciliation.go b/internal/scheduler/jobdb/reconciliation.go index dfcd25576e0..a21318aecca 100644 --- a/internal/scheduler/jobdb/reconciliation.go +++ b/internal/scheduler/jobdb/reconciliation.go @@ -1,7 +1,7 @@ package jobdb import ( - "github.com/gogo/protobuf/proto" + "github.com/golang/protobuf/proto" "github.com/pkg/errors" armadamath "github.com/armadaproject/armada/internal/common/math" diff --git a/internal/scheduler/mocks/api.go b/internal/scheduler/mocks/api.go index 1e1ec8d5192..3ede2fcc92f 100644 --- a/internal/scheduler/mocks/api.go +++ b/internal/scheduler/mocks/api.go @@ -14,10 +14,10 @@ import ( reflect "reflect" api "github.com/armadaproject/armada/pkg/api" - types "github.com/gogo/protobuf/types" gomock "go.uber.org/mock/gomock" grpc "google.golang.org/grpc" metadata "google.golang.org/grpc/metadata" + emptypb "google.golang.org/protobuf/types/known/emptypb" ) // MockSubmitClient is a mock of SubmitClient interface. @@ -45,14 +45,14 @@ func (m *MockSubmitClient) EXPECT() *MockSubmitClientMockRecorder { } // CancelJobSet mocks base method. -func (m *MockSubmitClient) CancelJobSet(ctx context.Context, in *api.JobSetCancelRequest, opts ...grpc.CallOption) (*types.Empty, error) { +func (m *MockSubmitClient) CancelJobSet(ctx context.Context, in *api.JobSetCancelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CancelJobSet", varargs...) - ret0, _ := ret[0].(*types.Empty) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -85,14 +85,14 @@ func (mr *MockSubmitClientMockRecorder) CancelJobs(ctx, in any, opts ...any) *go } // CreateQueue mocks base method. -func (m *MockSubmitClient) CreateQueue(ctx context.Context, in *api.Queue, opts ...grpc.CallOption) (*types.Empty, error) { +func (m *MockSubmitClient) CreateQueue(ctx context.Context, in *api.Queue, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreateQueue", varargs...) - ret0, _ := ret[0].(*types.Empty) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -125,14 +125,14 @@ func (mr *MockSubmitClientMockRecorder) CreateQueues(ctx, in any, opts ...any) * } // DeleteQueue mocks base method. -func (m *MockSubmitClient) DeleteQueue(ctx context.Context, in *api.QueueDeleteRequest, opts ...grpc.CallOption) (*types.Empty, error) { +func (m *MockSubmitClient) DeleteQueue(ctx context.Context, in *api.QueueDeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DeleteQueue", varargs...) - ret0, _ := ret[0].(*types.Empty) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -165,14 +165,14 @@ func (mr *MockSubmitClientMockRecorder) GetQueue(ctx, in any, opts ...any) *gomo } // GetQueues mocks base method. -func (m *MockSubmitClient) GetQueues(ctx context.Context, in *api.StreamingQueueGetRequest, opts ...grpc.CallOption) (api.Submit_GetQueuesClient, error) { +func (m *MockSubmitClient) GetQueues(ctx context.Context, in *api.StreamingQueueGetRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[api.StreamingQueueMessage], error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetQueues", varargs...) - ret0, _ := ret[0].(api.Submit_GetQueuesClient) + ret0, _ := ret[0].(grpc.ServerStreamingClient[api.StreamingQueueMessage]) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -185,7 +185,7 @@ func (mr *MockSubmitClientMockRecorder) GetQueues(ctx, in any, opts ...any) *gom } // Health mocks base method. -func (m *MockSubmitClient) Health(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*api.HealthCheckResponse, error) { +func (m *MockSubmitClient) Health(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*api.HealthCheckResponse, error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { @@ -205,14 +205,14 @@ func (mr *MockSubmitClientMockRecorder) Health(ctx, in any, opts ...any) *gomock } // PreemptJobs mocks base method. -func (m *MockSubmitClient) PreemptJobs(ctx context.Context, in *api.JobPreemptRequest, opts ...grpc.CallOption) (*types.Empty, error) { +func (m *MockSubmitClient) PreemptJobs(ctx context.Context, in *api.JobPreemptRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "PreemptJobs", varargs...) - ret0, _ := ret[0].(*types.Empty) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -265,14 +265,14 @@ func (mr *MockSubmitClientMockRecorder) SubmitJobs(ctx, in any, opts ...any) *go } // UpdateQueue mocks base method. -func (m *MockSubmitClient) UpdateQueue(ctx context.Context, in *api.Queue, opts ...grpc.CallOption) (*types.Empty, error) { +func (m *MockSubmitClient) UpdateQueue(ctx context.Context, in *api.Queue, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateQueue", varargs...) - ret0, _ := ret[0].(*types.Empty) + ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -305,31 +305,31 @@ func (mr *MockSubmitClientMockRecorder) UpdateQueues(ctx, in any, opts ...any) * } // MockSubmit_GetQueuesClient is a mock of Submit_GetQueuesClient interface. -type MockSubmit_GetQueuesClient struct { +type MockSubmit_GetQueuesClient[Res any] struct { ctrl *gomock.Controller - recorder *MockSubmit_GetQueuesClientMockRecorder + recorder *MockSubmit_GetQueuesClientMockRecorder[Res] isgomock struct{} } // MockSubmit_GetQueuesClientMockRecorder is the mock recorder for MockSubmit_GetQueuesClient. -type MockSubmit_GetQueuesClientMockRecorder struct { - mock *MockSubmit_GetQueuesClient +type MockSubmit_GetQueuesClientMockRecorder[Res any] struct { + mock *MockSubmit_GetQueuesClient[Res] } // NewMockSubmit_GetQueuesClient creates a new mock instance. -func NewMockSubmit_GetQueuesClient(ctrl *gomock.Controller) *MockSubmit_GetQueuesClient { - mock := &MockSubmit_GetQueuesClient{ctrl: ctrl} - mock.recorder = &MockSubmit_GetQueuesClientMockRecorder{mock} +func NewMockSubmit_GetQueuesClient[Res any](ctrl *gomock.Controller) *MockSubmit_GetQueuesClient[Res] { + mock := &MockSubmit_GetQueuesClient[Res]{ctrl: ctrl} + mock.recorder = &MockSubmit_GetQueuesClientMockRecorder[Res]{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockSubmit_GetQueuesClient) EXPECT() *MockSubmit_GetQueuesClientMockRecorder { +func (m *MockSubmit_GetQueuesClient[Res]) EXPECT() *MockSubmit_GetQueuesClientMockRecorder[Res] { return m.recorder } // CloseSend mocks base method. -func (m *MockSubmit_GetQueuesClient) CloseSend() error { +func (m *MockSubmit_GetQueuesClient[Res]) CloseSend() error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CloseSend") ret0, _ := ret[0].(error) @@ -337,13 +337,13 @@ func (m *MockSubmit_GetQueuesClient) CloseSend() error { } // CloseSend indicates an expected call of CloseSend. -func (mr *MockSubmit_GetQueuesClientMockRecorder) CloseSend() *gomock.Call { +func (mr *MockSubmit_GetQueuesClientMockRecorder[Res]) CloseSend() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseSend", reflect.TypeOf((*MockSubmit_GetQueuesClient)(nil).CloseSend)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseSend", reflect.TypeOf((*MockSubmit_GetQueuesClient[Res])(nil).CloseSend)) } // Context mocks base method. -func (m *MockSubmit_GetQueuesClient) Context() context.Context { +func (m *MockSubmit_GetQueuesClient[Res]) Context() context.Context { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Context") ret0, _ := ret[0].(context.Context) @@ -351,13 +351,13 @@ func (m *MockSubmit_GetQueuesClient) Context() context.Context { } // Context indicates an expected call of Context. -func (mr *MockSubmit_GetQueuesClientMockRecorder) Context() *gomock.Call { +func (mr *MockSubmit_GetQueuesClientMockRecorder[Res]) Context() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockSubmit_GetQueuesClient)(nil).Context)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockSubmit_GetQueuesClient[Res])(nil).Context)) } // Header mocks base method. -func (m *MockSubmit_GetQueuesClient) Header() (metadata.MD, error) { +func (m *MockSubmit_GetQueuesClient[Res]) Header() (metadata.MD, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Header") ret0, _ := ret[0].(metadata.MD) @@ -366,13 +366,13 @@ func (m *MockSubmit_GetQueuesClient) Header() (metadata.MD, error) { } // Header indicates an expected call of Header. -func (mr *MockSubmit_GetQueuesClientMockRecorder) Header() *gomock.Call { +func (mr *MockSubmit_GetQueuesClientMockRecorder[Res]) Header() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Header", reflect.TypeOf((*MockSubmit_GetQueuesClient)(nil).Header)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Header", reflect.TypeOf((*MockSubmit_GetQueuesClient[Res])(nil).Header)) } // Recv mocks base method. -func (m *MockSubmit_GetQueuesClient) Recv() (*api.StreamingQueueMessage, error) { +func (m *MockSubmit_GetQueuesClient[Res]) Recv() (*api.StreamingQueueMessage, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Recv") ret0, _ := ret[0].(*api.StreamingQueueMessage) @@ -381,13 +381,13 @@ func (m *MockSubmit_GetQueuesClient) Recv() (*api.StreamingQueueMessage, error) } // Recv indicates an expected call of Recv. -func (mr *MockSubmit_GetQueuesClientMockRecorder) Recv() *gomock.Call { +func (mr *MockSubmit_GetQueuesClientMockRecorder[Res]) Recv() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockSubmit_GetQueuesClient)(nil).Recv)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockSubmit_GetQueuesClient[Res])(nil).Recv)) } // RecvMsg mocks base method. -func (m_2 *MockSubmit_GetQueuesClient) RecvMsg(m any) error { +func (m_2 *MockSubmit_GetQueuesClient[Res]) RecvMsg(m any) error { m_2.ctrl.T.Helper() ret := m_2.ctrl.Call(m_2, "RecvMsg", m) ret0, _ := ret[0].(error) @@ -395,13 +395,13 @@ func (m_2 *MockSubmit_GetQueuesClient) RecvMsg(m any) error { } // RecvMsg indicates an expected call of RecvMsg. -func (mr *MockSubmit_GetQueuesClientMockRecorder) RecvMsg(m any) *gomock.Call { +func (mr *MockSubmit_GetQueuesClientMockRecorder[Res]) RecvMsg(m any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockSubmit_GetQueuesClient)(nil).RecvMsg), m) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockSubmit_GetQueuesClient[Res])(nil).RecvMsg), m) } // SendMsg mocks base method. -func (m_2 *MockSubmit_GetQueuesClient) SendMsg(m any) error { +func (m_2 *MockSubmit_GetQueuesClient[Res]) SendMsg(m any) error { m_2.ctrl.T.Helper() ret := m_2.ctrl.Call(m_2, "SendMsg", m) ret0, _ := ret[0].(error) @@ -409,13 +409,13 @@ func (m_2 *MockSubmit_GetQueuesClient) SendMsg(m any) error { } // SendMsg indicates an expected call of SendMsg. -func (mr *MockSubmit_GetQueuesClientMockRecorder) SendMsg(m any) *gomock.Call { +func (mr *MockSubmit_GetQueuesClientMockRecorder[Res]) SendMsg(m any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockSubmit_GetQueuesClient)(nil).SendMsg), m) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockSubmit_GetQueuesClient[Res])(nil).SendMsg), m) } // Trailer mocks base method. -func (m *MockSubmit_GetQueuesClient) Trailer() metadata.MD { +func (m *MockSubmit_GetQueuesClient[Res]) Trailer() metadata.MD { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Trailer") ret0, _ := ret[0].(metadata.MD) @@ -423,7 +423,7 @@ func (m *MockSubmit_GetQueuesClient) Trailer() metadata.MD { } // Trailer indicates an expected call of Trailer. -func (mr *MockSubmit_GetQueuesClientMockRecorder) Trailer() *gomock.Call { +func (mr *MockSubmit_GetQueuesClientMockRecorder[Res]) Trailer() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Trailer", reflect.TypeOf((*MockSubmit_GetQueuesClient)(nil).Trailer)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Trailer", reflect.TypeOf((*MockSubmit_GetQueuesClient[Res])(nil).Trailer)) } diff --git a/internal/scheduler/mocks/executor_api.go b/internal/scheduler/mocks/executor_api.go index 60682336c02..7320c72181c 100644 --- a/internal/scheduler/mocks/executor_api.go +++ b/internal/scheduler/mocks/executor_api.go @@ -19,31 +19,31 @@ import ( ) // MockExecutorApi_LeaseJobRunsServer is a mock of ExecutorApi_LeaseJobRunsServer interface. -type MockExecutorApi_LeaseJobRunsServer struct { +type MockExecutorApi_LeaseJobRunsServer[Req any, Res any] struct { ctrl *gomock.Controller - recorder *MockExecutorApi_LeaseJobRunsServerMockRecorder + recorder *MockExecutorApi_LeaseJobRunsServerMockRecorder[Req, Res] isgomock struct{} } // MockExecutorApi_LeaseJobRunsServerMockRecorder is the mock recorder for MockExecutorApi_LeaseJobRunsServer. -type MockExecutorApi_LeaseJobRunsServerMockRecorder struct { - mock *MockExecutorApi_LeaseJobRunsServer +type MockExecutorApi_LeaseJobRunsServerMockRecorder[Req any, Res any] struct { + mock *MockExecutorApi_LeaseJobRunsServer[Req, Res] } // NewMockExecutorApi_LeaseJobRunsServer creates a new mock instance. -func NewMockExecutorApi_LeaseJobRunsServer(ctrl *gomock.Controller) *MockExecutorApi_LeaseJobRunsServer { - mock := &MockExecutorApi_LeaseJobRunsServer{ctrl: ctrl} - mock.recorder = &MockExecutorApi_LeaseJobRunsServerMockRecorder{mock} +func NewMockExecutorApi_LeaseJobRunsServer[Req any, Res any](ctrl *gomock.Controller) *MockExecutorApi_LeaseJobRunsServer[Req, Res] { + mock := &MockExecutorApi_LeaseJobRunsServer[Req, Res]{ctrl: ctrl} + mock.recorder = &MockExecutorApi_LeaseJobRunsServerMockRecorder[Req, Res]{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockExecutorApi_LeaseJobRunsServer) EXPECT() *MockExecutorApi_LeaseJobRunsServerMockRecorder { +func (m *MockExecutorApi_LeaseJobRunsServer[Req, Res]) EXPECT() *MockExecutorApi_LeaseJobRunsServerMockRecorder[Req, Res] { return m.recorder } // Context mocks base method. -func (m *MockExecutorApi_LeaseJobRunsServer) Context() context.Context { +func (m *MockExecutorApi_LeaseJobRunsServer[Req, Res]) Context() context.Context { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Context") ret0, _ := ret[0].(context.Context) @@ -51,13 +51,13 @@ func (m *MockExecutorApi_LeaseJobRunsServer) Context() context.Context { } // Context indicates an expected call of Context. -func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder) Context() *gomock.Call { +func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder[Req, Res]) Context() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer)(nil).Context)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer[Req, Res])(nil).Context)) } // Recv mocks base method. -func (m *MockExecutorApi_LeaseJobRunsServer) Recv() (*executorapi.LeaseRequest, error) { +func (m *MockExecutorApi_LeaseJobRunsServer[Req, Res]) Recv() (*executorapi.LeaseRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Recv") ret0, _ := ret[0].(*executorapi.LeaseRequest) @@ -66,13 +66,13 @@ func (m *MockExecutorApi_LeaseJobRunsServer) Recv() (*executorapi.LeaseRequest, } // Recv indicates an expected call of Recv. -func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder) Recv() *gomock.Call { +func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder[Req, Res]) Recv() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer)(nil).Recv)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer[Req, Res])(nil).Recv)) } // RecvMsg mocks base method. -func (m_2 *MockExecutorApi_LeaseJobRunsServer) RecvMsg(m any) error { +func (m_2 *MockExecutorApi_LeaseJobRunsServer[Req, Res]) RecvMsg(m any) error { m_2.ctrl.T.Helper() ret := m_2.ctrl.Call(m_2, "RecvMsg", m) ret0, _ := ret[0].(error) @@ -80,13 +80,13 @@ func (m_2 *MockExecutorApi_LeaseJobRunsServer) RecvMsg(m any) error { } // RecvMsg indicates an expected call of RecvMsg. -func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder) RecvMsg(m any) *gomock.Call { +func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder[Req, Res]) RecvMsg(m any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer)(nil).RecvMsg), m) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer[Req, Res])(nil).RecvMsg), m) } // Send mocks base method. -func (m *MockExecutorApi_LeaseJobRunsServer) Send(arg0 *executorapi.LeaseStreamMessage) error { +func (m *MockExecutorApi_LeaseJobRunsServer[Req, Res]) Send(arg0 *executorapi.LeaseStreamMessage) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Send", arg0) ret0, _ := ret[0].(error) @@ -94,13 +94,13 @@ func (m *MockExecutorApi_LeaseJobRunsServer) Send(arg0 *executorapi.LeaseStreamM } // Send indicates an expected call of Send. -func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder) Send(arg0 any) *gomock.Call { +func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder[Req, Res]) Send(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer)(nil).Send), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer[Req, Res])(nil).Send), arg0) } // SendHeader mocks base method. -func (m *MockExecutorApi_LeaseJobRunsServer) SendHeader(arg0 metadata.MD) error { +func (m *MockExecutorApi_LeaseJobRunsServer[Req, Res]) SendHeader(arg0 metadata.MD) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SendHeader", arg0) ret0, _ := ret[0].(error) @@ -108,13 +108,13 @@ func (m *MockExecutorApi_LeaseJobRunsServer) SendHeader(arg0 metadata.MD) error } // SendHeader indicates an expected call of SendHeader. -func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder) SendHeader(arg0 any) *gomock.Call { +func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder[Req, Res]) SendHeader(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer)(nil).SendHeader), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer[Req, Res])(nil).SendHeader), arg0) } // SendMsg mocks base method. -func (m_2 *MockExecutorApi_LeaseJobRunsServer) SendMsg(m any) error { +func (m_2 *MockExecutorApi_LeaseJobRunsServer[Req, Res]) SendMsg(m any) error { m_2.ctrl.T.Helper() ret := m_2.ctrl.Call(m_2, "SendMsg", m) ret0, _ := ret[0].(error) @@ -122,13 +122,13 @@ func (m_2 *MockExecutorApi_LeaseJobRunsServer) SendMsg(m any) error { } // SendMsg indicates an expected call of SendMsg. -func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder) SendMsg(m any) *gomock.Call { +func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder[Req, Res]) SendMsg(m any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer)(nil).SendMsg), m) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer[Req, Res])(nil).SendMsg), m) } // SetHeader mocks base method. -func (m *MockExecutorApi_LeaseJobRunsServer) SetHeader(arg0 metadata.MD) error { +func (m *MockExecutorApi_LeaseJobRunsServer[Req, Res]) SetHeader(arg0 metadata.MD) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetHeader", arg0) ret0, _ := ret[0].(error) @@ -136,19 +136,19 @@ func (m *MockExecutorApi_LeaseJobRunsServer) SetHeader(arg0 metadata.MD) error { } // SetHeader indicates an expected call of SetHeader. -func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder) SetHeader(arg0 any) *gomock.Call { +func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder[Req, Res]) SetHeader(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer)(nil).SetHeader), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer[Req, Res])(nil).SetHeader), arg0) } // SetTrailer mocks base method. -func (m *MockExecutorApi_LeaseJobRunsServer) SetTrailer(arg0 metadata.MD) { +func (m *MockExecutorApi_LeaseJobRunsServer[Req, Res]) SetTrailer(arg0 metadata.MD) { m.ctrl.T.Helper() m.ctrl.Call(m, "SetTrailer", arg0) } // SetTrailer indicates an expected call of SetTrailer. -func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder) SetTrailer(arg0 any) *gomock.Call { +func (mr *MockExecutorApi_LeaseJobRunsServerMockRecorder[Req, Res]) SetTrailer(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer)(nil).SetTrailer), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*MockExecutorApi_LeaseJobRunsServer[Req, Res])(nil).SetTrailer), arg0) } diff --git a/internal/scheduler/publisher.go b/internal/scheduler/publisher.go index 95835766055..7e8a384bb90 100644 --- a/internal/scheduler/publisher.go +++ b/internal/scheduler/publisher.go @@ -6,10 +6,10 @@ import ( "time" "github.com/apache/pulsar-client-go/pulsar" - "github.com/gogo/protobuf/proto" - "github.com/gogo/protobuf/types" "github.com/google/uuid" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/types/known/timestamppb" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/pulsarutils" @@ -104,7 +104,7 @@ func (p *PulsarPublisher) PublishMarkers(ctx *armadacontext.Context, groupId uui JobSetName: "armada-scheduler", Events: []*armadaevents.EventSequence_Event{ { - Created: types.TimestampNow(), + Created: timestamppb.Now(), Event: &armadaevents.EventSequence_Event_PartitionMarker{ PartitionMarker: pm, }, diff --git a/internal/scheduler/publisher_test.go b/internal/scheduler/publisher_test.go index 8ccd2d3f68d..e95e91f0569 100644 --- a/internal/scheduler/publisher_test.go +++ b/internal/scheduler/publisher_test.go @@ -7,12 +7,12 @@ import ( "time" "github.com/apache/pulsar-client-go/pulsar" - "github.com/gogo/protobuf/proto" "github.com/google/uuid" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.uber.org/mock/gomock" + "google.golang.org/protobuf/proto" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/mocks" diff --git a/internal/scheduler/queue/queue_cache_test.go b/internal/scheduler/queue/queue_cache_test.go index d57c65afef1..432d6e19031 100644 --- a/internal/scheduler/queue/queue_cache_test.go +++ b/internal/scheduler/queue/queue_cache_test.go @@ -44,7 +44,7 @@ func TestFetch(t *testing.T) { ctx, cancel := armadacontext.WithTimeout(armadacontext.Background(), 5*time.Second) ctrl := gomock.NewController(t) mockApiClient := schedulermocks.NewMockSubmitClient(ctrl) - mockStream := schedulermocks.NewMockSubmit_GetQueuesClient(ctrl) + mockStream := schedulermocks.NewMockSubmit_GetQueuesClient[any](ctrl) for _, queue := range tc.queues { mockStream. EXPECT(). diff --git a/internal/scheduler/reports/leader_proxying_reports_server.go b/internal/scheduler/reports/leader_proxying_reports_server.go index ebc795dd714..c0374b6f30a 100644 --- a/internal/scheduler/reports/leader_proxying_reports_server.go +++ b/internal/scheduler/reports/leader_proxying_reports_server.go @@ -13,6 +13,7 @@ type LeaderProxyingSchedulingReportsServer struct { localReportsServer schedulerobjects.SchedulerReportingServer leaderClientProvider leader.LeaderClientConnectionProvider schedulerReportingClientProvider reportingClientProvider + *schedulerobjects.UnimplementedSchedulerReportingServer } func NewLeaderProxyingSchedulingReportsServer( diff --git a/internal/scheduler/reports/leader_proxying_reports_server_test.go b/internal/scheduler/reports/leader_proxying_reports_server_test.go index ace96e7bb00..6ce7351437a 100644 --- a/internal/scheduler/reports/leader_proxying_reports_server_test.go +++ b/internal/scheduler/reports/leader_proxying_reports_server_test.go @@ -247,6 +247,7 @@ type FakeSchedulerReportingServer struct { GetJobReportCalls []GetJobReportCall GetJobReportResponse *schedulerobjects.JobReport Err error + schedulerobjects.UnimplementedSchedulerReportingServer } func NewFakeSchedulerReportingServer() *FakeSchedulerReportingServer { diff --git a/internal/scheduler/reports/proxying_reports_server.go b/internal/scheduler/reports/proxying_reports_server.go index f52ffc3944b..9e9953045bd 100644 --- a/internal/scheduler/reports/proxying_reports_server.go +++ b/internal/scheduler/reports/proxying_reports_server.go @@ -9,6 +9,7 @@ import ( type ProxyingSchedulingReportsServer struct { client schedulerobjects.SchedulerReportingClient + schedulerobjects.UnimplementedSchedulerReportingServer } func NewProxyingSchedulingReportsServer(client schedulerobjects.SchedulerReportingClient) *ProxyingSchedulingReportsServer { diff --git a/internal/scheduler/reports/server.go b/internal/scheduler/reports/server.go index 6c9653ffdab..31b11b70df0 100644 --- a/internal/scheduler/reports/server.go +++ b/internal/scheduler/reports/server.go @@ -6,16 +6,17 @@ import ( "strings" "text/tabwriter" - "github.com/gogo/status" "github.com/oklog/ulid" "github.com/openconfig/goyang/pkg/indent" "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" "github.com/armadaproject/armada/pkg/api/schedulerobjects" ) type Server struct { repository *SchedulingContextRepository + schedulerobjects.UnimplementedSchedulerReportingServer } func NewServer(repository *SchedulingContextRepository) *Server { diff --git a/internal/scheduler/scheduler.go b/internal/scheduler/scheduler.go index 4849ea9f46a..57fd75c38f5 100644 --- a/internal/scheduler/scheduler.go +++ b/internal/scheduler/scheduler.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/gogo/protobuf/types" + "github.com/golang/protobuf/ptypes/timestamp" "github.com/google/uuid" "github.com/pkg/errors" "github.com/renstrom/shortuuid" @@ -983,7 +983,7 @@ func (s *Scheduler) submitCheck(ctx *armadacontext.Context, txn *jobdb.Txn) ([]* } // now is a convenience function for generating a proto timestamp representing the current time according to the clock -func (s *Scheduler) now() *types.Timestamp { +func (s *Scheduler) now() *timestamp.Timestamp { return protoutil.ToTimestamp(s.clock.Now()) } diff --git a/internal/scheduler/scheduler_test.go b/internal/scheduler/scheduler_test.go index 104d59382e9..d44efcc57d6 100644 --- a/internal/scheduler/scheduler_test.go +++ b/internal/scheduler/scheduler_test.go @@ -6,13 +6,13 @@ import ( "testing" "time" - "github.com/gogo/protobuf/types" "github.com/google/uuid" "github.com/jackc/pgx/v5/pgxpool" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "golang.org/x/exp/slices" + "google.golang.org/protobuf/types/known/timestamppb" v1 "k8s.io/api/core/v1" clock "k8s.io/utils/clock/testing" "k8s.io/utils/pointer" @@ -20,6 +20,7 @@ import ( "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/ingest/utils" protoutil "github.com/armadaproject/armada/internal/common/proto" + "github.com/armadaproject/armada/internal/common/testutil" "github.com/armadaproject/armada/internal/common/util" "github.com/armadaproject/armada/internal/scheduler/database" schedulerdb "github.com/armadaproject/armada/internal/scheduler/database" @@ -1890,7 +1891,7 @@ func TestCycleConsistency(t *testing.T) { JobSetName: queuedJobA.JobSet, Events: []*armadaevents.EventSequence_Event{ { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_CancelledJob{ CancelledJob: &armadaevents.CancelledJob{ JobId: queuedJobA.JobID, @@ -1918,7 +1919,7 @@ func TestCycleConsistency(t *testing.T) { JobSetName: queuedJobA.JobSet, Events: []*armadaevents.EventSequence_Event{ { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_CancelJob{ CancelJob: &armadaevents.CancelJob{ JobId: queuedJobA.JobID, @@ -1926,7 +1927,7 @@ func TestCycleConsistency(t *testing.T) { }, }, { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_CancelledJob{ CancelledJob: &armadaevents.CancelledJob{ JobId: queuedJobA.JobID, @@ -1960,7 +1961,7 @@ func TestCycleConsistency(t *testing.T) { JobSetName: queuedJobA.JobSet, Events: []*armadaevents.EventSequence_Event{ { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_JobRunCancelled{ JobRunCancelled: &armadaevents.JobRunCancelled{ RunId: testfixtures.UUIDFromInt(1).String(), @@ -1969,7 +1970,7 @@ func TestCycleConsistency(t *testing.T) { }, }, { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_CancelledJob{ CancelledJob: &armadaevents.CancelledJob{ JobId: queuedJobA.JobID, @@ -2003,7 +2004,7 @@ func TestCycleConsistency(t *testing.T) { JobSetName: queuedJobA.JobSet, Events: []*armadaevents.EventSequence_Event{ { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_CancelJob{ CancelJob: &armadaevents.CancelJob{ JobId: queuedJobA.JobID, @@ -2011,7 +2012,7 @@ func TestCycleConsistency(t *testing.T) { }, }, { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_JobRunCancelled{ JobRunCancelled: &armadaevents.JobRunCancelled{ JobId: queuedJobA.JobID, @@ -2020,7 +2021,7 @@ func TestCycleConsistency(t *testing.T) { }, }, { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_CancelledJob{ CancelledJob: &armadaevents.CancelledJob{ JobId: queuedJobA.JobID, @@ -2053,7 +2054,7 @@ func TestCycleConsistency(t *testing.T) { JobSetName: queuedJobA.JobSet, Events: []*armadaevents.EventSequence_Event{ { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_JobRunLeased{ JobRunLeased: &armadaevents.JobRunLeased{ RunId: testfixtures.UUIDFromInt(1).String(), @@ -2100,7 +2101,7 @@ func TestCycleConsistency(t *testing.T) { JobSetName: queuedJobA.JobSet, Events: []*armadaevents.EventSequence_Event{ { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_JobRunLeased{ JobRunLeased: &armadaevents.JobRunLeased{ JobId: queuedJobA.JobID, @@ -2122,7 +2123,7 @@ func TestCycleConsistency(t *testing.T) { JobSetName: queuedJobA.JobSet, Events: []*armadaevents.EventSequence_Event{ { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_JobSucceeded{ JobSucceeded: &armadaevents.JobSucceeded{ JobId: queuedJobA.JobID, @@ -2164,7 +2165,7 @@ func TestCycleConsistency(t *testing.T) { JobSetName: queuedJobA.JobSet, Events: []*armadaevents.EventSequence_Event{ { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_JobRunLeased{ JobRunLeased: &armadaevents.JobRunLeased{ JobId: queuedJobA.JobID, @@ -2186,7 +2187,7 @@ func TestCycleConsistency(t *testing.T) { JobSetName: queuedJobA.JobSet, Events: []*armadaevents.EventSequence_Event{ { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_JobErrors{ JobErrors: &armadaevents.JobErrors{ JobId: queuedJobA.JobID, @@ -2296,7 +2297,7 @@ func TestCycleConsistency(t *testing.T) { JobSetName: queuedJobA.JobSet, Events: []*armadaevents.EventSequence_Event{ { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_JobRunPreempted{ JobRunPreempted: &armadaevents.JobRunPreempted{ PreemptedRunId: testfixtures.UUIDFromInt(1).String(), @@ -2305,7 +2306,7 @@ func TestCycleConsistency(t *testing.T) { }, }, { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_JobRunErrors{ JobRunErrors: &armadaevents.JobRunErrors{ JobId: queuedJobA.JobID, @@ -2322,7 +2323,7 @@ func TestCycleConsistency(t *testing.T) { }, }, { - Created: &types.Timestamp{}, + Created: ×tamppb.Timestamp{}, Event: &armadaevents.EventSequence_Event_JobErrors{ JobErrors: &armadaevents.JobErrors{ JobId: queuedJobA.JobID, @@ -2629,13 +2630,13 @@ func TestCycleConsistency(t *testing.T) { } if tc.expectedEventSequencesCycleOne != nil { - require.Equal(t, tc.expectedEventSequencesCycleOne, eventsCycleOne, "unexpected cycle one events") + testutil.RequireProtoEqual(t, tc.expectedEventSequencesCycleOne, eventsCycleOne, "unexpected cycle one events") } if tc.expectedEventSequencesCycleTwo != nil { - require.Equal(t, tc.expectedEventSequencesCycleTwo, eventsCycleTwo, "unexpected cycle two events") + testutil.RequireProtoEqual(t, tc.expectedEventSequencesCycleTwo, eventsCycleTwo, "unexpected cycle two events") } if tc.expectedEventSequencesCycleThree != nil { - require.Equal(t, tc.expectedEventSequencesCycleThree, eventsCycleThree, "unexpected cycle three events") + testutil.RequireProtoEqual(t, tc.expectedEventSequencesCycleThree, eventsCycleThree, "unexpected cycle three events") } // Test that the follower stays in sync with the leader. diff --git a/internal/scheduler/schedulerobjects/schedulerobjects.pb.go b/internal/scheduler/schedulerobjects/schedulerobjects.pb.go index 2b45be18a0b..8e3b55da48f 100644 --- a/internal/scheduler/schedulerobjects/schedulerobjects.pb.go +++ b/internal/scheduler/schedulerobjects/schedulerobjects.pb.go @@ -1,30 +1,29 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: internal/scheduler/schedulerobjects/schedulerobjects.proto package schedulerobjects import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" - proto "github.com/gogo/protobuf/proto" - types "github.com/gogo/protobuf/types" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" v1 "k8s.io/api/core/v1" resource "k8s.io/apimachinery/pkg/api/resource" ) -// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type JobRunState int32 @@ -36,32 +35,54 @@ const ( JobRunState_FAILED JobRunState = 4 ) -var JobRunState_name = map[int32]string{ - 0: "UNKNOWN", - 1: "PENDING", - 2: "RUNNING", - 3: "SUCCEEDED", - 4: "FAILED", -} +// Enum value maps for JobRunState. +var ( + JobRunState_name = map[int32]string{ + 0: "UNKNOWN", + 1: "PENDING", + 2: "RUNNING", + 3: "SUCCEEDED", + 4: "FAILED", + } + JobRunState_value = map[string]int32{ + "UNKNOWN": 0, + "PENDING": 1, + "RUNNING": 2, + "SUCCEEDED": 3, + "FAILED": 4, + } +) -var JobRunState_value = map[string]int32{ - "UNKNOWN": 0, - "PENDING": 1, - "RUNNING": 2, - "SUCCEEDED": 3, - "FAILED": 4, +func (x JobRunState) Enum() *JobRunState { + p := new(JobRunState) + *p = x + return p } func (x JobRunState) String() string { - return proto.EnumName(JobRunState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (JobRunState) Descriptor() protoreflect.EnumDescriptor { + return file_internal_scheduler_schedulerobjects_schedulerobjects_proto_enumTypes[0].Descriptor() +} + +func (JobRunState) Type() protoreflect.EnumType { + return &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_enumTypes[0] +} + +func (x JobRunState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use JobRunState.Descriptor instead. func (JobRunState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_97dadc5fbd620721, []int{0} + return file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDescGZIP(), []int{0} } // Executor represents an executor running on a worker cluster type Executor struct { + state protoimpl.MessageState `protogen:"open.v1"` // Name of the executor. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Pool that the executor belongs to. @@ -69,81 +90,81 @@ type Executor struct { // The nodes available for scheduling via this executor. Nodes []*Node `protobuf:"bytes,3,rep,name=nodes,proto3" json:"nodes,omitempty"` // Last time the executor provided a heartbeat to say it was still accepting job. - LastUpdateTime *types.Timestamp `protobuf:"bytes,5,opt,name=lastUpdateTime,proto3" json:"lastUpdateTime,omitempty"` + LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=lastUpdateTime,proto3" json:"lastUpdateTime,omitempty"` // Jobs that are owned by the cluster but are not assigned to any node. - UnassignedJobRuns []string `protobuf:"bytes,9,rep,name=unassigned_job_runs,json=unassignedJobRuns,proto3" json:"unassignedJobRuns,omitempty"` + UnassignedJobRuns []string `protobuf:"bytes,9,rep,name=unassigned_job_runs,json=unassignedJobRuns,proto3" json:"unassigned_job_runs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *Executor) Reset() { *m = Executor{} } -func (m *Executor) String() string { return proto.CompactTextString(m) } -func (*Executor) ProtoMessage() {} -func (*Executor) Descriptor() ([]byte, []int) { - return fileDescriptor_97dadc5fbd620721, []int{0} +func (x *Executor) Reset() { + *x = Executor{} + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *Executor) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *Executor) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Executor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Executor.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*Executor) ProtoMessage() {} + +func (x *Executor) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *Executor) XXX_Merge(src proto.Message) { - xxx_messageInfo_Executor.Merge(m, src) -} -func (m *Executor) XXX_Size() int { - return m.Size() -} -func (m *Executor) XXX_DiscardUnknown() { - xxx_messageInfo_Executor.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_Executor proto.InternalMessageInfo +// Deprecated: Use Executor.ProtoReflect.Descriptor instead. +func (*Executor) Descriptor() ([]byte, []int) { + return file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDescGZIP(), []int{0} +} -func (m *Executor) GetId() string { - if m != nil { - return m.Id +func (x *Executor) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *Executor) GetPool() string { - if m != nil { - return m.Pool +func (x *Executor) GetPool() string { + if x != nil { + return x.Pool } return "" } -func (m *Executor) GetNodes() []*Node { - if m != nil { - return m.Nodes +func (x *Executor) GetNodes() []*Node { + if x != nil { + return x.Nodes } return nil } -func (m *Executor) GetLastUpdateTime() *types.Timestamp { - if m != nil { - return m.LastUpdateTime +func (x *Executor) GetLastUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.LastUpdateTime } return nil } -func (m *Executor) GetUnassignedJobRuns() []string { - if m != nil { - return m.UnassignedJobRuns +func (x *Executor) GetUnassignedJobRuns() []string { + if x != nil { + return x.UnassignedJobRuns } return nil } // Node represents a node in a worker cluster. type Node struct { + state protoimpl.MessageState `protogen:"open.v1"` // Id associated with the node. Must be unique across all clusters. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Kubernetes node name. Not guaranteed to be unique across clusters. @@ -152,4082 +173,903 @@ type Node struct { Executor string `protobuf:"bytes,19,opt,name=executor,proto3" json:"executor,omitempty"` // Time at which this node was last updated. // Used to garbage collect nodes that have been removed. - LastSeen *types.Timestamp `protobuf:"bytes,2,opt,name=last_seen,json=lastSeen,proto3" json:"lastSeen,omitempty"` + LastSeen *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"` // Kubernetes taints. Taints []*v1.Taint `protobuf:"bytes,5,rep,name=taints,proto3" json:"taints,omitempty"` // Kubernetes labels. - Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Total resources on this node. - TotalResources *ResourceList `protobuf:"bytes,7,opt,name=total_resources,json=totalResources,proto3" json:"totalResources,omitempty"` + TotalResources *ResourceList `protobuf:"bytes,7,opt,name=total_resources,json=totalResources,proto3" json:"total_resources,omitempty"` // Ids of the job runs currently assigned to this node and their current state. - StateByJobRunId map[string]JobRunState `protobuf:"bytes,9,rep,name=state_by_job_run_id,json=stateByJobRunId,proto3" json:"stateByJobRunId,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=schedulerobjects.JobRunState"` + StateByJobRunId map[string]JobRunState `protobuf:"bytes,9,rep,name=state_by_job_run_id,json=stateByJobRunId,proto3" json:"state_by_job_run_id,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=schedulerobjects.JobRunState"` // Resource allocated to non-Armada pods on this node. - UnallocatableResources map[int32]*ResourceList `protobuf:"bytes,13,rep,name=unallocatable_resources,json=unallocatableResources,proto3" json:"unallocatableResources,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + UnallocatableResources map[int32]*ResourceList `protobuf:"bytes,13,rep,name=unallocatable_resources,json=unallocatableResources,proto3" json:"unallocatable_resources,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // If true, no new jobs should be scheduled onto this node, e.g., because the node has been cordoned. Unschedulable bool `protobuf:"varint,15,opt,name=unschedulable,proto3" json:"unschedulable,omitempty"` // This should only be used for metrics // This is the type the node should be reported as. It is simply a label to categorise the group the node belongs to - ReportingNodeType string `protobuf:"bytes,17,opt,name=reporting_node_type,json=reportingNodeType,proto3" json:"reportingNodeType,omitempty"` + ReportingNodeType string `protobuf:"bytes,17,opt,name=reporting_node_type,json=reportingNodeType,proto3" json:"reporting_node_type,omitempty"` // The pool that this node belongs to, this is used for scheduling purposes Pool string `protobuf:"bytes,18,opt,name=pool,proto3" json:"pool,omitempty"` - ResourceUsageByQueueAndPool []*PoolQueueResource `protobuf:"bytes,20,rep,name=resource_usage_by_queue_and_pool,json=resourceUsageByQueueAndPool,proto3" json:"resourceUsageByQueueAndPool,omitempty"` + ResourceUsageByQueueAndPool []*PoolQueueResource `protobuf:"bytes,20,rep,name=resource_usage_by_queue_and_pool,json=resourceUsageByQueueAndPool,proto3" json:"resource_usage_by_queue_and_pool,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *Node) Reset() { *m = Node{} } -func (m *Node) String() string { return proto.CompactTextString(m) } -func (*Node) ProtoMessage() {} -func (*Node) Descriptor() ([]byte, []int) { - return fileDescriptor_97dadc5fbd620721, []int{1} +func (x *Node) Reset() { + *x = Node{} + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *Node) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *Node) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Node.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*Node) ProtoMessage() {} + +func (x *Node) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *Node) XXX_Merge(src proto.Message) { - xxx_messageInfo_Node.Merge(m, src) -} -func (m *Node) XXX_Size() int { - return m.Size() -} -func (m *Node) XXX_DiscardUnknown() { - xxx_messageInfo_Node.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_Node proto.InternalMessageInfo +// Deprecated: Use Node.ProtoReflect.Descriptor instead. +func (*Node) Descriptor() ([]byte, []int) { + return file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDescGZIP(), []int{1} +} -func (m *Node) GetId() string { - if m != nil { - return m.Id +func (x *Node) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *Node) GetName() string { - if m != nil { - return m.Name +func (x *Node) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *Node) GetExecutor() string { - if m != nil { - return m.Executor +func (x *Node) GetExecutor() string { + if x != nil { + return x.Executor } return "" } -func (m *Node) GetLastSeen() *types.Timestamp { - if m != nil { - return m.LastSeen +func (x *Node) GetLastSeen() *timestamppb.Timestamp { + if x != nil { + return x.LastSeen } return nil } -func (m *Node) GetTaints() []*v1.Taint { - if m != nil { - return m.Taints +func (x *Node) GetTaints() []*v1.Taint { + if x != nil { + return x.Taints } return nil } -func (m *Node) GetLabels() map[string]string { - if m != nil { - return m.Labels +func (x *Node) GetLabels() map[string]string { + if x != nil { + return x.Labels } return nil } -func (m *Node) GetTotalResources() *ResourceList { - if m != nil { - return m.TotalResources +func (x *Node) GetTotalResources() *ResourceList { + if x != nil { + return x.TotalResources } return nil } -func (m *Node) GetStateByJobRunId() map[string]JobRunState { - if m != nil { - return m.StateByJobRunId +func (x *Node) GetStateByJobRunId() map[string]JobRunState { + if x != nil { + return x.StateByJobRunId } return nil } -func (m *Node) GetUnallocatableResources() map[int32]*ResourceList { - if m != nil { - return m.UnallocatableResources +func (x *Node) GetUnallocatableResources() map[int32]*ResourceList { + if x != nil { + return x.UnallocatableResources } return nil } -func (m *Node) GetUnschedulable() bool { - if m != nil { - return m.Unschedulable +func (x *Node) GetUnschedulable() bool { + if x != nil { + return x.Unschedulable } return false } -func (m *Node) GetReportingNodeType() string { - if m != nil { - return m.ReportingNodeType +func (x *Node) GetReportingNodeType() string { + if x != nil { + return x.ReportingNodeType } return "" } -func (m *Node) GetPool() string { - if m != nil { - return m.Pool +func (x *Node) GetPool() string { + if x != nil { + return x.Pool } return "" } -func (m *Node) GetResourceUsageByQueueAndPool() []*PoolQueueResource { - if m != nil { - return m.ResourceUsageByQueueAndPool +func (x *Node) GetResourceUsageByQueueAndPool() []*PoolQueueResource { + if x != nil { + return x.ResourceUsageByQueueAndPool } return nil } type PoolQueueResource struct { - Pool string `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"` - Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"` - Resources *ResourceList `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Pool string `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"` + Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"` + Resources *ResourceList `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PoolQueueResource) Reset() { *m = PoolQueueResource{} } -func (m *PoolQueueResource) String() string { return proto.CompactTextString(m) } -func (*PoolQueueResource) ProtoMessage() {} -func (*PoolQueueResource) Descriptor() ([]byte, []int) { - return fileDescriptor_97dadc5fbd620721, []int{2} +func (x *PoolQueueResource) Reset() { + *x = PoolQueueResource{} + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PoolQueueResource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *PoolQueueResource) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PoolQueueResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PoolQueueResource.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*PoolQueueResource) ProtoMessage() {} + +func (x *PoolQueueResource) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *PoolQueueResource) XXX_Merge(src proto.Message) { - xxx_messageInfo_PoolQueueResource.Merge(m, src) -} -func (m *PoolQueueResource) XXX_Size() int { - return m.Size() -} -func (m *PoolQueueResource) XXX_DiscardUnknown() { - xxx_messageInfo_PoolQueueResource.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_PoolQueueResource proto.InternalMessageInfo +// Deprecated: Use PoolQueueResource.ProtoReflect.Descriptor instead. +func (*PoolQueueResource) Descriptor() ([]byte, []int) { + return file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDescGZIP(), []int{2} +} -func (m *PoolQueueResource) GetPool() string { - if m != nil { - return m.Pool +func (x *PoolQueueResource) GetPool() string { + if x != nil { + return x.Pool } return "" } -func (m *PoolQueueResource) GetQueue() string { - if m != nil { - return m.Queue +func (x *PoolQueueResource) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *PoolQueueResource) GetResources() *ResourceList { - if m != nil { - return m.Resources +func (x *PoolQueueResource) GetResources() *ResourceList { + if x != nil { + return x.Resources } return nil } type ResourceList struct { - Resources map[string]*resource.Quantity `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + state protoimpl.MessageState `protogen:"open.v1"` + Resources map[string]*resource.Quantity `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ResourceList) Reset() { *m = ResourceList{} } -func (m *ResourceList) String() string { return proto.CompactTextString(m) } -func (*ResourceList) ProtoMessage() {} -func (*ResourceList) Descriptor() ([]byte, []int) { - return fileDescriptor_97dadc5fbd620721, []int{3} +func (x *ResourceList) Reset() { + *x = ResourceList{} + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ResourceList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ResourceList) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResourceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResourceList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ResourceList) ProtoMessage() {} + +func (x *ResourceList) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ResourceList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceList.Merge(m, src) -} -func (m *ResourceList) XXX_Size() int { - return m.Size() -} -func (m *ResourceList) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceList.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ResourceList proto.InternalMessageInfo +// Deprecated: Use ResourceList.ProtoReflect.Descriptor instead. +func (*ResourceList) Descriptor() ([]byte, []int) { + return file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDescGZIP(), []int{3} +} -func (m *ResourceList) GetResources() map[string]*resource.Quantity { - if m != nil { - return m.Resources +func (x *ResourceList) GetResources() map[string]*resource.Quantity { + if x != nil { + return x.Resources } return nil } // Minimal job representation used by the scheduler. type JobSchedulingInfo struct { - Lifetime uint32 `protobuf:"varint,1,opt,name=lifetime,proto3" json:"lifetime,omitempty"` - AtMostOnce bool `protobuf:"varint,2,opt,name=at_most_once,json=atMostOnce,proto3" json:"atMostOnce,omitempty"` - Preemptible bool `protobuf:"varint,3,opt,name=preemptible,proto3" json:"preemptible,omitempty"` - ConcurrencySafe bool `protobuf:"varint,4,opt,name=concurrency_safe,json=concurrencySafe,proto3" json:"concurrencySafe,omitempty"` - PriorityClassName string `protobuf:"bytes,6,opt,name=priority_class_name,json=priorityClassName,proto3" json:"priorityClassName,omitempty"` - SubmitTime *types.Timestamp `protobuf:"bytes,7,opt,name=submit_time,json=submitTime,proto3" json:"submitTime,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Lifetime uint32 `protobuf:"varint,1,opt,name=lifetime,proto3" json:"lifetime,omitempty"` + AtMostOnce bool `protobuf:"varint,2,opt,name=at_most_once,json=atMostOnce,proto3" json:"at_most_once,omitempty"` + Preemptible bool `protobuf:"varint,3,opt,name=preemptible,proto3" json:"preemptible,omitempty"` + ConcurrencySafe bool `protobuf:"varint,4,opt,name=concurrency_safe,json=concurrencySafe,proto3" json:"concurrency_safe,omitempty"` + PriorityClassName string `protobuf:"bytes,6,opt,name=priority_class_name,json=priorityClassName,proto3" json:"priority_class_name,omitempty"` + SubmitTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` // In-queue priority. I.e., not the priority class priority. Priority uint32 `protobuf:"varint,8,opt,name=priority,proto3" json:"priority,omitempty"` // Kubernetes objects that make up this job and their respective scheduling requirements. - ObjectRequirements []*ObjectRequirements `protobuf:"bytes,5,rep,name=object_requirements,json=objectRequirements,proto3" json:"objectRequirements,omitempty"` + ObjectRequirements []*ObjectRequirements `protobuf:"bytes,5,rep,name=object_requirements,json=objectRequirements,proto3" json:"object_requirements,omitempty"` Version uint32 `protobuf:"varint,9,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobSchedulingInfo) Reset() { *m = JobSchedulingInfo{} } -func (m *JobSchedulingInfo) String() string { return proto.CompactTextString(m) } -func (*JobSchedulingInfo) ProtoMessage() {} -func (*JobSchedulingInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_97dadc5fbd620721, []int{4} +func (x *JobSchedulingInfo) Reset() { + *x = JobSchedulingInfo{} + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobSchedulingInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *JobSchedulingInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobSchedulingInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobSchedulingInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*JobSchedulingInfo) ProtoMessage() {} + +func (x *JobSchedulingInfo) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *JobSchedulingInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobSchedulingInfo.Merge(m, src) -} -func (m *JobSchedulingInfo) XXX_Size() int { - return m.Size() -} -func (m *JobSchedulingInfo) XXX_DiscardUnknown() { - xxx_messageInfo_JobSchedulingInfo.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_JobSchedulingInfo proto.InternalMessageInfo +// Deprecated: Use JobSchedulingInfo.ProtoReflect.Descriptor instead. +func (*JobSchedulingInfo) Descriptor() ([]byte, []int) { + return file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDescGZIP(), []int{4} +} -func (m *JobSchedulingInfo) GetLifetime() uint32 { - if m != nil { - return m.Lifetime +func (x *JobSchedulingInfo) GetLifetime() uint32 { + if x != nil { + return x.Lifetime } return 0 } -func (m *JobSchedulingInfo) GetAtMostOnce() bool { - if m != nil { - return m.AtMostOnce +func (x *JobSchedulingInfo) GetAtMostOnce() bool { + if x != nil { + return x.AtMostOnce } return false } -func (m *JobSchedulingInfo) GetPreemptible() bool { - if m != nil { - return m.Preemptible +func (x *JobSchedulingInfo) GetPreemptible() bool { + if x != nil { + return x.Preemptible } return false } -func (m *JobSchedulingInfo) GetConcurrencySafe() bool { - if m != nil { - return m.ConcurrencySafe +func (x *JobSchedulingInfo) GetConcurrencySafe() bool { + if x != nil { + return x.ConcurrencySafe } return false } -func (m *JobSchedulingInfo) GetPriorityClassName() string { - if m != nil { - return m.PriorityClassName +func (x *JobSchedulingInfo) GetPriorityClassName() string { + if x != nil { + return x.PriorityClassName } return "" } -func (m *JobSchedulingInfo) GetSubmitTime() *types.Timestamp { - if m != nil { - return m.SubmitTime +func (x *JobSchedulingInfo) GetSubmitTime() *timestamppb.Timestamp { + if x != nil { + return x.SubmitTime } return nil } -func (m *JobSchedulingInfo) GetPriority() uint32 { - if m != nil { - return m.Priority +func (x *JobSchedulingInfo) GetPriority() uint32 { + if x != nil { + return x.Priority } return 0 } -func (m *JobSchedulingInfo) GetObjectRequirements() []*ObjectRequirements { - if m != nil { - return m.ObjectRequirements +func (x *JobSchedulingInfo) GetObjectRequirements() []*ObjectRequirements { + if x != nil { + return x.ObjectRequirements } return nil } -func (m *JobSchedulingInfo) GetVersion() uint32 { - if m != nil { - return m.Version +func (x *JobSchedulingInfo) GetVersion() uint32 { + if x != nil { + return x.Version } return 0 } // Message capturing the scheduling requirements of a particular Kubernetes object. type ObjectRequirements struct { + state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Requirements: + // // *ObjectRequirements_PodRequirements - Requirements isObjectRequirements_Requirements `protobuf_oneof:"requirements"` + Requirements isObjectRequirements_Requirements `protobuf_oneof:"requirements"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ObjectRequirements) Reset() { *m = ObjectRequirements{} } -func (m *ObjectRequirements) String() string { return proto.CompactTextString(m) } -func (*ObjectRequirements) ProtoMessage() {} -func (*ObjectRequirements) Descriptor() ([]byte, []int) { - return fileDescriptor_97dadc5fbd620721, []int{5} -} -func (m *ObjectRequirements) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ObjectRequirements) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ObjectRequirements.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ObjectRequirements) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectRequirements.Merge(m, src) +func (x *ObjectRequirements) Reset() { + *x = ObjectRequirements{} + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ObjectRequirements) XXX_Size() int { - return m.Size() -} -func (m *ObjectRequirements) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectRequirements.DiscardUnknown(m) + +func (x *ObjectRequirements) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ObjectRequirements proto.InternalMessageInfo +func (*ObjectRequirements) ProtoMessage() {} -type isObjectRequirements_Requirements interface { - isObjectRequirements_Requirements() - MarshalTo([]byte) (int, error) - Size() int +func (x *ObjectRequirements) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type ObjectRequirements_PodRequirements struct { - PodRequirements *PodRequirements `protobuf:"bytes,1,opt,name=podRequirements,proto3,oneof" json:"podRequirements,omitempty"` +// Deprecated: Use ObjectRequirements.ProtoReflect.Descriptor instead. +func (*ObjectRequirements) Descriptor() ([]byte, []int) { + return file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDescGZIP(), []int{5} } -func (*ObjectRequirements_PodRequirements) isObjectRequirements_Requirements() {} - -func (m *ObjectRequirements) GetRequirements() isObjectRequirements_Requirements { - if m != nil { - return m.Requirements +func (x *ObjectRequirements) GetRequirements() isObjectRequirements_Requirements { + if x != nil { + return x.Requirements } return nil } -func (m *ObjectRequirements) GetPodRequirements() *PodRequirements { - if x, ok := m.GetRequirements().(*ObjectRequirements_PodRequirements); ok { - return x.PodRequirements +func (x *ObjectRequirements) GetPodRequirements() *PodRequirements { + if x != nil { + if x, ok := x.Requirements.(*ObjectRequirements_PodRequirements); ok { + return x.PodRequirements + } } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ObjectRequirements) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ObjectRequirements_PodRequirements)(nil), - } +type isObjectRequirements_Requirements interface { + isObjectRequirements_Requirements() } +type ObjectRequirements_PodRequirements struct { + PodRequirements *PodRequirements `protobuf:"bytes,1,opt,name=podRequirements,proto3,oneof"` +} + +func (*ObjectRequirements_PodRequirements) isObjectRequirements_Requirements() {} + // Captures the scheduling requirements of a pod. type PodRequirements struct { + state protoimpl.MessageState `protogen:"open.v1"` // Kubernetes node selector. - NodeSelector map[string]string `protobuf:"bytes,1,rep,name=nodeSelector,proto3" json:"nodeSelector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + NodeSelector map[string]string `protobuf:"bytes,1,rep,name=nodeSelector,proto3" json:"nodeSelector,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Kubernetes scheduling requirements. Affinity *v1.Affinity `protobuf:"bytes,2,opt,name=affinity,proto3" json:"affinity,omitempty"` // Kubernetes tolerations. Tolerations []*v1.Toleration `protobuf:"bytes,3,rep,name=tolerations,proto3" json:"tolerations,omitempty"` // Kubernetes annotations. Included here since we use annotations with special meaning. - Annotations map[string]string `protobuf:"bytes,7,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Annotations map[string]string `protobuf:"bytes,7,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // One of Never, PreemptLowerPriority. // Defaults to PreemptLowerPriority if unset. PreemptionPolicy string `protobuf:"bytes,5,opt,name=preemptionPolicy,proto3" json:"preemptionPolicy,omitempty"` // Sum of the resource requirements for all containers that make up this pod. ResourceRequirements *v1.ResourceRequirements `protobuf:"bytes,6,opt,name=resourceRequirements,proto3" json:"resourceRequirements,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PodRequirements) Reset() { *m = PodRequirements{} } -func (m *PodRequirements) String() string { return proto.CompactTextString(m) } -func (*PodRequirements) ProtoMessage() {} -func (*PodRequirements) Descriptor() ([]byte, []int) { - return fileDescriptor_97dadc5fbd620721, []int{6} -} -func (m *PodRequirements) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodRequirements) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PodRequirements.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *PodRequirements) Reset() { + *x = PodRequirements{} + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PodRequirements) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodRequirements.Merge(m, src) -} -func (m *PodRequirements) XXX_Size() int { - return m.Size() -} -func (m *PodRequirements) XXX_DiscardUnknown() { - xxx_messageInfo_PodRequirements.DiscardUnknown(m) + +func (x *PodRequirements) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_PodRequirements proto.InternalMessageInfo +func (*PodRequirements) ProtoMessage() {} -func (m *PodRequirements) GetNodeSelector() map[string]string { - if m != nil { - return m.NodeSelector +func (x *PodRequirements) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *PodRequirements) GetAffinity() *v1.Affinity { - if m != nil { - return m.Affinity - } - return nil +// Deprecated: Use PodRequirements.ProtoReflect.Descriptor instead. +func (*PodRequirements) Descriptor() ([]byte, []int) { + return file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDescGZIP(), []int{6} } -func (m *PodRequirements) GetTolerations() []*v1.Toleration { - if m != nil { - return m.Tolerations +func (x *PodRequirements) GetNodeSelector() map[string]string { + if x != nil { + return x.NodeSelector } return nil } -func (m *PodRequirements) GetAnnotations() map[string]string { - if m != nil { - return m.Annotations +func (x *PodRequirements) GetAffinity() *v1.Affinity { + if x != nil { + return x.Affinity } return nil } -func (m *PodRequirements) GetPreemptionPolicy() string { - if m != nil { - return m.PreemptionPolicy - } - return "" -} - -func (m *PodRequirements) GetResourceRequirements() *v1.ResourceRequirements { - if m != nil { - return m.ResourceRequirements +func (x *PodRequirements) GetTolerations() []*v1.Toleration { + if x != nil { + return x.Tolerations } return nil } -type ExecutorSettings struct { - ExecutorId string `protobuf:"bytes,1,opt,name=executorId,proto3" json:"executorId,omitempty"` - Cordoned bool `protobuf:"varint,2,opt,name=cordoned,proto3" json:"cordoned,omitempty"` - CordonReason string `protobuf:"bytes,3,opt,name=cordonReason,proto3" json:"cordonReason,omitempty"` - SetByUser string `protobuf:"bytes,4,opt,name=setByUser,proto3" json:"setByUser,omitempty"` - SetAtTime *types.Timestamp `protobuf:"bytes,5,opt,name=setAtTime,proto3" json:"setAtTime,omitempty"` -} - -func (m *ExecutorSettings) Reset() { *m = ExecutorSettings{} } -func (m *ExecutorSettings) String() string { return proto.CompactTextString(m) } -func (*ExecutorSettings) ProtoMessage() {} -func (*ExecutorSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_97dadc5fbd620721, []int{7} -} -func (m *ExecutorSettings) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExecutorSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExecutorSettings.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ExecutorSettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutorSettings.Merge(m, src) -} -func (m *ExecutorSettings) XXX_Size() int { - return m.Size() -} -func (m *ExecutorSettings) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutorSettings.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutorSettings proto.InternalMessageInfo - -func (m *ExecutorSettings) GetExecutorId() string { - if m != nil { - return m.ExecutorId +func (x *PodRequirements) GetAnnotations() map[string]string { + if x != nil { + return x.Annotations } - return "" -} - -func (m *ExecutorSettings) GetCordoned() bool { - if m != nil { - return m.Cordoned - } - return false -} - -func (m *ExecutorSettings) GetCordonReason() string { - if m != nil { - return m.CordonReason - } - return "" + return nil } -func (m *ExecutorSettings) GetSetByUser() string { - if m != nil { - return m.SetByUser +func (x *PodRequirements) GetPreemptionPolicy() string { + if x != nil { + return x.PreemptionPolicy } return "" } -func (m *ExecutorSettings) GetSetAtTime() *types.Timestamp { - if m != nil { - return m.SetAtTime +func (x *PodRequirements) GetResourceRequirements() *v1.ResourceRequirements { + if x != nil { + return x.ResourceRequirements } return nil } -func init() { - proto.RegisterEnum("schedulerobjects.JobRunState", JobRunState_name, JobRunState_value) - proto.RegisterType((*Executor)(nil), "schedulerobjects.Executor") - proto.RegisterType((*Node)(nil), "schedulerobjects.Node") - proto.RegisterMapType((map[string]string)(nil), "schedulerobjects.Node.LabelsEntry") - proto.RegisterMapType((map[string]JobRunState)(nil), "schedulerobjects.Node.StateByJobRunIdEntry") - proto.RegisterMapType((map[int32]*ResourceList)(nil), "schedulerobjects.Node.UnallocatableResourcesEntry") - proto.RegisterType((*PoolQueueResource)(nil), "schedulerobjects.PoolQueueResource") - proto.RegisterType((*ResourceList)(nil), "schedulerobjects.ResourceList") - proto.RegisterMapType((map[string]*resource.Quantity)(nil), "schedulerobjects.ResourceList.ResourcesEntry") - proto.RegisterType((*JobSchedulingInfo)(nil), "schedulerobjects.JobSchedulingInfo") - proto.RegisterType((*ObjectRequirements)(nil), "schedulerobjects.ObjectRequirements") - proto.RegisterType((*PodRequirements)(nil), "schedulerobjects.PodRequirements") - proto.RegisterMapType((map[string]string)(nil), "schedulerobjects.PodRequirements.AnnotationsEntry") - proto.RegisterMapType((map[string]string)(nil), "schedulerobjects.PodRequirements.NodeSelectorEntry") - proto.RegisterType((*ExecutorSettings)(nil), "schedulerobjects.ExecutorSettings") -} - -func init() { - proto.RegisterFile("internal/scheduler/schedulerobjects/schedulerobjects.proto", fileDescriptor_97dadc5fbd620721) -} - -var fileDescriptor_97dadc5fbd620721 = []byte{ - // 1696 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcd, 0x6f, 0xdb, 0xc8, - 0x15, 0x37, 0x6d, 0x59, 0xa6, 0x46, 0xfe, 0xa0, 0xc6, 0xde, 0x84, 0x51, 0xb2, 0xa2, 0xaa, 0xdd, - 0x16, 0x4e, 0x3f, 0x28, 0xac, 0xb7, 0x05, 0x82, 0x14, 0x28, 0x60, 0x26, 0xee, 0xc6, 0x6a, 0x2a, - 0x3b, 0x76, 0x84, 0xa2, 0x2d, 0x0a, 0x76, 0x44, 0x8e, 0x15, 0xae, 0xa9, 0x19, 0x2e, 0x39, 0x4c, - 0x57, 0xb7, 0x5e, 0x8b, 0x5e, 0xba, 0x45, 0xdb, 0xff, 0xa6, 0xf7, 0xa2, 0xe8, 0x61, 0x8f, 0x3d, - 0x11, 0x45, 0x02, 0xf4, 0xc0, 0xbf, 0x62, 0x31, 0x43, 0x52, 0x1c, 0x7d, 0xd8, 0xf2, 0x65, 0x4f, - 0x16, 0x7f, 0xef, 0xbd, 0xdf, 0x7b, 0xf3, 0xe6, 0xcd, 0x9b, 0x37, 0x06, 0x4f, 0x3d, 0xc2, 0x70, - 0x48, 0x90, 0xdf, 0x8d, 0x9c, 0x37, 0xd8, 0x8d, 0x7d, 0x1c, 0x96, 0xbf, 0xe8, 0xf0, 0x73, 0xec, - 0xb0, 0x68, 0x01, 0x30, 0x83, 0x90, 0x32, 0x0a, 0xb5, 0x79, 0xbc, 0x69, 0x8c, 0x28, 0x1d, 0xf9, - 0xb8, 0x2b, 0xe4, 0xc3, 0xf8, 0xaa, 0xcb, 0xbc, 0x31, 0x8e, 0x18, 0x1a, 0x07, 0x99, 0x49, 0xb3, - 0x73, 0xfd, 0x24, 0x32, 0x3d, 0xda, 0x45, 0x81, 0xd7, 0x75, 0x68, 0x88, 0xbb, 0x6f, 0x3f, 0xe9, - 0x8e, 0x30, 0xc1, 0x21, 0x62, 0xd8, 0xcd, 0x75, 0x7e, 0x5c, 0xea, 0x8c, 0x91, 0xf3, 0xc6, 0x23, - 0x38, 0x9c, 0x74, 0x83, 0xeb, 0x91, 0x30, 0x0a, 0x71, 0x44, 0xe3, 0xd0, 0xc1, 0xf3, 0x56, 0x9d, - 0x77, 0xeb, 0x40, 0x3d, 0xf9, 0x12, 0x3b, 0x31, 0xa3, 0x21, 0x6c, 0x83, 0x75, 0xcf, 0xd5, 0x95, - 0xb6, 0x72, 0x58, 0xb3, 0xb4, 0x34, 0x31, 0xb6, 0x3d, 0xf7, 0x87, 0x74, 0xec, 0x31, 0x3c, 0x0e, - 0xd8, 0xe4, 0x62, 0xdd, 0x73, 0xe1, 0xf7, 0x40, 0x25, 0xa0, 0xd4, 0xd7, 0xd7, 0x85, 0x0e, 0x4c, - 0x13, 0x63, 0x97, 0x7f, 0x4b, 0x5a, 0x42, 0x0e, 0x8f, 0xc1, 0x26, 0xa1, 0x2e, 0x8e, 0xf4, 0x8d, - 0xf6, 0xc6, 0x61, 0xfd, 0xe8, 0x9e, 0xb9, 0x90, 0x8b, 0x3e, 0x75, 0xb1, 0xb5, 0x9f, 0x26, 0xc6, - 0x9e, 0x50, 0x94, 0x18, 0x32, 0x4b, 0xf8, 0x7b, 0xb0, 0xeb, 0xa3, 0x88, 0x0d, 0x02, 0x17, 0x31, - 0xfc, 0xda, 0x1b, 0x63, 0x7d, 0xb3, 0xad, 0x1c, 0xd6, 0x8f, 0x9a, 0x66, 0x96, 0x2d, 0xb3, 0xc8, - 0x96, 0xf9, 0xba, 0xc8, 0x96, 0xf5, 0x28, 0x4d, 0x0c, 0x7d, 0xd6, 0x4a, 0x22, 0x9e, 0xe3, 0x83, - 0x67, 0x60, 0x3f, 0x26, 0x28, 0x8a, 0xbc, 0x11, 0xc1, 0xae, 0xfd, 0x39, 0x1d, 0xda, 0x61, 0x4c, - 0x22, 0xbd, 0xd6, 0xde, 0x38, 0xac, 0x59, 0x46, 0x9a, 0x18, 0x0f, 0x4b, 0x71, 0x8f, 0x0e, 0x2f, - 0x62, 0x22, 0x87, 0xd9, 0x58, 0x10, 0xf6, 0x2a, 0x6a, 0x45, 0xdb, 0xec, 0x55, 0xd4, 0xaa, 0xb6, - 0xd5, 0xab, 0xa8, 0x5b, 0x9a, 0xda, 0xab, 0xa8, 0xaa, 0x56, 0xeb, 0xfc, 0xbf, 0x0e, 0x2a, 0x7c, - 0xbd, 0x77, 0x4b, 0x30, 0x41, 0x63, 0xac, 0x6f, 0x97, 0x09, 0xe6, 0xdf, 0x72, 0x82, 0xf9, 0x37, - 0x3c, 0x02, 0x2a, 0xce, 0xb7, 0x4d, 0xdf, 0x17, 0xba, 0xf7, 0xd2, 0xc4, 0x80, 0x05, 0x26, 0xe9, - 0x4f, 0xf5, 0xe0, 0x19, 0xa8, 0xf1, 0x0c, 0xd8, 0x11, 0xc6, 0x44, 0xec, 0xe0, 0xed, 0xc9, 0x14, - 0x84, 0xdc, 0xe0, 0x12, 0x63, 0x22, 0x13, 0x16, 0x18, 0xfc, 0x0c, 0x54, 0x19, 0xf2, 0x08, 0x8b, - 0xf4, 0x4d, 0xb1, 0xcd, 0x0f, 0xcc, 0xac, 0x06, 0x4d, 0x14, 0x78, 0x26, 0xaf, 0x53, 0xf3, 0xed, - 0x27, 0xe6, 0x6b, 0xae, 0x61, 0x1d, 0xa4, 0x89, 0xa1, 0x65, 0xca, 0x12, 0x55, 0x6e, 0x0e, 0xcf, - 0x41, 0xd5, 0x47, 0x43, 0xec, 0x47, 0x7a, 0x55, 0x10, 0x75, 0x96, 0xd7, 0x8b, 0xf9, 0x52, 0x28, - 0x9d, 0x10, 0x16, 0x4e, 0x32, 0xc6, 0xcc, 0x4a, 0x66, 0xcc, 0x10, 0x88, 0xc1, 0x1e, 0xa3, 0x0c, - 0xf9, 0x76, 0x51, 0xf9, 0x91, 0xbe, 0x25, 0x56, 0xdc, 0x5a, 0xa4, 0xbe, 0xc8, 0x55, 0x5e, 0x7a, - 0x11, 0xcb, 0x4a, 0x48, 0x98, 0x16, 0xb0, 0x4c, 0xbf, 0x3b, 0x2b, 0x81, 0x5f, 0x82, 0xfd, 0x88, - 0x21, 0x86, 0xed, 0xe1, 0xa4, 0x28, 0x20, 0xdb, 0x73, 0x45, 0x09, 0xd5, 0x8f, 0x7e, 0x70, 0xc3, - 0x2a, 0x2e, 0xb9, 0x85, 0x35, 0xc9, 0xaa, 0xe6, 0xd4, 0xcd, 0x96, 0xf3, 0x61, 0x9a, 0x18, 0x0f, - 0xa2, 0x59, 0x89, 0xe4, 0x78, 0x6f, 0x4e, 0x04, 0xbf, 0x52, 0xc0, 0xfd, 0x98, 0x20, 0xdf, 0xa7, - 0x0e, 0x62, 0x68, 0xe8, 0x63, 0x69, 0xa5, 0x3b, 0xc2, 0xfd, 0xd1, 0x0d, 0xee, 0x07, 0xb2, 0xd5, - 0x74, 0x29, 0x59, 0x14, 0x1f, 0xa7, 0x89, 0xd1, 0x8e, 0x97, 0x2a, 0x48, 0xc1, 0xdc, 0x5b, 0xae, - 0x01, 0x8f, 0xc1, 0x4e, 0x4c, 0x72, 0xa7, 0x5c, 0xa2, 0xef, 0xb5, 0x95, 0x43, 0xd5, 0x7a, 0x98, - 0x26, 0xc6, 0xfd, 0x19, 0x81, 0xc4, 0x35, 0x6b, 0xc1, 0xcf, 0x64, 0x88, 0x03, 0x1a, 0x32, 0x8f, - 0x8c, 0x6c, 0xde, 0x08, 0x6c, 0x36, 0x09, 0xb0, 0xde, 0x10, 0x25, 0x2e, 0xce, 0xe4, 0x54, 0xcc, - 0x17, 0xf3, 0x7a, 0x12, 0xc8, 0x64, 0x8d, 0x05, 0xe1, 0xb4, 0x63, 0xc1, 0x15, 0x1d, 0xeb, 0xef, - 0x0a, 0x68, 0x17, 0x19, 0xb4, 0xe3, 0x08, 0x8d, 0xc4, 0x9e, 0x7e, 0x11, 0xe3, 0x18, 0xdb, 0x88, - 0xb8, 0xb6, 0x20, 0x39, 0x10, 0x89, 0xfd, 0x68, 0x31, 0xb1, 0xe7, 0x94, 0xfa, 0xaf, 0xb8, 0x6e, - 0x91, 0x0c, 0xeb, 0x71, 0x9a, 0x18, 0xdf, 0x2d, 0x08, 0x07, 0x9c, 0xcf, 0x9a, 0x08, 0x8d, 0x63, - 0xe2, 0x9e, 0xcf, 0x06, 0xf0, 0xf0, 0x16, 0xb5, 0x26, 0x02, 0x75, 0xa9, 0xea, 0xe1, 0x47, 0x60, - 0xe3, 0x1a, 0x4f, 0xf2, 0x16, 0xd2, 0x48, 0x13, 0x63, 0xe7, 0x1a, 0x4f, 0x24, 0x2e, 0x2e, 0x85, - 0x8f, 0xc1, 0xe6, 0x5b, 0xe4, 0xc7, 0x38, 0x6f, 0xd3, 0xa2, 0xcb, 0x0a, 0x40, 0xee, 0xb2, 0x02, - 0x78, 0xba, 0xfe, 0x44, 0x69, 0xfe, 0x49, 0x01, 0x07, 0xcb, 0x6a, 0xf2, 0x6e, 0xce, 0x5e, 0xc8, - 0xce, 0x76, 0x8f, 0x3e, 0x5c, 0x4c, 0x4e, 0x46, 0x9a, 0x79, 0x58, 0x15, 0xcb, 0x57, 0x0a, 0x78, - 0x78, 0x4b, 0x81, 0xca, 0x21, 0x6d, 0xde, 0x18, 0xd2, 0xa9, 0x1c, 0xd2, 0xea, 0x23, 0xbf, 0x22, - 0xa6, 0x5e, 0x45, 0xdd, 0xd0, 0x2a, 0xd3, 0xe6, 0xae, 0x6a, 0xb5, 0x5e, 0x45, 0x05, 0x5a, 0xbd, - 0x57, 0x51, 0xeb, 0xda, 0x76, 0xaf, 0xa2, 0xee, 0x6a, 0x7b, 0xbd, 0x8a, 0xaa, 0x69, 0x8d, 0xce, - 0x3f, 0x15, 0xd0, 0x58, 0x28, 0x85, 0x69, 0x09, 0x2a, 0x2b, 0x4a, 0xf0, 0x31, 0xd8, 0x14, 0xf5, - 0x26, 0x6f, 0x9b, 0x00, 0xe4, 0xb0, 0x04, 0x00, 0x07, 0xa0, 0x56, 0x1e, 0xf7, 0x8d, 0x3b, 0xad, - 0xf2, 0x7e, 0x9a, 0x18, 0xfb, 0xe1, 0x92, 0xd3, 0x5c, 0x32, 0x75, 0xfe, 0xbc, 0x0e, 0xb6, 0x65, - 0x23, 0xe8, 0xca, 0x7e, 0x14, 0x51, 0xfd, 0x3f, 0xba, 0xdd, 0x8f, 0x39, 0xd7, 0x51, 0xee, 0xe0, - 0xb6, 0xf9, 0x37, 0x05, 0xec, 0xde, 0xbc, 0xcf, 0x37, 0x97, 0xde, 0xaf, 0x67, 0xf7, 0xd9, 0x94, - 0xae, 0x9f, 0xe9, 0x08, 0x64, 0x06, 0xd7, 0x23, 0x71, 0x1f, 0x15, 0xee, 0xcc, 0x57, 0x31, 0x22, - 0xcc, 0x63, 0x93, 0x55, 0xfb, 0xde, 0xf9, 0xc7, 0x26, 0x68, 0xf4, 0xe8, 0xf0, 0x32, 0x5b, 0xae, - 0x47, 0x46, 0xa7, 0xe4, 0x8a, 0xf2, 0x9b, 0xd7, 0xf7, 0xae, 0x30, 0x1f, 0xd1, 0x44, 0x78, 0x3b, - 0xf9, 0x45, 0x99, 0x63, 0x33, 0x17, 0x65, 0x8e, 0xc1, 0xa7, 0x60, 0x1b, 0x31, 0x7b, 0x4c, 0x23, - 0x66, 0x53, 0xe2, 0x64, 0xf1, 0xaa, 0x96, 0x9e, 0x26, 0xc6, 0x01, 0x62, 0xbf, 0xa4, 0x11, 0x3b, - 0x23, 0x8e, 0x6c, 0x09, 0x4a, 0x14, 0xfe, 0x14, 0xd4, 0x83, 0x10, 0x73, 0xdc, 0xe3, 0x2d, 0x75, - 0x43, 0x98, 0x3e, 0x48, 0x13, 0xe3, 0x03, 0x09, 0x96, 0x6c, 0x65, 0x6d, 0xf8, 0x02, 0x68, 0x0e, - 0x25, 0x4e, 0x1c, 0x86, 0x98, 0x38, 0x13, 0x3b, 0x42, 0x57, 0x58, 0xaf, 0x08, 0x06, 0x71, 0xdf, - 0x48, 0xb2, 0x4b, 0x74, 0x25, 0xb3, 0xec, 0xcd, 0x89, 0x78, 0x63, 0x0e, 0x42, 0x8f, 0x86, 0x1e, - 0x9b, 0xd8, 0x8e, 0x8f, 0xa2, 0xc8, 0x16, 0x73, 0x4a, 0xb5, 0x6c, 0xcc, 0x85, 0xf8, 0x19, 0x97, - 0xf6, 0x67, 0x87, 0x96, 0xc6, 0x82, 0x10, 0x0e, 0x40, 0x3d, 0x8a, 0x87, 0x63, 0x8f, 0xd9, 0x22, - 0x95, 0x5b, 0x2b, 0xe7, 0x11, 0x91, 0xae, 0xcc, 0x64, 0x6e, 0xb0, 0x03, 0x25, 0xca, 0xb7, 0xa7, - 0xf0, 0xa5, 0xab, 0xe5, 0xf6, 0x14, 0x98, 0xbc, 0x3d, 0x05, 0x06, 0xff, 0x00, 0xf6, 0xb3, 0x52, - 0xb6, 0x43, 0xfc, 0x45, 0xec, 0x85, 0x78, 0x8c, 0xcb, 0xa1, 0xe6, 0xe3, 0xc5, 0x7a, 0x3f, 0x13, - 0x7f, 0x2f, 0x24, 0x5d, 0xab, 0x9d, 0x26, 0xc6, 0x23, 0xba, 0x80, 0x4b, 0xee, 0xe0, 0xa2, 0x14, - 0x76, 0xc1, 0xd6, 0x5b, 0x1c, 0x46, 0x1e, 0x25, 0x7a, 0x4d, 0xc4, 0xfa, 0x41, 0x9a, 0x18, 0x8d, - 0x1c, 0x92, 0x6c, 0x0b, 0xad, 0xac, 0xf1, 0x74, 0xfe, 0xaa, 0x00, 0xb8, 0x18, 0x03, 0xf4, 0xc1, - 0x5e, 0x40, 0x5d, 0x19, 0x12, 0x05, 0x5a, 0x3f, 0xfa, 0xce, 0xb2, 0x0b, 0x6b, 0x46, 0x31, 0x2b, - 0x87, 0x39, 0xeb, 0x32, 0x80, 0x17, 0x6b, 0x17, 0xf3, 0xd4, 0xd6, 0x2e, 0xd8, 0x96, 0xb3, 0xd5, - 0xf9, 0x4f, 0x15, 0xec, 0xcd, 0xb1, 0xc2, 0x08, 0x6c, 0xf3, 0x3b, 0xfc, 0x12, 0xfb, 0xd8, 0xe1, - 0x93, 0x6a, 0xd6, 0x41, 0x3e, 0x5d, 0x19, 0x8e, 0x18, 0x54, 0x0a, 0xab, 0xac, 0x8f, 0x34, 0xd3, - 0xc4, 0xb8, 0x27, 0x93, 0x49, 0xe9, 0x99, 0x71, 0x02, 0xcf, 0x81, 0x8a, 0xae, 0xae, 0x3c, 0xc2, - 0x2b, 0x20, 0x6b, 0x0c, 0x8f, 0x96, 0xcd, 0xa5, 0xc7, 0xb9, 0x4e, 0x56, 0x1f, 0x85, 0x85, 0x5c, - 0x1f, 0x05, 0x06, 0x7f, 0x0b, 0xea, 0x8c, 0xfa, 0xfc, 0xdd, 0xe4, 0x51, 0x52, 0xbc, 0x69, 0x5a, - 0x4b, 0x87, 0xdd, 0xa9, 0x5a, 0x76, 0x44, 0x25, 0x33, 0xf9, 0x88, 0x4a, 0x30, 0xa4, 0xa0, 0x8e, - 0x08, 0xa1, 0x2c, 0x27, 0xdf, 0xba, 0x69, 0x76, 0x9b, 0x4f, 0xd1, 0x71, 0x69, 0x94, 0x65, 0x48, - 0x38, 0x94, 0xa8, 0x64, 0x87, 0x12, 0x0c, 0x7b, 0x40, 0x2b, 0x5a, 0x04, 0x25, 0xe7, 0xd4, 0xf7, - 0x9c, 0x89, 0x78, 0x5a, 0xd5, 0xac, 0x56, 0x9a, 0x18, 0xcd, 0x79, 0x99, 0x44, 0xb3, 0x60, 0x07, - 0xff, 0xa8, 0x80, 0x83, 0xa2, 0xb1, 0xce, 0x14, 0x5e, 0x55, 0x24, 0xfe, 0x70, 0x59, 0x8e, 0x2e, - 0x96, 0xe8, 0x5b, 0x9d, 0x34, 0x31, 0x5a, 0xcb, 0x98, 0x24, 0xf7, 0x4b, 0x3d, 0x35, 0x47, 0xa0, - 0xb1, 0x50, 0x2d, 0xdf, 0xca, 0x98, 0x74, 0x05, 0xb4, 0xf9, 0x9c, 0x7f, 0x1b, 0x7e, 0xf2, 0x37, - 0xe3, 0xbf, 0xd7, 0x81, 0x56, 0x3c, 0xcc, 0x2f, 0x31, 0xe3, 0x33, 0x6d, 0x04, 0x9f, 0x00, 0x50, - 0xbc, 0xe6, 0x4e, 0x8b, 0x77, 0xa4, 0x68, 0x8b, 0x25, 0x2a, 0xb7, 0xc5, 0x12, 0xe5, 0x6d, 0xd1, - 0xa1, 0xa1, 0x4b, 0x09, 0x76, 0xf3, 0xdb, 0x47, 0x94, 0x7d, 0x81, 0xc9, 0x65, 0x5f, 0x60, 0xf0, - 0x67, 0x60, 0x3b, 0xfb, 0x7d, 0x81, 0x51, 0x44, 0x89, 0xb8, 0x7a, 0x6a, 0xd9, 0x41, 0x94, 0x71, - 0xf9, 0x20, 0xca, 0x38, 0xfc, 0x09, 0xa8, 0x45, 0x98, 0x59, 0x93, 0x41, 0x84, 0x43, 0x71, 0xeb, - 0xd4, 0xb2, 0x69, 0x60, 0x0a, 0xca, 0xd3, 0xc0, 0x14, 0x84, 0xaf, 0x84, 0xd9, 0x31, 0xbb, 0xe3, - 0x9b, 0xbf, 0xa0, 0x3c, 0x9e, 0xbf, 0x15, 0x4a, 0x96, 0xef, 0x9f, 0x81, 0xba, 0x34, 0x84, 0xc2, - 0x3a, 0xd8, 0x1a, 0xf4, 0x7f, 0xd1, 0x3f, 0xfb, 0x55, 0x5f, 0x5b, 0xe3, 0x1f, 0xe7, 0x27, 0xfd, - 0xe7, 0xa7, 0xfd, 0xcf, 0x34, 0x85, 0x7f, 0x5c, 0x0c, 0xfa, 0x7d, 0xfe, 0xb1, 0x0e, 0x77, 0x40, - 0xed, 0x72, 0xf0, 0xec, 0xd9, 0xc9, 0xc9, 0xf3, 0x93, 0xe7, 0xda, 0x06, 0x04, 0xa0, 0xfa, 0xf3, - 0xe3, 0xd3, 0x97, 0x27, 0xcf, 0xb5, 0x8a, 0xf5, 0xbb, 0x7f, 0xbd, 0x6b, 0x29, 0x5f, 0xbf, 0x6b, - 0x29, 0xff, 0x7b, 0xd7, 0x52, 0xfe, 0xf2, 0xbe, 0xb5, 0xf6, 0xf5, 0xfb, 0xd6, 0xda, 0x7f, 0xdf, - 0xb7, 0xd6, 0x7e, 0xf3, 0x6c, 0xe4, 0xb1, 0x37, 0xf1, 0xd0, 0x74, 0xe8, 0xb8, 0x8b, 0xc2, 0x31, - 0x72, 0x51, 0x10, 0x52, 0x7e, 0x82, 0xf3, 0xaf, 0xee, 0x1d, 0xfe, 0x73, 0x34, 0xac, 0x8a, 0x75, - 0x7e, 0xfa, 0x4d, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe5, 0xce, 0x72, 0x4f, 0x67, 0x12, 0x00, 0x00, -} - -func (m *Executor) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Executor) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Executor) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.UnassignedJobRuns) > 0 { - for iNdEx := len(m.UnassignedJobRuns) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.UnassignedJobRuns[iNdEx]) - copy(dAtA[i:], m.UnassignedJobRuns[iNdEx]) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.UnassignedJobRuns[iNdEx]))) - i-- - dAtA[i] = 0x4a - } - } - if m.LastUpdateTime != nil { - { - size, err := m.LastUpdateTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.Nodes) > 0 { - for iNdEx := len(m.Nodes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Nodes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Pool) > 0 { - i -= len(m.Pool) - copy(dAtA[i:], m.Pool) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.Pool))) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Node) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Node) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ResourceUsageByQueueAndPool) > 0 { - for iNdEx := len(m.ResourceUsageByQueueAndPool) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ResourceUsageByQueueAndPool[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - } - } - if len(m.Executor) > 0 { - i -= len(m.Executor) - copy(dAtA[i:], m.Executor) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.Executor))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - } - if len(m.Pool) > 0 { - i -= len(m.Pool) - copy(dAtA[i:], m.Pool) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.Pool))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - if len(m.ReportingNodeType) > 0 { - i -= len(m.ReportingNodeType) - copy(dAtA[i:], m.ReportingNodeType) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.ReportingNodeType))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - if m.Unschedulable { - i-- - if m.Unschedulable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x78 - } - if len(m.UnallocatableResources) > 0 { - for k := range m.UnallocatableResources { - v := m.UnallocatableResources[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i = encodeVarintSchedulerobjects(dAtA, i, uint64(k)) - i-- - dAtA[i] = 0x8 - i = encodeVarintSchedulerobjects(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x6a - } - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x62 - } - if len(m.StateByJobRunId) > 0 { - for k := range m.StateByJobRunId { - v := m.StateByJobRunId[k] - baseI := i - i = encodeVarintSchedulerobjects(dAtA, i, uint64(v)) - i-- - dAtA[i] = 0x10 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSchedulerobjects(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x4a - } - } - if m.TotalResources != nil { - { - size, err := m.TotalResources.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if len(m.Labels) > 0 { - for k := range m.Labels { - v := m.Labels[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSchedulerobjects(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x32 - } - } - if len(m.Taints) > 0 { - for iNdEx := len(m.Taints) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Taints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if m.LastSeen != nil { - { - size, err := m.LastSeen.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PoolQueueResource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PoolQueueResource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PoolQueueResource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Resources != nil { - { - size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x12 - } - if len(m.Pool) > 0 { - i -= len(m.Pool) - copy(dAtA[i:], m.Pool) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.Pool))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ResourceList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Resources) > 0 { - for k := range m.Resources { - v := m.Resources[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSchedulerobjects(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *JobSchedulingInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobSchedulingInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobSchedulingInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Version != 0 { - i = encodeVarintSchedulerobjects(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x48 - } - if m.Priority != 0 { - i = encodeVarintSchedulerobjects(dAtA, i, uint64(m.Priority)) - i-- - dAtA[i] = 0x40 - } - if m.SubmitTime != nil { - { - size, err := m.SubmitTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if len(m.PriorityClassName) > 0 { - i -= len(m.PriorityClassName) - copy(dAtA[i:], m.PriorityClassName) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.PriorityClassName))) - i-- - dAtA[i] = 0x32 - } - if len(m.ObjectRequirements) > 0 { - for iNdEx := len(m.ObjectRequirements) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ObjectRequirements[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if m.ConcurrencySafe { - i-- - if m.ConcurrencySafe { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.Preemptible { - i-- - if m.Preemptible { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.AtMostOnce { - i-- - if m.AtMostOnce { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.Lifetime != 0 { - i = encodeVarintSchedulerobjects(dAtA, i, uint64(m.Lifetime)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ObjectRequirements) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ObjectRequirements) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ObjectRequirements) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Requirements != nil { - { - size := m.Requirements.Size() - i -= size - if _, err := m.Requirements.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *ObjectRequirements_PodRequirements) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ObjectRequirements_PodRequirements) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.PodRequirements != nil { - { - size, err := m.PodRequirements.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *PodRequirements) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodRequirements) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodRequirements) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Annotations) > 0 { - for k := range m.Annotations { - v := m.Annotations[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSchedulerobjects(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x3a - } - } - if m.ResourceRequirements != nil { - { - size, err := m.ResourceRequirements.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if len(m.PreemptionPolicy) > 0 { - i -= len(m.PreemptionPolicy) - copy(dAtA[i:], m.PreemptionPolicy) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.PreemptionPolicy))) - i-- - dAtA[i] = 0x2a - } - if len(m.Tolerations) > 0 { - for iNdEx := len(m.Tolerations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tolerations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.Affinity != nil { - { - size, err := m.Affinity.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.NodeSelector) > 0 { - for k := range m.NodeSelector { - v := m.NodeSelector[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSchedulerobjects(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ExecutorSettings) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExecutorSettings) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExecutorSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SetAtTime != nil { - { - size, err := m.SetAtTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.SetByUser) > 0 { - i -= len(m.SetByUser) - copy(dAtA[i:], m.SetByUser) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.SetByUser))) - i-- - dAtA[i] = 0x22 - } - if len(m.CordonReason) > 0 { - i -= len(m.CordonReason) - copy(dAtA[i:], m.CordonReason) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.CordonReason))) - i-- - dAtA[i] = 0x1a - } - if m.Cordoned { - i-- - if m.Cordoned { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.ExecutorId) > 0 { - i -= len(m.ExecutorId) - copy(dAtA[i:], m.ExecutorId) - i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.ExecutorId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintSchedulerobjects(dAtA []byte, offset int, v uint64) int { - offset -= sovSchedulerobjects(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Executor) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - l = len(m.Pool) - if l > 0 { - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - if len(m.Nodes) > 0 { - for _, e := range m.Nodes { - l = e.Size() - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - } - if m.LastUpdateTime != nil { - l = m.LastUpdateTime.Size() - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - if len(m.UnassignedJobRuns) > 0 { - for _, s := range m.UnassignedJobRuns { - l = len(s) - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - } - return n -} - -func (m *Node) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - if m.LastSeen != nil { - l = m.LastSeen.Size() - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - if len(m.Taints) > 0 { - for _, e := range m.Taints { - l = e.Size() - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - } - if len(m.Labels) > 0 { - for k, v := range m.Labels { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSchedulerobjects(uint64(len(k))) + 1 + len(v) + sovSchedulerobjects(uint64(len(v))) - n += mapEntrySize + 1 + sovSchedulerobjects(uint64(mapEntrySize)) - } - } - if m.TotalResources != nil { - l = m.TotalResources.Size() - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - if len(m.StateByJobRunId) > 0 { - for k, v := range m.StateByJobRunId { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSchedulerobjects(uint64(len(k))) + 1 + sovSchedulerobjects(uint64(v)) - n += mapEntrySize + 1 + sovSchedulerobjects(uint64(mapEntrySize)) - } - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - if len(m.UnallocatableResources) > 0 { - for k, v := range m.UnallocatableResources { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovSchedulerobjects(uint64(l)) - } - mapEntrySize := 1 + sovSchedulerobjects(uint64(k)) + l - n += mapEntrySize + 1 + sovSchedulerobjects(uint64(mapEntrySize)) - } - } - if m.Unschedulable { - n += 2 - } - l = len(m.ReportingNodeType) - if l > 0 { - n += 2 + l + sovSchedulerobjects(uint64(l)) - } - l = len(m.Pool) - if l > 0 { - n += 2 + l + sovSchedulerobjects(uint64(l)) - } - l = len(m.Executor) - if l > 0 { - n += 2 + l + sovSchedulerobjects(uint64(l)) - } - if len(m.ResourceUsageByQueueAndPool) > 0 { - for _, e := range m.ResourceUsageByQueueAndPool { - l = e.Size() - n += 2 + l + sovSchedulerobjects(uint64(l)) - } - } - return n -} - -func (m *PoolQueueResource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Pool) - if l > 0 { - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - if m.Resources != nil { - l = m.Resources.Size() - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - return n +type ExecutorSettings struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExecutorId string `protobuf:"bytes,1,opt,name=executorId,proto3" json:"executorId,omitempty"` + Cordoned bool `protobuf:"varint,2,opt,name=cordoned,proto3" json:"cordoned,omitempty"` + CordonReason string `protobuf:"bytes,3,opt,name=cordonReason,proto3" json:"cordonReason,omitempty"` + SetByUser string `protobuf:"bytes,4,opt,name=setByUser,proto3" json:"setByUser,omitempty"` + SetAtTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=setAtTime,proto3" json:"setAtTime,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ResourceList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Resources) > 0 { - for k, v := range m.Resources { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovSchedulerobjects(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovSchedulerobjects(uint64(len(k))) + l - n += mapEntrySize + 1 + sovSchedulerobjects(uint64(mapEntrySize)) - } - } - return n +func (x *ExecutorSettings) Reset() { + *x = ExecutorSettings{} + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobSchedulingInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Lifetime != 0 { - n += 1 + sovSchedulerobjects(uint64(m.Lifetime)) - } - if m.AtMostOnce { - n += 2 - } - if m.Preemptible { - n += 2 - } - if m.ConcurrencySafe { - n += 2 - } - if len(m.ObjectRequirements) > 0 { - for _, e := range m.ObjectRequirements { - l = e.Size() - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - } - l = len(m.PriorityClassName) - if l > 0 { - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - if m.SubmitTime != nil { - l = m.SubmitTime.Size() - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - if m.Priority != 0 { - n += 1 + sovSchedulerobjects(uint64(m.Priority)) - } - if m.Version != 0 { - n += 1 + sovSchedulerobjects(uint64(m.Version)) - } - return n +func (x *ExecutorSettings) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ObjectRequirements) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Requirements != nil { - n += m.Requirements.Size() - } - return n -} +func (*ExecutorSettings) ProtoMessage() {} -func (m *ObjectRequirements_PodRequirements) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PodRequirements != nil { - l = m.PodRequirements.Size() - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - return n -} -func (m *PodRequirements) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.NodeSelector) > 0 { - for k, v := range m.NodeSelector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSchedulerobjects(uint64(len(k))) + 1 + len(v) + sovSchedulerobjects(uint64(len(v))) - n += mapEntrySize + 1 + sovSchedulerobjects(uint64(mapEntrySize)) - } - } - if m.Affinity != nil { - l = m.Affinity.Size() - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - if len(m.Tolerations) > 0 { - for _, e := range m.Tolerations { - l = e.Size() - n += 1 + l + sovSchedulerobjects(uint64(l)) +func (x *ExecutorSettings) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - l = len(m.PreemptionPolicy) - if l > 0 { - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - if m.ResourceRequirements != nil { - l = m.ResourceRequirements.Size() - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - if len(m.Annotations) > 0 { - for k, v := range m.Annotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSchedulerobjects(uint64(len(k))) + 1 + len(v) + sovSchedulerobjects(uint64(len(v))) - n += mapEntrySize + 1 + sovSchedulerobjects(uint64(mapEntrySize)) - } - } - return n + return mi.MessageOf(x) } -func (m *ExecutorSettings) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ExecutorId) - if l > 0 { - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - if m.Cordoned { - n += 2 - } - l = len(m.CordonReason) - if l > 0 { - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - l = len(m.SetByUser) - if l > 0 { - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - if m.SetAtTime != nil { - l = m.SetAtTime.Size() - n += 1 + l + sovSchedulerobjects(uint64(l)) - } - return n -} - -func sovSchedulerobjects(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozSchedulerobjects(x uint64) (n int) { - return sovSchedulerobjects(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +// Deprecated: Use ExecutorSettings.ProtoReflect.Descriptor instead. +func (*ExecutorSettings) Descriptor() ([]byte, []int) { + return file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDescGZIP(), []int{7} } -func (m *Executor) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Executor: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Executor: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pool = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nodes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Nodes = append(m.Nodes, &Node{}) - if err := m.Nodes[len(m.Nodes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastUpdateTime == nil { - m.LastUpdateTime = &types.Timestamp{} - } - if err := m.LastUpdateTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UnassignedJobRuns", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UnassignedJobRuns = append(m.UnassignedJobRuns, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSchedulerobjects(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerobjects - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ExecutorSettings) GetExecutorId() string { + if x != nil { + return x.ExecutorId } - return nil + return "" } -func (m *Node) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Node: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Node: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastSeen", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastSeen == nil { - m.LastSeen = &types.Timestamp{} - } - if err := m.LastSeen.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Taints", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Taints = append(m.Taints, &v1.Taint{}) - if err := m.Taints[len(m.Taints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Labels == nil { - m.Labels = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSchedulerobjects - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthSchedulerobjects - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipSchedulerobjects(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerobjects - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Labels[mapkey] = mapvalue - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalResources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TotalResources == nil { - m.TotalResources = &ResourceList{} - } - if err := m.TotalResources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StateByJobRunId", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StateByJobRunId == nil { - m.StateByJobRunId = make(map[string]JobRunState) - } - var mapkey string - var mapvalue JobRunState - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSchedulerobjects - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= JobRunState(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := skipSchedulerobjects(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerobjects - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.StateByJobRunId[mapkey] = mapvalue - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UnallocatableResources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.UnallocatableResources == nil { - m.UnallocatableResources = make(map[int32]*ResourceList) - } - var mapkey int32 - var mapvalue *ResourceList - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapkey |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ResourceList{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipSchedulerobjects(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerobjects - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.UnallocatableResources[mapkey] = mapvalue - iNdEx = postIndex - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Unschedulable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Unschedulable = bool(v != 0) - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReportingNodeType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReportingNodeType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pool = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Executor = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceUsageByQueueAndPool", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceUsageByQueueAndPool = append(m.ResourceUsageByQueueAndPool, &PoolQueueResource{}) - if err := m.ResourceUsageByQueueAndPool[len(m.ResourceUsageByQueueAndPool)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSchedulerobjects(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerobjects - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ExecutorSettings) GetCordoned() bool { + if x != nil { + return x.Cordoned } - return nil + return false } -func (m *PoolQueueResource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PoolQueueResource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PoolQueueResource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pool = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Resources == nil { - m.Resources = &ResourceList{} - } - if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSchedulerobjects(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerobjects - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ExecutorSettings) GetCordonReason() string { + if x != nil { + return x.CordonReason } - return nil + return "" } -func (m *ResourceList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Resources == nil { - m.Resources = make(map[string]*resource.Quantity) - } - var mapkey string - var mapvalue *resource.Quantity - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSchedulerobjects - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipSchedulerobjects(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerobjects - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Resources[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSchedulerobjects(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerobjects - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ExecutorSettings) GetSetByUser() string { + if x != nil { + return x.SetByUser } - return nil + return "" } -func (m *JobSchedulingInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobSchedulingInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSchedulingInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Lifetime", wireType) - } - m.Lifetime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Lifetime |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AtMostOnce", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AtMostOnce = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Preemptible", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Preemptible = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ConcurrencySafe", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ConcurrencySafe = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectRequirements", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ObjectRequirements = append(m.ObjectRequirements, &ObjectRequirements{}) - if err := m.ObjectRequirements[len(m.ObjectRequirements)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PriorityClassName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PriorityClassName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SubmitTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SubmitTime == nil { - m.SubmitTime = &types.Timestamp{} - } - if err := m.SubmitTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) - } - m.Priority = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Priority |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - m.Version = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Version |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipSchedulerobjects(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerobjects - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ExecutorSettings) GetSetAtTime() *timestamppb.Timestamp { + if x != nil { + return x.SetAtTime } return nil } -func (m *ObjectRequirements) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ObjectRequirements: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectRequirements: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodRequirements", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &PodRequirements{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Requirements = &ObjectRequirements_PodRequirements{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSchedulerobjects(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerobjects - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodRequirements) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodRequirements: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodRequirements: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NodeSelector == nil { - m.NodeSelector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSchedulerobjects - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthSchedulerobjects - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipSchedulerobjects(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerobjects - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.NodeSelector[mapkey] = mapvalue - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Affinity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Affinity == nil { - m.Affinity = &v1.Affinity{} - } - if err := m.Affinity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tolerations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tolerations = append(m.Tolerations, &v1.Toleration{}) - if err := m.Tolerations[len(m.Tolerations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreemptionPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PreemptionPolicy = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequirements", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ResourceRequirements == nil { - m.ResourceRequirements = &v1.ResourceRequirements{} - } - if err := m.ResourceRequirements.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Annotations == nil { - m.Annotations = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSchedulerobjects - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthSchedulerobjects - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipSchedulerobjects(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerobjects - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Annotations[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSchedulerobjects(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerobjects - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +var File_internal_scheduler_schedulerobjects_schedulerobjects_proto protoreflect.FileDescriptor + +var file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDesc = string([]byte{ + 0x0a, 0x3a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x73, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x1a, 0x1f, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x22, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, + 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x34, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x6d, + 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x72, 0x79, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe8, 0x01, 0x0a, 0x08, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x12, 0x2c, 0x0a, 0x05, 0x6e, 0x6f, + 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x4e, 0x6f, 0x64, + 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x0e, 0x6c, 0x61, 0x73, 0x74, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x6c, 0x61, + 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, + 0x75, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x72, + 0x75, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x75, 0x6e, 0x61, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x64, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x73, 0x4a, 0x04, 0x08, 0x04, + 0x10, 0x05, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x4a, 0x04, + 0x08, 0x08, 0x10, 0x09, 0x22, 0x88, 0x08, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x13, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x37, 0x0a, + 0x09, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x6c, 0x61, + 0x73, 0x74, 0x53, 0x65, 0x65, 0x6e, 0x12, 0x31, 0x0a, 0x06, 0x74, 0x61, 0x69, 0x6e, 0x74, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x69, 0x6e, + 0x74, 0x52, 0x06, 0x74, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x06, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x4e, 0x6f, 0x64, + 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x47, 0x0a, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0e, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x59, + 0x0a, 0x13, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x72, + 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x73, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x4e, + 0x6f, 0x64, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x79, 0x4a, 0x6f, 0x62, 0x52, 0x75, + 0x6e, 0x49, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x42, + 0x79, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x6b, 0x0a, 0x17, 0x75, 0x6e, 0x61, + 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x4e, 0x6f, + 0x64, 0x65, 0x2e, 0x55, 0x6e, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x16, + 0x75, 0x6e, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x75, 0x6e, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x75, + 0x6e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2e, 0x0a, 0x13, + 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x69, 0x6e, 0x67, 0x4e, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x6f, 0x6c, + 0x12, 0x6a, 0x0a, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x73, 0x61, + 0x67, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x5f, 0x61, 0x6e, 0x64, 0x5f, + 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x50, 0x6f, + 0x6f, 0x6c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, + 0x1b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x42, 0x79, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x41, 0x6e, 0x64, 0x50, 0x6f, 0x6f, 0x6c, 0x1a, 0x39, 0x0a, 0x0b, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x61, 0x0a, 0x14, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x42, 0x79, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x33, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x1d, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x69, 0x0a, 0x1b, 0x55, 0x6e, + 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x34, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04, 0x08, 0x04, 0x10, + 0x05, 0x4a, 0x04, 0x08, 0x08, 0x10, 0x09, 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x4a, 0x04, 0x08, + 0x0b, 0x10, 0x0c, 0x4a, 0x04, 0x08, 0x0e, 0x10, 0x0f, 0x4a, 0x04, 0x08, 0x10, 0x10, 0x11, 0x22, + 0x7b, 0x0a, 0x11, 0x50, 0x6f, 0x6f, 0x6c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x3c, + 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, + 0x74, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0xc9, 0x01, 0x0a, + 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x4b, 0x0a, + 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x2d, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, + 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x6c, 0x0a, 0x0e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, + 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, + 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x9e, 0x03, 0x0a, 0x11, 0x4a, 0x6f, 0x62, + 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, + 0x0a, 0x08, 0x6c, 0x69, 0x66, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x08, 0x6c, 0x69, 0x66, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x61, 0x74, + 0x5f, 0x6d, 0x6f, 0x73, 0x74, 0x5f, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0a, 0x61, 0x74, 0x4d, 0x6f, 0x73, 0x74, 0x4f, 0x6e, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, + 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x29, + 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x73, 0x61, + 0x66, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x63, 0x79, 0x53, 0x61, 0x66, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x72, 0x69, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x73, 0x75, 0x62, + 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x6d, + 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x12, 0x55, 0x0a, 0x13, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x71, + 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x12, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x22, 0x73, 0x0a, 0x12, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, + 0x4d, 0x0a, 0x0f, 0x70, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x50, 0x6f, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x70, + 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x0e, + 0x0a, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xcd, + 0x04, 0x0a, 0x0f, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x12, 0x57, 0x0a, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x50, 0x6f, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4e, 0x6f, 0x64, 0x65, + 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x6e, + 0x6f, 0x64, 0x65, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x38, 0x0a, 0x08, 0x61, + 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x52, 0x08, 0x61, 0x66, 0x66, + 0x69, 0x6e, 0x69, 0x74, 0x79, 0x12, 0x40, 0x0a, 0x0b, 0x74, 0x6f, 0x6c, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6b, 0x38, 0x73, + 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x6f, 0x6c, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x74, 0x6f, 0x6c, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x54, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, + 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2a, 0x0a, + 0x10, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x5c, 0x0a, 0x14, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, + 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x3f, 0x0a, 0x11, 0x4e, 0x6f, 0x64, 0x65, 0x53, + 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, 0x08, 0x10, 0x09, 0x22, 0xca, + 0x01, 0x0a, 0x10, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x49, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, + 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x65, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x65, 0x64, 0x12, + 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x52, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x74, 0x42, 0x79, 0x55, 0x73, 0x65, + 0x72, 0x12, 0x38, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x41, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x09, 0x73, 0x65, 0x74, 0x41, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x2a, 0x4f, 0x0a, 0x0b, 0x4a, + 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, + 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, + 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x03, + 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x42, 0x45, 0x5a, 0x43, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, + 0x61, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x2f, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x72, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExecutorSettings) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecutorSettings: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecutorSettings: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExecutorId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Cordoned", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Cordoned = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CordonReason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CordonReason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SetByUser", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SetByUser = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SetAtTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerobjects - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerobjects - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SetAtTime == nil { - m.SetAtTime = &types.Timestamp{} - } - if err := m.SetAtTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSchedulerobjects(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerobjects - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +var ( + file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDescOnce sync.Once + file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDescData []byte +) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipSchedulerobjects(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSchedulerobjects - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthSchedulerobjects - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupSchedulerobjects - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthSchedulerobjects - } - if depth == 0 { - return iNdEx, nil - } +func file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDescGZIP() []byte { + file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDescOnce.Do(func() { + file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDesc), len(file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDesc))) + }) + return file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDescData +} + +var file_internal_scheduler_schedulerobjects_schedulerobjects_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_internal_scheduler_schedulerobjects_schedulerobjects_proto_goTypes = []any{ + (JobRunState)(0), // 0: schedulerobjects.JobRunState + (*Executor)(nil), // 1: schedulerobjects.Executor + (*Node)(nil), // 2: schedulerobjects.Node + (*PoolQueueResource)(nil), // 3: schedulerobjects.PoolQueueResource + (*ResourceList)(nil), // 4: schedulerobjects.ResourceList + (*JobSchedulingInfo)(nil), // 5: schedulerobjects.JobSchedulingInfo + (*ObjectRequirements)(nil), // 6: schedulerobjects.ObjectRequirements + (*PodRequirements)(nil), // 7: schedulerobjects.PodRequirements + (*ExecutorSettings)(nil), // 8: schedulerobjects.ExecutorSettings + nil, // 9: schedulerobjects.Node.LabelsEntry + nil, // 10: schedulerobjects.Node.StateByJobRunIdEntry + nil, // 11: schedulerobjects.Node.UnallocatableResourcesEntry + nil, // 12: schedulerobjects.ResourceList.ResourcesEntry + nil, // 13: schedulerobjects.PodRequirements.NodeSelectorEntry + nil, // 14: schedulerobjects.PodRequirements.AnnotationsEntry + (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp + (*v1.Taint)(nil), // 16: k8s.io.api.core.v1.Taint + (*v1.Affinity)(nil), // 17: k8s.io.api.core.v1.Affinity + (*v1.Toleration)(nil), // 18: k8s.io.api.core.v1.Toleration + (*v1.ResourceRequirements)(nil), // 19: k8s.io.api.core.v1.ResourceRequirements + (*resource.Quantity)(nil), // 20: k8s.io.apimachinery.pkg.api.resource.Quantity +} +var file_internal_scheduler_schedulerobjects_schedulerobjects_proto_depIdxs = []int32{ + 2, // 0: schedulerobjects.Executor.nodes:type_name -> schedulerobjects.Node + 15, // 1: schedulerobjects.Executor.lastUpdateTime:type_name -> google.protobuf.Timestamp + 15, // 2: schedulerobjects.Node.last_seen:type_name -> google.protobuf.Timestamp + 16, // 3: schedulerobjects.Node.taints:type_name -> k8s.io.api.core.v1.Taint + 9, // 4: schedulerobjects.Node.labels:type_name -> schedulerobjects.Node.LabelsEntry + 4, // 5: schedulerobjects.Node.total_resources:type_name -> schedulerobjects.ResourceList + 10, // 6: schedulerobjects.Node.state_by_job_run_id:type_name -> schedulerobjects.Node.StateByJobRunIdEntry + 11, // 7: schedulerobjects.Node.unallocatable_resources:type_name -> schedulerobjects.Node.UnallocatableResourcesEntry + 3, // 8: schedulerobjects.Node.resource_usage_by_queue_and_pool:type_name -> schedulerobjects.PoolQueueResource + 4, // 9: schedulerobjects.PoolQueueResource.resources:type_name -> schedulerobjects.ResourceList + 12, // 10: schedulerobjects.ResourceList.resources:type_name -> schedulerobjects.ResourceList.ResourcesEntry + 15, // 11: schedulerobjects.JobSchedulingInfo.submit_time:type_name -> google.protobuf.Timestamp + 6, // 12: schedulerobjects.JobSchedulingInfo.object_requirements:type_name -> schedulerobjects.ObjectRequirements + 7, // 13: schedulerobjects.ObjectRequirements.podRequirements:type_name -> schedulerobjects.PodRequirements + 13, // 14: schedulerobjects.PodRequirements.nodeSelector:type_name -> schedulerobjects.PodRequirements.NodeSelectorEntry + 17, // 15: schedulerobjects.PodRequirements.affinity:type_name -> k8s.io.api.core.v1.Affinity + 18, // 16: schedulerobjects.PodRequirements.tolerations:type_name -> k8s.io.api.core.v1.Toleration + 14, // 17: schedulerobjects.PodRequirements.annotations:type_name -> schedulerobjects.PodRequirements.AnnotationsEntry + 19, // 18: schedulerobjects.PodRequirements.resourceRequirements:type_name -> k8s.io.api.core.v1.ResourceRequirements + 15, // 19: schedulerobjects.ExecutorSettings.setAtTime:type_name -> google.protobuf.Timestamp + 0, // 20: schedulerobjects.Node.StateByJobRunIdEntry.value:type_name -> schedulerobjects.JobRunState + 4, // 21: schedulerobjects.Node.UnallocatableResourcesEntry.value:type_name -> schedulerobjects.ResourceList + 20, // 22: schedulerobjects.ResourceList.ResourcesEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity + 23, // [23:23] is the sub-list for method output_type + 23, // [23:23] is the sub-list for method input_type + 23, // [23:23] is the sub-list for extension type_name + 23, // [23:23] is the sub-list for extension extendee + 0, // [0:23] is the sub-list for field type_name +} + +func init() { file_internal_scheduler_schedulerobjects_schedulerobjects_proto_init() } +func file_internal_scheduler_schedulerobjects_schedulerobjects_proto_init() { + if File_internal_scheduler_schedulerobjects_schedulerobjects_proto != nil { + return + } + file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes[5].OneofWrappers = []any{ + (*ObjectRequirements_PodRequirements)(nil), } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDesc), len(file_internal_scheduler_schedulerobjects_schedulerobjects_proto_rawDesc)), + NumEnums: 1, + NumMessages: 14, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_internal_scheduler_schedulerobjects_schedulerobjects_proto_goTypes, + DependencyIndexes: file_internal_scheduler_schedulerobjects_schedulerobjects_proto_depIdxs, + EnumInfos: file_internal_scheduler_schedulerobjects_schedulerobjects_proto_enumTypes, + MessageInfos: file_internal_scheduler_schedulerobjects_schedulerobjects_proto_msgTypes, + }.Build() + File_internal_scheduler_schedulerobjects_schedulerobjects_proto = out.File + file_internal_scheduler_schedulerobjects_schedulerobjects_proto_goTypes = nil + file_internal_scheduler_schedulerobjects_schedulerobjects_proto_depIdxs = nil } - -var ( - ErrInvalidLengthSchedulerobjects = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowSchedulerobjects = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupSchedulerobjects = fmt.Errorf("proto: unexpected end of group") -) diff --git a/internal/scheduler/simulator/simulator.go b/internal/scheduler/simulator/simulator.go index ac833b544d7..256a52f2b97 100644 --- a/internal/scheduler/simulator/simulator.go +++ b/internal/scheduler/simulator/simulator.go @@ -10,11 +10,11 @@ import ( "sync/atomic" "time" - "github.com/gogo/protobuf/proto" "github.com/pkg/errors" "golang.org/x/exp/maps" "golang.org/x/exp/slices" "golang.org/x/time/rate" + "google.golang.org/protobuf/proto" v1 "k8s.io/api/core/v1" "github.com/armadaproject/armada/internal/common/armadacontext" diff --git a/internal/scheduler/simulator/simulator.pb.go b/internal/scheduler/simulator/simulator.pb.go index 93a21545595..57171f3e1a7 100644 --- a/internal/scheduler/simulator/simulator.pb.go +++ b/internal/scheduler/simulator/simulator.pb.go @@ -1,350 +1,349 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: internal/scheduler/simulator/simulator.proto package simulator import ( - encoding_binary "encoding/binary" - fmt "fmt" schedulerobjects "github.com/armadaproject/armada/internal/scheduler/schedulerobjects" - proto "github.com/gogo/protobuf/proto" - types "github.com/gogo/protobuf/types" - io "io" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" v1 "k8s.io/api/core/v1" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) -// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ClusterSpec struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Clusters []*Cluster `protobuf:"bytes,2,rep,name=clusters,proto3" json:"clusters,omitempty"` - WorkflowManagerDelayDistribution *ShiftedExponential `protobuf:"bytes,3,opt,name=workflow_manager_delay_distribution,json=workflowManagerDelayDistribution,proto3" json:"workflowManagerDelayDistribution,omitempty"` - PendingDelayDistribution *ShiftedExponential `protobuf:"bytes,4,opt,name=pending_delay_distribution,json=pendingDelayDistribution,proto3" json:"pendingDelayDistribution,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Clusters []*Cluster `protobuf:"bytes,2,rep,name=clusters,proto3" json:"clusters,omitempty"` + WorkflowManagerDelayDistribution *ShiftedExponential `protobuf:"bytes,3,opt,name=workflow_manager_delay_distribution,json=workflowManagerDelayDistribution,proto3" json:"workflow_manager_delay_distribution,omitempty"` + PendingDelayDistribution *ShiftedExponential `protobuf:"bytes,4,opt,name=pending_delay_distribution,json=pendingDelayDistribution,proto3" json:"pending_delay_distribution,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ClusterSpec) Reset() { *m = ClusterSpec{} } -func (m *ClusterSpec) String() string { return proto.CompactTextString(m) } -func (*ClusterSpec) ProtoMessage() {} -func (*ClusterSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_63baccdfe9127510, []int{0} -} -func (m *ClusterSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClusterSpec.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *ClusterSpec) Reset() { + *x = ClusterSpec{} + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ClusterSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterSpec.Merge(m, src) -} -func (m *ClusterSpec) XXX_Size() int { - return m.Size() + +func (x *ClusterSpec) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClusterSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterSpec.DiscardUnknown(m) + +func (*ClusterSpec) ProtoMessage() {} + +func (x *ClusterSpec) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ClusterSpec proto.InternalMessageInfo +// Deprecated: Use ClusterSpec.ProtoReflect.Descriptor instead. +func (*ClusterSpec) Descriptor() ([]byte, []int) { + return file_internal_scheduler_simulator_simulator_proto_rawDescGZIP(), []int{0} +} -func (m *ClusterSpec) GetName() string { - if m != nil { - return m.Name +func (x *ClusterSpec) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *ClusterSpec) GetClusters() []*Cluster { - if m != nil { - return m.Clusters +func (x *ClusterSpec) GetClusters() []*Cluster { + if x != nil { + return x.Clusters } return nil } -func (m *ClusterSpec) GetWorkflowManagerDelayDistribution() *ShiftedExponential { - if m != nil { - return m.WorkflowManagerDelayDistribution +func (x *ClusterSpec) GetWorkflowManagerDelayDistribution() *ShiftedExponential { + if x != nil { + return x.WorkflowManagerDelayDistribution } return nil } -func (m *ClusterSpec) GetPendingDelayDistribution() *ShiftedExponential { - if m != nil { - return m.PendingDelayDistribution +func (x *ClusterSpec) GetPendingDelayDistribution() *ShiftedExponential { + if x != nil { + return x.PendingDelayDistribution } return nil } type Cluster struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Pool string `protobuf:"bytes,3,opt,name=pool,proto3" json:"pool,omitempty"` - NodeTemplates []*NodeTemplate `protobuf:"bytes,2,rep,name=node_templates,json=nodeTemplates,proto3" json:"nodeTemplates,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Pool string `protobuf:"bytes,3,opt,name=pool,proto3" json:"pool,omitempty"` + NodeTemplates []*NodeTemplate `protobuf:"bytes,2,rep,name=node_templates,json=nodeTemplates,proto3" json:"node_templates,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *Cluster) Reset() { *m = Cluster{} } -func (m *Cluster) String() string { return proto.CompactTextString(m) } -func (*Cluster) ProtoMessage() {} -func (*Cluster) Descriptor() ([]byte, []int) { - return fileDescriptor_63baccdfe9127510, []int{1} -} -func (m *Cluster) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Cluster.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Cluster) XXX_Merge(src proto.Message) { - xxx_messageInfo_Cluster.Merge(m, src) +func (x *Cluster) Reset() { + *x = Cluster{} + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *Cluster) XXX_Size() int { - return m.Size() + +func (x *Cluster) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Cluster) XXX_DiscardUnknown() { - xxx_messageInfo_Cluster.DiscardUnknown(m) + +func (*Cluster) ProtoMessage() {} + +func (x *Cluster) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Cluster proto.InternalMessageInfo +// Deprecated: Use Cluster.ProtoReflect.Descriptor instead. +func (*Cluster) Descriptor() ([]byte, []int) { + return file_internal_scheduler_simulator_simulator_proto_rawDescGZIP(), []int{1} +} -func (m *Cluster) GetName() string { - if m != nil { - return m.Name +func (x *Cluster) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *Cluster) GetPool() string { - if m != nil { - return m.Pool +func (x *Cluster) GetPool() string { + if x != nil { + return x.Pool } return "" } -func (m *Cluster) GetNodeTemplates() []*NodeTemplate { - if m != nil { - return m.NodeTemplates +func (x *Cluster) GetNodeTemplates() []*NodeTemplate { + if x != nil { + return x.NodeTemplates } return nil } type WorkloadSpec struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Random seed used in simulations; use to ensure simulations are reproducible. // If not provided, or explicitly set to 0, the current time is used. - RandomSeed int64 `protobuf:"varint,2,opt,name=random_seed,json=randomSeed,proto3" json:"randomSeed,omitempty"` - Queues []*Queue `protobuf:"bytes,3,rep,name=queues,proto3" json:"queues,omitempty"` + RandomSeed int64 `protobuf:"varint,2,opt,name=random_seed,json=randomSeed,proto3" json:"random_seed,omitempty"` + Queues []*Queue `protobuf:"bytes,3,rep,name=queues,proto3" json:"queues,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkloadSpec) Reset() { *m = WorkloadSpec{} } -func (m *WorkloadSpec) String() string { return proto.CompactTextString(m) } -func (*WorkloadSpec) ProtoMessage() {} -func (*WorkloadSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_63baccdfe9127510, []int{2} -} -func (m *WorkloadSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkloadSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkloadSpec.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *WorkloadSpec) Reset() { + *x = WorkloadSpec{} + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkloadSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkloadSpec.Merge(m, src) -} -func (m *WorkloadSpec) XXX_Size() int { - return m.Size() + +func (x *WorkloadSpec) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkloadSpec) XXX_DiscardUnknown() { - xxx_messageInfo_WorkloadSpec.DiscardUnknown(m) + +func (*WorkloadSpec) ProtoMessage() {} + +func (x *WorkloadSpec) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkloadSpec proto.InternalMessageInfo +// Deprecated: Use WorkloadSpec.ProtoReflect.Descriptor instead. +func (*WorkloadSpec) Descriptor() ([]byte, []int) { + return file_internal_scheduler_simulator_simulator_proto_rawDescGZIP(), []int{2} +} -func (m *WorkloadSpec) GetName() string { - if m != nil { - return m.Name +func (x *WorkloadSpec) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *WorkloadSpec) GetRandomSeed() int64 { - if m != nil { - return m.RandomSeed +func (x *WorkloadSpec) GetRandomSeed() int64 { + if x != nil { + return x.RandomSeed } return 0 } -func (m *WorkloadSpec) GetQueues() []*Queue { - if m != nil { - return m.Queues +func (x *WorkloadSpec) GetQueues() []*Queue { + if x != nil { + return x.Queues } return nil } type NodeTemplate struct { + state protoimpl.MessageState `protogen:"open.v1"` Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` Taints []*v1.Taint `protobuf:"bytes,2,rep,name=taints,proto3" json:"taints,omitempty"` - Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - TotalResources *schedulerobjects.ResourceList `protobuf:"bytes,4,opt,name=total_resources,json=totalResources,proto3" json:"totalResources,omitempty"` + Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + TotalResources *schedulerobjects.ResourceList `protobuf:"bytes,4,opt,name=total_resources,json=totalResources,proto3" json:"total_resources,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *NodeTemplate) Reset() { *m = NodeTemplate{} } -func (m *NodeTemplate) String() string { return proto.CompactTextString(m) } -func (*NodeTemplate) ProtoMessage() {} -func (*NodeTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_63baccdfe9127510, []int{3} -} -func (m *NodeTemplate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NodeTemplate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *NodeTemplate) Reset() { + *x = NodeTemplate{} + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *NodeTemplate) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeTemplate.Merge(m, src) -} -func (m *NodeTemplate) XXX_Size() int { - return m.Size() + +func (x *NodeTemplate) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NodeTemplate) XXX_DiscardUnknown() { - xxx_messageInfo_NodeTemplate.DiscardUnknown(m) + +func (*NodeTemplate) ProtoMessage() {} + +func (x *NodeTemplate) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_NodeTemplate proto.InternalMessageInfo +// Deprecated: Use NodeTemplate.ProtoReflect.Descriptor instead. +func (*NodeTemplate) Descriptor() ([]byte, []int) { + return file_internal_scheduler_simulator_simulator_proto_rawDescGZIP(), []int{3} +} -func (m *NodeTemplate) GetNumber() int64 { - if m != nil { - return m.Number +func (x *NodeTemplate) GetNumber() int64 { + if x != nil { + return x.Number } return 0 } -func (m *NodeTemplate) GetTaints() []*v1.Taint { - if m != nil { - return m.Taints +func (x *NodeTemplate) GetTaints() []*v1.Taint { + if x != nil { + return x.Taints } return nil } -func (m *NodeTemplate) GetLabels() map[string]string { - if m != nil { - return m.Labels +func (x *NodeTemplate) GetLabels() map[string]string { + if x != nil { + return x.Labels } return nil } -func (m *NodeTemplate) GetTotalResources() *schedulerobjects.ResourceList { - if m != nil { - return m.TotalResources +func (x *NodeTemplate) GetTotalResources() *schedulerobjects.ResourceList { + if x != nil { + return x.TotalResources } return nil } type Queue struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Weight float64 `protobuf:"fixed64,2,opt,name=weight,proto3" json:"weight,omitempty"` - JobTemplates []*JobTemplate `protobuf:"bytes,3,rep,name=job_templates,json=jobTemplates,proto3" json:"jobTemplates,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Weight float64 `protobuf:"fixed64,2,opt,name=weight,proto3" json:"weight,omitempty"` + JobTemplates []*JobTemplate `protobuf:"bytes,3,rep,name=job_templates,json=jobTemplates,proto3" json:"job_templates,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *Queue) Reset() { *m = Queue{} } -func (m *Queue) String() string { return proto.CompactTextString(m) } -func (*Queue) ProtoMessage() {} -func (*Queue) Descriptor() ([]byte, []int) { - return fileDescriptor_63baccdfe9127510, []int{4} -} -func (m *Queue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Queue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Queue.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Queue) XXX_Merge(src proto.Message) { - xxx_messageInfo_Queue.Merge(m, src) +func (x *Queue) Reset() { + *x = Queue{} + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *Queue) XXX_Size() int { - return m.Size() + +func (x *Queue) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Queue) XXX_DiscardUnknown() { - xxx_messageInfo_Queue.DiscardUnknown(m) + +func (*Queue) ProtoMessage() {} + +func (x *Queue) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Queue proto.InternalMessageInfo +// Deprecated: Use Queue.ProtoReflect.Descriptor instead. +func (*Queue) Descriptor() ([]byte, []int) { + return file_internal_scheduler_simulator_simulator_proto_rawDescGZIP(), []int{4} +} -func (m *Queue) GetName() string { - if m != nil { - return m.Name +func (x *Queue) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *Queue) GetWeight() float64 { - if m != nil { - return m.Weight +func (x *Queue) GetWeight() float64 { + if x != nil { + return x.Weight } return 0 } -func (m *Queue) GetJobTemplates() []*JobTemplate { - if m != nil { - return m.JobTemplates +func (x *Queue) GetJobTemplates() []*JobTemplate { + if x != nil { + return x.JobTemplates } return nil } type JobTemplate struct { + state protoimpl.MessageState `protogen:"open.v1"` // Number of jobs to create from this template. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // Number of jobs created from this template that have succeeded. @@ -354,20 +353,20 @@ type JobTemplate struct { Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` // Unique id for this template. An id is generated if empty. Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` - JobSet string `protobuf:"bytes,5,opt,name=job_set,json=jobSet,proto3" json:"jobSet,omitempty"` - QueuePriority uint32 `protobuf:"varint,6,opt,name=queue_priority,json=queuePriority,proto3" json:"queuePriority,omitempty"` - PriorityClassName string `protobuf:"bytes,7,opt,name=priority_class_name,json=priorityClassName,proto3" json:"priorityClassName,omitempty"` + JobSet string `protobuf:"bytes,5,opt,name=job_set,json=jobSet,proto3" json:"job_set,omitempty"` + QueuePriority uint32 `protobuf:"varint,6,opt,name=queue_priority,json=queuePriority,proto3" json:"queue_priority,omitempty"` + PriorityClassName string `protobuf:"bytes,7,opt,name=priority_class_name,json=priorityClassName,proto3" json:"priority_class_name,omitempty"` // Scheduling requirements for the pod embedded in the job. Requirements *schedulerobjects.PodRequirements `protobuf:"bytes,8,opt,name=requirements,proto3" json:"requirements,omitempty"` // List of template ids that must be completed before this template is submitted. Dependencies []string `protobuf:"bytes,9,rep,name=dependencies,proto3" json:"dependencies,omitempty"` // Earliest time at which jobs from this template are submitted. // Measured from the start of the simulation. - EarliestSubmitTime *types.Duration `protobuf:"bytes,10,opt,name=earliest_submit_time,json=earliestSubmitTime,proto3" json:"earliestSubmitTime,omitempty"` + EarliestSubmitTime *durationpb.Duration `protobuf:"bytes,10,opt,name=earliest_submit_time,json=earliestSubmitTime,proto3" json:"earliest_submit_time,omitempty"` // Earliest time job can be submitted from when all its dependencies have completed. // This option is meant to model thinking or processing time, where some fixed amount of time // needs to be spent between dependencies completing and the next batch of jobs being ready to submit. - EarliestSubmitTimeFromDependencyCompletion *types.Duration `protobuf:"bytes,11,opt,name=earliest_submit_time_from_dependency_completion,json=earliestSubmitTimeFromDependencyCompletion,proto3" json:"earliestSubmitTimeFromDependencyCompletion,omitempty"` + EarliestSubmitTimeFromDependencyCompletion *durationpb.Duration `protobuf:"bytes,11,opt,name=earliest_submit_time_from_dependency_completion,json=earliestSubmitTimeFromDependencyCompletion,proto3" json:"earliest_submit_time_from_dependency_completion,omitempty"` // Job runtimes are assumed to follow a shifted exponential distribution // i.e., to be a fixed constant (runtime_minimum) plus a random amount of time // drawn from an exponential distribution with known mean (runtime_tail_mean). @@ -375,2796 +374,473 @@ type JobTemplate struct { // The shifted-exponential distribution strikes a good balance between simplicity and accuracy; // see https://bora.uib.no/bora-xmlui/bitstream/handle/11250/3014726/drthesis_2022_severinson.pdf?sequence=2 // for a discussion on the topic. - RuntimeDistribution *ShiftedExponential `protobuf:"bytes,12,opt,name=runtime_distribution,json=runtimeDistribution,proto3" json:"runtimeDistribution,omitempty"` + RuntimeDistribution *ShiftedExponential `protobuf:"bytes,12,opt,name=runtime_distribution,json=runtimeDistribution,proto3" json:"runtime_distribution,omitempty"` // If set, jobs will be assigned to gangs with the given size. In this case `number` must be exactly divisible by the gang size - GangCardinality uint32 `protobuf:"varint,13,opt,name=gang_cardinality,json=gangCardinality,proto3" json:"gangCardinality,omitempty"` + GangCardinality uint32 `protobuf:"varint,13,opt,name=gang_cardinality,json=gangCardinality,proto3" json:"gang_cardinality,omitempty"` // Node Uniformity label when scheduling gangs. Only applies if gang_cardinality is non-zero. If unset it defaults to armadaproject.io/clusterName - GangNodeUniformityLabel string `protobuf:"bytes,14,opt,name=gang_node_uniformity_label,json=gangNodeUniformityLabel,proto3" json:"gangNodeUniformityLabel,omitempty"` + GangNodeUniformityLabel string `protobuf:"bytes,14,opt,name=gang_node_uniformity_label,json=gangNodeUniformityLabel,proto3" json:"gang_node_uniformity_label,omitempty"` // If set then the template will be repeated at some frequency. If null then the template will be submitted a single time. - Repeat *RepeatDetails `protobuf:"bytes,15,opt,name=repeat,proto3" json:"repeat,omitempty"` + Repeat *RepeatDetails `protobuf:"bytes,15,opt,name=repeat,proto3" json:"repeat,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobTemplate) Reset() { *m = JobTemplate{} } -func (m *JobTemplate) String() string { return proto.CompactTextString(m) } -func (*JobTemplate) ProtoMessage() {} -func (*JobTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_63baccdfe9127510, []int{5} -} -func (m *JobTemplate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobTemplate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobTemplate) Reset() { + *x = JobTemplate{} + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobTemplate) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobTemplate.Merge(m, src) -} -func (m *JobTemplate) XXX_Size() int { - return m.Size() + +func (x *JobTemplate) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobTemplate) XXX_DiscardUnknown() { - xxx_messageInfo_JobTemplate.DiscardUnknown(m) + +func (*JobTemplate) ProtoMessage() {} + +func (x *JobTemplate) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobTemplate proto.InternalMessageInfo +// Deprecated: Use JobTemplate.ProtoReflect.Descriptor instead. +func (*JobTemplate) Descriptor() ([]byte, []int) { + return file_internal_scheduler_simulator_simulator_proto_rawDescGZIP(), []int{5} +} -func (m *JobTemplate) GetNumber() int64 { - if m != nil { - return m.Number +func (x *JobTemplate) GetNumber() int64 { + if x != nil { + return x.Number } return 0 } -func (m *JobTemplate) GetNumberSuccessful() int64 { - if m != nil { - return m.NumberSuccessful +func (x *JobTemplate) GetNumberSuccessful() int64 { + if x != nil { + return x.NumberSuccessful } return 0 } -func (m *JobTemplate) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobTemplate) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobTemplate) GetId() string { - if m != nil { - return m.Id +func (x *JobTemplate) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *JobTemplate) GetJobSet() string { - if m != nil { - return m.JobSet +func (x *JobTemplate) GetJobSet() string { + if x != nil { + return x.JobSet } return "" } -func (m *JobTemplate) GetQueuePriority() uint32 { - if m != nil { - return m.QueuePriority +func (x *JobTemplate) GetQueuePriority() uint32 { + if x != nil { + return x.QueuePriority } return 0 } -func (m *JobTemplate) GetPriorityClassName() string { - if m != nil { - return m.PriorityClassName +func (x *JobTemplate) GetPriorityClassName() string { + if x != nil { + return x.PriorityClassName } return "" } -func (m *JobTemplate) GetRequirements() *schedulerobjects.PodRequirements { - if m != nil { - return m.Requirements +func (x *JobTemplate) GetRequirements() *schedulerobjects.PodRequirements { + if x != nil { + return x.Requirements } return nil } -func (m *JobTemplate) GetDependencies() []string { - if m != nil { - return m.Dependencies +func (x *JobTemplate) GetDependencies() []string { + if x != nil { + return x.Dependencies } return nil } -func (m *JobTemplate) GetEarliestSubmitTime() *types.Duration { - if m != nil { - return m.EarliestSubmitTime +func (x *JobTemplate) GetEarliestSubmitTime() *durationpb.Duration { + if x != nil { + return x.EarliestSubmitTime } return nil } -func (m *JobTemplate) GetEarliestSubmitTimeFromDependencyCompletion() *types.Duration { - if m != nil { - return m.EarliestSubmitTimeFromDependencyCompletion +func (x *JobTemplate) GetEarliestSubmitTimeFromDependencyCompletion() *durationpb.Duration { + if x != nil { + return x.EarliestSubmitTimeFromDependencyCompletion } return nil } -func (m *JobTemplate) GetRuntimeDistribution() *ShiftedExponential { - if m != nil { - return m.RuntimeDistribution +func (x *JobTemplate) GetRuntimeDistribution() *ShiftedExponential { + if x != nil { + return x.RuntimeDistribution } return nil } -func (m *JobTemplate) GetGangCardinality() uint32 { - if m != nil { - return m.GangCardinality +func (x *JobTemplate) GetGangCardinality() uint32 { + if x != nil { + return x.GangCardinality } return 0 } -func (m *JobTemplate) GetGangNodeUniformityLabel() string { - if m != nil { - return m.GangNodeUniformityLabel +func (x *JobTemplate) GetGangNodeUniformityLabel() string { + if x != nil { + return x.GangNodeUniformityLabel } return "" } -func (m *JobTemplate) GetRepeat() *RepeatDetails { - if m != nil { - return m.Repeat +func (x *JobTemplate) GetRepeat() *RepeatDetails { + if x != nil { + return x.Repeat } return nil } type RepeatDetails struct { + state protoimpl.MessageState `protogen:"open.v1"` // The number of times that template should be repeated. Must be > 0 - NumTimes uint32 `protobuf:"varint,1,opt,name=num_times,json=numTimes,proto3" json:"numTimes,omitempty"` + NumTimes uint32 `protobuf:"varint,1,opt,name=num_times,json=numTimes,proto3" json:"num_times,omitempty"` // The period between template submissions. May not be null - Period *types.Duration `protobuf:"bytes,2,opt,name=period,proto3" json:"period,omitempty"` + Period *durationpb.Duration `protobuf:"bytes,2,opt,name=period,proto3" json:"period,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *RepeatDetails) Reset() { *m = RepeatDetails{} } -func (m *RepeatDetails) String() string { return proto.CompactTextString(m) } -func (*RepeatDetails) ProtoMessage() {} -func (*RepeatDetails) Descriptor() ([]byte, []int) { - return fileDescriptor_63baccdfe9127510, []int{6} -} -func (m *RepeatDetails) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RepeatDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RepeatDetails.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RepeatDetails) XXX_Merge(src proto.Message) { - xxx_messageInfo_RepeatDetails.Merge(m, src) -} -func (m *RepeatDetails) XXX_Size() int { - return m.Size() -} -func (m *RepeatDetails) XXX_DiscardUnknown() { - xxx_messageInfo_RepeatDetails.DiscardUnknown(m) +func (x *RepeatDetails) Reset() { + *x = RepeatDetails{} + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -var xxx_messageInfo_RepeatDetails proto.InternalMessageInfo - -func (m *RepeatDetails) GetNumTimes() uint32 { - if m != nil { - return m.NumTimes - } - return 0 -} - -func (m *RepeatDetails) GetPeriod() *types.Duration { - if m != nil { - return m.Period - } - return nil -} - -type ShiftedExponential struct { - Minimum *types.Duration `protobuf:"bytes,1,opt,name=minimum,proto3" json:"minimum,omitempty"` - TailMean *types.Duration `protobuf:"bytes,2,opt,name=tail_mean,json=tailMean,proto3" json:"tailMean,omitempty"` -} - -func (m *ShiftedExponential) Reset() { *m = ShiftedExponential{} } -func (m *ShiftedExponential) String() string { return proto.CompactTextString(m) } -func (*ShiftedExponential) ProtoMessage() {} -func (*ShiftedExponential) Descriptor() ([]byte, []int) { - return fileDescriptor_63baccdfe9127510, []int{7} -} -func (m *ShiftedExponential) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ShiftedExponential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ShiftedExponential.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ShiftedExponential) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShiftedExponential.Merge(m, src) -} -func (m *ShiftedExponential) XXX_Size() int { - return m.Size() -} -func (m *ShiftedExponential) XXX_DiscardUnknown() { - xxx_messageInfo_ShiftedExponential.DiscardUnknown(m) -} - -var xxx_messageInfo_ShiftedExponential proto.InternalMessageInfo - -func (m *ShiftedExponential) GetMinimum() *types.Duration { - if m != nil { - return m.Minimum - } - return nil +func (x *RepeatDetails) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ShiftedExponential) GetTailMean() *types.Duration { - if m != nil { - return m.TailMean - } - return nil -} +func (*RepeatDetails) ProtoMessage() {} -func init() { - proto.RegisterType((*ClusterSpec)(nil), "simulator.ClusterSpec") - proto.RegisterType((*Cluster)(nil), "simulator.Cluster") - proto.RegisterType((*WorkloadSpec)(nil), "simulator.WorkloadSpec") - proto.RegisterType((*NodeTemplate)(nil), "simulator.NodeTemplate") - proto.RegisterMapType((map[string]string)(nil), "simulator.NodeTemplate.LabelsEntry") - proto.RegisterType((*Queue)(nil), "simulator.Queue") - proto.RegisterType((*JobTemplate)(nil), "simulator.JobTemplate") - proto.RegisterType((*RepeatDetails)(nil), "simulator.RepeatDetails") - proto.RegisterType((*ShiftedExponential)(nil), "simulator.ShiftedExponential") -} - -func init() { - proto.RegisterFile("internal/scheduler/simulator/simulator.proto", fileDescriptor_63baccdfe9127510) -} - -var fileDescriptor_63baccdfe9127510 = []byte{ - // 1285 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x57, 0x4f, 0x73, 0xd3, 0x46, - 0x1b, 0x47, 0x31, 0x38, 0x78, 0x6d, 0x27, 0x61, 0xc9, 0x0b, 0xc2, 0x80, 0x65, 0xcc, 0xbc, 0x4c, - 0x5e, 0x26, 0xaf, 0x3c, 0x40, 0x0f, 0x94, 0xe9, 0x70, 0x70, 0x02, 0xed, 0x30, 0x40, 0x21, 0xa1, - 0x65, 0xa6, 0x3d, 0x68, 0xd6, 0xd2, 0x13, 0x67, 0x13, 0x49, 0x2b, 0x56, 0x2b, 0xa8, 0xcf, 0x3d, - 0x77, 0xa6, 0x1f, 0xa0, 0xa7, 0x7e, 0x82, 0xf6, 0xd2, 0xe9, 0x47, 0xe8, 0x91, 0x63, 0x4f, 0x9a, - 0x0e, 0xdc, 0xf4, 0x29, 0x3a, 0xbb, 0x2b, 0x39, 0x6b, 0x9c, 0x84, 0x70, 0xb3, 0x7e, 0xcf, 0xef, - 0xf9, 0xed, 0xb3, 0xcf, 0x9f, 0xdd, 0x35, 0x5a, 0xa7, 0xb1, 0x00, 0x1e, 0x93, 0x70, 0x90, 0xfa, - 0xbb, 0x10, 0x64, 0x21, 0xf0, 0x41, 0x4a, 0xa3, 0x2c, 0x24, 0x82, 0x19, 0xbf, 0xdc, 0x84, 0x33, - 0xc1, 0x70, 0x63, 0x0a, 0x74, 0xba, 0x63, 0xc6, 0xc6, 0x21, 0x0c, 0x94, 0x61, 0x94, 0xed, 0x0c, - 0x82, 0x8c, 0x13, 0x41, 0x59, 0xac, 0xa9, 0x9d, 0xfe, 0xfe, 0xdd, 0xd4, 0xa5, 0x6c, 0x40, 0x12, - 0x3a, 0xf0, 0x19, 0x87, 0xc1, 0xeb, 0x5b, 0x83, 0x31, 0xc4, 0xc0, 0x89, 0x80, 0xa0, 0xe4, 0xdc, - 0x3b, 0x6c, 0xf1, 0xea, 0x17, 0x1b, 0xed, 0x81, 0x2f, 0xd2, 0x39, 0x40, 0xfb, 0xf6, 0x7f, 0xad, - 0xa1, 0xe6, 0x46, 0x98, 0xa5, 0x02, 0xf8, 0x76, 0x02, 0x3e, 0xbe, 0x81, 0x4e, 0xc7, 0x24, 0x02, - 0xdb, 0xea, 0x59, 0x6b, 0x8d, 0x21, 0x2e, 0x72, 0x67, 0x49, 0x7e, 0xaf, 0xb3, 0x88, 0x0a, 0x88, - 0x12, 0x31, 0xd9, 0x52, 0x76, 0xfc, 0x10, 0x9d, 0xf5, 0xb5, 0x5b, 0x6a, 0x2f, 0xf4, 0x6a, 0x6b, - 0xcd, 0xdb, 0xd8, 0x3d, 0xd8, 0x66, 0xa9, 0x38, 0xbc, 0x50, 0xe4, 0x0e, 0xae, 0x78, 0x86, 0xc6, - 0xd4, 0x17, 0xff, 0x62, 0xa1, 0xeb, 0x6f, 0x18, 0xdf, 0xdf, 0x09, 0xd9, 0x1b, 0x2f, 0x22, 0x31, - 0x19, 0x03, 0xf7, 0x02, 0x08, 0xc9, 0xc4, 0x0b, 0x68, 0x2a, 0x38, 0x1d, 0x65, 0x32, 0x1b, 0x76, - 0xad, 0x67, 0xad, 0x35, 0x6f, 0x5f, 0x35, 0xd6, 0xd8, 0xde, 0xa5, 0x3b, 0x02, 0x82, 0x07, 0x3f, - 0x24, 0x2c, 0x86, 0x58, 0x50, 0x12, 0x0e, 0xdd, 0x22, 0x77, 0x6e, 0x56, 0x6a, 0x4f, 0xb4, 0xd8, - 0xa6, 0xd4, 0xda, 0x34, 0xa4, 0x8c, 0x30, 0x7a, 0x1f, 0xe3, 0xe2, 0x1f, 0x2d, 0xd4, 0x49, 0x20, - 0x0e, 0x68, 0x3c, 0x3e, 0x2c, 0xaa, 0xd3, 0x27, 0x89, 0xea, 0x46, 0x91, 0x3b, 0xfd, 0x52, 0xe4, - 0xb8, 0x68, 0xec, 0xa3, 0x38, 0xfd, 0x3f, 0x2c, 0xb4, 0x58, 0xa6, 0xf4, 0xc4, 0x05, 0xba, 0x81, - 0x4e, 0x27, 0x8c, 0x85, 0x2a, 0x71, 0x25, 0x4f, 0x7e, 0x9b, 0x3c, 0xf9, 0x8d, 0xbf, 0x47, 0x4b, - 0x31, 0x0b, 0xc0, 0x93, 0x60, 0x48, 0x04, 0x54, 0xe5, 0xbc, 0x68, 0x6c, 0xea, 0x29, 0x0b, 0xe0, - 0x45, 0x69, 0x1f, 0x5e, 0x2e, 0x72, 0xe7, 0x62, 0x6c, 0x20, 0x66, 0x61, 0xdb, 0x33, 0x86, 0xfe, - 0xef, 0x16, 0x6a, 0xbd, 0x64, 0x7c, 0x3f, 0x64, 0x24, 0xf8, 0xa4, 0xf6, 0xfa, 0x1c, 0x35, 0x39, - 0x89, 0x03, 0x16, 0x79, 0x29, 0x40, 0x60, 0x2f, 0xf4, 0xac, 0xb5, 0xda, 0xd0, 0x2e, 0x72, 0x67, - 0x55, 0xc3, 0xdb, 0x00, 0x81, 0xe1, 0x84, 0x0e, 0x50, 0x7c, 0x1f, 0xd5, 0x5f, 0x65, 0x90, 0x41, - 0x6a, 0xd7, 0xd4, 0x46, 0x56, 0x8c, 0x8d, 0x3c, 0x97, 0x86, 0xe1, 0x6a, 0x91, 0x3b, 0x2b, 0x9a, - 0x63, 0x68, 0x94, 0x5e, 0x72, 0x22, 0x5a, 0xe6, 0x86, 0xf1, 0x3a, 0xaa, 0xc7, 0x59, 0x34, 0x02, - 0xae, 0xa2, 0xae, 0x69, 0x77, 0x8d, 0x98, 0xee, 0x1a, 0xc1, 0x5f, 0xa2, 0xba, 0x20, 0x34, 0x16, - 0x55, 0x1e, 0x2f, 0xb9, 0x7a, 0x82, 0x5d, 0x92, 0x50, 0x57, 0x4e, 0xb0, 0xfb, 0xfa, 0x96, 0xfb, - 0x42, 0x32, 0xb4, 0x90, 0x26, 0x9b, 0x42, 0x1a, 0xc1, 0xcf, 0x51, 0x3d, 0x24, 0x23, 0x08, 0xab, - 0x7d, 0x5c, 0x3f, 0xa2, 0x20, 0xee, 0x63, 0xc5, 0x7a, 0x10, 0x0b, 0x3e, 0xd1, 0x92, 0xda, 0xcd, - 0x94, 0xd4, 0x08, 0x06, 0xb4, 0x2c, 0x98, 0x20, 0xa1, 0xc7, 0x21, 0x65, 0x19, 0xf7, 0x21, 0x2d, - 0x3b, 0xb8, 0xeb, 0xce, 0x1d, 0x0f, 0x5b, 0x25, 0xe5, 0x31, 0x4d, 0xc5, 0xf0, 0x4a, 0x91, 0x3b, - 0xb6, 0x72, 0xad, 0x60, 0x53, 0x7e, 0x69, 0xd6, 0xd2, 0x21, 0xa8, 0x69, 0xc4, 0x84, 0xaf, 0xa3, - 0xda, 0x3e, 0x4c, 0xca, 0x92, 0x9f, 0x2b, 0x72, 0xa7, 0xbd, 0x0f, 0x13, 0xc3, 0x5d, 0x5a, 0xf1, - 0xff, 0xd0, 0x99, 0xd7, 0x24, 0xcc, 0x40, 0x95, 0xba, 0x31, 0x3c, 0x5f, 0xe4, 0xce, 0xb2, 0x02, - 0x0c, 0xa2, 0x66, 0xdc, 0x5b, 0xb8, 0x6b, 0xc9, 0x89, 0x38, 0xa3, 0x8a, 0x79, 0xe2, 0x8e, 0x5a, - 0x47, 0xf5, 0x37, 0x40, 0xc7, 0xbb, 0x42, 0xad, 0x60, 0xe9, 0x4c, 0x69, 0xc4, 0xcc, 0x94, 0x46, - 0xf0, 0x4b, 0xd4, 0xde, 0x63, 0x23, 0x63, 0x28, 0x74, 0x0d, 0x2e, 0x18, 0x35, 0x78, 0xc4, 0x46, - 0xd3, 0x99, 0xe8, 0x14, 0xb9, 0x73, 0x61, 0xef, 0x00, 0x30, 0xb3, 0xd3, 0x32, 0xf1, 0xfe, 0xdb, - 0x06, 0x6a, 0x1a, 0x9e, 0x9f, 0xd8, 0x5c, 0x8f, 0x50, 0x69, 0xdb, 0xce, 0x7c, 0x1f, 0xd2, 0x74, - 0x27, 0x0b, 0xcb, 0xd9, 0xe8, 0x16, 0xb9, 0xd3, 0xf9, 0xd0, 0x66, 0x28, 0xcc, 0xf9, 0xc9, 0x8c, - 0xab, 0x8e, 0x2f, 0x4f, 0x08, 0x95, 0x71, 0x05, 0x98, 0x19, 0x57, 0x00, 0xee, 0xa1, 0x05, 0x1a, - 0xa8, 0x56, 0x69, 0x0c, 0x57, 0x8a, 0xdc, 0x69, 0x51, 0x73, 0xf8, 0x16, 0x68, 0x80, 0xff, 0x8f, - 0x16, 0x65, 0xbe, 0x52, 0x10, 0xf6, 0x19, 0x45, 0x53, 0xfb, 0xd8, 0x63, 0xa3, 0x6d, 0x98, 0x49, - 0xaf, 0x46, 0xf0, 0x10, 0x2d, 0x29, 0x65, 0x2f, 0xe1, 0x94, 0x71, 0x2a, 0x26, 0x76, 0xbd, 0x67, - 0xad, 0xb5, 0xf5, 0xd9, 0xa2, 0x2c, 0xcf, 0x4a, 0x83, 0x79, 0xb6, 0xcc, 0x18, 0xf0, 0xd7, 0xe8, - 0x7c, 0xe5, 0xed, 0xf9, 0x21, 0x49, 0x53, 0x4f, 0xf5, 0xc1, 0xa2, 0x5a, 0xde, 0x29, 0x72, 0xe7, - 0x72, 0x65, 0xde, 0x90, 0xd6, 0xa7, 0xb3, 0x4d, 0x71, 0x6e, 0xce, 0x88, 0x09, 0x6a, 0x71, 0x78, - 0x95, 0x51, 0x0e, 0x11, 0xc8, 0xf9, 0x3d, 0xab, 0x46, 0xe3, 0xda, 0xfc, 0x68, 0x3c, 0x63, 0xc1, - 0x96, 0x41, 0xd4, 0xd5, 0x37, 0x5d, 0xcd, 0xea, 0x9b, 0x38, 0xbe, 0x8f, 0x5a, 0x01, 0xc8, 0x63, - 0x1e, 0x62, 0x9f, 0x42, 0x6a, 0x37, 0x7a, 0xb5, 0xb5, 0x86, 0xf6, 0x37, 0x71, 0xd3, 0xdf, 0xc4, - 0x71, 0x84, 0x56, 0x81, 0xf0, 0x90, 0x42, 0x2a, 0xbc, 0x34, 0x1b, 0x45, 0x54, 0x78, 0x82, 0x46, - 0x60, 0x23, 0x15, 0xea, 0x25, 0x57, 0x3f, 0x26, 0xdc, 0xea, 0x31, 0xe1, 0x6e, 0x96, 0x8f, 0x89, - 0x61, 0xaf, 0xc8, 0x9d, 0x2b, 0x95, 0xeb, 0xb6, 0xf2, 0x7c, 0x41, 0x67, 0x12, 0x82, 0xe7, 0xad, - 0xf8, 0x4f, 0x0b, 0x0d, 0x0e, 0x5b, 0xcf, 0xdb, 0xe1, 0x2c, 0xf2, 0xa6, 0x91, 0x4d, 0x3c, 0x9f, - 0x45, 0x49, 0x08, 0xea, 0x4a, 0x6c, 0x7e, 0x2c, 0x94, 0xbb, 0x45, 0xee, 0x7c, 0x36, 0xbf, 0xd8, - 0x43, 0xce, 0xa2, 0xcd, 0xa9, 0xe2, 0xc6, 0x54, 0xd0, 0x08, 0xf1, 0xe6, 0xc9, 0xbd, 0x70, 0x8a, - 0x56, 0x79, 0x16, 0xab, 0x60, 0x67, 0x6e, 0xec, 0xd6, 0x49, 0x6e, 0xec, 0x6b, 0x45, 0xee, 0x5c, - 0x2d, 0xdd, 0x8f, 0xb8, 0xac, 0xcf, 0x1f, 0x62, 0xc6, 0x5f, 0xa1, 0x95, 0x31, 0x89, 0xc7, 0x9e, - 0x4f, 0x78, 0x40, 0x63, 0x12, 0xca, 0xc6, 0x6e, 0xab, 0xc6, 0xbe, 0x5a, 0xe4, 0xce, 0x25, 0x69, - 0xdb, 0x38, 0x30, 0x19, 0x6a, 0xcb, 0x1f, 0x98, 0xf0, 0x08, 0x75, 0x94, 0x92, 0xba, 0x9a, 0xb3, - 0x98, 0xee, 0x30, 0x1e, 0xc9, 0x46, 0x57, 0x07, 0xb9, 0xbd, 0xa4, 0x7a, 0xfc, 0xbf, 0x45, 0xee, - 0x5c, 0x93, 0x2c, 0x79, 0x1b, 0x7c, 0x33, 0xe5, 0xa8, 0xa3, 0xd7, 0xd0, 0xbe, 0x78, 0x04, 0x05, - 0x3f, 0x44, 0x75, 0x0e, 0x09, 0x10, 0x61, 0x2f, 0xab, 0xa4, 0xd8, 0x46, 0x52, 0xb6, 0x94, 0x61, - 0x13, 0x04, 0xa1, 0x61, 0xaa, 0x87, 0x59, 0x73, 0xcd, 0x61, 0xd6, 0x48, 0xff, 0x27, 0x0b, 0xb5, - 0x67, 0xf8, 0xf8, 0x0e, 0x6a, 0xc4, 0x59, 0xa4, 0x5a, 0x25, 0x55, 0xe7, 0x5a, 0x5b, 0xbf, 0x04, - 0xe3, 0x2c, 0x92, 0x45, 0x9b, 0x79, 0x09, 0x56, 0x98, 0xbc, 0x38, 0x13, 0xe0, 0x94, 0xe9, 0xdb, - 0xfe, 0xd8, 0x16, 0x52, 0xf1, 0x68, 0xb2, 0x19, 0x8f, 0x46, 0xfa, 0xbf, 0x59, 0x08, 0xcf, 0x17, - 0x15, 0x3f, 0x42, 0x8b, 0x11, 0x8d, 0x69, 0x94, 0x45, 0x2a, 0xa4, 0x63, 0x17, 0xf8, 0x4f, 0x91, - 0x3b, 0xe7, 0x4a, 0xb6, 0xb1, 0x42, 0x25, 0x80, 0x9f, 0xa2, 0x86, 0xdc, 0xa9, 0x17, 0x01, 0x89, - 0x3f, 0x1e, 0xae, 0xda, 0xbb, 0xe4, 0x3f, 0x01, 0x62, 0xf6, 0xd0, 0xd9, 0x0a, 0x1b, 0x7e, 0xfb, - 0xd7, 0xbb, 0xae, 0xf5, 0xf6, 0x5d, 0xd7, 0xfa, 0xe7, 0x5d, 0xd7, 0xfa, 0xf9, 0x7d, 0xf7, 0xd4, - 0xdb, 0xf7, 0xdd, 0x53, 0x7f, 0xbf, 0xef, 0x9e, 0xfa, 0xee, 0x8b, 0x31, 0x15, 0xbb, 0xd9, 0xc8, - 0xf5, 0x59, 0x34, 0x20, 0x3c, 0x22, 0x01, 0x49, 0x38, 0x93, 0xc7, 0x50, 0xf9, 0x35, 0x38, 0xee, - 0x8f, 0xc7, 0xa8, 0xae, 0x82, 0xb9, 0xf3, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x67, 0xba, 0x21, - 0x0e, 0x9f, 0x0c, 0x00, 0x00, -} - -func (m *ClusterSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClusterSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PendingDelayDistribution != nil { - { - size, err := m.PendingDelayDistribution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.WorkflowManagerDelayDistribution != nil { - { - size, err := m.WorkflowManagerDelayDistribution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Clusters) > 0 { - for iNdEx := len(m.Clusters) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Clusters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 +func (x *RepeatDetails) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSimulator(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *Cluster) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Cluster) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Cluster) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Pool) > 0 { - i -= len(m.Pool) - copy(dAtA[i:], m.Pool) - i = encodeVarintSimulator(dAtA, i, uint64(len(m.Pool))) - i-- - dAtA[i] = 0x1a - } - if len(m.NodeTemplates) > 0 { - for iNdEx := len(m.NodeTemplates) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.NodeTemplates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSimulator(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkloadSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkloadSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkloadSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Queues) > 0 { - for iNdEx := len(m.Queues) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Queues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.RandomSeed != 0 { - i = encodeVarintSimulator(dAtA, i, uint64(m.RandomSeed)) - i-- - dAtA[i] = 0x10 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSimulator(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *NodeTemplate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeTemplate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TotalResources != nil { - { - size, err := m.TotalResources.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Labels) > 0 { - for k := range m.Labels { - v := m.Labels[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintSimulator(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSimulator(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSimulator(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Taints) > 0 { - for iNdEx := len(m.Taints) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Taints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.Number != 0 { - i = encodeVarintSimulator(dAtA, i, uint64(m.Number)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Queue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Queue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Queue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobTemplates) > 0 { - for iNdEx := len(m.JobTemplates) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.JobTemplates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.Weight != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Weight)))) - i-- - dAtA[i] = 0x11 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSimulator(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobTemplate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobTemplate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Repeat != nil { - { - size, err := m.Repeat.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - if len(m.GangNodeUniformityLabel) > 0 { - i -= len(m.GangNodeUniformityLabel) - copy(dAtA[i:], m.GangNodeUniformityLabel) - i = encodeVarintSimulator(dAtA, i, uint64(len(m.GangNodeUniformityLabel))) - i-- - dAtA[i] = 0x72 - } - if m.GangCardinality != 0 { - i = encodeVarintSimulator(dAtA, i, uint64(m.GangCardinality)) - i-- - dAtA[i] = 0x68 - } - if m.RuntimeDistribution != nil { - { - size, err := m.RuntimeDistribution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - if m.EarliestSubmitTimeFromDependencyCompletion != nil { - { - size, err := m.EarliestSubmitTimeFromDependencyCompletion.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.EarliestSubmitTime != nil { - { - size, err := m.EarliestSubmitTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if len(m.Dependencies) > 0 { - for iNdEx := len(m.Dependencies) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Dependencies[iNdEx]) - copy(dAtA[i:], m.Dependencies[iNdEx]) - i = encodeVarintSimulator(dAtA, i, uint64(len(m.Dependencies[iNdEx]))) - i-- - dAtA[i] = 0x4a - } - } - if m.Requirements != nil { - { - size, err := m.Requirements.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if len(m.PriorityClassName) > 0 { - i -= len(m.PriorityClassName) - copy(dAtA[i:], m.PriorityClassName) - i = encodeVarintSimulator(dAtA, i, uint64(len(m.PriorityClassName))) - i-- - dAtA[i] = 0x3a - } - if m.QueuePriority != 0 { - i = encodeVarintSimulator(dAtA, i, uint64(m.QueuePriority)) - i-- - dAtA[i] = 0x30 - } - if len(m.JobSet) > 0 { - i -= len(m.JobSet) - copy(dAtA[i:], m.JobSet) - i = encodeVarintSimulator(dAtA, i, uint64(len(m.JobSet))) - i-- - dAtA[i] = 0x2a - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintSimulator(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintSimulator(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if m.NumberSuccessful != 0 { - i = encodeVarintSimulator(dAtA, i, uint64(m.NumberSuccessful)) - i-- - dAtA[i] = 0x10 - } - if m.Number != 0 { - i = encodeVarintSimulator(dAtA, i, uint64(m.Number)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *RepeatDetails) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RepeatDetails) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RepeatDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Period != nil { - { - size, err := m.Period.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.NumTimes != 0 { - i = encodeVarintSimulator(dAtA, i, uint64(m.NumTimes)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ShiftedExponential) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ShiftedExponential) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ShiftedExponential) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TailMean != nil { - { - size, err := m.TailMean.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Minimum != nil { - { - size, err := m.Minimum.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSimulator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintSimulator(dAtA []byte, offset int, v uint64) int { - offset -= sovSimulator(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ClusterSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSimulator(uint64(l)) - } - if len(m.Clusters) > 0 { - for _, e := range m.Clusters { - l = e.Size() - n += 1 + l + sovSimulator(uint64(l)) - } - } - if m.WorkflowManagerDelayDistribution != nil { - l = m.WorkflowManagerDelayDistribution.Size() - n += 1 + l + sovSimulator(uint64(l)) - } - if m.PendingDelayDistribution != nil { - l = m.PendingDelayDistribution.Size() - n += 1 + l + sovSimulator(uint64(l)) - } - return n -} - -func (m *Cluster) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSimulator(uint64(l)) - } - if len(m.NodeTemplates) > 0 { - for _, e := range m.NodeTemplates { - l = e.Size() - n += 1 + l + sovSimulator(uint64(l)) - } - } - l = len(m.Pool) - if l > 0 { - n += 1 + l + sovSimulator(uint64(l)) - } - return n -} - -func (m *WorkloadSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSimulator(uint64(l)) - } - if m.RandomSeed != 0 { - n += 1 + sovSimulator(uint64(m.RandomSeed)) - } - if len(m.Queues) > 0 { - for _, e := range m.Queues { - l = e.Size() - n += 1 + l + sovSimulator(uint64(l)) - } - } - return n +// Deprecated: Use RepeatDetails.ProtoReflect.Descriptor instead. +func (*RepeatDetails) Descriptor() ([]byte, []int) { + return file_internal_scheduler_simulator_simulator_proto_rawDescGZIP(), []int{6} } -func (m *NodeTemplate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Number != 0 { - n += 1 + sovSimulator(uint64(m.Number)) - } - if len(m.Taints) > 0 { - for _, e := range m.Taints { - l = e.Size() - n += 1 + l + sovSimulator(uint64(l)) - } +func (x *RepeatDetails) GetNumTimes() uint32 { + if x != nil { + return x.NumTimes } - if len(m.Labels) > 0 { - for k, v := range m.Labels { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSimulator(uint64(len(k))) + 1 + len(v) + sovSimulator(uint64(len(v))) - n += mapEntrySize + 1 + sovSimulator(uint64(mapEntrySize)) - } - } - if m.TotalResources != nil { - l = m.TotalResources.Size() - n += 1 + l + sovSimulator(uint64(l)) - } - return n + return 0 } -func (m *Queue) Size() (n int) { - if m == nil { - return 0 +func (x *RepeatDetails) GetPeriod() *durationpb.Duration { + if x != nil { + return x.Period } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSimulator(uint64(l)) - } - if m.Weight != 0 { - n += 9 - } - if len(m.JobTemplates) > 0 { - for _, e := range m.JobTemplates { - l = e.Size() - n += 1 + l + sovSimulator(uint64(l)) - } - } - return n + return nil } -func (m *JobTemplate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Number != 0 { - n += 1 + sovSimulator(uint64(m.Number)) - } - if m.NumberSuccessful != 0 { - n += 1 + sovSimulator(uint64(m.NumberSuccessful)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovSimulator(uint64(l)) - } - l = len(m.Id) - if l > 0 { - n += 1 + l + sovSimulator(uint64(l)) - } - l = len(m.JobSet) - if l > 0 { - n += 1 + l + sovSimulator(uint64(l)) - } - if m.QueuePriority != 0 { - n += 1 + sovSimulator(uint64(m.QueuePriority)) - } - l = len(m.PriorityClassName) - if l > 0 { - n += 1 + l + sovSimulator(uint64(l)) - } - if m.Requirements != nil { - l = m.Requirements.Size() - n += 1 + l + sovSimulator(uint64(l)) - } - if len(m.Dependencies) > 0 { - for _, s := range m.Dependencies { - l = len(s) - n += 1 + l + sovSimulator(uint64(l)) - } - } - if m.EarliestSubmitTime != nil { - l = m.EarliestSubmitTime.Size() - n += 1 + l + sovSimulator(uint64(l)) - } - if m.EarliestSubmitTimeFromDependencyCompletion != nil { - l = m.EarliestSubmitTimeFromDependencyCompletion.Size() - n += 1 + l + sovSimulator(uint64(l)) - } - if m.RuntimeDistribution != nil { - l = m.RuntimeDistribution.Size() - n += 1 + l + sovSimulator(uint64(l)) - } - if m.GangCardinality != 0 { - n += 1 + sovSimulator(uint64(m.GangCardinality)) - } - l = len(m.GangNodeUniformityLabel) - if l > 0 { - n += 1 + l + sovSimulator(uint64(l)) - } - if m.Repeat != nil { - l = m.Repeat.Size() - n += 1 + l + sovSimulator(uint64(l)) - } - return n +type ShiftedExponential struct { + state protoimpl.MessageState `protogen:"open.v1"` + Minimum *durationpb.Duration `protobuf:"bytes,1,opt,name=minimum,proto3" json:"minimum,omitempty"` + TailMean *durationpb.Duration `protobuf:"bytes,2,opt,name=tail_mean,json=tailMean,proto3" json:"tail_mean,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *RepeatDetails) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NumTimes != 0 { - n += 1 + sovSimulator(uint64(m.NumTimes)) - } - if m.Period != nil { - l = m.Period.Size() - n += 1 + l + sovSimulator(uint64(l)) - } - return n +func (x *ShiftedExponential) Reset() { + *x = ShiftedExponential{} + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ShiftedExponential) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Minimum != nil { - l = m.Minimum.Size() - n += 1 + l + sovSimulator(uint64(l)) - } - if m.TailMean != nil { - l = m.TailMean.Size() - n += 1 + l + sovSimulator(uint64(l)) - } - return n -} - -func sovSimulator(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozSimulator(x uint64) (n int) { - return sovSimulator(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ClusterSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Clusters", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Clusters = append(m.Clusters, &Cluster{}) - if err := m.Clusters[len(m.Clusters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowManagerDelayDistribution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowManagerDelayDistribution == nil { - m.WorkflowManagerDelayDistribution = &ShiftedExponential{} - } - if err := m.WorkflowManagerDelayDistribution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PendingDelayDistribution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PendingDelayDistribution == nil { - m.PendingDelayDistribution = &ShiftedExponential{} - } - if err := m.PendingDelayDistribution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSimulator(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSimulator - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *ShiftedExponential) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Cluster) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Cluster: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Cluster: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeTemplates", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeTemplates = append(m.NodeTemplates, &NodeTemplate{}) - if err := m.NodeTemplates[len(m.NodeTemplates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pool = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSimulator(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSimulator - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkloadSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkloadSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkloadSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RandomSeed", wireType) - } - m.RandomSeed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RandomSeed |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queues = append(m.Queues, &Queue{}) - if err := m.Queues[len(m.Queues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSimulator(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSimulator - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +func (*ShiftedExponential) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeTemplate) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeTemplate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeTemplate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Number", wireType) - } - m.Number = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Number |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Taints", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Taints = append(m.Taints, &v1.Taint{}) - if err := m.Taints[len(m.Taints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Labels == nil { - m.Labels = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSimulator - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSimulator - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthSimulator - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthSimulator - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipSimulator(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSimulator - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Labels[mapkey] = mapvalue - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalResources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TotalResources == nil { - m.TotalResources = &schedulerobjects.ResourceList{} - } - if err := m.TotalResources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSimulator(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSimulator - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy +func (x *ShiftedExponential) ProtoReflect() protoreflect.Message { + mi := &file_internal_scheduler_simulator_simulator_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return mi.MessageOf(x) } -func (m *Queue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Queue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Queue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Weight = float64(math.Float64frombits(v)) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobTemplates", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobTemplates = append(m.JobTemplates, &JobTemplate{}) - if err := m.JobTemplates[len(m.JobTemplates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSimulator(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSimulator - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use ShiftedExponential.ProtoReflect.Descriptor instead. +func (*ShiftedExponential) Descriptor() ([]byte, []int) { + return file_internal_scheduler_simulator_simulator_proto_rawDescGZIP(), []int{7} } -func (m *JobTemplate) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobTemplate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobTemplate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Number", wireType) - } - m.Number = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Number |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberSuccessful", wireType) - } - m.NumberSuccessful = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberSuccessful |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSet", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSet = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field QueuePriority", wireType) - } - m.QueuePriority = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.QueuePriority |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PriorityClassName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PriorityClassName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Requirements", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Requirements == nil { - m.Requirements = &schedulerobjects.PodRequirements{} - } - if err := m.Requirements.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Dependencies", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Dependencies = append(m.Dependencies, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EarliestSubmitTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.EarliestSubmitTime == nil { - m.EarliestSubmitTime = &types.Duration{} - } - if err := m.EarliestSubmitTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EarliestSubmitTimeFromDependencyCompletion", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.EarliestSubmitTimeFromDependencyCompletion == nil { - m.EarliestSubmitTimeFromDependencyCompletion = &types.Duration{} - } - if err := m.EarliestSubmitTimeFromDependencyCompletion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuntimeDistribution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RuntimeDistribution == nil { - m.RuntimeDistribution = &ShiftedExponential{} - } - if err := m.RuntimeDistribution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GangCardinality", wireType) - } - m.GangCardinality = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GangCardinality |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GangNodeUniformityLabel", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GangNodeUniformityLabel = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Repeat", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Repeat == nil { - m.Repeat = &RepeatDetails{} - } - if err := m.Repeat.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSimulator(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSimulator - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ShiftedExponential) GetMinimum() *durationpb.Duration { + if x != nil { + return x.Minimum } return nil } -func (m *RepeatDetails) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RepeatDetails: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RepeatDetails: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumTimes", wireType) - } - m.NumTimes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumTimes |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Period", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Period == nil { - m.Period = &types.Duration{} - } - if err := m.Period.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSimulator(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSimulator - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ShiftedExponential) GetTailMean() *durationpb.Duration { + if x != nil { + return x.TailMean } return nil } -func (m *ShiftedExponential) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ShiftedExponential: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ShiftedExponential: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Minimum", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Minimum == nil { - m.Minimum = &types.Duration{} - } - if err := m.Minimum.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TailMean", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSimulator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSimulator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSimulator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TailMean == nil { - m.TailMean = &types.Duration{} - } - if err := m.TailMean.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSimulator(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSimulator - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipSimulator(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSimulator - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSimulator - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSimulator - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthSimulator - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupSimulator - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthSimulator - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} +var File_internal_scheduler_simulator_simulator_proto protoreflect.FileDescriptor + +var file_internal_scheduler_simulator_simulator_proto_rawDesc = string([]byte{ + 0x0a, 0x2c, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x73, + 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, + 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x6b, 0x38, 0x73, 0x2e, 0x69, + 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3a, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x72, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x02, 0x0a, 0x0b, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, + 0x08, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x52, 0x08, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x6c, 0x0a, + 0x23, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x72, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x69, 0x6d, + 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x53, 0x68, 0x69, 0x66, 0x74, 0x65, 0x64, 0x45, 0x78, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x44, + 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5b, 0x0a, 0x1a, 0x70, + 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x64, 0x69, 0x73, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x53, 0x68, 0x69, 0x66, + 0x74, 0x65, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x18, + 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x44, 0x69, 0x73, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x71, 0x0a, 0x07, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x12, 0x3e, 0x0a, 0x0e, 0x6e, + 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, + 0x4e, 0x6f, 0x64, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x6e, 0x6f, + 0x64, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x22, 0x6d, 0x0a, 0x0c, 0x57, + 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x53, 0x65, 0x65, 0x64, + 0x12, 0x28, 0x0a, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x51, 0x75, 0x65, + 0x75, 0x65, 0x52, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x22, 0x9a, 0x02, 0x0a, 0x0c, 0x4e, + 0x6f, 0x64, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x06, 0x74, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x69, 0x6e, 0x74, 0x52, 0x06, + 0x74, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x3b, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, + 0x6f, 0x72, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x12, 0x47, 0x0a, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0e, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x70, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x75, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x01, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x3b, 0x0a, 0x0d, + 0x6a, 0x6f, 0x62, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, + 0x4a, 0x6f, 0x62, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x6a, 0x6f, 0x62, + 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x22, 0x8b, 0x06, 0x0a, 0x0b, 0x4a, 0x6f, + 0x62, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x12, 0x2a, 0x0a, 0x10, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x66, 0x75, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x12, 0x14, 0x0a, + 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, + 0x65, 0x75, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, + 0x71, 0x75, 0x65, 0x75, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x75, 0x65, 0x50, 0x72, 0x69, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x11, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x50, 0x6f, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x0c, 0x72, 0x65, + 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, + 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0c, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x12, 0x4b, + 0x0a, 0x14, 0x65, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, + 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x65, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, + 0x74, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x7e, 0x0a, 0x2f, 0x65, + 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, + 0x6e, 0x63, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x2a, 0x65, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, + 0x69, 0x6d, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, + 0x79, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x14, 0x72, + 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x69, 0x6d, 0x75, + 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x53, 0x68, 0x69, 0x66, 0x74, 0x65, 0x64, 0x45, 0x78, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x13, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, + 0x65, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, + 0x10, 0x67, 0x61, 0x6e, 0x67, 0x5f, 0x63, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x74, + 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x67, 0x61, 0x6e, 0x67, 0x43, 0x61, 0x72, + 0x64, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x3b, 0x0a, 0x1a, 0x67, 0x61, 0x6e, 0x67, + 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x75, 0x6e, 0x69, 0x66, 0x6f, 0x72, 0x6d, 0x69, 0x74, 0x79, + 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x67, 0x61, + 0x6e, 0x67, 0x4e, 0x6f, 0x64, 0x65, 0x55, 0x6e, 0x69, 0x66, 0x6f, 0x72, 0x6d, 0x69, 0x74, 0x79, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x30, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x18, + 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, + 0x72, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, + 0x06, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x22, 0x5f, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x65, 0x61, + 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x75, 0x6d, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6e, 0x75, 0x6d, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x22, 0x81, 0x01, 0x0a, 0x12, 0x53, 0x68, 0x69, + 0x66, 0x74, 0x65, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x12, + 0x33, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6d, 0x69, 0x6e, + 0x69, 0x6d, 0x75, 0x6d, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x61, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x08, 0x74, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x61, 0x6e, 0x42, 0x3e, 0x5a, 0x3c, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, + 0x61, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x2f, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x72, 0x2f, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +}) var ( - ErrInvalidLengthSimulator = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowSimulator = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupSimulator = fmt.Errorf("proto: unexpected end of group") + file_internal_scheduler_simulator_simulator_proto_rawDescOnce sync.Once + file_internal_scheduler_simulator_simulator_proto_rawDescData []byte ) + +func file_internal_scheduler_simulator_simulator_proto_rawDescGZIP() []byte { + file_internal_scheduler_simulator_simulator_proto_rawDescOnce.Do(func() { + file_internal_scheduler_simulator_simulator_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_internal_scheduler_simulator_simulator_proto_rawDesc), len(file_internal_scheduler_simulator_simulator_proto_rawDesc))) + }) + return file_internal_scheduler_simulator_simulator_proto_rawDescData +} + +var file_internal_scheduler_simulator_simulator_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_internal_scheduler_simulator_simulator_proto_goTypes = []any{ + (*ClusterSpec)(nil), // 0: simulator.ClusterSpec + (*Cluster)(nil), // 1: simulator.Cluster + (*WorkloadSpec)(nil), // 2: simulator.WorkloadSpec + (*NodeTemplate)(nil), // 3: simulator.NodeTemplate + (*Queue)(nil), // 4: simulator.Queue + (*JobTemplate)(nil), // 5: simulator.JobTemplate + (*RepeatDetails)(nil), // 6: simulator.RepeatDetails + (*ShiftedExponential)(nil), // 7: simulator.ShiftedExponential + nil, // 8: simulator.NodeTemplate.LabelsEntry + (*v1.Taint)(nil), // 9: k8s.io.api.core.v1.Taint + (*schedulerobjects.ResourceList)(nil), // 10: schedulerobjects.ResourceList + (*schedulerobjects.PodRequirements)(nil), // 11: schedulerobjects.PodRequirements + (*durationpb.Duration)(nil), // 12: google.protobuf.Duration +} +var file_internal_scheduler_simulator_simulator_proto_depIdxs = []int32{ + 1, // 0: simulator.ClusterSpec.clusters:type_name -> simulator.Cluster + 7, // 1: simulator.ClusterSpec.workflow_manager_delay_distribution:type_name -> simulator.ShiftedExponential + 7, // 2: simulator.ClusterSpec.pending_delay_distribution:type_name -> simulator.ShiftedExponential + 3, // 3: simulator.Cluster.node_templates:type_name -> simulator.NodeTemplate + 4, // 4: simulator.WorkloadSpec.queues:type_name -> simulator.Queue + 9, // 5: simulator.NodeTemplate.taints:type_name -> k8s.io.api.core.v1.Taint + 8, // 6: simulator.NodeTemplate.labels:type_name -> simulator.NodeTemplate.LabelsEntry + 10, // 7: simulator.NodeTemplate.total_resources:type_name -> schedulerobjects.ResourceList + 5, // 8: simulator.Queue.job_templates:type_name -> simulator.JobTemplate + 11, // 9: simulator.JobTemplate.requirements:type_name -> schedulerobjects.PodRequirements + 12, // 10: simulator.JobTemplate.earliest_submit_time:type_name -> google.protobuf.Duration + 12, // 11: simulator.JobTemplate.earliest_submit_time_from_dependency_completion:type_name -> google.protobuf.Duration + 7, // 12: simulator.JobTemplate.runtime_distribution:type_name -> simulator.ShiftedExponential + 6, // 13: simulator.JobTemplate.repeat:type_name -> simulator.RepeatDetails + 12, // 14: simulator.RepeatDetails.period:type_name -> google.protobuf.Duration + 12, // 15: simulator.ShiftedExponential.minimum:type_name -> google.protobuf.Duration + 12, // 16: simulator.ShiftedExponential.tail_mean:type_name -> google.protobuf.Duration + 17, // [17:17] is the sub-list for method output_type + 17, // [17:17] is the sub-list for method input_type + 17, // [17:17] is the sub-list for extension type_name + 17, // [17:17] is the sub-list for extension extendee + 0, // [0:17] is the sub-list for field type_name +} + +func init() { file_internal_scheduler_simulator_simulator_proto_init() } +func file_internal_scheduler_simulator_simulator_proto_init() { + if File_internal_scheduler_simulator_simulator_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_scheduler_simulator_simulator_proto_rawDesc), len(file_internal_scheduler_simulator_simulator_proto_rawDesc)), + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_internal_scheduler_simulator_simulator_proto_goTypes, + DependencyIndexes: file_internal_scheduler_simulator_simulator_proto_depIdxs, + MessageInfos: file_internal_scheduler_simulator_simulator_proto_msgTypes, + }.Build() + File_internal_scheduler_simulator_simulator_proto = out.File + file_internal_scheduler_simulator_simulator_proto_goTypes = nil + file_internal_scheduler_simulator_simulator_proto_depIdxs = nil +} diff --git a/internal/scheduleringester/instructions.go b/internal/scheduleringester/instructions.go index 2f524890354..1b38319bedf 100644 --- a/internal/scheduleringester/instructions.go +++ b/internal/scheduleringester/instructions.go @@ -3,11 +3,11 @@ package scheduleringester import ( "time" - "github.com/gogo/protobuf/proto" "github.com/google/uuid" "github.com/pkg/errors" "golang.org/x/exp/maps" "golang.org/x/exp/slices" + "google.golang.org/protobuf/proto" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/compress" diff --git a/internal/scheduleringester/schedulerdb.go b/internal/scheduleringester/schedulerdb.go index 4f7925c5888..58c91d85603 100644 --- a/internal/scheduleringester/schedulerdb.go +++ b/internal/scheduleringester/schedulerdb.go @@ -4,11 +4,11 @@ import ( "fmt" "time" - "github.com/gogo/protobuf/proto" "github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5/pgxpool" "github.com/pkg/errors" "golang.org/x/exp/maps" + "google.golang.org/protobuf/proto" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/database" diff --git a/internal/server/event/event.go b/internal/server/event/event.go index 9c59c7bebfd..630522c8e9f 100644 --- a/internal/server/event/event.go +++ b/internal/server/event/event.go @@ -4,10 +4,10 @@ import ( "context" "time" - "github.com/gogo/protobuf/types" "github.com/pkg/errors" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + "google.golang.org/protobuf/types/known/emptypb" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/armadaerrors" @@ -24,6 +24,7 @@ type EventServer struct { authorizer auth.ActionAuthorizer eventRepository EventRepository queueRepository armadaqueue.ReadOnlyQueueRepository + api.UnimplementedEventServer } func NewEventServer( @@ -67,7 +68,7 @@ func (s *EventServer) GetJobSetEvents(request *api.JobSetRequest, stream api.Eve return s.serveEventsFromRepository(request, s.eventRepository, stream) } -func (s *EventServer) Health(_ context.Context, _ *types.Empty) (*api.HealthCheckResponse, error) { +func (s *EventServer) Health(_ context.Context, _ *emptypb.Empty) (*api.HealthCheckResponse, error) { return &api.HealthCheckResponse{Status: api.HealthCheckResponse_SERVING}, nil } diff --git a/internal/server/event/event_repository.go b/internal/server/event/event_repository.go index 4292f7553b5..2912690ad8e 100644 --- a/internal/server/event/event_repository.go +++ b/internal/server/event/event_repository.go @@ -6,10 +6,10 @@ import ( "math" "time" - "github.com/gogo/protobuf/proto" pool "github.com/jolestar/go-commons-pool" "github.com/pkg/errors" "github.com/redis/go-redis/v9" + "google.golang.org/protobuf/proto" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/compress" diff --git a/internal/server/event/event_repository_test.go b/internal/server/event/event_repository_test.go index 697cff4b991..6c7a67d5a79 100644 --- a/internal/server/event/event_repository_test.go +++ b/internal/server/event/event_repository_test.go @@ -4,9 +4,9 @@ import ( "testing" "time" - "github.com/gogo/protobuf/proto" "github.com/redis/go-redis/v9" "github.com/stretchr/testify/assert" + "google.golang.org/protobuf/proto" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/compress" diff --git a/internal/server/event/event_test.go b/internal/server/event/event_test.go index 861e63fef22..578e2f52040 100644 --- a/internal/server/event/event_test.go +++ b/internal/server/event/event_test.go @@ -5,8 +5,6 @@ import ( "testing" "time" - "github.com/gogo/protobuf/proto" - "github.com/gogo/protobuf/types" "github.com/jackc/pgx/v5/pgxpool" "github.com/redis/go-redis/v9" "github.com/stretchr/testify/assert" @@ -14,6 +12,8 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/types/known/emptypb" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/auth" @@ -50,7 +50,7 @@ func TestEventServer_Health(t *testing.T) { ctx, t, func(s *EventServer) { - health, err := s.Health(armadacontext.Background(), &types.Empty{}) + health, err := s.Health(armadacontext.Background(), &emptypb.Empty{}) assert.Equal(t, health.Status, api.HealthCheckResponse_SERVING) require.NoError(t, err) }, diff --git a/internal/server/executor/executor.go b/internal/server/executor/executor.go index 3cbc4509deb..05a29b0b751 100644 --- a/internal/server/executor/executor.go +++ b/internal/server/executor/executor.go @@ -4,17 +4,17 @@ import ( "context" "fmt" - "github.com/gogo/protobuf/types" "github.com/pkg/errors" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + "google.golang.org/protobuf/types/known/emptypb" "k8s.io/utils/clock" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/armadaerrors" "github.com/armadaproject/armada/internal/common/auth" protoutil "github.com/armadaproject/armada/internal/common/proto" - pulsarutils "github.com/armadaproject/armada/internal/common/pulsarutils" + "github.com/armadaproject/armada/internal/common/pulsarutils" "github.com/armadaproject/armada/internal/server/permissions" "github.com/armadaproject/armada/pkg/api" "github.com/armadaproject/armada/pkg/controlplaneevents" @@ -24,6 +24,7 @@ type Server struct { publisher pulsarutils.Publisher[*controlplaneevents.Event] authorizer auth.ActionAuthorizer clock clock.Clock + api.UnimplementedExecutorServer } func New( @@ -37,7 +38,7 @@ func New( } } -func (s *Server) UpsertExecutorSettings(grpcCtx context.Context, req *api.ExecutorSettingsUpsertRequest) (*types.Empty, error) { +func (s *Server) UpsertExecutorSettings(grpcCtx context.Context, req *api.ExecutorSettingsUpsertRequest) (*emptypb.Empty, error) { ctx := armadacontext.FromGrpcCtx(grpcCtx) err := s.authorizer.AuthorizeAction(ctx, permissions.UpdateExecutorSettings) var ep *armadaerrors.ErrUnauthorized @@ -72,10 +73,10 @@ func (s *Server) UpsertExecutorSettings(grpcCtx context.Context, req *api.Execut return nil, status.Error(codes.Internal, "Failed to send events to Pulsar") } - return &types.Empty{}, nil + return &emptypb.Empty{}, nil } -func (s *Server) DeleteExecutorSettings(grpcCtx context.Context, req *api.ExecutorSettingsDeleteRequest) (*types.Empty, error) { +func (s *Server) DeleteExecutorSettings(grpcCtx context.Context, req *api.ExecutorSettingsDeleteRequest) (*emptypb.Empty, error) { ctx := armadacontext.FromGrpcCtx(grpcCtx) err := s.authorizer.AuthorizeAction(ctx, permissions.UpdateExecutorSettings) var ep *armadaerrors.ErrUnauthorized @@ -103,10 +104,10 @@ func (s *Server) DeleteExecutorSettings(grpcCtx context.Context, req *api.Execut return nil, status.Error(codes.Internal, "Failed to send events to Pulsar") } - return &types.Empty{}, nil + return &emptypb.Empty{}, nil } -func (s *Server) PreemptOnExecutor(grpcCtx context.Context, req *api.ExecutorPreemptRequest) (*types.Empty, error) { +func (s *Server) PreemptOnExecutor(grpcCtx context.Context, req *api.ExecutorPreemptRequest) (*emptypb.Empty, error) { ctx := armadacontext.FromGrpcCtx(grpcCtx) err := s.authorizer.AuthorizeAction(ctx, permissions.PreemptAnyJobs) var ep *armadaerrors.ErrUnauthorized @@ -136,10 +137,10 @@ func (s *Server) PreemptOnExecutor(grpcCtx context.Context, req *api.ExecutorPre return nil, status.Error(codes.Internal, "Failed to send events to Pulsar") } - return &types.Empty{}, nil + return &emptypb.Empty{}, nil } -func (s *Server) CancelOnExecutor(grpcCtx context.Context, req *api.ExecutorCancelRequest) (*types.Empty, error) { +func (s *Server) CancelOnExecutor(grpcCtx context.Context, req *api.ExecutorCancelRequest) (*emptypb.Empty, error) { ctx := armadacontext.FromGrpcCtx(grpcCtx) err := s.authorizer.AuthorizeAction(ctx, permissions.CancelAnyJobs) var ep *armadaerrors.ErrUnauthorized @@ -169,5 +170,5 @@ func (s *Server) CancelOnExecutor(grpcCtx context.Context, req *api.ExecutorCanc return nil, status.Error(codes.Internal, "Failed to send events to Pulsar") } - return &types.Empty{}, nil + return &emptypb.Empty{}, nil } diff --git a/internal/server/queryapi/query_api.go b/internal/server/queryapi/query_api.go index 23dc6d7e3f5..abd2fde1b13 100644 --- a/internal/server/queryapi/query_api.go +++ b/internal/server/queryapi/query_api.go @@ -45,6 +45,7 @@ type QueryApi struct { db *pgxpool.Pool decompressorFactory func() compress.Decompressor maxQueryItems int + api.UnimplementedJobsServer } func New(db *pgxpool.Pool, maxQueryItems int, decompressorFactory func() compress.Decompressor) *QueryApi { diff --git a/internal/server/queryapi/util.go b/internal/server/queryapi/util.go index 877a81fc015..abc62292d17 100644 --- a/internal/server/queryapi/util.go +++ b/internal/server/queryapi/util.go @@ -1,8 +1,8 @@ package queryapi import ( - "github.com/gogo/protobuf/types" "github.com/jackc/pgx/v5/pgtype" + "google.golang.org/protobuf/types/known/timestamppb" protoutil "github.com/armadaproject/armada/internal/common/proto" ) @@ -14,7 +14,7 @@ func NilStringToString(s *string) string { return *s } -func DbTimeToTimestamp(t pgtype.Timestamp) *types.Timestamp { +func DbTimeToTimestamp(t pgtype.Timestamp) *timestamppb.Timestamp { if !t.Valid { return nil } diff --git a/internal/server/queue/queue_repository.go b/internal/server/queue/queue_repository.go index be19200daf0..e9aa9090538 100644 --- a/internal/server/queue/queue_repository.go +++ b/internal/server/queue/queue_repository.go @@ -3,10 +3,10 @@ package queue import ( "fmt" - "github.com/gogo/protobuf/proto" "github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5/pgxpool" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/pkg/api" diff --git a/internal/server/queue/queue_service.go b/internal/server/queue/queue_service.go index 2b3ece5bb45..5279c7afdf0 100644 --- a/internal/server/queue/queue_service.go +++ b/internal/server/queue/queue_service.go @@ -5,7 +5,8 @@ import ( "fmt" "math" - "github.com/gogo/protobuf/types" + "google.golang.org/protobuf/types/known/emptypb" + "github.com/pkg/errors" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -28,6 +29,7 @@ type Server struct { queueRepository QueueRepository authorizer auth.ActionAuthorizer clock clock.Clock + api.UnimplementedQueueServiceServer } func NewServer( @@ -43,7 +45,7 @@ func NewServer( } } -func (s *Server) CreateQueue(grpcCtx context.Context, req *api.Queue) (*types.Empty, error) { +func (s *Server) CreateQueue(grpcCtx context.Context, req *api.Queue) (*emptypb.Empty, error) { ctx := armadacontext.FromGrpcCtx(grpcCtx) err := s.authorizer.AuthorizeAction(ctx, permissions.CreateQueue) var ep *armadaerrors.ErrUnauthorized @@ -71,7 +73,7 @@ func (s *Server) CreateQueue(grpcCtx context.Context, req *api.Queue) (*types.Em return nil, status.Errorf(codes.Unavailable, "error creating queue: %s", err) } - return &types.Empty{}, nil + return &emptypb.Empty{}, nil } func (s *Server) CreateQueues(grpcCtx context.Context, req *api.QueueList) (*api.BatchQueueCreateResponse, error) { @@ -93,7 +95,7 @@ func (s *Server) CreateQueues(grpcCtx context.Context, req *api.QueueList) (*api }, nil } -func (s *Server) UpdateQueue(grpcCtx context.Context, req *api.Queue) (*types.Empty, error) { +func (s *Server) UpdateQueue(grpcCtx context.Context, req *api.Queue) (*emptypb.Empty, error) { ctx := armadacontext.FromGrpcCtx(grpcCtx) err := s.authorizer.AuthorizeAction(ctx, permissions.CreateQueue) var ep *armadaerrors.ErrUnauthorized @@ -116,7 +118,7 @@ func (s *Server) UpdateQueue(grpcCtx context.Context, req *api.Queue) (*types.Em return nil, status.Errorf(codes.Unavailable, "error getting queue %q: %s", queue.Name, err) } - return &types.Empty{}, nil + return &emptypb.Empty{}, nil } func (s *Server) UpdateQueues(grpcCtx context.Context, req *api.QueueList) (*api.BatchQueueUpdateResponse, error) { @@ -139,7 +141,7 @@ func (s *Server) UpdateQueues(grpcCtx context.Context, req *api.QueueList) (*api }, nil } -func (s *Server) DeleteQueue(grpcCtx context.Context, req *api.QueueDeleteRequest) (*types.Empty, error) { +func (s *Server) DeleteQueue(grpcCtx context.Context, req *api.QueueDeleteRequest) (*emptypb.Empty, error) { ctx := armadacontext.FromGrpcCtx(grpcCtx) err := s.authorizer.AuthorizeAction(ctx, permissions.DeleteQueue) var ep *armadaerrors.ErrUnauthorized @@ -152,7 +154,7 @@ func (s *Server) DeleteQueue(grpcCtx context.Context, req *api.QueueDeleteReques if err != nil { return nil, status.Errorf(codes.InvalidArgument, "error deleting queue %s: %s", req.Name, err) } - return &types.Empty{}, nil + return &emptypb.Empty{}, nil } func (s *Server) GetQueue(grpcCtx context.Context, req *api.QueueGetRequest) (*api.Queue, error) { @@ -201,7 +203,7 @@ func (s *Server) GetQueues(req *api.StreamingQueueGetRequest, stream api.QueueSe return nil } -func (s *Server) CordonQueue(grpcCtx context.Context, req *api.QueueCordonRequest) (*types.Empty, error) { +func (s *Server) CordonQueue(grpcCtx context.Context, req *api.QueueCordonRequest) (*emptypb.Empty, error) { ctx := armadacontext.FromGrpcCtx(grpcCtx) err := s.authorizer.AuthorizeAction(ctx, permissions.CordonQueue) @@ -217,10 +219,10 @@ func (s *Server) CordonQueue(grpcCtx context.Context, req *api.QueueCordonReques return nil, fmt.Errorf("cannot cordon queue with empty name") } - return &types.Empty{}, s.queueRepository.CordonQueue(ctx, queueName) + return &emptypb.Empty{}, s.queueRepository.CordonQueue(ctx, queueName) } -func (s *Server) UncordonQueue(grpcCtx context.Context, req *api.QueueUncordonRequest) (*types.Empty, error) { +func (s *Server) UncordonQueue(grpcCtx context.Context, req *api.QueueUncordonRequest) (*emptypb.Empty, error) { ctx := armadacontext.FromGrpcCtx(grpcCtx) err := s.authorizer.AuthorizeAction(ctx, permissions.CordonQueue) @@ -236,7 +238,7 @@ func (s *Server) UncordonQueue(grpcCtx context.Context, req *api.QueueUncordonRe return nil, fmt.Errorf("cannot uncordon queue with empty name") } - return &types.Empty{}, s.queueRepository.UncordonQueue(ctx, queueName) + return &emptypb.Empty{}, s.queueRepository.UncordonQueue(ctx, queueName) } func isActiveState(state api.JobState) bool { @@ -248,7 +250,7 @@ func isActiveState(state api.JobState) bool { } } -func (s *Server) CancelOnQueue(grpcCtx context.Context, req *api.QueueCancelRequest) (*types.Empty, error) { +func (s *Server) CancelOnQueue(grpcCtx context.Context, req *api.QueueCancelRequest) (*emptypb.Empty, error) { ctx := armadacontext.FromGrpcCtx(grpcCtx) err := s.authorizer.AuthorizeAction(ctx, permissions.CancelAnyJobs) @@ -286,10 +288,10 @@ func (s *Server) CancelOnQueue(grpcCtx context.Context, req *api.QueueCancelRequ return nil, status.Error(codes.Internal, "Failed to send events to Pulsar") } - return &types.Empty{}, nil + return &emptypb.Empty{}, nil } -func (s *Server) PreemptOnQueue(grpcCtx context.Context, req *api.QueuePreemptRequest) (*types.Empty, error) { +func (s *Server) PreemptOnQueue(grpcCtx context.Context, req *api.QueuePreemptRequest) (*emptypb.Empty, error) { ctx := armadacontext.FromGrpcCtx(grpcCtx) err := s.authorizer.AuthorizeAction(ctx, permissions.PreemptAnyJobs) @@ -320,5 +322,5 @@ func (s *Server) PreemptOnQueue(grpcCtx context.Context, req *api.QueuePreemptRe return nil, status.Error(codes.Internal, "Failed to send events to Pulsar") } - return &types.Empty{}, nil + return &emptypb.Empty{}, nil } diff --git a/internal/server/submit/submit.go b/internal/server/submit/submit.go index 316005dd03e..50a7185f1e8 100644 --- a/internal/server/submit/submit.go +++ b/internal/server/submit/submit.go @@ -4,8 +4,9 @@ import ( "context" "fmt" - "github.com/gogo/protobuf/types" - "github.com/gogo/status" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/types/known/emptypb" + "google.golang.org/grpc/codes" "k8s.io/utils/clock" @@ -36,6 +37,7 @@ type Server struct { submissionConfig configuration.SubmissionConfig deduplicator Deduplicator authorizer auth.ActionAuthorizer + api.UnimplementedSubmitServer // Below are used only for testing clock clock.Clock idGenerator func() string @@ -199,7 +201,7 @@ func (s *Server) CancelJobs(grpcCtx context.Context, req *api.JobCancelRequest) }, nil } -func (s *Server) PreemptJobs(grpcCtx context.Context, req *api.JobPreemptRequest) (*types.Empty, error) { +func (s *Server) PreemptJobs(grpcCtx context.Context, req *api.JobPreemptRequest) (*emptypb.Empty, error) { ctx := armadacontext.FromGrpcCtx(grpcCtx) err := validation.ValidateQueueAndJobSet(req) if err != nil { @@ -222,7 +224,7 @@ func (s *Server) PreemptJobs(grpcCtx context.Context, req *api.JobPreemptRequest return nil, status.Error(codes.Internal, "Failed to send message") } - return &types.Empty{}, nil + return &emptypb.Empty{}, nil } func preemptJobEventSequenceForJobIds(clock clock.Clock, jobIds []string, q, jobSet, userId, reason string, groups []string) (*armadaevents.EventSequence, error) { @@ -313,7 +315,7 @@ func (s *Server) ReprioritizeJobs(grpcCtx context.Context, req *api.JobRepriorit }, nil } -func (s *Server) CancelJobSet(grpcCtx context.Context, req *api.JobSetCancelRequest) (*types.Empty, error) { +func (s *Server) CancelJobSet(grpcCtx context.Context, req *api.JobSetCancelRequest) (*emptypb.Empty, error) { ctx := armadacontext.FromGrpcCtx(grpcCtx) err := validation.ValidateQueueAndJobSet(req) if err != nil { @@ -365,7 +367,7 @@ func (s *Server) CancelJobSet(grpcCtx context.Context, req *api.JobSetCancelRequ return nil, status.Error(codes.Internal, "failed to send cancel jobset message to pulsar") } - return &types.Empty{}, err + return &emptypb.Empty{}, err } // Returns event sequence along with all valid job ids in the sequence @@ -421,14 +423,14 @@ func (s *Server) GetUser(ctx *armadacontext.Context) string { return principal.GetName() } -func (s *Server) Health(_ context.Context, _ *types.Empty) (*api.HealthCheckResponse, error) { +func (s *Server) Health(_ context.Context, _ *emptypb.Empty) (*api.HealthCheckResponse, error) { // For now, lets make the health check really simple. return &api.HealthCheckResponse{Status: api.HealthCheckResponse_SERVING}, nil } // Functions below are deprecated -func (s *Server) CreateQueue(ctx context.Context, q *api.Queue) (*types.Empty, error) { +func (s *Server) CreateQueue(ctx context.Context, q *api.Queue) (*emptypb.Empty, error) { return s.queueService.CreateQueue(ctx, q) } @@ -436,7 +438,7 @@ func (s *Server) CreateQueues(ctx context.Context, list *api.QueueList) (*api.Ba return s.queueService.CreateQueues(ctx, list) } -func (s *Server) UpdateQueue(ctx context.Context, q *api.Queue) (*types.Empty, error) { +func (s *Server) UpdateQueue(ctx context.Context, q *api.Queue) (*emptypb.Empty, error) { return s.queueService.UpdateQueue(ctx, q) } @@ -444,7 +446,7 @@ func (s *Server) UpdateQueues(ctx context.Context, list *api.QueueList) (*api.Ba return s.queueService.UpdateQueues(ctx, list) } -func (s *Server) DeleteQueue(ctx context.Context, request *api.QueueDeleteRequest) (*types.Empty, error) { +func (s *Server) DeleteQueue(ctx context.Context, request *api.QueueDeleteRequest) (*emptypb.Empty, error) { return s.queueService.DeleteQueue(ctx, request) } diff --git a/internal/server/submit/validation/submit_request_test.go b/internal/server/submit/validation/submit_request_test.go index 21f3dfa1bcb..e0a922dee2a 100644 --- a/internal/server/submit/validation/submit_request_test.go +++ b/internal/server/submit/validation/submit_request_test.go @@ -592,7 +592,7 @@ func TestValidatePodSpecSize(t *testing.T) { }, } - defaultPodSpecSize := uint(len(protoutil.MustMarshall(defaultPodSpec))) + defaultPodSpecSize := uint(len(protoutil.MustMarshallLegacyProto(defaultPodSpec))) tests := map[string]struct { req *api.JobSubmitRequestItem diff --git a/internal/testsuite/app.go b/internal/testsuite/app.go index 5cb0265a7d0..d41431c3949 100644 --- a/internal/testsuite/app.go +++ b/internal/testsuite/app.go @@ -13,7 +13,7 @@ import ( "text/tabwriter" "time" - "github.com/gogo/protobuf/jsonpb" + "github.com/golang/protobuf/jsonpb" "github.com/hashicorp/go-multierror" "github.com/mattn/go-zglob" "github.com/pkg/errors" diff --git a/magefiles/main.go b/magefiles/main.go index ba422edbb3d..9dda9325f16 100644 --- a/magefiles/main.go +++ b/magefiles/main.go @@ -187,7 +187,7 @@ func Proto() { // Ensures the Protobuf dependencies are installed. func BootstrapProto() { mg.Deps(protocCheck) - mg.Deps(protoInstallProtocArmadaPlugin, protoPrepareThirdPartyProtos) + mg.Deps(protoPrepareThirdPartyProtos) } // Builds the specified docker images. diff --git a/magefiles/proto.go b/magefiles/proto.go index 193511c8061..fcf88b61f2c 100644 --- a/magefiles/proto.go +++ b/magefiles/proto.go @@ -12,22 +12,12 @@ import ( "github.com/pkg/errors" ) -func protoInstallProtocArmadaPlugin() error { - return goRun("install", "scripts/protoc-gen-armada/protoc-gen-armada.go") -} - func protoPrepareThirdPartyProtos() error { // Go modules containing .proto dependencies we need. modules := []struct { name string roots []string }{ - { - name: "github.com/gogo/protobuf", - roots: []string{ - filepath.FromSlash("github.com/gogo/protobuf/protobuf"), - }, - }, { name: "github.com/grpc-ecosystem/grpc-gateway", roots: []string{ @@ -186,24 +176,18 @@ func protoGenerate() error { } func protoProtocRun(armada, grpcGateway bool, swaggerFileName string, paths ...string) error { - modules := "Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types," + - "Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types," + - "Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types," + - "Mgoogle/protobuf/empty.proto=github.com/gogo/protobuf/types," + - "Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types," + - "Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types" - args := []string{ "--proto_path=.", "--proto_path=proto", } if armada { - args = append(args, fmt.Sprintf("--armada_out=paths=source_relative,plugins=grpc,%s:./", modules)) + args = append(args, fmt.Sprintf("--go_out=paths=source_relative:.")) + args = append(args, fmt.Sprintf("--go-grpc_out=paths=source_relative:.")) } if grpcGateway { - args = append(args, fmt.Sprintf("--grpc-gateway_out=logtostderr=true,paths=source_relative,%s:.", modules)) + args = append(args, fmt.Sprintf("--grpc-gateway_out=logtostderr=true,paths=source_relative:.")) } if swaggerFileName != "" { diff --git a/pkg/api/binoculars/binoculars.pb.go b/pkg/api/binoculars/binoculars.pb.go index 44c3fe0a86e..65c029f3b29 100644 --- a/pkg/api/binoculars/binoculars.pb.go +++ b/pkg/api/binoculars/binoculars.pb.go @@ -1,1241 +1,361 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: pkg/api/binoculars/binoculars.proto package binoculars import ( - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" - proto "github.com/gogo/protobuf/proto" - types "github.com/gogo/protobuf/types" _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" v1 "k8s.io/api/core/v1" ) -// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // swagger:model type LogRequest struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - PodNumber int32 `protobuf:"varint,2,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` - PodNamespace string `protobuf:"bytes,3,opt,name=pod_namespace,json=podNamespace,proto3" json:"podNamespace,omitempty"` - SinceTime string `protobuf:"bytes,4,opt,name=since_time,json=sinceTime,proto3" json:"sinceTime,omitempty"` - LogOptions *v1.PodLogOptions `protobuf:"bytes,5,opt,name=log_options,json=logOptions,proto3" json:"logOptions,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + PodNumber int32 `protobuf:"varint,2,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` + PodNamespace string `protobuf:"bytes,3,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"` + SinceTime string `protobuf:"bytes,4,opt,name=since_time,json=sinceTime,proto3" json:"since_time,omitempty"` // allows to specify high precision time as string + LogOptions *v1.PodLogOptions `protobuf:"bytes,5,opt,name=log_options,json=logOptions,proto3" json:"log_options,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *LogRequest) Reset() { *m = LogRequest{} } -func (m *LogRequest) String() string { return proto.CompactTextString(m) } -func (*LogRequest) ProtoMessage() {} -func (*LogRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_3f2fc8093f6f091f, []int{0} +func (x *LogRequest) Reset() { + *x = LogRequest{} + mi := &file_pkg_api_binoculars_binoculars_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *LogRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *LogRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LogRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*LogRequest) ProtoMessage() {} + +func (x *LogRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_binoculars_binoculars_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *LogRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogRequest.Merge(m, src) -} -func (m *LogRequest) XXX_Size() int { - return m.Size() -} -func (m *LogRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LogRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_LogRequest proto.InternalMessageInfo +// Deprecated: Use LogRequest.ProtoReflect.Descriptor instead. +func (*LogRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_binoculars_binoculars_proto_rawDescGZIP(), []int{0} +} -func (m *LogRequest) GetJobId() string { - if m != nil { - return m.JobId +func (x *LogRequest) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *LogRequest) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *LogRequest) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } -func (m *LogRequest) GetPodNamespace() string { - if m != nil { - return m.PodNamespace +func (x *LogRequest) GetPodNamespace() string { + if x != nil { + return x.PodNamespace } return "" } -func (m *LogRequest) GetSinceTime() string { - if m != nil { - return m.SinceTime +func (x *LogRequest) GetSinceTime() string { + if x != nil { + return x.SinceTime } return "" } -func (m *LogRequest) GetLogOptions() *v1.PodLogOptions { - if m != nil { - return m.LogOptions +func (x *LogRequest) GetLogOptions() *v1.PodLogOptions { + if x != nil { + return x.LogOptions } return nil } // swagger:model type LogResponse struct { - Log []*LogLine `protobuf:"bytes,1,rep,name=log,proto3" json:"log,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Log []*LogLine `protobuf:"bytes,1,rep,name=log,proto3" json:"log,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *LogResponse) Reset() { *m = LogResponse{} } -func (m *LogResponse) String() string { return proto.CompactTextString(m) } -func (*LogResponse) ProtoMessage() {} -func (*LogResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3f2fc8093f6f091f, []int{1} +func (x *LogResponse) Reset() { + *x = LogResponse{} + mi := &file_pkg_api_binoculars_binoculars_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *LogResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LogResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *LogResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogResponse.Merge(m, src) -} -func (m *LogResponse) XXX_Size() int { - return m.Size() -} -func (m *LogResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LogResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_LogResponse proto.InternalMessageInfo -func (m *LogResponse) GetLog() []*LogLine { - if m != nil { - return m.Log - } - return nil +func (x *LogResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -// swagger:model -type LogLine struct { - Timestamp string `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Line string `protobuf:"bytes,2,opt,name=line,proto3" json:"line,omitempty"` -} +func (*LogResponse) ProtoMessage() {} -func (m *LogLine) Reset() { *m = LogLine{} } -func (m *LogLine) String() string { return proto.CompactTextString(m) } -func (*LogLine) ProtoMessage() {} -func (*LogLine) Descriptor() ([]byte, []int) { - return fileDescriptor_3f2fc8093f6f091f, []int{2} -} -func (m *LogLine) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LogLine) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LogLine.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *LogResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_binoculars_binoculars_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *LogLine) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogLine.Merge(m, src) -} -func (m *LogLine) XXX_Size() int { - return m.Size() -} -func (m *LogLine) XXX_DiscardUnknown() { - xxx_messageInfo_LogLine.DiscardUnknown(m) -} - -var xxx_messageInfo_LogLine proto.InternalMessageInfo -func (m *LogLine) GetTimestamp() string { - if m != nil { - return m.Timestamp - } - return "" +// Deprecated: Use LogResponse.ProtoReflect.Descriptor instead. +func (*LogResponse) Descriptor() ([]byte, []int) { + return file_pkg_api_binoculars_binoculars_proto_rawDescGZIP(), []int{1} } -func (m *LogLine) GetLine() string { - if m != nil { - return m.Line +func (x *LogResponse) GetLog() []*LogLine { + if x != nil { + return x.Log } - return "" + return nil } // swagger:model -type CordonRequest struct { - NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"nodeName,omitempty"` -} - -func (m *CordonRequest) Reset() { *m = CordonRequest{} } -func (m *CordonRequest) String() string { return proto.CompactTextString(m) } -func (*CordonRequest) ProtoMessage() {} -func (*CordonRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_3f2fc8093f6f091f, []int{3} -} -func (m *CordonRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CordonRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CordonRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *CordonRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CordonRequest.Merge(m, src) -} -func (m *CordonRequest) XXX_Size() int { - return m.Size() -} -func (m *CordonRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CordonRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CordonRequest proto.InternalMessageInfo - -func (m *CordonRequest) GetNodeName() string { - if m != nil { - return m.NodeName - } - return "" -} - -func init() { - proto.RegisterType((*LogRequest)(nil), "binoculars.LogRequest") - proto.RegisterType((*LogResponse)(nil), "binoculars.LogResponse") - proto.RegisterType((*LogLine)(nil), "binoculars.LogLine") - proto.RegisterType((*CordonRequest)(nil), "binoculars.CordonRequest") -} - -func init() { - proto.RegisterFile("pkg/api/binoculars/binoculars.proto", fileDescriptor_3f2fc8093f6f091f) -} - -var fileDescriptor_3f2fc8093f6f091f = []byte{ - // 603 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x93, 0xdd, 0x6a, 0xd4, 0x40, - 0x14, 0xc7, 0x9b, 0xed, 0x87, 0xee, 0xac, 0x55, 0x9c, 0xea, 0x36, 0x46, 0xdd, 0xac, 0x11, 0x64, - 0x29, 0x32, 0xa1, 0x5b, 0x94, 0xd2, 0x1b, 0x69, 0x54, 0xa4, 0xb0, 0x68, 0x29, 0xe2, 0x85, 0x28, - 0x4b, 0x3e, 0xc6, 0xe9, 0xb4, 0xc9, 0x9c, 0x31, 0xc9, 0x16, 0xbc, 0xf5, 0x09, 0x04, 0xdf, 0xc2, - 0xd7, 0xf0, 0x42, 0x2f, 0x0b, 0xde, 0x78, 0x15, 0xa4, 0xf5, 0x2a, 0x4f, 0x21, 0x99, 0x64, 0xb7, - 0x63, 0x7b, 0x97, 0xf9, 0x9d, 0xf3, 0x3f, 0x67, 0xce, 0xff, 0x4c, 0xd0, 0x7d, 0x79, 0xc8, 0x5c, - 0x5f, 0x72, 0x37, 0xe0, 0x02, 0xc2, 0x49, 0xec, 0xa7, 0x99, 0xf6, 0x49, 0x64, 0x0a, 0x39, 0x60, - 0x74, 0x46, 0x2c, 0xe7, 0x70, 0x33, 0x23, 0x1c, 0x94, 0x26, 0x84, 0x94, 0xba, 0x47, 0xeb, 0x2e, - 0xa3, 0x82, 0xa6, 0x7e, 0x4e, 0xa3, 0x3a, 0xdf, 0xba, 0xc3, 0x00, 0x58, 0x4c, 0x55, 0x8e, 0x2f, - 0x04, 0xe4, 0x7e, 0xce, 0x41, 0x34, 0xd5, 0xac, 0xdb, 0x4d, 0x54, 0x9d, 0x82, 0xc9, 0x07, 0x97, - 0x26, 0x32, 0xff, 0x54, 0x07, 0x9d, 0x1f, 0x2d, 0x84, 0x46, 0xc0, 0xf6, 0xe8, 0xc7, 0x09, 0xcd, - 0x72, 0xbc, 0x86, 0x96, 0x0e, 0x20, 0x18, 0xf3, 0xc8, 0x34, 0xfa, 0xc6, 0xa0, 0xed, 0xad, 0x94, - 0x85, 0x7d, 0xed, 0x00, 0x82, 0x9d, 0xe8, 0x21, 0x24, 0x3c, 0x57, 0xca, 0xbd, 0x45, 0x05, 0xf0, - 0x63, 0x84, 0x24, 0x44, 0x63, 0x31, 0x49, 0x02, 0x9a, 0x9a, 0xad, 0xbe, 0x31, 0x58, 0xf4, 0x56, - 0xcb, 0xc2, 0x5e, 0x91, 0x10, 0xbd, 0x54, 0x50, 0xd3, 0xb4, 0x67, 0x10, 0x3f, 0x41, 0xcb, 0x4a, - 0xe7, 0x27, 0x34, 0x93, 0x7e, 0x48, 0xcd, 0x79, 0xd5, 0xca, 0x2a, 0x0b, 0xbb, 0x5b, 0x65, 0x4d, - 0xb9, 0xa6, 0xbe, 0xa2, 0xf3, 0xaa, 0x71, 0xc6, 0x45, 0x48, 0xc7, 0x39, 0x4f, 0xa8, 0xb9, 0xa0, - 0xd4, 0xaa, 0xb1, 0xa2, 0xaf, 0x79, 0xa2, 0x4b, 0xdb, 0x33, 0x88, 0xdf, 0xa1, 0x4e, 0x0c, 0x6c, - 0x0c, 0x52, 0xb9, 0x63, 0x2e, 0xf6, 0x8d, 0x41, 0x67, 0x78, 0x8f, 0xd4, 0x06, 0x13, 0x5f, 0x72, - 0x52, 0x19, 0x4c, 0x8e, 0xd6, 0xc9, 0x2e, 0x44, 0x23, 0x60, 0xaf, 0xea, 0x44, 0xcf, 0x2c, 0x0b, - 0xfb, 0x46, 0x3c, 0x3b, 0x6b, 0xc5, 0xd1, 0x19, 0x75, 0x5e, 0xa0, 0x8e, 0x32, 0x32, 0x93, 0x20, - 0x32, 0x8a, 0x37, 0xd1, 0x7c, 0x0c, 0xcc, 0x34, 0xfa, 0xf3, 0x83, 0xce, 0x70, 0x85, 0x68, 0x3b, - 0x1e, 0x01, 0x1b, 0x71, 0x41, 0xbd, 0xeb, 0x65, 0x61, 0x2f, 0xc7, 0xc0, 0xb4, 0x7a, 0x95, 0xc4, - 0xd9, 0x47, 0x97, 0x9a, 0x14, 0xfc, 0x08, 0xb5, 0xab, 0x19, 0xb3, 0xdc, 0x4f, 0x64, 0xb3, 0x11, - 0x35, 0xe8, 0x0c, 0xea, 0x83, 0xce, 0x20, 0x7e, 0x80, 0x16, 0x62, 0x2e, 0xa8, 0xda, 0x49, 0xdb, - 0xc3, 0x65, 0x61, 0x5f, 0xad, 0xce, 0x5a, 0xb2, 0x8a, 0x3b, 0xcf, 0xd0, 0xf2, 0x53, 0x48, 0x23, - 0x10, 0xd3, 0xf5, 0x6f, 0xa0, 0xb6, 0x80, 0x88, 0xaa, 0xdd, 0x34, 0xfd, 0xba, 0x65, 0x61, 0xe3, - 0x0a, 0x56, 0xfe, 0x6b, 0x15, 0x2e, 0x4f, 0xd9, 0xf0, 0xbb, 0x81, 0x90, 0x37, 0x1b, 0x0f, 0xbf, - 0x41, 0x0b, 0x23, 0x60, 0x19, 0xee, 0x9e, 0x9b, 0xb9, 0xe9, 0x61, 0xad, 0x5e, 0xe0, 0xb5, 0x63, - 0xce, 0xdd, 0xcf, 0xbf, 0xfe, 0x7e, 0x6d, 0xad, 0x3a, 0xb8, 0x7a, 0xe2, 0xda, 0xef, 0x11, 0x03, - 0xdb, 0x32, 0xd6, 0xf0, 0x7b, 0xb4, 0x54, 0x5f, 0x16, 0xdf, 0xd2, 0x2b, 0xfc, 0x37, 0x80, 0xd5, - 0x25, 0xf5, 0x63, 0x27, 0xd3, 0xc7, 0x4e, 0x9e, 0x57, 0xb7, 0x75, 0xfa, 0xaa, 0xb6, 0xe5, 0xdc, - 0x3c, 0x57, 0x3b, 0x54, 0xea, 0x2d, 0x63, 0xcd, 0x13, 0x3f, 0x4f, 0x7a, 0xc6, 0xf1, 0x49, 0xcf, - 0xf8, 0x73, 0xd2, 0x33, 0xbe, 0x9c, 0xf6, 0xe6, 0x8e, 0x4f, 0x7b, 0x73, 0xbf, 0x4f, 0x7b, 0x73, - 0x6f, 0x87, 0x8c, 0xe7, 0xfb, 0x93, 0x80, 0x84, 0x90, 0xb8, 0x7e, 0x9a, 0xf8, 0x91, 0x2f, 0x53, - 0x38, 0xa0, 0x61, 0xde, 0x9c, 0xdc, 0x8b, 0xbf, 0xf4, 0xb7, 0x96, 0xbd, 0xad, 0x62, 0xbb, 0x75, - 0x26, 0xd9, 0x01, 0xb2, 0x2d, 0x39, 0x39, 0xb3, 0x29, 0x58, 0x52, 0x37, 0xdc, 0xf8, 0x17, 0x00, - 0x00, 0xff, 0xff, 0x60, 0x12, 0x4c, 0xad, 0x11, 0x04, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// BinocularsClient is the client API for Binoculars service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type BinocularsClient interface { - Logs(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*LogResponse, error) - Cordon(ctx context.Context, in *CordonRequest, opts ...grpc.CallOption) (*types.Empty, error) -} - -type binocularsClient struct { - cc *grpc.ClientConn -} - -func NewBinocularsClient(cc *grpc.ClientConn) BinocularsClient { - return &binocularsClient{cc} -} - -func (c *binocularsClient) Logs(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*LogResponse, error) { - out := new(LogResponse) - err := c.cc.Invoke(ctx, "/binoculars.Binoculars/Logs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *binocularsClient) Cordon(ctx context.Context, in *CordonRequest, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/binoculars.Binoculars/Cordon", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// BinocularsServer is the server API for Binoculars service. -type BinocularsServer interface { - Logs(context.Context, *LogRequest) (*LogResponse, error) - Cordon(context.Context, *CordonRequest) (*types.Empty, error) -} - -// UnimplementedBinocularsServer can be embedded to have forward compatible implementations. -type UnimplementedBinocularsServer struct { -} - -func (*UnimplementedBinocularsServer) Logs(ctx context.Context, req *LogRequest) (*LogResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Logs not implemented") -} -func (*UnimplementedBinocularsServer) Cordon(ctx context.Context, req *CordonRequest) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method Cordon not implemented") -} - -func RegisterBinocularsServer(s *grpc.Server, srv BinocularsServer) { - s.RegisterService(&_Binoculars_serviceDesc, srv) -} - -func _Binoculars_Logs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LogRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(BinocularsServer).Logs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/binoculars.Binoculars/Logs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BinocularsServer).Logs(ctx, req.(*LogRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Binoculars_Cordon_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CordonRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(BinocularsServer).Cordon(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/binoculars.Binoculars/Cordon", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BinocularsServer).Cordon(ctx, req.(*CordonRequest)) - } - return interceptor(ctx, in, info, handler) +type LogLine struct { + state protoimpl.MessageState `protogen:"open.v1"` + Timestamp string `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Line string `protobuf:"bytes,2,opt,name=line,proto3" json:"line,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var _Binoculars_serviceDesc = grpc.ServiceDesc{ - ServiceName: "binoculars.Binoculars", - HandlerType: (*BinocularsServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Logs", - Handler: _Binoculars_Logs_Handler, - }, - { - MethodName: "Cordon", - Handler: _Binoculars_Cordon_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pkg/api/binoculars/binoculars.proto", +func (x *LogLine) Reset() { + *x = LogLine{} + mi := &file_pkg_api_binoculars_binoculars_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *LogRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *LogLine) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LogRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*LogLine) ProtoMessage() {} -func (m *LogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LogOptions != nil { - { - size, err := m.LogOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBinoculars(dAtA, i, uint64(size)) +func (x *LogLine) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_binoculars_binoculars_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x2a - } - if len(m.SinceTime) > 0 { - i -= len(m.SinceTime) - copy(dAtA[i:], m.SinceTime) - i = encodeVarintBinoculars(dAtA, i, uint64(len(m.SinceTime))) - i-- - dAtA[i] = 0x22 - } - if len(m.PodNamespace) > 0 { - i -= len(m.PodNamespace) - copy(dAtA[i:], m.PodNamespace) - i = encodeVarintBinoculars(dAtA, i, uint64(len(m.PodNamespace))) - i-- - dAtA[i] = 0x1a + return ms } - if m.PodNumber != 0 { - i = encodeVarintBinoculars(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x10 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintBinoculars(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *LogResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LogResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LogResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Log) > 0 { - for iNdEx := len(m.Log) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Log[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBinoculars(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil +// Deprecated: Use LogLine.ProtoReflect.Descriptor instead. +func (*LogLine) Descriptor() ([]byte, []int) { + return file_pkg_api_binoculars_binoculars_proto_rawDescGZIP(), []int{2} } -func (m *LogLine) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *LogLine) GetTimestamp() string { + if x != nil { + return x.Timestamp } - return dAtA[:n], nil -} - -func (m *LogLine) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *LogLine) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Line) > 0 { - i -= len(m.Line) - copy(dAtA[i:], m.Line) - i = encodeVarintBinoculars(dAtA, i, uint64(len(m.Line))) - i-- - dAtA[i] = 0x12 - } - if len(m.Timestamp) > 0 { - i -= len(m.Timestamp) - copy(dAtA[i:], m.Timestamp) - i = encodeVarintBinoculars(dAtA, i, uint64(len(m.Timestamp))) - i-- - dAtA[i] = 0xa +func (x *LogLine) GetLine() string { + if x != nil { + return x.Line } - return len(dAtA) - i, nil + return "" } -func (m *CordonRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// swagger:model +type CordonRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *CordonRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *CordonRequest) Reset() { + *x = CordonRequest{} + mi := &file_pkg_api_binoculars_binoculars_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CordonRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NodeName) > 0 { - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintBinoculars(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *CordonRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func encodeVarintBinoculars(dAtA []byte, offset int, v uint64) int { - offset -= sovBinoculars(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *LogRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovBinoculars(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovBinoculars(uint64(m.PodNumber)) - } - l = len(m.PodNamespace) - if l > 0 { - n += 1 + l + sovBinoculars(uint64(l)) - } - l = len(m.SinceTime) - if l > 0 { - n += 1 + l + sovBinoculars(uint64(l)) - } - if m.LogOptions != nil { - l = m.LogOptions.Size() - n += 1 + l + sovBinoculars(uint64(l)) - } - return n -} +func (*CordonRequest) ProtoMessage() {} -func (m *LogResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Log) > 0 { - for _, e := range m.Log { - l = e.Size() - n += 1 + l + sovBinoculars(uint64(l)) +func (x *CordonRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_binoculars_binoculars_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *LogLine) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Timestamp) - if l > 0 { - n += 1 + l + sovBinoculars(uint64(l)) - } - l = len(m.Line) - if l > 0 { - n += 1 + l + sovBinoculars(uint64(l)) - } - return n -} - -func (m *CordonRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.NodeName) - if l > 0 { - n += 1 + l + sovBinoculars(uint64(l)) - } - return n -} - -func sovBinoculars(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozBinoculars(x uint64) (n int) { - return sovBinoculars(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +// Deprecated: Use CordonRequest.ProtoReflect.Descriptor instead. +func (*CordonRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_binoculars_binoculars_proto_rawDescGZIP(), []int{3} } -func (m *LogRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBinoculars - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LogRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LogRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBinoculars - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBinoculars - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBinoculars - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBinoculars - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBinoculars - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBinoculars - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBinoculars - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodNamespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SinceTime", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBinoculars - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBinoculars - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBinoculars - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SinceTime = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LogOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBinoculars - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBinoculars - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBinoculars - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LogOptions == nil { - m.LogOptions = &v1.PodLogOptions{} - } - if err := m.LogOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBinoculars(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBinoculars - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *CordonRequest) GetNodeName() string { + if x != nil { + return x.NodeName } - return nil -} -func (m *LogResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBinoculars - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LogResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LogResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBinoculars - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBinoculars - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBinoculars - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Log = append(m.Log, &LogLine{}) - if err := m.Log[len(m.Log)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBinoculars(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBinoculars - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LogLine) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBinoculars - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LogLine: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LogLine: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBinoculars - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBinoculars - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBinoculars - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Timestamp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Line", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBinoculars - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBinoculars - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBinoculars - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Line = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBinoculars(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBinoculars - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return "" } -func (m *CordonRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBinoculars - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CordonRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CordonRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBinoculars - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBinoculars - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBinoculars - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBinoculars(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBinoculars - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipBinoculars(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBinoculars - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBinoculars - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBinoculars - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthBinoculars - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupBinoculars - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthBinoculars - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} +var File_pkg_api_binoculars_binoculars_proto protoreflect.FileDescriptor + +var file_pkg_api_binoculars_binoculars_proto_rawDesc = string([]byte{ + 0x0a, 0x23, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x62, 0x69, 0x6e, 0x6f, 0x63, 0x75, + 0x6c, 0x61, 0x72, 0x73, 0x2f, 0x62, 0x69, 0x6e, 0x6f, 0x63, 0x75, 0x6c, 0x61, 0x72, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x62, 0x69, 0x6e, 0x6f, 0x63, 0x75, 0x6c, 0x61, 0x72, + 0x73, 0x1a, 0x22, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, + 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xca, 0x01, 0x0a, 0x0a, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x64, 0x4e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x6f, + 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x69, + 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x73, 0x69, 0x6e, 0x63, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x6c, 0x6f, 0x67, + 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, + 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x64, 0x4c, 0x6f, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x52, 0x0a, 0x6c, 0x6f, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x34, 0x0a, + 0x0b, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x03, + 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x69, 0x6e, 0x6f, + 0x63, 0x75, 0x6c, 0x61, 0x72, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x69, 0x6e, 0x65, 0x52, 0x03, + 0x6c, 0x6f, 0x67, 0x22, 0x3b, 0x0a, 0x07, 0x4c, 0x6f, 0x67, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x1c, + 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x12, 0x0a, 0x04, + 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, + 0x22, 0x2c, 0x0a, 0x0d, 0x43, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0xc3, + 0x01, 0x0a, 0x0a, 0x42, 0x69, 0x6e, 0x6f, 0x63, 0x75, 0x6c, 0x61, 0x72, 0x73, 0x12, 0x56, 0x0a, + 0x04, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x16, 0x2e, 0x62, 0x69, 0x6e, 0x6f, 0x63, 0x75, 0x6c, 0x61, + 0x72, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, + 0x62, 0x69, 0x6e, 0x6f, 0x63, 0x75, 0x6c, 0x61, 0x72, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x3a, 0x01, + 0x2a, 0x22, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x69, 0x6e, 0x6f, 0x63, 0x75, 0x6c, 0x61, 0x72, + 0x73, 0x2f, 0x6c, 0x6f, 0x67, 0x12, 0x5d, 0x0a, 0x06, 0x43, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x12, + 0x19, 0x2e, 0x62, 0x69, 0x6e, 0x6f, 0x63, 0x75, 0x6c, 0x61, 0x72, 0x73, 0x2e, 0x43, 0x6f, 0x72, + 0x64, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x3a, 0x01, 0x2a, 0x22, 0x15, 0x2f, + 0x76, 0x31, 0x2f, 0x62, 0x69, 0x6e, 0x6f, 0x63, 0x75, 0x6c, 0x61, 0x72, 0x73, 0x2f, 0x63, 0x6f, + 0x72, 0x64, 0x6f, 0x6e, 0x42, 0x56, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x62, 0x69, 0x6e, 0x6f, 0x63, 0x75, 0x6c, 0x61, 0x72, 0x73, 0xaa, 0x02, 0x1f, 0x41, 0x72, 0x6d, + 0x61, 0x64, 0x61, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x6f, 0x2e, 0x41, 0x70, + 0x69, 0x2e, 0x42, 0x69, 0x6e, 0x6f, 0x63, 0x75, 0x6c, 0x61, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +}) var ( - ErrInvalidLengthBinoculars = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowBinoculars = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupBinoculars = fmt.Errorf("proto: unexpected end of group") + file_pkg_api_binoculars_binoculars_proto_rawDescOnce sync.Once + file_pkg_api_binoculars_binoculars_proto_rawDescData []byte ) + +func file_pkg_api_binoculars_binoculars_proto_rawDescGZIP() []byte { + file_pkg_api_binoculars_binoculars_proto_rawDescOnce.Do(func() { + file_pkg_api_binoculars_binoculars_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_api_binoculars_binoculars_proto_rawDesc), len(file_pkg_api_binoculars_binoculars_proto_rawDesc))) + }) + return file_pkg_api_binoculars_binoculars_proto_rawDescData +} + +var file_pkg_api_binoculars_binoculars_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_pkg_api_binoculars_binoculars_proto_goTypes = []any{ + (*LogRequest)(nil), // 0: binoculars.LogRequest + (*LogResponse)(nil), // 1: binoculars.LogResponse + (*LogLine)(nil), // 2: binoculars.LogLine + (*CordonRequest)(nil), // 3: binoculars.CordonRequest + (*v1.PodLogOptions)(nil), // 4: k8s.io.api.core.v1.PodLogOptions + (*emptypb.Empty)(nil), // 5: google.protobuf.Empty +} +var file_pkg_api_binoculars_binoculars_proto_depIdxs = []int32{ + 4, // 0: binoculars.LogRequest.log_options:type_name -> k8s.io.api.core.v1.PodLogOptions + 2, // 1: binoculars.LogResponse.log:type_name -> binoculars.LogLine + 0, // 2: binoculars.Binoculars.Logs:input_type -> binoculars.LogRequest + 3, // 3: binoculars.Binoculars.Cordon:input_type -> binoculars.CordonRequest + 1, // 4: binoculars.Binoculars.Logs:output_type -> binoculars.LogResponse + 5, // 5: binoculars.Binoculars.Cordon:output_type -> google.protobuf.Empty + 4, // [4:6] is the sub-list for method output_type + 2, // [2:4] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_pkg_api_binoculars_binoculars_proto_init() } +func file_pkg_api_binoculars_binoculars_proto_init() { + if File_pkg_api_binoculars_binoculars_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_api_binoculars_binoculars_proto_rawDesc), len(file_pkg_api_binoculars_binoculars_proto_rawDesc)), + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_api_binoculars_binoculars_proto_goTypes, + DependencyIndexes: file_pkg_api_binoculars_binoculars_proto_depIdxs, + MessageInfos: file_pkg_api_binoculars_binoculars_proto_msgTypes, + }.Build() + File_pkg_api_binoculars_binoculars_proto = out.File + file_pkg_api_binoculars_binoculars_proto_goTypes = nil + file_pkg_api_binoculars_binoculars_proto_depIdxs = nil +} diff --git a/pkg/api/binoculars/binoculars_grpc.pb.go b/pkg/api/binoculars/binoculars_grpc.pb.go new file mode 100644 index 00000000000..bf698ddd591 --- /dev/null +++ b/pkg/api/binoculars/binoculars_grpc.pb.go @@ -0,0 +1,161 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 +// source: pkg/api/binoculars/binoculars.proto + +package binoculars + +import ( + context "context" + + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Binoculars_Logs_FullMethodName = "/binoculars.Binoculars/Logs" + Binoculars_Cordon_FullMethodName = "/binoculars.Binoculars/Cordon" +) + +// BinocularsClient is the client API for Binoculars service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type BinocularsClient interface { + Logs(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*LogResponse, error) + Cordon(ctx context.Context, in *CordonRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) +} + +type binocularsClient struct { + cc grpc.ClientConnInterface +} + +func NewBinocularsClient(cc grpc.ClientConnInterface) BinocularsClient { + return &binocularsClient{cc} +} + +func (c *binocularsClient) Logs(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*LogResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(LogResponse) + err := c.cc.Invoke(ctx, Binoculars_Logs_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *binocularsClient) Cordon(ctx context.Context, in *CordonRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, Binoculars_Cordon_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// BinocularsServer is the server API for Binoculars service. +// All implementations must embed UnimplementedBinocularsServer +// for forward compatibility. +type BinocularsServer interface { + Logs(context.Context, *LogRequest) (*LogResponse, error) + Cordon(context.Context, *CordonRequest) (*emptypb.Empty, error) + mustEmbedUnimplementedBinocularsServer() +} + +// UnimplementedBinocularsServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedBinocularsServer struct{} + +func (UnimplementedBinocularsServer) Logs(context.Context, *LogRequest) (*LogResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Logs not implemented") +} +func (UnimplementedBinocularsServer) Cordon(context.Context, *CordonRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method Cordon not implemented") +} +func (UnimplementedBinocularsServer) mustEmbedUnimplementedBinocularsServer() {} +func (UnimplementedBinocularsServer) testEmbeddedByValue() {} + +// UnsafeBinocularsServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to BinocularsServer will +// result in compilation errors. +type UnsafeBinocularsServer interface { + mustEmbedUnimplementedBinocularsServer() +} + +func RegisterBinocularsServer(s grpc.ServiceRegistrar, srv BinocularsServer) { + // If the following call pancis, it indicates UnimplementedBinocularsServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Binoculars_ServiceDesc, srv) +} + +func _Binoculars_Logs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LogRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BinocularsServer).Logs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Binoculars_Logs_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BinocularsServer).Logs(ctx, req.(*LogRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Binoculars_Cordon_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CordonRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BinocularsServer).Cordon(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Binoculars_Cordon_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BinocularsServer).Cordon(ctx, req.(*CordonRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Binoculars_ServiceDesc is the grpc.ServiceDesc for Binoculars service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Binoculars_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "binoculars.Binoculars", + HandlerType: (*BinocularsServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Logs", + Handler: _Binoculars_Logs_Handler, + }, + { + MethodName: "Cordon", + Handler: _Binoculars_Cordon_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "pkg/api/binoculars/binoculars.proto", +} diff --git a/pkg/api/event.pb.go b/pkg/api/event.pb.go index 2653d1ea79c..0a83dce6bac 100644 --- a/pkg/api/event.pb.go +++ b/pkg/api/event.pb.go @@ -1,35 +1,30 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: pkg/api/event.proto package api import ( - context "context" - encoding_binary "encoding/binary" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - - proto "github.com/gogo/protobuf/proto" - types "github.com/gogo/protobuf/types" + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" resource "k8s.io/apimachinery/pkg/api/resource" ) -// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Cause int32 @@ -41,1949 +36,1973 @@ const ( Cause_Rejected Cause = 4 ) -var Cause_name = map[int32]string{ - 0: "Error", - 1: "Evicted", - 2: "OOM", - 3: "DeadlineExceeded", - 4: "Rejected", -} +// Enum value maps for Cause. +var ( + Cause_name = map[int32]string{ + 0: "Error", + 1: "Evicted", + 2: "OOM", + 3: "DeadlineExceeded", + 4: "Rejected", + } + Cause_value = map[string]int32{ + "Error": 0, + "Evicted": 1, + "OOM": 2, + "DeadlineExceeded": 3, + "Rejected": 4, + } +) -var Cause_value = map[string]int32{ - "Error": 0, - "Evicted": 1, - "OOM": 2, - "DeadlineExceeded": 3, - "Rejected": 4, +func (x Cause) Enum() *Cause { + p := new(Cause) + *p = x + return p } func (x Cause) String() string { - return proto.EnumName(Cause_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (Cause) Descriptor() protoreflect.EnumDescriptor { + return file_pkg_api_event_proto_enumTypes[0].Descriptor() +} + +func (Cause) Type() protoreflect.EnumType { + return &file_pkg_api_event_proto_enumTypes[0] +} + +func (x Cause) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Cause.Descriptor instead. func (Cause) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{0} + return file_pkg_api_event_proto_rawDescGZIP(), []int{0} } type JobSubmittedEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - Job *Job `protobuf:"bytes,5,opt,name=job,proto3" json:"job,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + Job *Job `protobuf:"bytes,5,opt,name=job,proto3" json:"job,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobSubmittedEvent) Reset() { *m = JobSubmittedEvent{} } -func (m *JobSubmittedEvent) String() string { return proto.CompactTextString(m) } -func (*JobSubmittedEvent) ProtoMessage() {} -func (*JobSubmittedEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{0} -} -func (m *JobSubmittedEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobSubmittedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobSubmittedEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobSubmittedEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobSubmittedEvent.Merge(m, src) +func (x *JobSubmittedEvent) Reset() { + *x = JobSubmittedEvent{} + mi := &file_pkg_api_event_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobSubmittedEvent) XXX_Size() int { - return m.Size() + +func (x *JobSubmittedEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobSubmittedEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobSubmittedEvent.DiscardUnknown(m) + +func (*JobSubmittedEvent) ProtoMessage() {} + +func (x *JobSubmittedEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobSubmittedEvent proto.InternalMessageInfo +// Deprecated: Use JobSubmittedEvent.ProtoReflect.Descriptor instead. +func (*JobSubmittedEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{0} +} -func (m *JobSubmittedEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobSubmittedEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobSubmittedEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobSubmittedEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobSubmittedEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobSubmittedEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobSubmittedEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobSubmittedEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobSubmittedEvent) GetJob() *Job { - if m != nil { - return m.Job +func (x *JobSubmittedEvent) GetJob() *Job { + if x != nil { + return x.Job } return nil } type JobQueuedEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobQueuedEvent) Reset() { *m = JobQueuedEvent{} } -func (m *JobQueuedEvent) String() string { return proto.CompactTextString(m) } -func (*JobQueuedEvent) ProtoMessage() {} -func (*JobQueuedEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{1} -} -func (m *JobQueuedEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobQueuedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobQueuedEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobQueuedEvent) Reset() { + *x = JobQueuedEvent{} + mi := &file_pkg_api_event_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobQueuedEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobQueuedEvent.Merge(m, src) -} -func (m *JobQueuedEvent) XXX_Size() int { - return m.Size() + +func (x *JobQueuedEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobQueuedEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobQueuedEvent.DiscardUnknown(m) + +func (*JobQueuedEvent) ProtoMessage() {} + +func (x *JobQueuedEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobQueuedEvent proto.InternalMessageInfo +// Deprecated: Use JobQueuedEvent.ProtoReflect.Descriptor instead. +func (*JobQueuedEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{1} +} -func (m *JobQueuedEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobQueuedEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobQueuedEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobQueuedEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobQueuedEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobQueuedEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobQueuedEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobQueuedEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } type JobLeasedEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"clusterId,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobLeasedEvent) Reset() { *m = JobLeasedEvent{} } -func (m *JobLeasedEvent) String() string { return proto.CompactTextString(m) } -func (*JobLeasedEvent) ProtoMessage() {} -func (*JobLeasedEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{2} -} -func (m *JobLeasedEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobLeasedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobLeasedEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobLeasedEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobLeasedEvent.Merge(m, src) +func (x *JobLeasedEvent) Reset() { + *x = JobLeasedEvent{} + mi := &file_pkg_api_event_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobLeasedEvent) XXX_Size() int { - return m.Size() + +func (x *JobLeasedEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobLeasedEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobLeasedEvent.DiscardUnknown(m) + +func (*JobLeasedEvent) ProtoMessage() {} + +func (x *JobLeasedEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobLeasedEvent proto.InternalMessageInfo +// Deprecated: Use JobLeasedEvent.ProtoReflect.Descriptor instead. +func (*JobLeasedEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{2} +} -func (m *JobLeasedEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobLeasedEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobLeasedEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobLeasedEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobLeasedEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobLeasedEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobLeasedEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobLeasedEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobLeasedEvent) GetClusterId() string { - if m != nil { - return m.ClusterId +func (x *JobLeasedEvent) GetClusterId() string { + if x != nil { + return x.ClusterId } return "" } type JobLeaseReturnedEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"clusterId,omitempty"` - Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` - KubernetesId string `protobuf:"bytes,7,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetesId,omitempty"` - PodNumber int32 `protobuf:"varint,8,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` - RunAttempted bool `protobuf:"varint,9,opt,name=run_attempted,json=runAttempted,proto3" json:"runAttempted,omitempty"` -} - -func (m *JobLeaseReturnedEvent) Reset() { *m = JobLeaseReturnedEvent{} } -func (m *JobLeaseReturnedEvent) String() string { return proto.CompactTextString(m) } -func (*JobLeaseReturnedEvent) ProtoMessage() {} -func (*JobLeaseReturnedEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{3} -} -func (m *JobLeaseReturnedEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobLeaseReturnedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobLeaseReturnedEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` + KubernetesId string `protobuf:"bytes,7,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetes_id,omitempty"` + PodNumber int32 `protobuf:"varint,8,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` + RunAttempted bool `protobuf:"varint,9,opt,name=run_attempted,json=runAttempted,proto3" json:"run_attempted,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobLeaseReturnedEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobLeaseReturnedEvent.Merge(m, src) + +func (x *JobLeaseReturnedEvent) Reset() { + *x = JobLeaseReturnedEvent{} + mi := &file_pkg_api_event_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobLeaseReturnedEvent) XXX_Size() int { - return m.Size() + +func (x *JobLeaseReturnedEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobLeaseReturnedEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobLeaseReturnedEvent.DiscardUnknown(m) + +func (*JobLeaseReturnedEvent) ProtoMessage() {} + +func (x *JobLeaseReturnedEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobLeaseReturnedEvent proto.InternalMessageInfo +// Deprecated: Use JobLeaseReturnedEvent.ProtoReflect.Descriptor instead. +func (*JobLeaseReturnedEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{3} +} -func (m *JobLeaseReturnedEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobLeaseReturnedEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobLeaseReturnedEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobLeaseReturnedEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobLeaseReturnedEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobLeaseReturnedEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobLeaseReturnedEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobLeaseReturnedEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobLeaseReturnedEvent) GetClusterId() string { - if m != nil { - return m.ClusterId +func (x *JobLeaseReturnedEvent) GetClusterId() string { + if x != nil { + return x.ClusterId } return "" } -func (m *JobLeaseReturnedEvent) GetReason() string { - if m != nil { - return m.Reason +func (x *JobLeaseReturnedEvent) GetReason() string { + if x != nil { + return x.Reason } return "" } -func (m *JobLeaseReturnedEvent) GetKubernetesId() string { - if m != nil { - return m.KubernetesId +func (x *JobLeaseReturnedEvent) GetKubernetesId() string { + if x != nil { + return x.KubernetesId } return "" } -func (m *JobLeaseReturnedEvent) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *JobLeaseReturnedEvent) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } -func (m *JobLeaseReturnedEvent) GetRunAttempted() bool { - if m != nil { - return m.RunAttempted +func (x *JobLeaseReturnedEvent) GetRunAttempted() bool { + if x != nil { + return x.RunAttempted } return false } type JobLeaseExpiredEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobLeaseExpiredEvent) Reset() { *m = JobLeaseExpiredEvent{} } -func (m *JobLeaseExpiredEvent) String() string { return proto.CompactTextString(m) } -func (*JobLeaseExpiredEvent) ProtoMessage() {} -func (*JobLeaseExpiredEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{4} -} -func (m *JobLeaseExpiredEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobLeaseExpiredEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobLeaseExpiredEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobLeaseExpiredEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobLeaseExpiredEvent.Merge(m, src) +func (x *JobLeaseExpiredEvent) Reset() { + *x = JobLeaseExpiredEvent{} + mi := &file_pkg_api_event_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobLeaseExpiredEvent) XXX_Size() int { - return m.Size() + +func (x *JobLeaseExpiredEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobLeaseExpiredEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobLeaseExpiredEvent.DiscardUnknown(m) + +func (*JobLeaseExpiredEvent) ProtoMessage() {} + +func (x *JobLeaseExpiredEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobLeaseExpiredEvent proto.InternalMessageInfo +// Deprecated: Use JobLeaseExpiredEvent.ProtoReflect.Descriptor instead. +func (*JobLeaseExpiredEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{4} +} -func (m *JobLeaseExpiredEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobLeaseExpiredEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobLeaseExpiredEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobLeaseExpiredEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobLeaseExpiredEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobLeaseExpiredEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobLeaseExpiredEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobLeaseExpiredEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } type JobPendingEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"clusterId,omitempty"` - KubernetesId string `protobuf:"bytes,6,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetesId,omitempty"` - PodNumber int32 `protobuf:"varint,7,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` - PodName string `protobuf:"bytes,8,opt,name=pod_name,json=podName,proto3" json:"podName,omitempty"` - PodNamespace string `protobuf:"bytes,9,opt,name=pod_namespace,json=podNamespace,proto3" json:"podNamespace,omitempty"` -} - -func (m *JobPendingEvent) Reset() { *m = JobPendingEvent{} } -func (m *JobPendingEvent) String() string { return proto.CompactTextString(m) } -func (*JobPendingEvent) ProtoMessage() {} -func (*JobPendingEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{5} -} -func (m *JobPendingEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobPendingEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobPendingEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + KubernetesId string `protobuf:"bytes,6,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetes_id,omitempty"` + PodNumber int32 `protobuf:"varint,7,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` + PodName string `protobuf:"bytes,8,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` + PodNamespace string `protobuf:"bytes,9,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobPendingEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobPendingEvent.Merge(m, src) + +func (x *JobPendingEvent) Reset() { + *x = JobPendingEvent{} + mi := &file_pkg_api_event_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobPendingEvent) XXX_Size() int { - return m.Size() + +func (x *JobPendingEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobPendingEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobPendingEvent.DiscardUnknown(m) + +func (*JobPendingEvent) ProtoMessage() {} + +func (x *JobPendingEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobPendingEvent proto.InternalMessageInfo +// Deprecated: Use JobPendingEvent.ProtoReflect.Descriptor instead. +func (*JobPendingEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{5} +} -func (m *JobPendingEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobPendingEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobPendingEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobPendingEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobPendingEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobPendingEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobPendingEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobPendingEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobPendingEvent) GetClusterId() string { - if m != nil { - return m.ClusterId +func (x *JobPendingEvent) GetClusterId() string { + if x != nil { + return x.ClusterId } return "" } -func (m *JobPendingEvent) GetKubernetesId() string { - if m != nil { - return m.KubernetesId +func (x *JobPendingEvent) GetKubernetesId() string { + if x != nil { + return x.KubernetesId } return "" } -func (m *JobPendingEvent) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *JobPendingEvent) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } -func (m *JobPendingEvent) GetPodName() string { - if m != nil { - return m.PodName +func (x *JobPendingEvent) GetPodName() string { + if x != nil { + return x.PodName } return "" } -func (m *JobPendingEvent) GetPodNamespace() string { - if m != nil { - return m.PodNamespace +func (x *JobPendingEvent) GetPodNamespace() string { + if x != nil { + return x.PodNamespace } return "" } type JobRunningEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"clusterId,omitempty"` - KubernetesId string `protobuf:"bytes,6,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetesId,omitempty"` - NodeName string `protobuf:"bytes,7,opt,name=node_name,json=nodeName,proto3" json:"nodeName,omitempty"` - PodNumber int32 `protobuf:"varint,8,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` - PodName string `protobuf:"bytes,9,opt,name=pod_name,json=podName,proto3" json:"podName,omitempty"` - PodNamespace string `protobuf:"bytes,10,opt,name=pod_namespace,json=podNamespace,proto3" json:"podNamespace,omitempty"` -} - -func (m *JobRunningEvent) Reset() { *m = JobRunningEvent{} } -func (m *JobRunningEvent) String() string { return proto.CompactTextString(m) } -func (*JobRunningEvent) ProtoMessage() {} -func (*JobRunningEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{6} -} -func (m *JobRunningEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobRunningEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRunningEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + KubernetesId string `protobuf:"bytes,6,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetes_id,omitempty"` + NodeName string `protobuf:"bytes,7,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + PodNumber int32 `protobuf:"varint,8,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` + PodName string `protobuf:"bytes,9,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` + PodNamespace string `protobuf:"bytes,10,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunningEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRunningEvent.Merge(m, src) + +func (x *JobRunningEvent) Reset() { + *x = JobRunningEvent{} + mi := &file_pkg_api_event_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRunningEvent) XXX_Size() int { - return m.Size() + +func (x *JobRunningEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRunningEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobRunningEvent.DiscardUnknown(m) + +func (*JobRunningEvent) ProtoMessage() {} + +func (x *JobRunningEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobRunningEvent proto.InternalMessageInfo +// Deprecated: Use JobRunningEvent.ProtoReflect.Descriptor instead. +func (*JobRunningEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{6} +} -func (m *JobRunningEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobRunningEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobRunningEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobRunningEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobRunningEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobRunningEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobRunningEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobRunningEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobRunningEvent) GetClusterId() string { - if m != nil { - return m.ClusterId +func (x *JobRunningEvent) GetClusterId() string { + if x != nil { + return x.ClusterId } return "" } -func (m *JobRunningEvent) GetKubernetesId() string { - if m != nil { - return m.KubernetesId +func (x *JobRunningEvent) GetKubernetesId() string { + if x != nil { + return x.KubernetesId } return "" } -func (m *JobRunningEvent) GetNodeName() string { - if m != nil { - return m.NodeName +func (x *JobRunningEvent) GetNodeName() string { + if x != nil { + return x.NodeName } return "" } -func (m *JobRunningEvent) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *JobRunningEvent) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } -func (m *JobRunningEvent) GetPodName() string { - if m != nil { - return m.PodName +func (x *JobRunningEvent) GetPodName() string { + if x != nil { + return x.PodName } return "" } -func (m *JobRunningEvent) GetPodNamespace() string { - if m != nil { - return m.PodNamespace +func (x *JobRunningEvent) GetPodNamespace() string { + if x != nil { + return x.PodNamespace } return "" } type JobIngressInfoEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"clusterId,omitempty"` - KubernetesId string `protobuf:"bytes,6,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetesId,omitempty"` - NodeName string `protobuf:"bytes,7,opt,name=node_name,json=nodeName,proto3" json:"nodeName,omitempty"` - PodNumber int32 `protobuf:"varint,8,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` - PodName string `protobuf:"bytes,10,opt,name=pod_name,json=podName,proto3" json:"podName,omitempty"` - PodNamespace string `protobuf:"bytes,11,opt,name=pod_namespace,json=podNamespace,proto3" json:"podNamespace,omitempty"` - IngressAddresses map[int32]string `protobuf:"bytes,9,rep,name=ingress_addresses,json=ingressAddresses,proto3" json:"ingressAddresses,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (m *JobIngressInfoEvent) Reset() { *m = JobIngressInfoEvent{} } -func (m *JobIngressInfoEvent) String() string { return proto.CompactTextString(m) } -func (*JobIngressInfoEvent) ProtoMessage() {} -func (*JobIngressInfoEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{7} -} -func (m *JobIngressInfoEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobIngressInfoEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobIngressInfoEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + KubernetesId string `protobuf:"bytes,6,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetes_id,omitempty"` + NodeName string `protobuf:"bytes,7,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + PodNumber int32 `protobuf:"varint,8,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` + PodName string `protobuf:"bytes,10,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` + PodNamespace string `protobuf:"bytes,11,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"` + IngressAddresses map[int32]string `protobuf:"bytes,9,rep,name=ingress_addresses,json=ingressAddresses,proto3" json:"ingress_addresses,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobIngressInfoEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobIngressInfoEvent.Merge(m, src) + +func (x *JobIngressInfoEvent) Reset() { + *x = JobIngressInfoEvent{} + mi := &file_pkg_api_event_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobIngressInfoEvent) XXX_Size() int { - return m.Size() + +func (x *JobIngressInfoEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobIngressInfoEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobIngressInfoEvent.DiscardUnknown(m) + +func (*JobIngressInfoEvent) ProtoMessage() {} + +func (x *JobIngressInfoEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobIngressInfoEvent proto.InternalMessageInfo +// Deprecated: Use JobIngressInfoEvent.ProtoReflect.Descriptor instead. +func (*JobIngressInfoEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{7} +} -func (m *JobIngressInfoEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobIngressInfoEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobIngressInfoEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobIngressInfoEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobIngressInfoEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobIngressInfoEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobIngressInfoEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobIngressInfoEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobIngressInfoEvent) GetClusterId() string { - if m != nil { - return m.ClusterId +func (x *JobIngressInfoEvent) GetClusterId() string { + if x != nil { + return x.ClusterId } return "" } -func (m *JobIngressInfoEvent) GetKubernetesId() string { - if m != nil { - return m.KubernetesId +func (x *JobIngressInfoEvent) GetKubernetesId() string { + if x != nil { + return x.KubernetesId } return "" } -func (m *JobIngressInfoEvent) GetNodeName() string { - if m != nil { - return m.NodeName +func (x *JobIngressInfoEvent) GetNodeName() string { + if x != nil { + return x.NodeName } return "" } -func (m *JobIngressInfoEvent) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *JobIngressInfoEvent) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } -func (m *JobIngressInfoEvent) GetPodName() string { - if m != nil { - return m.PodName +func (x *JobIngressInfoEvent) GetPodName() string { + if x != nil { + return x.PodName } return "" } -func (m *JobIngressInfoEvent) GetPodNamespace() string { - if m != nil { - return m.PodNamespace +func (x *JobIngressInfoEvent) GetPodNamespace() string { + if x != nil { + return x.PodNamespace } return "" } -func (m *JobIngressInfoEvent) GetIngressAddresses() map[int32]string { - if m != nil { - return m.IngressAddresses +func (x *JobIngressInfoEvent) GetIngressAddresses() map[int32]string { + if x != nil { + return x.IngressAddresses } return nil } type JobUnableToScheduleEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"clusterId,omitempty"` - Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` - KubernetesId string `protobuf:"bytes,7,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetesId,omitempty"` - NodeName string `protobuf:"bytes,8,opt,name=node_name,json=nodeName,proto3" json:"nodeName,omitempty"` - PodNumber int32 `protobuf:"varint,9,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` - PodName string `protobuf:"bytes,10,opt,name=pod_name,json=podName,proto3" json:"podName,omitempty"` - PodNamespace string `protobuf:"bytes,11,opt,name=pod_namespace,json=podNamespace,proto3" json:"podNamespace,omitempty"` -} - -func (m *JobUnableToScheduleEvent) Reset() { *m = JobUnableToScheduleEvent{} } -func (m *JobUnableToScheduleEvent) String() string { return proto.CompactTextString(m) } -func (*JobUnableToScheduleEvent) ProtoMessage() {} -func (*JobUnableToScheduleEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{8} -} -func (m *JobUnableToScheduleEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobUnableToScheduleEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobUnableToScheduleEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` + KubernetesId string `protobuf:"bytes,7,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetes_id,omitempty"` + NodeName string `protobuf:"bytes,8,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + PodNumber int32 `protobuf:"varint,9,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` + PodName string `protobuf:"bytes,10,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` + PodNamespace string `protobuf:"bytes,11,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobUnableToScheduleEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobUnableToScheduleEvent.Merge(m, src) + +func (x *JobUnableToScheduleEvent) Reset() { + *x = JobUnableToScheduleEvent{} + mi := &file_pkg_api_event_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobUnableToScheduleEvent) XXX_Size() int { - return m.Size() + +func (x *JobUnableToScheduleEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobUnableToScheduleEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobUnableToScheduleEvent.DiscardUnknown(m) + +func (*JobUnableToScheduleEvent) ProtoMessage() {} + +func (x *JobUnableToScheduleEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobUnableToScheduleEvent proto.InternalMessageInfo +// Deprecated: Use JobUnableToScheduleEvent.ProtoReflect.Descriptor instead. +func (*JobUnableToScheduleEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{8} +} -func (m *JobUnableToScheduleEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobUnableToScheduleEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobUnableToScheduleEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobUnableToScheduleEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobUnableToScheduleEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobUnableToScheduleEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobUnableToScheduleEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobUnableToScheduleEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobUnableToScheduleEvent) GetClusterId() string { - if m != nil { - return m.ClusterId +func (x *JobUnableToScheduleEvent) GetClusterId() string { + if x != nil { + return x.ClusterId } return "" } -func (m *JobUnableToScheduleEvent) GetReason() string { - if m != nil { - return m.Reason +func (x *JobUnableToScheduleEvent) GetReason() string { + if x != nil { + return x.Reason } return "" } -func (m *JobUnableToScheduleEvent) GetKubernetesId() string { - if m != nil { - return m.KubernetesId +func (x *JobUnableToScheduleEvent) GetKubernetesId() string { + if x != nil { + return x.KubernetesId } return "" } -func (m *JobUnableToScheduleEvent) GetNodeName() string { - if m != nil { - return m.NodeName +func (x *JobUnableToScheduleEvent) GetNodeName() string { + if x != nil { + return x.NodeName } return "" } -func (m *JobUnableToScheduleEvent) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *JobUnableToScheduleEvent) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } -func (m *JobUnableToScheduleEvent) GetPodName() string { - if m != nil { - return m.PodName +func (x *JobUnableToScheduleEvent) GetPodName() string { + if x != nil { + return x.PodName } return "" } -func (m *JobUnableToScheduleEvent) GetPodNamespace() string { - if m != nil { - return m.PodNamespace +func (x *JobUnableToScheduleEvent) GetPodNamespace() string { + if x != nil { + return x.PodNamespace } return "" } type JobFailedEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"clusterId,omitempty"` - Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` - ExitCodes map[string]int32 `protobuf:"bytes,7,rep,name=exit_codes,json=exitCodes,proto3" json:"exitCodes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // Deprecated: Do not use. - KubernetesId string `protobuf:"bytes,8,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetesId,omitempty"` - NodeName string `protobuf:"bytes,9,opt,name=node_name,json=nodeName,proto3" json:"nodeName,omitempty"` - PodNumber int32 `protobuf:"varint,10,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` - PodName string `protobuf:"bytes,13,opt,name=pod_name,json=podName,proto3" json:"podName,omitempty"` - PodNamespace string `protobuf:"bytes,14,opt,name=pod_namespace,json=podNamespace,proto3" json:"podNamespace,omitempty"` - ContainerStatuses []*ContainerStatus `protobuf:"bytes,11,rep,name=container_statuses,json=containerStatuses,proto3" json:"containerStatuses,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` + // Deprecated: Marked as deprecated in pkg/api/event.proto. + ExitCodes map[string]int32 `protobuf:"bytes,7,rep,name=exit_codes,json=exitCodes,proto3" json:"exit_codes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` + KubernetesId string `protobuf:"bytes,8,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetes_id,omitempty"` + NodeName string `protobuf:"bytes,9,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + PodNumber int32 `protobuf:"varint,10,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` + PodName string `protobuf:"bytes,13,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` + PodNamespace string `protobuf:"bytes,14,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"` + ContainerStatuses []*ContainerStatus `protobuf:"bytes,11,rep,name=container_statuses,json=containerStatuses,proto3" json:"container_statuses,omitempty"` Cause Cause `protobuf:"varint,12,opt,name=cause,proto3,enum=api.Cause" json:"cause,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobFailedEvent) Reset() { *m = JobFailedEvent{} } -func (m *JobFailedEvent) String() string { return proto.CompactTextString(m) } -func (*JobFailedEvent) ProtoMessage() {} -func (*JobFailedEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{9} -} -func (m *JobFailedEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobFailedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobFailedEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobFailedEvent) Reset() { + *x = JobFailedEvent{} + mi := &file_pkg_api_event_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobFailedEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobFailedEvent.Merge(m, src) -} -func (m *JobFailedEvent) XXX_Size() int { - return m.Size() + +func (x *JobFailedEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobFailedEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobFailedEvent.DiscardUnknown(m) + +func (*JobFailedEvent) ProtoMessage() {} + +func (x *JobFailedEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobFailedEvent proto.InternalMessageInfo +// Deprecated: Use JobFailedEvent.ProtoReflect.Descriptor instead. +func (*JobFailedEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{9} +} -func (m *JobFailedEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobFailedEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobFailedEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobFailedEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobFailedEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobFailedEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobFailedEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobFailedEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobFailedEvent) GetClusterId() string { - if m != nil { - return m.ClusterId +func (x *JobFailedEvent) GetClusterId() string { + if x != nil { + return x.ClusterId } return "" } -func (m *JobFailedEvent) GetReason() string { - if m != nil { - return m.Reason +func (x *JobFailedEvent) GetReason() string { + if x != nil { + return x.Reason } return "" } -// Deprecated: Do not use. -func (m *JobFailedEvent) GetExitCodes() map[string]int32 { - if m != nil { - return m.ExitCodes +// Deprecated: Marked as deprecated in pkg/api/event.proto. +func (x *JobFailedEvent) GetExitCodes() map[string]int32 { + if x != nil { + return x.ExitCodes } return nil } -func (m *JobFailedEvent) GetKubernetesId() string { - if m != nil { - return m.KubernetesId +func (x *JobFailedEvent) GetKubernetesId() string { + if x != nil { + return x.KubernetesId } return "" } -func (m *JobFailedEvent) GetNodeName() string { - if m != nil { - return m.NodeName +func (x *JobFailedEvent) GetNodeName() string { + if x != nil { + return x.NodeName } return "" } -func (m *JobFailedEvent) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *JobFailedEvent) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } -func (m *JobFailedEvent) GetPodName() string { - if m != nil { - return m.PodName +func (x *JobFailedEvent) GetPodName() string { + if x != nil { + return x.PodName } return "" } -func (m *JobFailedEvent) GetPodNamespace() string { - if m != nil { - return m.PodNamespace +func (x *JobFailedEvent) GetPodNamespace() string { + if x != nil { + return x.PodNamespace } return "" } -func (m *JobFailedEvent) GetContainerStatuses() []*ContainerStatus { - if m != nil { - return m.ContainerStatuses +func (x *JobFailedEvent) GetContainerStatuses() []*ContainerStatus { + if x != nil { + return x.ContainerStatuses } return nil } -func (m *JobFailedEvent) GetCause() Cause { - if m != nil { - return m.Cause +func (x *JobFailedEvent) GetCause() Cause { + if x != nil { + return x.Cause } return Cause_Error } type JobPreemptingEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - Requestor string `protobuf:"bytes,5,opt,name=requestor,proto3" json:"requestor,omitempty"` - Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + Requestor string `protobuf:"bytes,5,opt,name=requestor,proto3" json:"requestor,omitempty"` + Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobPreemptingEvent) Reset() { *m = JobPreemptingEvent{} } -func (m *JobPreemptingEvent) String() string { return proto.CompactTextString(m) } -func (*JobPreemptingEvent) ProtoMessage() {} -func (*JobPreemptingEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{10} -} -func (m *JobPreemptingEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobPreemptingEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobPreemptingEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobPreemptingEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobPreemptingEvent.Merge(m, src) +func (x *JobPreemptingEvent) Reset() { + *x = JobPreemptingEvent{} + mi := &file_pkg_api_event_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobPreemptingEvent) XXX_Size() int { - return m.Size() + +func (x *JobPreemptingEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobPreemptingEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobPreemptingEvent.DiscardUnknown(m) + +func (*JobPreemptingEvent) ProtoMessage() {} + +func (x *JobPreemptingEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobPreemptingEvent proto.InternalMessageInfo +// Deprecated: Use JobPreemptingEvent.ProtoReflect.Descriptor instead. +func (*JobPreemptingEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{10} +} -func (m *JobPreemptingEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobPreemptingEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobPreemptingEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobPreemptingEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobPreemptingEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobPreemptingEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobPreemptingEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobPreemptingEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobPreemptingEvent) GetRequestor() string { - if m != nil { - return m.Requestor +func (x *JobPreemptingEvent) GetRequestor() string { + if x != nil { + return x.Requestor } return "" } -func (m *JobPreemptingEvent) GetReason() string { - if m != nil { - return m.Reason +func (x *JobPreemptingEvent) GetReason() string { + if x != nil { + return x.Reason } return "" } type JobPreemptedEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"clusterId,omitempty"` - RunId string `protobuf:"bytes,6,opt,name=run_id,json=runId,proto3" json:"runId,omitempty"` - PreemptiveJobId string `protobuf:"bytes,7,opt,name=preemptive_job_id,json=preemptiveJobId,proto3" json:"preemptiveJobId,omitempty"` - PreemptiveRunId string `protobuf:"bytes,8,opt,name=preemptive_run_id,json=preemptiveRunId,proto3" json:"preemptiveRunId,omitempty"` - Reason string `protobuf:"bytes,9,opt,name=reason,proto3" json:"reason,omitempty"` -} - -func (m *JobPreemptedEvent) Reset() { *m = JobPreemptedEvent{} } -func (m *JobPreemptedEvent) String() string { return proto.CompactTextString(m) } -func (*JobPreemptedEvent) ProtoMessage() {} -func (*JobPreemptedEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{11} -} -func (m *JobPreemptedEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobPreemptedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobPreemptedEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + RunId string `protobuf:"bytes,6,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` + PreemptiveJobId string `protobuf:"bytes,7,opt,name=preemptive_job_id,json=preemptiveJobId,proto3" json:"preemptive_job_id,omitempty"` + PreemptiveRunId string `protobuf:"bytes,8,opt,name=preemptive_run_id,json=preemptiveRunId,proto3" json:"preemptive_run_id,omitempty"` + Reason string `protobuf:"bytes,9,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobPreemptedEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobPreemptedEvent.Merge(m, src) + +func (x *JobPreemptedEvent) Reset() { + *x = JobPreemptedEvent{} + mi := &file_pkg_api_event_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobPreemptedEvent) XXX_Size() int { - return m.Size() + +func (x *JobPreemptedEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobPreemptedEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobPreemptedEvent.DiscardUnknown(m) + +func (*JobPreemptedEvent) ProtoMessage() {} + +func (x *JobPreemptedEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobPreemptedEvent proto.InternalMessageInfo +// Deprecated: Use JobPreemptedEvent.ProtoReflect.Descriptor instead. +func (*JobPreemptedEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{11} +} -func (m *JobPreemptedEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobPreemptedEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobPreemptedEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobPreemptedEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobPreemptedEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobPreemptedEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobPreemptedEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobPreemptedEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobPreemptedEvent) GetClusterId() string { - if m != nil { - return m.ClusterId +func (x *JobPreemptedEvent) GetClusterId() string { + if x != nil { + return x.ClusterId } return "" } -func (m *JobPreemptedEvent) GetRunId() string { - if m != nil { - return m.RunId +func (x *JobPreemptedEvent) GetRunId() string { + if x != nil { + return x.RunId } return "" } -func (m *JobPreemptedEvent) GetPreemptiveJobId() string { - if m != nil { - return m.PreemptiveJobId +func (x *JobPreemptedEvent) GetPreemptiveJobId() string { + if x != nil { + return x.PreemptiveJobId } return "" } -func (m *JobPreemptedEvent) GetPreemptiveRunId() string { - if m != nil { - return m.PreemptiveRunId +func (x *JobPreemptedEvent) GetPreemptiveRunId() string { + if x != nil { + return x.PreemptiveRunId } return "" } -func (m *JobPreemptedEvent) GetReason() string { - if m != nil { - return m.Reason +func (x *JobPreemptedEvent) GetReason() string { + if x != nil { + return x.Reason } return "" } type JobSucceededEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"clusterId,omitempty"` - KubernetesId string `protobuf:"bytes,6,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetesId,omitempty"` - NodeName string `protobuf:"bytes,7,opt,name=node_name,json=nodeName,proto3" json:"nodeName,omitempty"` - PodNumber int32 `protobuf:"varint,8,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` - PodName string `protobuf:"bytes,9,opt,name=pod_name,json=podName,proto3" json:"podName,omitempty"` - PodNamespace string `protobuf:"bytes,10,opt,name=pod_namespace,json=podNamespace,proto3" json:"podNamespace,omitempty"` -} - -func (m *JobSucceededEvent) Reset() { *m = JobSucceededEvent{} } -func (m *JobSucceededEvent) String() string { return proto.CompactTextString(m) } -func (*JobSucceededEvent) ProtoMessage() {} -func (*JobSucceededEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{12} -} -func (m *JobSucceededEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobSucceededEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobSucceededEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + KubernetesId string `protobuf:"bytes,6,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetes_id,omitempty"` + NodeName string `protobuf:"bytes,7,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + PodNumber int32 `protobuf:"varint,8,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` + PodName string `protobuf:"bytes,9,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` + PodNamespace string `protobuf:"bytes,10,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobSucceededEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobSucceededEvent.Merge(m, src) + +func (x *JobSucceededEvent) Reset() { + *x = JobSucceededEvent{} + mi := &file_pkg_api_event_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobSucceededEvent) XXX_Size() int { - return m.Size() + +func (x *JobSucceededEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobSucceededEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobSucceededEvent.DiscardUnknown(m) + +func (*JobSucceededEvent) ProtoMessage() {} + +func (x *JobSucceededEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobSucceededEvent proto.InternalMessageInfo +// Deprecated: Use JobSucceededEvent.ProtoReflect.Descriptor instead. +func (*JobSucceededEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{12} +} -func (m *JobSucceededEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobSucceededEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobSucceededEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobSucceededEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobSucceededEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobSucceededEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobSucceededEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobSucceededEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobSucceededEvent) GetClusterId() string { - if m != nil { - return m.ClusterId +func (x *JobSucceededEvent) GetClusterId() string { + if x != nil { + return x.ClusterId } return "" } -func (m *JobSucceededEvent) GetKubernetesId() string { - if m != nil { - return m.KubernetesId +func (x *JobSucceededEvent) GetKubernetesId() string { + if x != nil { + return x.KubernetesId } return "" } -func (m *JobSucceededEvent) GetNodeName() string { - if m != nil { - return m.NodeName +func (x *JobSucceededEvent) GetNodeName() string { + if x != nil { + return x.NodeName } return "" } -func (m *JobSucceededEvent) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *JobSucceededEvent) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } -func (m *JobSucceededEvent) GetPodName() string { - if m != nil { - return m.PodName +func (x *JobSucceededEvent) GetPodName() string { + if x != nil { + return x.PodName } return "" } -func (m *JobSucceededEvent) GetPodNamespace() string { - if m != nil { - return m.PodNamespace +func (x *JobSucceededEvent) GetPodNamespace() string { + if x != nil { + return x.PodNamespace } return "" } type JobUtilisationEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"clusterId,omitempty"` - KubernetesId string `protobuf:"bytes,6,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetesId,omitempty"` - MaxResourcesForPeriod map[string]*resource.Quantity `protobuf:"bytes,7,rep,name=MaxResourcesForPeriod,proto3" json:"MaxResourcesForPeriod,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - NodeName string `protobuf:"bytes,8,opt,name=node_name,json=nodeName,proto3" json:"nodeName,omitempty"` - PodNumber int32 `protobuf:"varint,9,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` - PodName string `protobuf:"bytes,10,opt,name=pod_name,json=podName,proto3" json:"podName,omitempty"` - PodNamespace string `protobuf:"bytes,11,opt,name=pod_namespace,json=podNamespace,proto3" json:"podNamespace,omitempty"` - TotalCumulativeUsage map[string]*resource.Quantity `protobuf:"bytes,12,rep,name=total_cumulative_usage,json=totalCumulativeUsage,proto3" json:"totalCumulativeUsage,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - AvgResourcesForPeriod map[string]*resource.Quantity `protobuf:"bytes,13,rep,name=AvgResourcesForPeriod,proto3" json:"AvgResourcesForPeriod,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (m *JobUtilisationEvent) Reset() { *m = JobUtilisationEvent{} } -func (m *JobUtilisationEvent) String() string { return proto.CompactTextString(m) } -func (*JobUtilisationEvent) ProtoMessage() {} -func (*JobUtilisationEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{13} -} -func (m *JobUtilisationEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobUtilisationEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobUtilisationEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + KubernetesId string `protobuf:"bytes,6,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetes_id,omitempty"` + MaxResourcesForPeriod map[string]*resource.Quantity `protobuf:"bytes,7,rep,name=MaxResourcesForPeriod,proto3" json:"MaxResourcesForPeriod,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + NodeName string `protobuf:"bytes,8,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + PodNumber int32 `protobuf:"varint,9,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` + PodName string `protobuf:"bytes,10,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` + PodNamespace string `protobuf:"bytes,11,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"` + TotalCumulativeUsage map[string]*resource.Quantity `protobuf:"bytes,12,rep,name=total_cumulative_usage,json=totalCumulativeUsage,proto3" json:"total_cumulative_usage,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + AvgResourcesForPeriod map[string]*resource.Quantity `protobuf:"bytes,13,rep,name=AvgResourcesForPeriod,proto3" json:"AvgResourcesForPeriod,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobUtilisationEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobUtilisationEvent.Merge(m, src) + +func (x *JobUtilisationEvent) Reset() { + *x = JobUtilisationEvent{} + mi := &file_pkg_api_event_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobUtilisationEvent) XXX_Size() int { - return m.Size() + +func (x *JobUtilisationEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobUtilisationEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobUtilisationEvent.DiscardUnknown(m) + +func (*JobUtilisationEvent) ProtoMessage() {} + +func (x *JobUtilisationEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobUtilisationEvent proto.InternalMessageInfo +// Deprecated: Use JobUtilisationEvent.ProtoReflect.Descriptor instead. +func (*JobUtilisationEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{13} +} -func (m *JobUtilisationEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobUtilisationEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobUtilisationEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobUtilisationEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobUtilisationEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobUtilisationEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobUtilisationEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobUtilisationEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobUtilisationEvent) GetClusterId() string { - if m != nil { - return m.ClusterId +func (x *JobUtilisationEvent) GetClusterId() string { + if x != nil { + return x.ClusterId } return "" } -func (m *JobUtilisationEvent) GetKubernetesId() string { - if m != nil { - return m.KubernetesId +func (x *JobUtilisationEvent) GetKubernetesId() string { + if x != nil { + return x.KubernetesId } return "" } -func (m *JobUtilisationEvent) GetMaxResourcesForPeriod() map[string]*resource.Quantity { - if m != nil { - return m.MaxResourcesForPeriod +func (x *JobUtilisationEvent) GetMaxResourcesForPeriod() map[string]*resource.Quantity { + if x != nil { + return x.MaxResourcesForPeriod } return nil } -func (m *JobUtilisationEvent) GetNodeName() string { - if m != nil { - return m.NodeName +func (x *JobUtilisationEvent) GetNodeName() string { + if x != nil { + return x.NodeName } return "" } -func (m *JobUtilisationEvent) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *JobUtilisationEvent) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } -func (m *JobUtilisationEvent) GetPodName() string { - if m != nil { - return m.PodName +func (x *JobUtilisationEvent) GetPodName() string { + if x != nil { + return x.PodName } return "" } -func (m *JobUtilisationEvent) GetPodNamespace() string { - if m != nil { - return m.PodNamespace +func (x *JobUtilisationEvent) GetPodNamespace() string { + if x != nil { + return x.PodNamespace } return "" } -func (m *JobUtilisationEvent) GetTotalCumulativeUsage() map[string]*resource.Quantity { - if m != nil { - return m.TotalCumulativeUsage +func (x *JobUtilisationEvent) GetTotalCumulativeUsage() map[string]*resource.Quantity { + if x != nil { + return x.TotalCumulativeUsage } return nil } -func (m *JobUtilisationEvent) GetAvgResourcesForPeriod() map[string]*resource.Quantity { - if m != nil { - return m.AvgResourcesForPeriod +func (x *JobUtilisationEvent) GetAvgResourcesForPeriod() map[string]*resource.Quantity { + if x != nil { + return x.AvgResourcesForPeriod } return nil } type JobReprioritizingEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - NewPriority float64 `protobuf:"fixed64,5,opt,name=new_priority,json=newPriority,proto3" json:"newPriority,omitempty"` - Requestor string `protobuf:"bytes,6,opt,name=requestor,proto3" json:"requestor,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + NewPriority float64 `protobuf:"fixed64,5,opt,name=new_priority,json=newPriority,proto3" json:"new_priority,omitempty"` + Requestor string `protobuf:"bytes,6,opt,name=requestor,proto3" json:"requestor,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobReprioritizingEvent) Reset() { *m = JobReprioritizingEvent{} } -func (m *JobReprioritizingEvent) String() string { return proto.CompactTextString(m) } -func (*JobReprioritizingEvent) ProtoMessage() {} -func (*JobReprioritizingEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{14} -} -func (m *JobReprioritizingEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobReprioritizingEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobReprioritizingEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobReprioritizingEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobReprioritizingEvent.Merge(m, src) +func (x *JobReprioritizingEvent) Reset() { + *x = JobReprioritizingEvent{} + mi := &file_pkg_api_event_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobReprioritizingEvent) XXX_Size() int { - return m.Size() + +func (x *JobReprioritizingEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobReprioritizingEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobReprioritizingEvent.DiscardUnknown(m) + +func (*JobReprioritizingEvent) ProtoMessage() {} + +func (x *JobReprioritizingEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobReprioritizingEvent proto.InternalMessageInfo +// Deprecated: Use JobReprioritizingEvent.ProtoReflect.Descriptor instead. +func (*JobReprioritizingEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{14} +} -func (m *JobReprioritizingEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobReprioritizingEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobReprioritizingEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobReprioritizingEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobReprioritizingEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobReprioritizingEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobReprioritizingEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobReprioritizingEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobReprioritizingEvent) GetNewPriority() float64 { - if m != nil { - return m.NewPriority +func (x *JobReprioritizingEvent) GetNewPriority() float64 { + if x != nil { + return x.NewPriority } return 0 } -func (m *JobReprioritizingEvent) GetRequestor() string { - if m != nil { - return m.Requestor +func (x *JobReprioritizingEvent) GetRequestor() string { + if x != nil { + return x.Requestor } return "" } type JobReprioritizedEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - NewPriority float64 `protobuf:"fixed64,5,opt,name=new_priority,json=newPriority,proto3" json:"newPriority,omitempty"` - Requestor string `protobuf:"bytes,6,opt,name=requestor,proto3" json:"requestor,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + NewPriority float64 `protobuf:"fixed64,5,opt,name=new_priority,json=newPriority,proto3" json:"new_priority,omitempty"` + Requestor string `protobuf:"bytes,6,opt,name=requestor,proto3" json:"requestor,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobReprioritizedEvent) Reset() { *m = JobReprioritizedEvent{} } -func (m *JobReprioritizedEvent) String() string { return proto.CompactTextString(m) } -func (*JobReprioritizedEvent) ProtoMessage() {} -func (*JobReprioritizedEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{15} -} -func (m *JobReprioritizedEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobReprioritizedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobReprioritizedEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobReprioritizedEvent) Reset() { + *x = JobReprioritizedEvent{} + mi := &file_pkg_api_event_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobReprioritizedEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobReprioritizedEvent.Merge(m, src) -} -func (m *JobReprioritizedEvent) XXX_Size() int { - return m.Size() + +func (x *JobReprioritizedEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobReprioritizedEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobReprioritizedEvent.DiscardUnknown(m) + +func (*JobReprioritizedEvent) ProtoMessage() {} + +func (x *JobReprioritizedEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobReprioritizedEvent proto.InternalMessageInfo +// Deprecated: Use JobReprioritizedEvent.ProtoReflect.Descriptor instead. +func (*JobReprioritizedEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{15} +} -func (m *JobReprioritizedEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobReprioritizedEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobReprioritizedEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobReprioritizedEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobReprioritizedEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobReprioritizedEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobReprioritizedEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobReprioritizedEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobReprioritizedEvent) GetNewPriority() float64 { - if m != nil { - return m.NewPriority +func (x *JobReprioritizedEvent) GetNewPriority() float64 { + if x != nil { + return x.NewPriority } return 0 } -func (m *JobReprioritizedEvent) GetRequestor() string { - if m != nil { - return m.Requestor +func (x *JobReprioritizedEvent) GetRequestor() string { + if x != nil { + return x.Requestor } return "" } type JobCancellingEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - Requestor string `protobuf:"bytes,5,opt,name=requestor,proto3" json:"requestor,omitempty"` - Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + Requestor string `protobuf:"bytes,5,opt,name=requestor,proto3" json:"requestor,omitempty"` + Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobCancellingEvent) Reset() { *m = JobCancellingEvent{} } -func (m *JobCancellingEvent) String() string { return proto.CompactTextString(m) } -func (*JobCancellingEvent) ProtoMessage() {} -func (*JobCancellingEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{16} -} -func (m *JobCancellingEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobCancellingEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobCancellingEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobCancellingEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobCancellingEvent.Merge(m, src) +func (x *JobCancellingEvent) Reset() { + *x = JobCancellingEvent{} + mi := &file_pkg_api_event_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobCancellingEvent) XXX_Size() int { - return m.Size() + +func (x *JobCancellingEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobCancellingEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobCancellingEvent.DiscardUnknown(m) + +func (*JobCancellingEvent) ProtoMessage() {} + +func (x *JobCancellingEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobCancellingEvent proto.InternalMessageInfo +// Deprecated: Use JobCancellingEvent.ProtoReflect.Descriptor instead. +func (*JobCancellingEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{16} +} -func (m *JobCancellingEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobCancellingEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobCancellingEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobCancellingEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobCancellingEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobCancellingEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobCancellingEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobCancellingEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobCancellingEvent) GetRequestor() string { - if m != nil { - return m.Requestor +func (x *JobCancellingEvent) GetRequestor() string { + if x != nil { + return x.Requestor } return "" } -func (m *JobCancellingEvent) GetReason() string { - if m != nil { - return m.Reason +func (x *JobCancellingEvent) GetReason() string { + if x != nil { + return x.Reason } return "" } type JobCancelledEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - Requestor string `protobuf:"bytes,5,opt,name=requestor,proto3" json:"requestor,omitempty"` - Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + Requestor string `protobuf:"bytes,5,opt,name=requestor,proto3" json:"requestor,omitempty"` + Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobCancelledEvent) Reset() { *m = JobCancelledEvent{} } -func (m *JobCancelledEvent) String() string { return proto.CompactTextString(m) } -func (*JobCancelledEvent) ProtoMessage() {} -func (*JobCancelledEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{17} -} -func (m *JobCancelledEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobCancelledEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobCancelledEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobCancelledEvent) Reset() { + *x = JobCancelledEvent{} + mi := &file_pkg_api_event_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobCancelledEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobCancelledEvent.Merge(m, src) -} -func (m *JobCancelledEvent) XXX_Size() int { - return m.Size() + +func (x *JobCancelledEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobCancelledEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobCancelledEvent.DiscardUnknown(m) + +func (*JobCancelledEvent) ProtoMessage() {} + +func (x *JobCancelledEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobCancelledEvent proto.InternalMessageInfo +// Deprecated: Use JobCancelledEvent.ProtoReflect.Descriptor instead. +func (*JobCancelledEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{17} +} -func (m *JobCancelledEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobCancelledEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobCancelledEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobCancelledEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobCancelledEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobCancelledEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobCancelledEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobCancelledEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobCancelledEvent) GetRequestor() string { - if m != nil { - return m.Requestor +func (x *JobCancelledEvent) GetRequestor() string { + if x != nil { + return x.Requestor } return "" } -func (m *JobCancelledEvent) GetReason() string { - if m != nil { - return m.Reason +func (x *JobCancelledEvent) GetReason() string { + if x != nil { + return x.Reason } return "" } type JobTerminatedEvent struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Created *types.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` - ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"clusterId,omitempty"` - KubernetesId string `protobuf:"bytes,6,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetesId,omitempty"` - PodNumber int32 `protobuf:"varint,7,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` - PodName string `protobuf:"bytes,9,opt,name=pod_name,json=podName,proto3" json:"podName,omitempty"` - PodNamespace string `protobuf:"bytes,10,opt,name=pod_namespace,json=podNamespace,proto3" json:"podNamespace,omitempty"` - Reason string `protobuf:"bytes,8,opt,name=reason,proto3" json:"reason,omitempty"` -} - -func (m *JobTerminatedEvent) Reset() { *m = JobTerminatedEvent{} } -func (m *JobTerminatedEvent) String() string { return proto.CompactTextString(m) } -func (*JobTerminatedEvent) ProtoMessage() {} -func (*JobTerminatedEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{18} -} -func (m *JobTerminatedEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobTerminatedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobTerminatedEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` + ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + KubernetesId string `protobuf:"bytes,6,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetes_id,omitempty"` + PodNumber int32 `protobuf:"varint,7,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` + PodName string `protobuf:"bytes,9,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` + PodNamespace string `protobuf:"bytes,10,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"` + Reason string `protobuf:"bytes,8,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobTerminatedEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobTerminatedEvent.Merge(m, src) + +func (x *JobTerminatedEvent) Reset() { + *x = JobTerminatedEvent{} + mi := &file_pkg_api_event_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobTerminatedEvent) XXX_Size() int { - return m.Size() + +func (x *JobTerminatedEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobTerminatedEvent) XXX_DiscardUnknown() { - xxx_messageInfo_JobTerminatedEvent.DiscardUnknown(m) + +func (*JobTerminatedEvent) ProtoMessage() {} + +func (x *JobTerminatedEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobTerminatedEvent proto.InternalMessageInfo +// Deprecated: Use JobTerminatedEvent.ProtoReflect.Descriptor instead. +func (*JobTerminatedEvent) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{18} +} -func (m *JobTerminatedEvent) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobTerminatedEvent) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobTerminatedEvent) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobTerminatedEvent) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobTerminatedEvent) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobTerminatedEvent) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobTerminatedEvent) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *JobTerminatedEvent) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *JobTerminatedEvent) GetClusterId() string { - if m != nil { - return m.ClusterId +func (x *JobTerminatedEvent) GetClusterId() string { + if x != nil { + return x.ClusterId } return "" } -func (m *JobTerminatedEvent) GetKubernetesId() string { - if m != nil { - return m.KubernetesId +func (x *JobTerminatedEvent) GetKubernetesId() string { + if x != nil { + return x.KubernetesId } return "" } -func (m *JobTerminatedEvent) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *JobTerminatedEvent) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } -func (m *JobTerminatedEvent) GetPodName() string { - if m != nil { - return m.PodName +func (x *JobTerminatedEvent) GetPodName() string { + if x != nil { + return x.PodName } return "" } -func (m *JobTerminatedEvent) GetPodNamespace() string { - if m != nil { - return m.PodNamespace +func (x *JobTerminatedEvent) GetPodNamespace() string { + if x != nil { + return x.PodNamespace } return "" } -func (m *JobTerminatedEvent) GetReason() string { - if m != nil { - return m.Reason +func (x *JobTerminatedEvent) GetReason() string { + if x != nil { + return x.Reason } return "" } type EventMessage struct { + state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Events: + // // *EventMessage_Submitted // *EventMessage_Queued // *EventMessage_Leased @@ -2002,12011 +2021,1275 @@ type EventMessage struct { // *EventMessage_Reprioritizing // *EventMessage_Preempted // *EventMessage_Preempting - Events isEventMessage_Events `protobuf_oneof:"events"` + Events isEventMessage_Events `protobuf_oneof:"events"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *EventMessage) Reset() { *m = EventMessage{} } -func (m *EventMessage) String() string { return proto.CompactTextString(m) } -func (*EventMessage) ProtoMessage() {} -func (*EventMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{19} -} -func (m *EventMessage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventMessage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *EventMessage) Reset() { + *x = EventMessage{} + mi := &file_pkg_api_event_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EventMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventMessage) ProtoMessage() {} + +func (x *EventMessage) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *EventMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventMessage.Merge(m, src) + +// Deprecated: Use EventMessage.ProtoReflect.Descriptor instead. +func (*EventMessage) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{19} } -func (m *EventMessage) XXX_Size() int { - return m.Size() + +func (x *EventMessage) GetEvents() isEventMessage_Events { + if x != nil { + return x.Events + } + return nil } -func (m *EventMessage) XXX_DiscardUnknown() { - xxx_messageInfo_EventMessage.DiscardUnknown(m) + +func (x *EventMessage) GetSubmitted() *JobSubmittedEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_Submitted); ok { + return x.Submitted + } + } + return nil } -var xxx_messageInfo_EventMessage proto.InternalMessageInfo +func (x *EventMessage) GetQueued() *JobQueuedEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_Queued); ok { + return x.Queued + } + } + return nil +} -type isEventMessage_Events interface { - isEventMessage_Events() - MarshalTo([]byte) (int, error) - Size() int +func (x *EventMessage) GetLeased() *JobLeasedEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_Leased); ok { + return x.Leased + } + } + return nil } -type EventMessage_Submitted struct { - Submitted *JobSubmittedEvent `protobuf:"bytes,1,opt,name=submitted,proto3,oneof" json:"submitted,omitempty"` +func (x *EventMessage) GetLeaseReturned() *JobLeaseReturnedEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_LeaseReturned); ok { + return x.LeaseReturned + } + } + return nil } -type EventMessage_Queued struct { - Queued *JobQueuedEvent `protobuf:"bytes,2,opt,name=queued,proto3,oneof" json:"queued,omitempty"` -} -type EventMessage_Leased struct { - Leased *JobLeasedEvent `protobuf:"bytes,3,opt,name=leased,proto3,oneof" json:"leased,omitempty"` -} -type EventMessage_LeaseReturned struct { - LeaseReturned *JobLeaseReturnedEvent `protobuf:"bytes,4,opt,name=lease_returned,json=leaseReturned,proto3,oneof" json:"leaseReturned,omitempty"` -} -type EventMessage_LeaseExpired struct { - LeaseExpired *JobLeaseExpiredEvent `protobuf:"bytes,5,opt,name=lease_expired,json=leaseExpired,proto3,oneof" json:"leaseExpired,omitempty"` -} -type EventMessage_Pending struct { - Pending *JobPendingEvent `protobuf:"bytes,6,opt,name=pending,proto3,oneof" json:"pending,omitempty"` -} -type EventMessage_Running struct { - Running *JobRunningEvent `protobuf:"bytes,7,opt,name=running,proto3,oneof" json:"running,omitempty"` -} -type EventMessage_UnableToSchedule struct { - UnableToSchedule *JobUnableToScheduleEvent `protobuf:"bytes,8,opt,name=unable_to_schedule,json=unableToSchedule,proto3,oneof" json:"unableToSchedule,omitempty"` -} -type EventMessage_Failed struct { - Failed *JobFailedEvent `protobuf:"bytes,9,opt,name=failed,proto3,oneof" json:"failed,omitempty"` -} -type EventMessage_Succeeded struct { - Succeeded *JobSucceededEvent `protobuf:"bytes,10,opt,name=succeeded,proto3,oneof" json:"succeeded,omitempty"` -} -type EventMessage_Reprioritized struct { - Reprioritized *JobReprioritizedEvent `protobuf:"bytes,11,opt,name=reprioritized,proto3,oneof" json:"reprioritized,omitempty"` -} -type EventMessage_Cancelling struct { - Cancelling *JobCancellingEvent `protobuf:"bytes,12,opt,name=cancelling,proto3,oneof" json:"cancelling,omitempty"` -} -type EventMessage_Cancelled struct { - Cancelled *JobCancelledEvent `protobuf:"bytes,13,opt,name=cancelled,proto3,oneof" json:"cancelled,omitempty"` -} -type EventMessage_Utilisation struct { - Utilisation *JobUtilisationEvent `protobuf:"bytes,15,opt,name=utilisation,proto3,oneof" json:"utilisation,omitempty"` -} -type EventMessage_IngressInfo struct { - IngressInfo *JobIngressInfoEvent `protobuf:"bytes,17,opt,name=ingress_info,json=ingressInfo,proto3,oneof" json:"ingressInfo,omitempty"` -} -type EventMessage_Reprioritizing struct { - Reprioritizing *JobReprioritizingEvent `protobuf:"bytes,18,opt,name=reprioritizing,proto3,oneof" json:"reprioritizing,omitempty"` -} -type EventMessage_Preempted struct { - Preempted *JobPreemptedEvent `protobuf:"bytes,21,opt,name=preempted,proto3,oneof" json:"preempted,omitempty"` -} -type EventMessage_Preempting struct { - Preempting *JobPreemptingEvent `protobuf:"bytes,22,opt,name=preempting,proto3,oneof" json:"preempting,omitempty"` + +func (x *EventMessage) GetLeaseExpired() *JobLeaseExpiredEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_LeaseExpired); ok { + return x.LeaseExpired + } + } + return nil } -func (*EventMessage_Submitted) isEventMessage_Events() {} -func (*EventMessage_Queued) isEventMessage_Events() {} -func (*EventMessage_Leased) isEventMessage_Events() {} -func (*EventMessage_LeaseReturned) isEventMessage_Events() {} -func (*EventMessage_LeaseExpired) isEventMessage_Events() {} -func (*EventMessage_Pending) isEventMessage_Events() {} -func (*EventMessage_Running) isEventMessage_Events() {} -func (*EventMessage_UnableToSchedule) isEventMessage_Events() {} -func (*EventMessage_Failed) isEventMessage_Events() {} -func (*EventMessage_Succeeded) isEventMessage_Events() {} -func (*EventMessage_Reprioritized) isEventMessage_Events() {} -func (*EventMessage_Cancelling) isEventMessage_Events() {} -func (*EventMessage_Cancelled) isEventMessage_Events() {} -func (*EventMessage_Utilisation) isEventMessage_Events() {} -func (*EventMessage_IngressInfo) isEventMessage_Events() {} -func (*EventMessage_Reprioritizing) isEventMessage_Events() {} -func (*EventMessage_Preempted) isEventMessage_Events() {} -func (*EventMessage_Preempting) isEventMessage_Events() {} - -func (m *EventMessage) GetEvents() isEventMessage_Events { - if m != nil { - return m.Events +func (x *EventMessage) GetPending() *JobPendingEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_Pending); ok { + return x.Pending + } } return nil } -func (m *EventMessage) GetSubmitted() *JobSubmittedEvent { - if x, ok := m.GetEvents().(*EventMessage_Submitted); ok { - return x.Submitted +func (x *EventMessage) GetRunning() *JobRunningEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_Running); ok { + return x.Running + } } return nil } -func (m *EventMessage) GetQueued() *JobQueuedEvent { - if x, ok := m.GetEvents().(*EventMessage_Queued); ok { - return x.Queued +func (x *EventMessage) GetUnableToSchedule() *JobUnableToScheduleEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_UnableToSchedule); ok { + return x.UnableToSchedule + } } return nil } -func (m *EventMessage) GetLeased() *JobLeasedEvent { - if x, ok := m.GetEvents().(*EventMessage_Leased); ok { - return x.Leased +func (x *EventMessage) GetFailed() *JobFailedEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_Failed); ok { + return x.Failed + } } return nil } -func (m *EventMessage) GetLeaseReturned() *JobLeaseReturnedEvent { - if x, ok := m.GetEvents().(*EventMessage_LeaseReturned); ok { - return x.LeaseReturned +func (x *EventMessage) GetSucceeded() *JobSucceededEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_Succeeded); ok { + return x.Succeeded + } } return nil } -func (m *EventMessage) GetLeaseExpired() *JobLeaseExpiredEvent { - if x, ok := m.GetEvents().(*EventMessage_LeaseExpired); ok { - return x.LeaseExpired +func (x *EventMessage) GetReprioritized() *JobReprioritizedEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_Reprioritized); ok { + return x.Reprioritized + } } return nil } -func (m *EventMessage) GetPending() *JobPendingEvent { - if x, ok := m.GetEvents().(*EventMessage_Pending); ok { - return x.Pending +func (x *EventMessage) GetCancelling() *JobCancellingEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_Cancelling); ok { + return x.Cancelling + } } return nil } -func (m *EventMessage) GetRunning() *JobRunningEvent { - if x, ok := m.GetEvents().(*EventMessage_Running); ok { - return x.Running +func (x *EventMessage) GetCancelled() *JobCancelledEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_Cancelled); ok { + return x.Cancelled + } } return nil } -func (m *EventMessage) GetUnableToSchedule() *JobUnableToScheduleEvent { - if x, ok := m.GetEvents().(*EventMessage_UnableToSchedule); ok { - return x.UnableToSchedule +func (x *EventMessage) GetUtilisation() *JobUtilisationEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_Utilisation); ok { + return x.Utilisation + } } return nil } -func (m *EventMessage) GetFailed() *JobFailedEvent { - if x, ok := m.GetEvents().(*EventMessage_Failed); ok { - return x.Failed +func (x *EventMessage) GetIngressInfo() *JobIngressInfoEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_IngressInfo); ok { + return x.IngressInfo + } } return nil } -func (m *EventMessage) GetSucceeded() *JobSucceededEvent { - if x, ok := m.GetEvents().(*EventMessage_Succeeded); ok { - return x.Succeeded +func (x *EventMessage) GetReprioritizing() *JobReprioritizingEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_Reprioritizing); ok { + return x.Reprioritizing + } } return nil } -func (m *EventMessage) GetReprioritized() *JobReprioritizedEvent { - if x, ok := m.GetEvents().(*EventMessage_Reprioritized); ok { - return x.Reprioritized +func (x *EventMessage) GetPreempted() *JobPreemptedEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_Preempted); ok { + return x.Preempted + } } return nil } -func (m *EventMessage) GetCancelling() *JobCancellingEvent { - if x, ok := m.GetEvents().(*EventMessage_Cancelling); ok { - return x.Cancelling +func (x *EventMessage) GetPreempting() *JobPreemptingEvent { + if x != nil { + if x, ok := x.Events.(*EventMessage_Preempting); ok { + return x.Preempting + } } return nil } -func (m *EventMessage) GetCancelled() *JobCancelledEvent { - if x, ok := m.GetEvents().(*EventMessage_Cancelled); ok { - return x.Cancelled - } - return nil +type isEventMessage_Events interface { + isEventMessage_Events() } -func (m *EventMessage) GetUtilisation() *JobUtilisationEvent { - if x, ok := m.GetEvents().(*EventMessage_Utilisation); ok { - return x.Utilisation - } - return nil +type EventMessage_Submitted struct { + Submitted *JobSubmittedEvent `protobuf:"bytes,1,opt,name=submitted,proto3,oneof"` } -func (m *EventMessage) GetIngressInfo() *JobIngressInfoEvent { - if x, ok := m.GetEvents().(*EventMessage_IngressInfo); ok { - return x.IngressInfo - } - return nil +type EventMessage_Queued struct { + Queued *JobQueuedEvent `protobuf:"bytes,2,opt,name=queued,proto3,oneof"` } -func (m *EventMessage) GetReprioritizing() *JobReprioritizingEvent { - if x, ok := m.GetEvents().(*EventMessage_Reprioritizing); ok { - return x.Reprioritizing - } - return nil +type EventMessage_Leased struct { + Leased *JobLeasedEvent `protobuf:"bytes,3,opt,name=leased,proto3,oneof"` } -func (m *EventMessage) GetPreempted() *JobPreemptedEvent { - if x, ok := m.GetEvents().(*EventMessage_Preempted); ok { - return x.Preempted - } - return nil +type EventMessage_LeaseReturned struct { + LeaseReturned *JobLeaseReturnedEvent `protobuf:"bytes,4,opt,name=lease_returned,json=leaseReturned,proto3,oneof"` } -func (m *EventMessage) GetPreempting() *JobPreemptingEvent { - if x, ok := m.GetEvents().(*EventMessage_Preempting); ok { - return x.Preempting - } - return nil +type EventMessage_LeaseExpired struct { + LeaseExpired *JobLeaseExpiredEvent `protobuf:"bytes,5,opt,name=lease_expired,json=leaseExpired,proto3,oneof"` } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*EventMessage) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*EventMessage_Submitted)(nil), - (*EventMessage_Queued)(nil), - (*EventMessage_Leased)(nil), - (*EventMessage_LeaseReturned)(nil), - (*EventMessage_LeaseExpired)(nil), - (*EventMessage_Pending)(nil), - (*EventMessage_Running)(nil), - (*EventMessage_UnableToSchedule)(nil), - (*EventMessage_Failed)(nil), - (*EventMessage_Succeeded)(nil), - (*EventMessage_Reprioritized)(nil), - (*EventMessage_Cancelling)(nil), - (*EventMessage_Cancelled)(nil), - (*EventMessage_Utilisation)(nil), - (*EventMessage_IngressInfo)(nil), - (*EventMessage_Reprioritizing)(nil), - (*EventMessage_Preempted)(nil), - (*EventMessage_Preempting)(nil), - } +type EventMessage_Pending struct { + Pending *JobPendingEvent `protobuf:"bytes,6,opt,name=pending,proto3,oneof"` } -type ContainerStatus struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - ExitCode int32 `protobuf:"varint,2,opt,name=exitCode,proto3" json:"exitCode,omitempty"` - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` - Cause Cause `protobuf:"varint,5,opt,name=cause,proto3,enum=api.Cause" json:"cause,omitempty"` +type EventMessage_Running struct { + Running *JobRunningEvent `protobuf:"bytes,7,opt,name=running,proto3,oneof"` } -func (m *ContainerStatus) Reset() { *m = ContainerStatus{} } -func (m *ContainerStatus) String() string { return proto.CompactTextString(m) } -func (*ContainerStatus) ProtoMessage() {} -func (*ContainerStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{20} -} -func (m *ContainerStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContainerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContainerStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ContainerStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContainerStatus.Merge(m, src) -} -func (m *ContainerStatus) XXX_Size() int { - return m.Size() -} -func (m *ContainerStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ContainerStatus.DiscardUnknown(m) +type EventMessage_UnableToSchedule struct { + UnableToSchedule *JobUnableToScheduleEvent `protobuf:"bytes,8,opt,name=unable_to_schedule,json=unableToSchedule,proto3,oneof"` } -var xxx_messageInfo_ContainerStatus proto.InternalMessageInfo - -func (m *ContainerStatus) GetName() string { - if m != nil { - return m.Name - } - return "" +type EventMessage_Failed struct { + Failed *JobFailedEvent `protobuf:"bytes,9,opt,name=failed,proto3,oneof"` } -func (m *ContainerStatus) GetExitCode() int32 { - if m != nil { - return m.ExitCode - } - return 0 +type EventMessage_Succeeded struct { + Succeeded *JobSucceededEvent `protobuf:"bytes,10,opt,name=succeeded,proto3,oneof"` } -func (m *ContainerStatus) GetMessage() string { - if m != nil { - return m.Message - } - return "" +type EventMessage_Reprioritized struct { + Reprioritized *JobReprioritizedEvent `protobuf:"bytes,11,opt,name=reprioritized,proto3,oneof"` } -func (m *ContainerStatus) GetReason() string { - if m != nil { - return m.Reason - } - return "" +type EventMessage_Cancelling struct { + Cancelling *JobCancellingEvent `protobuf:"bytes,12,opt,name=cancelling,proto3,oneof"` } -func (m *ContainerStatus) GetCause() Cause { - if m != nil { - return m.Cause - } - return Cause_Error +type EventMessage_Cancelled struct { + Cancelled *JobCancelledEvent `protobuf:"bytes,13,opt,name=cancelled,proto3,oneof"` } -// swagger:model -type EventStreamMessage struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Message *EventMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` +type EventMessage_Utilisation struct { + Utilisation *JobUtilisationEvent `protobuf:"bytes,15,opt,name=utilisation,proto3,oneof"` } -func (m *EventStreamMessage) Reset() { *m = EventStreamMessage{} } -func (m *EventStreamMessage) String() string { return proto.CompactTextString(m) } -func (*EventStreamMessage) ProtoMessage() {} -func (*EventStreamMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{21} -} -func (m *EventStreamMessage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventStreamMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventStreamMessage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +type EventMessage_IngressInfo struct { + IngressInfo *JobIngressInfoEvent `protobuf:"bytes,17,opt,name=ingress_info,json=ingressInfo,proto3,oneof"` } -func (m *EventStreamMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventStreamMessage.Merge(m, src) + +type EventMessage_Reprioritizing struct { + Reprioritizing *JobReprioritizingEvent `protobuf:"bytes,18,opt,name=reprioritizing,proto3,oneof"` } -func (m *EventStreamMessage) XXX_Size() int { - return m.Size() + +type EventMessage_Preempted struct { + Preempted *JobPreemptedEvent `protobuf:"bytes,21,opt,name=preempted,proto3,oneof"` } -func (m *EventStreamMessage) XXX_DiscardUnknown() { - xxx_messageInfo_EventStreamMessage.DiscardUnknown(m) + +type EventMessage_Preempting struct { + Preempting *JobPreemptingEvent `protobuf:"bytes,22,opt,name=preempting,proto3,oneof"` } -var xxx_messageInfo_EventStreamMessage proto.InternalMessageInfo +func (*EventMessage_Submitted) isEventMessage_Events() {} -func (m *EventStreamMessage) GetId() string { - if m != nil { - return m.Id - } - return "" -} +func (*EventMessage_Queued) isEventMessage_Events() {} -func (m *EventStreamMessage) GetMessage() *EventMessage { - if m != nil { - return m.Message - } - return nil -} +func (*EventMessage_Leased) isEventMessage_Events() {} -// swagger:model -type JobSetRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Watch bool `protobuf:"varint,2,opt,name=watch,proto3" json:"watch,omitempty"` - FromMessageId string `protobuf:"bytes,3,opt,name=from_message_id,json=fromMessageId,proto3" json:"fromMessageId,omitempty"` - Queue string `protobuf:"bytes,4,opt,name=queue,proto3" json:"queue,omitempty"` - ErrorIfMissing bool `protobuf:"varint,5,opt,name=errorIfMissing,proto3" json:"errorIfMissing,omitempty"` -} +func (*EventMessage_LeaseReturned) isEventMessage_Events() {} -func (m *JobSetRequest) Reset() { *m = JobSetRequest{} } -func (m *JobSetRequest) String() string { return proto.CompactTextString(m) } -func (*JobSetRequest) ProtoMessage() {} -func (*JobSetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{22} -} -func (m *JobSetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobSetRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobSetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobSetRequest.Merge(m, src) -} -func (m *JobSetRequest) XXX_Size() int { - return m.Size() -} -func (m *JobSetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_JobSetRequest.DiscardUnknown(m) -} +func (*EventMessage_LeaseExpired) isEventMessage_Events() {} -var xxx_messageInfo_JobSetRequest proto.InternalMessageInfo +func (*EventMessage_Pending) isEventMessage_Events() {} -func (m *JobSetRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} +func (*EventMessage_Running) isEventMessage_Events() {} -func (m *JobSetRequest) GetWatch() bool { - if m != nil { - return m.Watch - } - return false -} +func (*EventMessage_UnableToSchedule) isEventMessage_Events() {} -func (m *JobSetRequest) GetFromMessageId() string { - if m != nil { - return m.FromMessageId - } - return "" -} +func (*EventMessage_Failed) isEventMessage_Events() {} -func (m *JobSetRequest) GetQueue() string { - if m != nil { - return m.Queue - } - return "" +func (*EventMessage_Succeeded) isEventMessage_Events() {} + +func (*EventMessage_Reprioritized) isEventMessage_Events() {} + +func (*EventMessage_Cancelling) isEventMessage_Events() {} + +func (*EventMessage_Cancelled) isEventMessage_Events() {} + +func (*EventMessage_Utilisation) isEventMessage_Events() {} + +func (*EventMessage_IngressInfo) isEventMessage_Events() {} + +func (*EventMessage_Reprioritizing) isEventMessage_Events() {} + +func (*EventMessage_Preempted) isEventMessage_Events() {} + +func (*EventMessage_Preempting) isEventMessage_Events() {} + +type ContainerStatus struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ExitCode int32 `protobuf:"varint,2,opt,name=exitCode,proto3" json:"exitCode,omitempty"` + Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + Cause Cause `protobuf:"varint,5,opt,name=cause,proto3,enum=api.Cause" json:"cause,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobSetRequest) GetErrorIfMissing() bool { - if m != nil { - return m.ErrorIfMissing - } - return false +func (x *ContainerStatus) Reset() { + *x = ContainerStatus{} + mi := &file_pkg_api_event_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -type WatchRequest struct { - Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId,proto3" json:"fromId,omitempty"` +func (x *ContainerStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WatchRequest) Reset() { *m = WatchRequest{} } -func (m *WatchRequest) String() string { return proto.CompactTextString(m) } -func (*WatchRequest) ProtoMessage() {} -func (*WatchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7758595c3bb8cf56, []int{23} -} -func (m *WatchRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WatchRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*ContainerStatus) ProtoMessage() {} + +func (x *ContainerStatus) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *WatchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WatchRequest.Merge(m, src) -} -func (m *WatchRequest) XXX_Size() int { - return m.Size() -} -func (m *WatchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WatchRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_WatchRequest proto.InternalMessageInfo +// Deprecated: Use ContainerStatus.ProtoReflect.Descriptor instead. +func (*ContainerStatus) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{20} +} -func (m *WatchRequest) GetQueue() string { - if m != nil { - return m.Queue +func (x *ContainerStatus) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *WatchRequest) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *ContainerStatus) GetExitCode() int32 { + if x != nil { + return x.ExitCode } - return "" + return 0 } -func (m *WatchRequest) GetFromId() string { - if m != nil { - return m.FromId +func (x *ContainerStatus) GetMessage() string { + if x != nil { + return x.Message } return "" } -func init() { - proto.RegisterEnum("api.Cause", Cause_name, Cause_value) - proto.RegisterType((*JobSubmittedEvent)(nil), "api.JobSubmittedEvent") - proto.RegisterType((*JobQueuedEvent)(nil), "api.JobQueuedEvent") - proto.RegisterType((*JobLeasedEvent)(nil), "api.JobLeasedEvent") - proto.RegisterType((*JobLeaseReturnedEvent)(nil), "api.JobLeaseReturnedEvent") - proto.RegisterType((*JobLeaseExpiredEvent)(nil), "api.JobLeaseExpiredEvent") - proto.RegisterType((*JobPendingEvent)(nil), "api.JobPendingEvent") - proto.RegisterType((*JobRunningEvent)(nil), "api.JobRunningEvent") - proto.RegisterType((*JobIngressInfoEvent)(nil), "api.JobIngressInfoEvent") - proto.RegisterMapType((map[int32]string)(nil), "api.JobIngressInfoEvent.IngressAddressesEntry") - proto.RegisterType((*JobUnableToScheduleEvent)(nil), "api.JobUnableToScheduleEvent") - proto.RegisterType((*JobFailedEvent)(nil), "api.JobFailedEvent") - proto.RegisterMapType((map[string]int32)(nil), "api.JobFailedEvent.ExitCodesEntry") - proto.RegisterType((*JobPreemptingEvent)(nil), "api.JobPreemptingEvent") - proto.RegisterType((*JobPreemptedEvent)(nil), "api.JobPreemptedEvent") - proto.RegisterType((*JobSucceededEvent)(nil), "api.JobSucceededEvent") - proto.RegisterType((*JobUtilisationEvent)(nil), "api.JobUtilisationEvent") - proto.RegisterMapType((map[string]*resource.Quantity)(nil), "api.JobUtilisationEvent.AvgResourcesForPeriodEntry") - proto.RegisterMapType((map[string]*resource.Quantity)(nil), "api.JobUtilisationEvent.MaxResourcesForPeriodEntry") - proto.RegisterMapType((map[string]*resource.Quantity)(nil), "api.JobUtilisationEvent.TotalCumulativeUsageEntry") - proto.RegisterType((*JobReprioritizingEvent)(nil), "api.JobReprioritizingEvent") - proto.RegisterType((*JobReprioritizedEvent)(nil), "api.JobReprioritizedEvent") - proto.RegisterType((*JobCancellingEvent)(nil), "api.JobCancellingEvent") - proto.RegisterType((*JobCancelledEvent)(nil), "api.JobCancelledEvent") - proto.RegisterType((*JobTerminatedEvent)(nil), "api.JobTerminatedEvent") - proto.RegisterType((*EventMessage)(nil), "api.EventMessage") - proto.RegisterType((*ContainerStatus)(nil), "api.ContainerStatus") - proto.RegisterType((*EventStreamMessage)(nil), "api.EventStreamMessage") - proto.RegisterType((*JobSetRequest)(nil), "api.JobSetRequest") - proto.RegisterType((*WatchRequest)(nil), "api.WatchRequest") -} - -func init() { proto.RegisterFile("pkg/api/event.proto", fileDescriptor_7758595c3bb8cf56) } - -var fileDescriptor_7758595c3bb8cf56 = []byte{ - // 2320 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5b, 0xcd, 0x6f, 0x1b, 0xc7, - 0x15, 0xf7, 0x52, 0xfc, 0x1c, 0xea, 0x73, 0x2c, 0xc9, 0x6b, 0x3a, 0xd6, 0x0a, 0x34, 0xd0, 0x2a, - 0x46, 0x4c, 0xa6, 0x72, 0x52, 0x04, 0x46, 0x81, 0xc2, 0x52, 0x94, 0x44, 0x6a, 0x5c, 0x3b, 0x94, - 0x8d, 0xa4, 0x45, 0x00, 0x76, 0x3f, 0x46, 0xd4, 0x4a, 0xe4, 0xce, 0x66, 0x3f, 0x64, 0x2b, 0x46, - 0x2e, 0xed, 0xa5, 0x87, 0xa2, 0xe9, 0x07, 0x7a, 0x2b, 0xda, 0xa2, 0xc7, 0x1e, 0xfb, 0x17, 0xf4, - 0x50, 0x14, 0x3d, 0x06, 0xc9, 0xa5, 0x27, 0xa2, 0xb5, 0x8b, 0x14, 0xe0, 0xa9, 0xf7, 0x5e, 0x8a, - 0x79, 0x33, 0xbb, 0x9c, 0x59, 0x53, 0x90, 0xac, 0x7c, 0x19, 0x0a, 0x4f, 0xb6, 0x7e, 0x6f, 0xde, - 0x9b, 0x37, 0x6f, 0x7e, 0x33, 0xf3, 0x66, 0xdf, 0x10, 0x9d, 0xf7, 0xf7, 0x3b, 0x4d, 0xd3, 0x77, - 0x9b, 0xe4, 0x80, 0x78, 0x51, 0xc3, 0x0f, 0x68, 0x44, 0xf1, 0x84, 0xe9, 0xbb, 0x35, 0xa3, 0x43, - 0x69, 0xa7, 0x4b, 0x9a, 0x00, 0x59, 0xf1, 0x4e, 0x33, 0x72, 0x7b, 0x24, 0x8c, 0xcc, 0x9e, 0xcf, - 0x5b, 0xd5, 0xe6, 0x13, 0xd5, 0x30, 0xb6, 0x7a, 0x6e, 0x94, 0x45, 0x77, 0x89, 0xd9, 0x8d, 0x76, - 0x05, 0x7a, 0x29, 0x6b, 0x8c, 0xf4, 0xfc, 0xe8, 0x50, 0x08, 0x9f, 0x13, 0x42, 0xa6, 0x65, 0x7a, - 0x1e, 0x8d, 0xcc, 0xc8, 0xa5, 0x5e, 0x28, 0xa4, 0x2f, 0xed, 0xbf, 0x12, 0x36, 0x5c, 0xca, 0xa4, - 0x3d, 0xd3, 0xde, 0x75, 0x3d, 0x12, 0x1c, 0x36, 0x93, 0x4e, 0x02, 0x12, 0xd2, 0x38, 0xb0, 0x49, - 0xb3, 0x43, 0x3c, 0x12, 0x98, 0x11, 0x71, 0xb8, 0x56, 0xfd, 0xb7, 0x39, 0x34, 0xb7, 0x45, 0xad, - 0x6d, 0x70, 0x2d, 0x22, 0xce, 0x06, 0x1b, 0x1e, 0xbe, 0x8a, 0x8a, 0x7b, 0xd4, 0x6a, 0xbb, 0x8e, - 0xae, 0x2d, 0x6b, 0x2b, 0x95, 0xb5, 0xf3, 0x83, 0xbe, 0x31, 0xb3, 0x47, 0xad, 0x4d, 0xe7, 0x05, - 0xda, 0x73, 0x23, 0x70, 0xaa, 0x55, 0x00, 0x00, 0xbf, 0x84, 0x10, 0x6b, 0x1b, 0x92, 0x88, 0xb5, - 0xcf, 0x41, 0xfb, 0xc5, 0x41, 0xdf, 0xc0, 0x7b, 0xd4, 0xda, 0x26, 0x91, 0xa2, 0x52, 0x4e, 0x30, - 0xfc, 0x3c, 0x2a, 0xbc, 0x17, 0x93, 0x98, 0xe8, 0x13, 0xc3, 0x0e, 0x00, 0x90, 0x3b, 0x00, 0x00, - 0x7f, 0x0f, 0x95, 0xec, 0x80, 0x30, 0x9f, 0xf5, 0xfc, 0xb2, 0xb6, 0x52, 0x5d, 0xad, 0x35, 0x78, - 0x20, 0x1a, 0x49, 0x94, 0x1a, 0x77, 0x93, 0x90, 0xaf, 0x2d, 0x0c, 0xfa, 0xc6, 0x9c, 0x68, 0x2e, - 0x99, 0x4a, 0x2c, 0xe0, 0x6b, 0x68, 0x62, 0x8f, 0x5a, 0x7a, 0x01, 0x0c, 0x95, 0x1b, 0xa6, 0xef, - 0x36, 0xb6, 0xa8, 0xb5, 0x36, 0x37, 0xe8, 0x1b, 0x53, 0x7b, 0xd4, 0x92, 0x54, 0x58, 0xbb, 0xfa, - 0x40, 0x43, 0xd3, 0x5b, 0xd4, 0x7a, 0x8b, 0x39, 0x72, 0xd6, 0x63, 0x53, 0xff, 0x63, 0x0e, 0x06, - 0xfb, 0x26, 0x31, 0xc3, 0xb3, 0x4f, 0x84, 0x6f, 0x23, 0x64, 0x77, 0xe3, 0x30, 0x22, 0x01, 0xf3, - 0xb6, 0x00, 0x9d, 0x5f, 0x18, 0xf4, 0x8d, 0xf3, 0x02, 0x55, 0xdc, 0xad, 0xa4, 0x60, 0xfd, 0x97, - 0x79, 0xb4, 0x90, 0x04, 0xa9, 0x45, 0xa2, 0x38, 0xf0, 0xc6, 0xb1, 0x3a, 0x22, 0x56, 0xf8, 0x05, - 0x54, 0x0c, 0x88, 0x19, 0x52, 0x4f, 0x2f, 0x82, 0xce, 0xfc, 0xa0, 0x6f, 0xcc, 0x72, 0x44, 0x52, - 0x10, 0x6d, 0xf0, 0x77, 0xd1, 0xd4, 0x7e, 0x6c, 0x91, 0xc0, 0x23, 0x11, 0x09, 0x59, 0x47, 0x25, - 0x50, 0xaa, 0x0d, 0xfa, 0xc6, 0xe2, 0x50, 0xa0, 0xf4, 0x35, 0x29, 0xe3, 0xcc, 0x4d, 0x9f, 0x3a, - 0x6d, 0x2f, 0xee, 0x59, 0x24, 0xd0, 0xcb, 0xcb, 0xda, 0x4a, 0x81, 0xbb, 0xe9, 0x53, 0xe7, 0xfb, - 0x00, 0xca, 0x6e, 0xa6, 0x20, 0xeb, 0x38, 0x88, 0xbd, 0xb6, 0x19, 0x81, 0x88, 0x38, 0x7a, 0x65, - 0x59, 0x5b, 0x29, 0xf3, 0x8e, 0x83, 0xd8, 0xbb, 0x99, 0xe0, 0x72, 0xc7, 0x32, 0x5e, 0xff, 0xaf, - 0x86, 0xe6, 0x13, 0x4e, 0x6c, 0x3c, 0xf0, 0xdd, 0xe0, 0xec, 0xef, 0x15, 0x1f, 0xe6, 0xd1, 0xcc, - 0x16, 0xb5, 0xee, 0x10, 0xcf, 0x71, 0xbd, 0xce, 0x78, 0x01, 0x8c, 0x5e, 0x00, 0x4f, 0x50, 0xba, - 0xf8, 0x99, 0x28, 0x5d, 0x3a, 0x31, 0xa5, 0x5f, 0x44, 0x65, 0xd0, 0x33, 0x7b, 0x04, 0x16, 0x42, - 0x85, 0x0f, 0x91, 0x35, 0x30, 0x7b, 0x72, 0xb4, 0x4a, 0x02, 0x62, 0xae, 0x26, 0x1a, 0xa1, 0x6f, - 0xda, 0x04, 0x16, 0x81, 0x70, 0x55, 0xb4, 0x01, 0x5c, 0x76, 0x55, 0xc6, 0xeb, 0x7f, 0xe5, 0x8c, - 0x68, 0xc5, 0x9e, 0x37, 0x66, 0xc4, 0x17, 0xc7, 0x88, 0xeb, 0xa8, 0xe2, 0x51, 0x87, 0xf0, 0xa9, - 0x2d, 0x0d, 0xa3, 0xc4, 0xc0, 0xcc, 0xdc, 0x96, 0x13, 0xec, 0xd4, 0x3b, 0xa3, 0x4c, 0xa3, 0xca, - 0xe9, 0x68, 0x84, 0x9e, 0x92, 0x46, 0x7f, 0x2e, 0xa2, 0xf3, 0x5b, 0xd4, 0xda, 0xf4, 0x3a, 0x01, - 0x09, 0xc3, 0x4d, 0x6f, 0x87, 0x8e, 0xa9, 0x74, 0xd6, 0xa8, 0x84, 0x4e, 0x47, 0xa5, 0xea, 0xd3, - 0x51, 0x09, 0x3f, 0x44, 0x73, 0x2e, 0xa7, 0x51, 0xdb, 0x74, 0x1c, 0xf6, 0x2f, 0x09, 0xf5, 0xca, - 0xf2, 0xc4, 0x4a, 0x75, 0xb5, 0x91, 0x64, 0xfe, 0x59, 0x9e, 0x35, 0x04, 0x70, 0x33, 0x51, 0xd8, - 0xf0, 0xa2, 0xe0, 0x70, 0x6d, 0x69, 0xd0, 0x37, 0x6a, 0x6e, 0x46, 0x24, 0x75, 0x3c, 0x9b, 0x95, - 0xd5, 0xf6, 0xd1, 0xc2, 0x48, 0x53, 0xf8, 0x0a, 0x9a, 0xd8, 0x27, 0x87, 0xc0, 0xe2, 0x02, 0xbf, - 0x77, 0xec, 0x93, 0x43, 0xf9, 0xde, 0xb1, 0x4f, 0x0e, 0x19, 0x17, 0x0f, 0xcc, 0x6e, 0x4c, 0x04, - 0x79, 0x81, 0x8b, 0x00, 0xc8, 0x5c, 0x04, 0xe0, 0x46, 0xee, 0x15, 0xad, 0xfe, 0xbf, 0x3c, 0xd2, - 0xb7, 0xa8, 0x75, 0xcf, 0x33, 0xad, 0x2e, 0xb9, 0x4b, 0xb7, 0xed, 0x5d, 0xe2, 0xc4, 0x5d, 0x32, - 0x5e, 0x39, 0xcf, 0x44, 0x5e, 0xaa, 0xac, 0xb3, 0xf2, 0xa9, 0xd6, 0x59, 0xe5, 0x19, 0x5e, 0x67, - 0xf5, 0x8f, 0x4b, 0x70, 0x6f, 0x7c, 0xcd, 0x74, 0xbb, 0xe3, 0xbb, 0xd0, 0xe7, 0xc3, 0xb9, 0x77, - 0x11, 0x22, 0x0f, 0xdc, 0xa8, 0x6d, 0x53, 0x87, 0x84, 0x7a, 0x09, 0xf6, 0xac, 0x7a, 0xb2, 0x67, - 0x49, 0x81, 0x6e, 0x6c, 0x3c, 0x70, 0xa3, 0x75, 0xd6, 0x88, 0xef, 0x53, 0x17, 0x99, 0x27, 0x24, - 0xc1, 0x86, 0x86, 0x75, 0xad, 0x55, 0x49, 0xe1, 0x27, 0x19, 0x5d, 0xfe, 0x2c, 0x8c, 0xae, 0x9c, - 0x8a, 0xd1, 0xe8, 0x54, 0x8c, 0x9e, 0x3a, 0x1d, 0xa3, 0xa7, 0x9f, 0xf2, 0xe4, 0x70, 0x10, 0xb6, - 0xa9, 0x17, 0x99, 0xae, 0x47, 0x82, 0x76, 0x18, 0x99, 0x51, 0xcc, 0x8e, 0x8e, 0x2a, 0x4c, 0xc3, - 0x3c, 0x4c, 0xc3, 0x7a, 0x22, 0xde, 0x06, 0xe9, 0x9a, 0x31, 0xe8, 0x1b, 0x97, 0x6c, 0x15, 0x54, - 0x4e, 0x88, 0xb9, 0x27, 0x84, 0xf8, 0x65, 0x54, 0xb0, 0xcd, 0x38, 0x24, 0xfa, 0xe4, 0xb2, 0xb6, - 0x32, 0xbd, 0x8a, 0xb8, 0x61, 0x86, 0x70, 0x3a, 0x83, 0x50, 0xa6, 0x33, 0x00, 0x35, 0x07, 0x4d, - 0xab, 0xb3, 0x2e, 0x1f, 0x29, 0x95, 0x93, 0x1d, 0x29, 0x85, 0x63, 0x8f, 0x94, 0x4f, 0x72, 0x08, - 0xb3, 0x0b, 0x5e, 0x40, 0x98, 0xe8, 0x6b, 0x90, 0xd1, 0xbf, 0x8c, 0x2a, 0x01, 0x79, 0x2f, 0x26, - 0x61, 0x44, 0x03, 0x79, 0x5d, 0xa7, 0xa0, 0xcc, 0xce, 0x14, 0x7c, 0xba, 0x75, 0x5d, 0xff, 0x4d, - 0x1e, 0x3e, 0xb7, 0x8a, 0xa8, 0x8e, 0x77, 0xcb, 0xa3, 0x76, 0xcb, 0xab, 0xa8, 0x18, 0xc4, 0xde, - 0x30, 0xa9, 0x05, 0x87, 0x83, 0xd8, 0x53, 0x23, 0x02, 0x00, 0xde, 0x44, 0x73, 0xbe, 0x60, 0xe9, - 0x01, 0x69, 0x8b, 0x40, 0xf2, 0x33, 0xfa, 0xf2, 0xa0, 0x6f, 0x5c, 0x1c, 0x0a, 0xb7, 0x32, 0x21, - 0x9d, 0xc9, 0x88, 0x32, 0xa6, 0x84, 0x07, 0xe5, 0x51, 0xa6, 0x5a, 0x19, 0x5f, 0x66, 0x32, 0x22, - 0x89, 0x17, 0x95, 0x13, 0xf0, 0xe2, 0x6f, 0x79, 0xf1, 0x19, 0xde, 0xb6, 0x09, 0x71, 0xc6, 0xbc, - 0x18, 0x5f, 0x9f, 0x4f, 0x79, 0x7d, 0xfe, 0x57, 0x15, 0xae, 0xcf, 0xf7, 0x22, 0xb7, 0xeb, 0x86, - 0x50, 0x1f, 0x1a, 0x53, 0xe9, 0x0b, 0xa2, 0xd2, 0xcf, 0x35, 0xb4, 0x70, 0xcb, 0x7c, 0xd0, 0x12, - 0xa5, 0xb5, 0xf0, 0x35, 0x1a, 0xdc, 0x21, 0x81, 0x4b, 0x1d, 0x91, 0xaf, 0x5d, 0x4f, 0xf2, 0xb5, - 0xec, 0x64, 0x34, 0x46, 0x6a, 0xf1, 0x04, 0xee, 0xca, 0xa0, 0x6f, 0x18, 0x23, 0xe5, 0x92, 0x1f, - 0xa3, 0xbb, 0x3d, 0xeb, 0xf7, 0x0c, 0xfc, 0x33, 0x0d, 0x2d, 0x46, 0x34, 0x32, 0xbb, 0x6d, 0x3b, - 0xee, 0xc5, 0x5d, 0x13, 0x36, 0xe9, 0x38, 0x34, 0x3b, 0x2c, 0x83, 0x62, 0x11, 0x5f, 0x3d, 0x32, - 0xe2, 0x77, 0x99, 0xda, 0x7a, 0xaa, 0x75, 0x8f, 0x29, 0xf1, 0x80, 0xd7, 0x07, 0x7d, 0x63, 0x29, - 0x1a, 0x21, 0x96, 0xdc, 0x98, 0x1f, 0x25, 0x87, 0xf9, 0xbf, 0x79, 0xd0, 0x19, 0x31, 0xff, 0x53, - 0xc7, 0xcc, 0xff, 0x48, 0x2d, 0x69, 0xfe, 0x47, 0xca, 0xe5, 0xf9, 0x1f, 0xd9, 0xa0, 0xf6, 0x07, - 0x0d, 0xd5, 0x8e, 0xa6, 0xd6, 0xc9, 0xb2, 0xc4, 0x1f, 0xc8, 0x59, 0x62, 0x75, 0xb5, 0xd1, 0xe0, - 0x55, 0xe5, 0x86, 0x5c, 0x55, 0x6e, 0xf8, 0xfb, 0x1d, 0x18, 0x5b, 0x52, 0x55, 0x6e, 0xbc, 0x15, - 0x9b, 0x5e, 0xe4, 0x46, 0x87, 0xc7, 0x65, 0x95, 0xb5, 0xdf, 0x6b, 0xe8, 0xe2, 0x91, 0x73, 0xf1, - 0x4c, 0x78, 0xc8, 0x82, 0x78, 0xf4, 0xfc, 0x3c, 0x0b, 0x2e, 0xd6, 0xff, 0x93, 0x43, 0x8b, 0x5b, - 0xd4, 0x6a, 0x11, 0x3f, 0x70, 0x69, 0xe0, 0x46, 0xee, 0xfb, 0x5f, 0x83, 0xf4, 0xfc, 0x3b, 0x68, - 0xd2, 0x23, 0xf7, 0xdb, 0x62, 0xc8, 0x87, 0xb0, 0xd1, 0x6b, 0x70, 0xdf, 0x5d, 0xf0, 0xc8, 0xfd, - 0x3b, 0x02, 0x96, 0x34, 0xab, 0x12, 0xac, 0x26, 0xf7, 0xc5, 0x93, 0x26, 0xf7, 0xf5, 0x4f, 0x73, - 0x50, 0xec, 0x95, 0x22, 0x7d, 0xf6, 0x53, 0xb3, 0xaf, 0x24, 0xd0, 0xe2, 0xb6, 0xb9, 0x6e, 0x7a, - 0x36, 0xe9, 0x76, 0xc7, 0xb7, 0xcd, 0xcf, 0xe7, 0xb6, 0xf9, 0x31, 0x7f, 0xdc, 0x23, 0xa2, 0x7a, - 0xf6, 0xa9, 0xfb, 0xa5, 0x04, 0xf5, 0x2f, 0x79, 0xa0, 0xea, 0x5d, 0x12, 0xf4, 0x5c, 0xcf, 0x1c, - 0xdf, 0xe1, 0x9f, 0xed, 0xe2, 0xf7, 0x97, 0x73, 0xed, 0x92, 0x28, 0x54, 0x3e, 0x01, 0x85, 0x3e, - 0x9c, 0x44, 0x93, 0xc0, 0x9a, 0x5b, 0x24, 0x84, 0x54, 0xf2, 0x36, 0xaa, 0x84, 0xc9, 0x0b, 0x3c, - 0xe0, 0x4f, 0x75, 0x75, 0x31, 0xc9, 0x1e, 0xd5, 0xa7, 0x79, 0x3c, 0x00, 0x69, 0xe3, 0xa1, 0xf1, - 0x37, 0xce, 0xb5, 0x86, 0x36, 0xf0, 0x3a, 0x2a, 0x02, 0x13, 0x1c, 0x91, 0x82, 0x9c, 0x4f, 0xac, - 0x49, 0x2f, 0xd9, 0xb8, 0x93, 0xbc, 0x99, 0x62, 0x47, 0xa8, 0x32, 0x23, 0x5d, 0x78, 0x0b, 0x06, - 0x8c, 0x93, 0x8c, 0x48, 0x2f, 0xc4, 0xb8, 0x11, 0xde, 0x4c, 0x35, 0xc2, 0x31, 0xfc, 0x23, 0x34, - 0x0d, 0xff, 0x6b, 0x07, 0xe2, 0xb1, 0x54, 0xca, 0x48, 0xd9, 0x98, 0xf2, 0x92, 0x6a, 0xed, 0xd2, - 0xa0, 0x6f, 0x5c, 0xe8, 0xca, 0xb8, 0x62, 0x7a, 0x4a, 0x11, 0xe1, 0x77, 0x11, 0x07, 0xda, 0x84, - 0x3f, 0xbd, 0x11, 0x8f, 0xfb, 0x2e, 0x2a, 0x1d, 0xc8, 0xcf, 0x72, 0xf8, 0xbc, 0x76, 0x25, 0x58, - 0x31, 0x3f, 0x29, 0x4b, 0xf0, 0xeb, 0xa8, 0xe4, 0xf3, 0x47, 0x2e, 0xc0, 0xdf, 0xe4, 0xfb, 0x6f, - 0xe6, 0xed, 0x8b, 0x60, 0x18, 0x47, 0x14, 0x6b, 0x89, 0x36, 0x33, 0x14, 0xf0, 0xb7, 0x11, 0x40, - 0x65, 0xc9, 0x90, 0xfc, 0x64, 0x82, 0x1b, 0x12, 0x0d, 0x55, 0x43, 0x02, 0xc4, 0x3d, 0x84, 0x63, - 0x28, 0xf4, 0xb5, 0x23, 0xda, 0x0e, 0x45, 0xa9, 0x0f, 0x78, 0x57, 0x5d, 0xbd, 0x9c, 0xde, 0x39, - 0x46, 0x95, 0x02, 0x79, 0x19, 0x33, 0xce, 0x88, 0x94, 0x5e, 0x66, 0xb3, 0x52, 0xc6, 0x82, 0x1d, - 0x28, 0x38, 0xc0, 0x5a, 0x92, 0x58, 0x20, 0x95, 0x21, 0x38, 0x0b, 0x78, 0x33, 0x95, 0x05, 0x1c, - 0xe3, 0x04, 0x17, 0xdf, 0xb6, 0x60, 0x71, 0x29, 0x04, 0x97, 0x3f, 0x7a, 0x25, 0x04, 0x17, 0x58, - 0x96, 0xe0, 0x02, 0xc6, 0x6d, 0x34, 0x15, 0xc8, 0x59, 0x19, 0x5c, 0x26, 0x25, 0x56, 0x3d, 0x99, - 0xb2, 0x71, 0x56, 0x29, 0x4a, 0x2a, 0xab, 0x14, 0x11, 0xde, 0x46, 0xc8, 0x4e, 0xb3, 0x11, 0xf8, - 0x42, 0x5f, 0x5d, 0xbd, 0x90, 0x58, 0xcf, 0xe4, 0x29, 0x6b, 0xfa, 0xa0, 0x6f, 0xcc, 0x0f, 0x9b, - 0x2b, 0x76, 0x25, 0x33, 0x2c, 0x0c, 0x76, 0x72, 0x18, 0x43, 0x2d, 0x43, 0x0a, 0x83, 0x7a, 0x4a, - 0x8b, 0x1d, 0x36, 0xc1, 0xd4, 0x30, 0xa4, 0x30, 0x7e, 0x1b, 0x55, 0xe3, 0xe1, 0xed, 0x52, 0x9f, - 0x01, 0x93, 0xfa, 0x51, 0x17, 0x4f, 0x9e, 0xc5, 0x49, 0x0a, 0x8a, 0x59, 0xd9, 0x12, 0x7e, 0x07, - 0x4d, 0x26, 0xb5, 0x73, 0xd7, 0xdb, 0xa1, 0xfa, 0x9c, 0x6a, 0x39, 0x5b, 0x36, 0xe7, 0x96, 0xdd, - 0x21, 0xaa, 0x5a, 0x96, 0x04, 0xd8, 0x46, 0xd3, 0x81, 0x72, 0x73, 0xd1, 0x31, 0xd8, 0xbe, 0x34, - 0x62, 0xea, 0xd2, 0x00, 0x3f, 0x37, 0xe8, 0x1b, 0xba, 0xaa, 0xa6, 0xf4, 0x90, 0x31, 0xc9, 0x02, - 0xed, 0x27, 0xdf, 0xd8, 0xf5, 0x05, 0x35, 0xd0, 0xea, 0xc7, 0x77, 0x71, 0xa2, 0x24, 0x98, 0x1a, - 0xe8, 0x14, 0x66, 0x74, 0xf0, 0xd3, 0x52, 0x88, 0xbe, 0xa8, 0xd2, 0x21, 0x53, 0x24, 0xe1, 0x74, - 0x18, 0x36, 0x57, 0xe9, 0x30, 0xc4, 0xd7, 0xca, 0xa8, 0x08, 0xcf, 0xc9, 0xc3, 0xfa, 0x4f, 0x72, - 0x68, 0x26, 0x53, 0x52, 0xc2, 0xdf, 0x40, 0x79, 0x38, 0xc2, 0x78, 0x3e, 0x81, 0x07, 0x7d, 0x63, - 0xda, 0x53, 0xcf, 0x2f, 0x90, 0xe3, 0x55, 0x54, 0x4e, 0x4a, 0x7b, 0xa2, 0xb6, 0x03, 0xb9, 0x44, - 0x82, 0xc9, 0xb9, 0x44, 0x82, 0xe1, 0x26, 0x2a, 0xf5, 0xf8, 0xd9, 0x23, 0xb2, 0x09, 0xd8, 0x76, - 0x04, 0x24, 0x9f, 0x90, 0x02, 0x92, 0x0e, 0xb8, 0xfc, 0x09, 0xca, 0x97, 0x69, 0x65, 0xab, 0xf0, - 0x34, 0x95, 0xad, 0xfa, 0xfb, 0x08, 0x43, 0x00, 0xb7, 0xa3, 0x80, 0x98, 0xbd, 0xe4, 0x70, 0x5c, - 0x46, 0xb9, 0x34, 0xab, 0x9a, 0x1d, 0xf4, 0x8d, 0x49, 0x57, 0x4e, 0x19, 0x72, 0xae, 0x83, 0xd7, - 0x86, 0xa3, 0xe1, 0xc7, 0xdd, 0x1c, 0x74, 0x28, 0x1f, 0xb1, 0xc7, 0x0d, 0xb0, 0xfe, 0xab, 0x1c, - 0x9a, 0xda, 0x82, 0x54, 0xab, 0xc5, 0x13, 0xc3, 0x13, 0xf4, 0xfb, 0x3c, 0x2a, 0xdc, 0x37, 0x23, - 0x7b, 0x17, 0x7a, 0x2d, 0xf3, 0xa1, 0x01, 0x20, 0x0f, 0x0d, 0x00, 0xbc, 0x8e, 0x66, 0x76, 0x02, - 0xda, 0x6b, 0x8b, 0xee, 0x58, 0x3a, 0xc4, 0x03, 0x0f, 0xbb, 0x12, 0x13, 0x09, 0x47, 0x95, 0x7c, - 0x68, 0x4a, 0x11, 0x0c, 0x33, 0xc0, 0xfc, 0xb1, 0x19, 0xe0, 0xab, 0x68, 0x9a, 0x04, 0x01, 0x0d, - 0x36, 0x77, 0x6e, 0xb9, 0x61, 0xc8, 0x38, 0x5b, 0x00, 0x1f, 0x61, 0x21, 0xa9, 0x12, 0x49, 0x39, - 0xa3, 0x53, 0xff, 0x9d, 0x86, 0x26, 0xdf, 0x66, 0xfe, 0x27, 0x31, 0x49, 0x3d, 0xd0, 0x8e, 0xf5, - 0xe0, 0x74, 0x49, 0xee, 0x35, 0x54, 0x82, 0x38, 0xa5, 0xf1, 0xe1, 0x27, 0x4b, 0x40, 0x7b, 0x8a, - 0x42, 0x91, 0x23, 0x57, 0xdf, 0x44, 0x05, 0xa0, 0x15, 0xae, 0xa0, 0xc2, 0x06, 0xf3, 0x7d, 0xf6, - 0x1c, 0xae, 0xa2, 0xd2, 0xc6, 0x81, 0x6b, 0x47, 0xc4, 0x99, 0xd5, 0x70, 0x09, 0x4d, 0xdc, 0xbe, - 0x7d, 0x6b, 0x36, 0x87, 0xe7, 0xd1, 0xec, 0xab, 0xc4, 0x74, 0xba, 0xae, 0x47, 0x36, 0x1e, 0xf0, - 0x43, 0x64, 0x76, 0x02, 0x4f, 0xa2, 0x72, 0x8b, 0xec, 0x11, 0x68, 0x9c, 0x5f, 0xfd, 0x54, 0x43, - 0x05, 0x9e, 0xcd, 0x13, 0x34, 0xf3, 0x3a, 0x89, 0x38, 0x1f, 0x00, 0x09, 0x31, 0x4e, 0xcf, 0xab, - 0x94, 0x22, 0xb5, 0x0b, 0x43, 0x9e, 0x29, 0x9c, 0xad, 0x5f, 0xf9, 0xf1, 0x27, 0xff, 0xfe, 0x75, - 0xee, 0x72, 0x5d, 0x6f, 0x1e, 0x7c, 0xab, 0xb9, 0x47, 0xad, 0x6b, 0x21, 0x89, 0x9a, 0x0f, 0x21, - 0x30, 0x1f, 0x34, 0x1f, 0xba, 0xce, 0x07, 0x37, 0xb4, 0xab, 0x2f, 0x6a, 0xf8, 0x06, 0x2a, 0x40, - 0x78, 0x31, 0x27, 0xac, 0x1c, 0xea, 0xa3, 0x6d, 0x4f, 0xfc, 0x34, 0xa7, 0x81, 0x6e, 0xf1, 0x0d, - 0xf8, 0xe9, 0x08, 0x5e, 0x7c, 0x22, 0xb9, 0xdf, 0x60, 0x41, 0xaa, 0xf1, 0xdd, 0x9a, 0x37, 0x5a, - 0xdf, 0x25, 0xf6, 0x7e, 0x8b, 0x84, 0x3e, 0xf5, 0x42, 0xb2, 0xf6, 0xce, 0xdf, 0x1f, 0x2d, 0x69, - 0x1f, 0x3d, 0x5a, 0xd2, 0xfe, 0xf9, 0x68, 0x49, 0xfb, 0xc5, 0xe3, 0xa5, 0x73, 0x1f, 0x3d, 0x5e, - 0x3a, 0xf7, 0x8f, 0xc7, 0x4b, 0xe7, 0x7e, 0xf8, 0xcd, 0x8e, 0x1b, 0xed, 0xc6, 0x56, 0xc3, 0xa6, - 0xbd, 0xa6, 0x19, 0xf4, 0x4c, 0xc7, 0xf4, 0x03, 0xca, 0x02, 0x24, 0xfe, 0x4a, 0x7e, 0x51, 0xf2, - 0xa7, 0xdc, 0xfc, 0x4d, 0x00, 0xee, 0x70, 0x71, 0x63, 0x93, 0x36, 0x6e, 0xfa, 0xae, 0x55, 0x04, - 0x1f, 0xae, 0xff, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x4c, 0x88, 0xf9, 0x94, 0x30, 0x33, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// EventClient is the client API for Event service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type EventClient interface { - GetJobSetEvents(ctx context.Context, in *JobSetRequest, opts ...grpc.CallOption) (Event_GetJobSetEventsClient, error) - Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (Event_WatchClient, error) - Health(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error) -} - -type eventClient struct { - cc *grpc.ClientConn -} - -func NewEventClient(cc *grpc.ClientConn) EventClient { - return &eventClient{cc} -} - -func (c *eventClient) GetJobSetEvents(ctx context.Context, in *JobSetRequest, opts ...grpc.CallOption) (Event_GetJobSetEventsClient, error) { - stream, err := c.cc.NewStream(ctx, &_Event_serviceDesc.Streams[0], "/api.Event/GetJobSetEvents", opts...) - if err != nil { - return nil, err - } - x := &eventGetJobSetEventsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *ContainerStatus) GetReason() string { + if x != nil { + return x.Reason } - return x, nil + return "" } -type Event_GetJobSetEventsClient interface { - Recv() (*EventStreamMessage, error) - grpc.ClientStream +func (x *ContainerStatus) GetCause() Cause { + if x != nil { + return x.Cause + } + return Cause_Error } -type eventGetJobSetEventsClient struct { - grpc.ClientStream +// swagger:model +type EventStreamMessage struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Message *EventMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *eventGetJobSetEventsClient) Recv() (*EventStreamMessage, error) { - m := new(EventStreamMessage) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +func (x *EventStreamMessage) Reset() { + *x = EventStreamMessage{} + mi := &file_pkg_api_event_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -// Deprecated: Do not use. -func (c *eventClient) Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (Event_WatchClient, error) { - stream, err := c.cc.NewStream(ctx, &_Event_serviceDesc.Streams[1], "/api.Event/Watch", opts...) - if err != nil { - return nil, err - } - x := &eventWatchClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil +func (x *EventStreamMessage) String() string { + return protoimpl.X.MessageStringOf(x) } -type Event_WatchClient interface { - Recv() (*EventStreamMessage, error) - grpc.ClientStream +func (*EventStreamMessage) ProtoMessage() {} + +func (x *EventStreamMessage) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type eventWatchClient struct { - grpc.ClientStream +// Deprecated: Use EventStreamMessage.ProtoReflect.Descriptor instead. +func (*EventStreamMessage) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{21} } -func (x *eventWatchClient) Recv() (*EventStreamMessage, error) { - m := new(EventStreamMessage) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *EventStreamMessage) GetId() string { + if x != nil { + return x.Id } - return m, nil + return "" } -func (c *eventClient) Health(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error) { - out := new(HealthCheckResponse) - err := c.cc.Invoke(ctx, "/api.Event/Health", in, out, opts...) - if err != nil { - return nil, err +func (x *EventStreamMessage) GetMessage() *EventMessage { + if x != nil { + return x.Message } - return out, nil + return nil } -// EventServer is the server API for Event service. -type EventServer interface { - GetJobSetEvents(*JobSetRequest, Event_GetJobSetEventsServer) error - Watch(*WatchRequest, Event_WatchServer) error - Health(context.Context, *types.Empty) (*HealthCheckResponse, error) +// swagger:model +type JobSetRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Watch bool `protobuf:"varint,2,opt,name=watch,proto3" json:"watch,omitempty"` + FromMessageId string `protobuf:"bytes,3,opt,name=from_message_id,json=fromMessageId,proto3" json:"from_message_id,omitempty"` + Queue string `protobuf:"bytes,4,opt,name=queue,proto3" json:"queue,omitempty"` + ErrorIfMissing bool `protobuf:"varint,5,opt,name=errorIfMissing,proto3" json:"errorIfMissing,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -// UnimplementedEventServer can be embedded to have forward compatible implementations. -type UnimplementedEventServer struct { +func (x *JobSetRequest) Reset() { + *x = JobSetRequest{} + mi := &file_pkg_api_event_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (*UnimplementedEventServer) GetJobSetEvents(req *JobSetRequest, srv Event_GetJobSetEventsServer) error { - return status.Errorf(codes.Unimplemented, "method GetJobSetEvents not implemented") -} -func (*UnimplementedEventServer) Watch(req *WatchRequest, srv Event_WatchServer) error { - return status.Errorf(codes.Unimplemented, "method Watch not implemented") +func (x *JobSetRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (*UnimplementedEventServer) Health(ctx context.Context, req *types.Empty) (*HealthCheckResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Health not implemented") + +func (*JobSetRequest) ProtoMessage() {} + +func (x *JobSetRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func RegisterEventServer(s *grpc.Server, srv EventServer) { - s.RegisterService(&_Event_serviceDesc, srv) +// Deprecated: Use JobSetRequest.ProtoReflect.Descriptor instead. +func (*JobSetRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{22} } -func _Event_GetJobSetEvents_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(JobSetRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *JobSetRequest) GetId() string { + if x != nil { + return x.Id } - return srv.(EventServer).GetJobSetEvents(m, &eventGetJobSetEventsServer{stream}) + return "" } -type Event_GetJobSetEventsServer interface { - Send(*EventStreamMessage) error - grpc.ServerStream +func (x *JobSetRequest) GetWatch() bool { + if x != nil { + return x.Watch + } + return false } -type eventGetJobSetEventsServer struct { - grpc.ServerStream +func (x *JobSetRequest) GetFromMessageId() string { + if x != nil { + return x.FromMessageId + } + return "" } -func (x *eventGetJobSetEventsServer) Send(m *EventStreamMessage) error { - return x.ServerStream.SendMsg(m) +func (x *JobSetRequest) GetQueue() string { + if x != nil { + return x.Queue + } + return "" } -func _Event_Watch_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(WatchRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *JobSetRequest) GetErrorIfMissing() bool { + if x != nil { + return x.ErrorIfMissing } - return srv.(EventServer).Watch(m, &eventWatchServer{stream}) + return false } -type Event_WatchServer interface { - Send(*EventStreamMessage) error - grpc.ServerStream +type WatchRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -type eventWatchServer struct { - grpc.ServerStream +func (x *WatchRequest) Reset() { + *x = WatchRequest{} + mi := &file_pkg_api_event_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *eventWatchServer) Send(m *EventStreamMessage) error { - return x.ServerStream.SendMsg(m) +func (x *WatchRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func _Event_Health_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(types.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(EventServer).Health(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Event/Health", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EventServer).Health(ctx, req.(*types.Empty)) - } - return interceptor(ctx, in, info, handler) -} +func (*WatchRequest) ProtoMessage() {} -var _Event_serviceDesc = grpc.ServiceDesc{ - ServiceName: "api.Event", - HandlerType: (*EventServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Health", - Handler: _Event_Health_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "GetJobSetEvents", - Handler: _Event_GetJobSetEvents_Handler, - ServerStreams: true, - }, - { - StreamName: "Watch", - Handler: _Event_Watch_Handler, - ServerStreams: true, - }, - }, - Metadata: "pkg/api/event.proto", -} - -func (m *JobSubmittedEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobSubmittedEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobSubmittedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Job != nil { - { - size, err := m.Job.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobQueuedEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobQueuedEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobQueuedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobLeasedEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobLeasedEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobLeasedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ClusterId) > 0 { - i -= len(m.ClusterId) - copy(dAtA[i:], m.ClusterId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.ClusterId))) - i-- - dAtA[i] = 0x2a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobLeaseReturnedEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobLeaseReturnedEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobLeaseReturnedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RunAttempted { - i-- - if m.RunAttempted { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if m.PodNumber != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x40 - } - if len(m.KubernetesId) > 0 { - i -= len(m.KubernetesId) - copy(dAtA[i:], m.KubernetesId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.KubernetesId))) - i-- - dAtA[i] = 0x3a - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x32 - } - if len(m.ClusterId) > 0 { - i -= len(m.ClusterId) - copy(dAtA[i:], m.ClusterId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.ClusterId))) - i-- - dAtA[i] = 0x2a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobLeaseExpiredEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobLeaseExpiredEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobLeaseExpiredEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobPendingEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobPendingEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobPendingEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PodNamespace) > 0 { - i -= len(m.PodNamespace) - copy(dAtA[i:], m.PodNamespace) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodNamespace))) - i-- - dAtA[i] = 0x4a - } - if len(m.PodName) > 0 { - i -= len(m.PodName) - copy(dAtA[i:], m.PodName) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodName))) - i-- - dAtA[i] = 0x42 - } - if m.PodNumber != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x38 - } - if len(m.KubernetesId) > 0 { - i -= len(m.KubernetesId) - copy(dAtA[i:], m.KubernetesId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.KubernetesId))) - i-- - dAtA[i] = 0x32 - } - if len(m.ClusterId) > 0 { - i -= len(m.ClusterId) - copy(dAtA[i:], m.ClusterId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.ClusterId))) - i-- - dAtA[i] = 0x2a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobRunningEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobRunningEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobRunningEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PodNamespace) > 0 { - i -= len(m.PodNamespace) - copy(dAtA[i:], m.PodNamespace) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodNamespace))) - i-- - dAtA[i] = 0x52 - } - if len(m.PodName) > 0 { - i -= len(m.PodName) - copy(dAtA[i:], m.PodName) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodName))) - i-- - dAtA[i] = 0x4a - } - if m.PodNumber != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x40 - } - if len(m.NodeName) > 0 { - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintEvent(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0x3a - } - if len(m.KubernetesId) > 0 { - i -= len(m.KubernetesId) - copy(dAtA[i:], m.KubernetesId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.KubernetesId))) - i-- - dAtA[i] = 0x32 - } - if len(m.ClusterId) > 0 { - i -= len(m.ClusterId) - copy(dAtA[i:], m.ClusterId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.ClusterId))) - i-- - dAtA[i] = 0x2a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobIngressInfoEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobIngressInfoEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobIngressInfoEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PodNamespace) > 0 { - i -= len(m.PodNamespace) - copy(dAtA[i:], m.PodNamespace) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodNamespace))) - i-- - dAtA[i] = 0x5a - } - if len(m.PodName) > 0 { - i -= len(m.PodName) - copy(dAtA[i:], m.PodName) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodName))) - i-- - dAtA[i] = 0x52 - } - if len(m.IngressAddresses) > 0 { - for k := range m.IngressAddresses { - v := m.IngressAddresses[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintEvent(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i = encodeVarintEvent(dAtA, i, uint64(k)) - i-- - dAtA[i] = 0x8 - i = encodeVarintEvent(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x4a - } - } - if m.PodNumber != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x40 - } - if len(m.NodeName) > 0 { - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintEvent(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0x3a - } - if len(m.KubernetesId) > 0 { - i -= len(m.KubernetesId) - copy(dAtA[i:], m.KubernetesId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.KubernetesId))) - i-- - dAtA[i] = 0x32 - } - if len(m.ClusterId) > 0 { - i -= len(m.ClusterId) - copy(dAtA[i:], m.ClusterId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.ClusterId))) - i-- - dAtA[i] = 0x2a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobUnableToScheduleEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobUnableToScheduleEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobUnableToScheduleEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PodNamespace) > 0 { - i -= len(m.PodNamespace) - copy(dAtA[i:], m.PodNamespace) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodNamespace))) - i-- - dAtA[i] = 0x5a - } - if len(m.PodName) > 0 { - i -= len(m.PodName) - copy(dAtA[i:], m.PodName) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodName))) - i-- - dAtA[i] = 0x52 - } - if m.PodNumber != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x48 - } - if len(m.NodeName) > 0 { - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintEvent(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0x42 - } - if len(m.KubernetesId) > 0 { - i -= len(m.KubernetesId) - copy(dAtA[i:], m.KubernetesId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.KubernetesId))) - i-- - dAtA[i] = 0x3a - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x32 - } - if len(m.ClusterId) > 0 { - i -= len(m.ClusterId) - copy(dAtA[i:], m.ClusterId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.ClusterId))) - i-- - dAtA[i] = 0x2a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobFailedEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobFailedEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobFailedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PodNamespace) > 0 { - i -= len(m.PodNamespace) - copy(dAtA[i:], m.PodNamespace) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodNamespace))) - i-- - dAtA[i] = 0x72 - } - if len(m.PodName) > 0 { - i -= len(m.PodName) - copy(dAtA[i:], m.PodName) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodName))) - i-- - dAtA[i] = 0x6a - } - if m.Cause != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.Cause)) - i-- - dAtA[i] = 0x60 - } - if len(m.ContainerStatuses) > 0 { - for iNdEx := len(m.ContainerStatuses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ContainerStatuses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - } - if m.PodNumber != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x50 - } - if len(m.NodeName) > 0 { - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintEvent(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0x4a - } - if len(m.KubernetesId) > 0 { - i -= len(m.KubernetesId) - copy(dAtA[i:], m.KubernetesId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.KubernetesId))) - i-- - dAtA[i] = 0x42 - } - if len(m.ExitCodes) > 0 { - for k := range m.ExitCodes { - v := m.ExitCodes[k] - baseI := i - i = encodeVarintEvent(dAtA, i, uint64(v)) - i-- - dAtA[i] = 0x10 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintEvent(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintEvent(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x3a - } - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x32 - } - if len(m.ClusterId) > 0 { - i -= len(m.ClusterId) - copy(dAtA[i:], m.ClusterId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.ClusterId))) - i-- - dAtA[i] = 0x2a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobPreemptingEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobPreemptingEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobPreemptingEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x32 - } - if len(m.Requestor) > 0 { - i -= len(m.Requestor) - copy(dAtA[i:], m.Requestor) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Requestor))) - i-- - dAtA[i] = 0x2a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobPreemptedEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobPreemptedEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobPreemptedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x4a - } - if len(m.PreemptiveRunId) > 0 { - i -= len(m.PreemptiveRunId) - copy(dAtA[i:], m.PreemptiveRunId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PreemptiveRunId))) - i-- - dAtA[i] = 0x42 - } - if len(m.PreemptiveJobId) > 0 { - i -= len(m.PreemptiveJobId) - copy(dAtA[i:], m.PreemptiveJobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PreemptiveJobId))) - i-- - dAtA[i] = 0x3a - } - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0x32 - } - if len(m.ClusterId) > 0 { - i -= len(m.ClusterId) - copy(dAtA[i:], m.ClusterId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.ClusterId))) - i-- - dAtA[i] = 0x2a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobSucceededEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobSucceededEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobSucceededEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PodNamespace) > 0 { - i -= len(m.PodNamespace) - copy(dAtA[i:], m.PodNamespace) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodNamespace))) - i-- - dAtA[i] = 0x52 - } - if len(m.PodName) > 0 { - i -= len(m.PodName) - copy(dAtA[i:], m.PodName) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodName))) - i-- - dAtA[i] = 0x4a - } - if m.PodNumber != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x40 - } - if len(m.NodeName) > 0 { - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintEvent(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0x3a - } - if len(m.KubernetesId) > 0 { - i -= len(m.KubernetesId) - copy(dAtA[i:], m.KubernetesId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.KubernetesId))) - i-- - dAtA[i] = 0x32 - } - if len(m.ClusterId) > 0 { - i -= len(m.ClusterId) - copy(dAtA[i:], m.ClusterId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.ClusterId))) - i-- - dAtA[i] = 0x2a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobUtilisationEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobUtilisationEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobUtilisationEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AvgResourcesForPeriod) > 0 { - for k := range m.AvgResourcesForPeriod { - v := m.AvgResourcesForPeriod[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintEvent(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintEvent(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x6a - } - } - if len(m.TotalCumulativeUsage) > 0 { - for k := range m.TotalCumulativeUsage { - v := m.TotalCumulativeUsage[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintEvent(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintEvent(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x62 - } - } - if len(m.PodNamespace) > 0 { - i -= len(m.PodNamespace) - copy(dAtA[i:], m.PodNamespace) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodNamespace))) - i-- - dAtA[i] = 0x5a - } - if len(m.PodName) > 0 { - i -= len(m.PodName) - copy(dAtA[i:], m.PodName) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodName))) - i-- - dAtA[i] = 0x52 - } - if m.PodNumber != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x48 - } - if len(m.NodeName) > 0 { - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintEvent(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0x42 - } - if len(m.MaxResourcesForPeriod) > 0 { - for k := range m.MaxResourcesForPeriod { - v := m.MaxResourcesForPeriod[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintEvent(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintEvent(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x3a - } - } - if len(m.KubernetesId) > 0 { - i -= len(m.KubernetesId) - copy(dAtA[i:], m.KubernetesId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.KubernetesId))) - i-- - dAtA[i] = 0x32 - } - if len(m.ClusterId) > 0 { - i -= len(m.ClusterId) - copy(dAtA[i:], m.ClusterId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.ClusterId))) - i-- - dAtA[i] = 0x2a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobReprioritizingEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobReprioritizingEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobReprioritizingEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Requestor) > 0 { - i -= len(m.Requestor) - copy(dAtA[i:], m.Requestor) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Requestor))) - i-- - dAtA[i] = 0x32 - } - if m.NewPriority != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NewPriority)))) - i-- - dAtA[i] = 0x29 - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobReprioritizedEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobReprioritizedEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobReprioritizedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Requestor) > 0 { - i -= len(m.Requestor) - copy(dAtA[i:], m.Requestor) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Requestor))) - i-- - dAtA[i] = 0x32 - } - if m.NewPriority != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NewPriority)))) - i-- - dAtA[i] = 0x29 - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobCancellingEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobCancellingEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobCancellingEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x32 - } - if len(m.Requestor) > 0 { - i -= len(m.Requestor) - copy(dAtA[i:], m.Requestor) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Requestor))) - i-- - dAtA[i] = 0x2a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobCancelledEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobCancelledEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobCancelledEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x32 - } - if len(m.Requestor) > 0 { - i -= len(m.Requestor) - copy(dAtA[i:], m.Requestor) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Requestor))) - i-- - dAtA[i] = 0x2a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobTerminatedEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobTerminatedEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobTerminatedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PodNamespace) > 0 { - i -= len(m.PodNamespace) - copy(dAtA[i:], m.PodNamespace) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodNamespace))) - i-- - dAtA[i] = 0x52 - } - if len(m.PodName) > 0 { - i -= len(m.PodName) - copy(dAtA[i:], m.PodName) - i = encodeVarintEvent(dAtA, i, uint64(len(m.PodName))) - i-- - dAtA[i] = 0x4a - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x42 - } - if m.PodNumber != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x38 - } - if len(m.KubernetesId) > 0 { - i -= len(m.KubernetesId) - copy(dAtA[i:], m.KubernetesId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.KubernetesId))) - i-- - dAtA[i] = 0x32 - } - if len(m.ClusterId) > 0 { - i -= len(m.ClusterId) - copy(dAtA[i:], m.ClusterId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.ClusterId))) - i-- - dAtA[i] = 0x2a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EventMessage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventMessage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Events != nil { - { - size := m.Events.Size() - i -= size - if _, err := m.Events.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } +func (x *WatchRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_event_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *EventMessage_Submitted) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +// Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead. +func (*WatchRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_event_proto_rawDescGZIP(), []int{23} +} + +func (x *WatchRequest) GetQueue() string { + if x != nil { + return x.Queue + } + return "" +} + +func (x *WatchRequest) GetJobSetId() string { + if x != nil { + return x.JobSetId + } + return "" +} + +func (x *WatchRequest) GetFromId() string { + if x != nil { + return x.FromId + } + return "" +} + +var File_pkg_api_event_proto protoreflect.FileDescriptor + +var file_pkg_api_event_proto_rawDesc = string([]byte{ + 0x0a, 0x13, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x70, 0x6b, 0x67, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x14, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, + 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x34, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x6d, 0x61, + 0x63, 0x68, 0x69, 0x6e, 0x65, 0x72, 0x79, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb0, 0x01, 0x0a, 0x11, 0x4a, 0x6f, 0x62, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x15, + 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, + 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, + 0x1a, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x91, 0x01, 0x0a, 0x0e, + 0x4a, 0x6f, 0x62, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x15, + 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, + 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x22, + 0xb0, 0x01, 0x0a, 0x0e, 0x4a, 0x6f, 0x62, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x64, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, + 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, + 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x34, 0x0a, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x49, 0x64, 0x22, 0xb8, 0x02, 0x0a, 0x15, 0x4a, 0x6f, 0x62, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x15, 0x0a, 0x06, + 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, + 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, + 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1d, 0x0a, + 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, + 0x65, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6b, 0x75, 0x62, + 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x64, + 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, + 0x6f, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x75, 0x6e, 0x5f, + 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0c, 0x72, 0x75, 0x6e, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x22, 0x97, 0x01, + 0x0a, 0x14, 0x4a, 0x6f, 0x62, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, + 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, + 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, + 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, + 0x65, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x22, 0xb5, 0x02, 0x0a, 0x0f, 0x4a, 0x6f, 0x62, 0x50, + 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, + 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, + 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, + 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x6b, + 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x49, 0x64, + 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, + 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x6f, + 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, + 0xd2, 0x02, 0x0a, 0x0f, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, + 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x34, + 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, + 0x73, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6b, 0x75, 0x62, 0x65, + 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x64, 0x4e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x23, 0x0a, 0x0d, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x22, 0xf8, 0x03, 0x0a, 0x13, 0x4a, 0x6f, 0x62, 0x49, 0x6e, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x15, 0x0a, 0x06, + 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, + 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, + 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1d, 0x0a, + 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, + 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x49, + 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x19, 0x0a, + 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x6f, 0x64, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x5b, 0x0a, + 0x11, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, + 0x6f, 0x62, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x2e, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x1a, 0x43, 0x0a, 0x15, 0x49, 0x6e, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, + 0xf3, 0x02, 0x0a, 0x18, 0x4a, 0x6f, 0x62, 0x55, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x53, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x15, 0x0a, 0x06, + 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, + 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, + 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1d, 0x0a, + 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, + 0x65, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6b, 0x75, 0x62, + 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, + 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, + 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x64, 0x4e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0xd5, 0x04, 0x0a, 0x0e, 0x4a, 0x6f, 0x62, 0x46, 0x61, 0x69, + 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, + 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, + 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, + 0x65, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x12, 0x45, 0x0a, 0x0a, 0x65, 0x78, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x07, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x46, 0x61, + 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x78, 0x69, 0x74, 0x43, 0x6f, + 0x64, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x65, 0x78, + 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6b, 0x75, 0x62, 0x65, 0x72, + 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, + 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x64, + 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, + 0x6f, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x6f, 0x64, 0x4e, + 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x74, + 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x0b, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x74, + 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x12, 0x20, 0x0a, + 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x43, 0x61, 0x75, 0x73, 0x65, 0x52, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x1a, + 0x3c, 0x0a, 0x0e, 0x45, 0x78, 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xcb, 0x01, + 0x0a, 0x12, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, + 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, + 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, + 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0xba, 0x02, 0x0a, 0x11, + 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, + 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, + 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x65, + 0x6d, 0x70, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x76, 0x65, 0x4a, + 0x6f, 0x62, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, + 0x76, 0x65, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0f, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x76, 0x65, 0x52, 0x75, 0x6e, 0x49, 0x64, + 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0xd4, 0x02, 0x0a, 0x11, 0x4a, 0x6f, 0x62, + 0x53, 0x75, 0x63, 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x15, + 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, + 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, + 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x23, + 0x0a, 0x0d, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x69, 0x64, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, + 0x73, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, + 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x6f, + 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, + 0x83, 0x08, 0x0a, 0x13, 0x4a, 0x6f, 0x62, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x73, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1c, + 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, + 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, + 0x75, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x6b, 0x75, 0x62, 0x65, 0x72, + 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x49, 0x64, 0x12, 0x69, 0x0a, 0x15, + 0x4d, 0x61, 0x78, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x50, + 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x61, 0x78, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x46, 0x6f, 0x72, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x15, 0x4d, 0x61, 0x78, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x46, 0x6f, + 0x72, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x64, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, + 0x0a, 0x0d, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x12, 0x68, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x75, 0x6d, + 0x75, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x18, 0x0c, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x55, 0x74, 0x69, + 0x6c, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x6f, + 0x74, 0x61, 0x6c, 0x43, 0x75, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x55, 0x73, 0x61, + 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x75, + 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x69, 0x0a, + 0x15, 0x41, 0x76, 0x67, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x46, 0x6f, 0x72, + 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x76, 0x67, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x15, 0x41, 0x76, 0x67, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x46, + 0x6f, 0x72, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x1a, 0x78, 0x0a, 0x1a, 0x4d, 0x61, 0x78, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x50, 0x65, 0x72, 0x69, 0x6f, + 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, + 0x2e, 0x61, 0x70, 0x69, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6b, + 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x51, + 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x1a, 0x77, 0x0a, 0x19, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x75, 0x6d, 0x75, 0x6c, + 0x61, 0x74, 0x69, 0x76, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x44, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2e, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x6d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x78, 0x0a, 0x1a, 0x41, + 0x76, 0x67, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x50, 0x65, + 0x72, 0x69, 0x6f, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6b, 0x38, 0x73, + 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x72, 0x79, + 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xda, 0x01, 0x0a, 0x16, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x70, + 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, + 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, + 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x50, 0x72, 0x69, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x6f, + 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x6f, 0x72, 0x22, 0xd9, 0x01, 0x0a, 0x15, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x70, 0x72, 0x69, 0x6f, + 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x15, 0x0a, 0x06, + 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, + 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, + 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x21, 0x0a, + 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x01, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x22, 0xcb, + 0x01, 0x0a, 0x12, 0x4a, 0x6f, 0x62, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x69, 0x6e, 0x67, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, + 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, + 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, + 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0xca, 0x01, 0x0a, + 0x11, 0x4a, 0x6f, 0x62, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, + 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, + 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x34, 0x0a, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x6f, 0x72, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x6f, + 0x72, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0xd0, 0x02, 0x0a, 0x12, 0x4a, 0x6f, + 0x62, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, + 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, + 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x23, 0x0a, 0x0d, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x69, + 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, + 0x74, 0x65, 0x73, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x64, 0x4e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x23, 0x0a, 0x0d, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0xbd, 0x08, 0x0a, + 0x0c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, + 0x09, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, + 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x09, 0x73, 0x75, 0x62, 0x6d, + 0x69, 0x74, 0x74, 0x65, 0x64, 0x12, 0x2d, 0x0a, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x51, + 0x75, 0x65, 0x75, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x06, 0x71, 0x75, + 0x65, 0x75, 0x65, 0x64, 0x12, 0x2d, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x4c, 0x65, + 0x61, 0x73, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x06, 0x6c, 0x65, 0x61, + 0x73, 0x65, 0x64, 0x12, 0x43, 0x0a, 0x0e, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x72, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x6c, 0x65, 0x61, 0x73, 0x65, + 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x12, 0x40, 0x0a, 0x0d, 0x6c, 0x65, 0x61, 0x73, + 0x65, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x45, 0x78, + 0x70, 0x69, 0x72, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x6c, 0x65, + 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x12, 0x30, 0x0a, 0x07, 0x70, 0x65, + 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x48, 0x00, 0x52, 0x07, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x07, + 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x4d, + 0x0a, 0x12, 0x75, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x4a, 0x6f, 0x62, 0x55, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x53, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x10, 0x75, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x2d, 0x0a, + 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x48, 0x00, 0x52, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x09, + 0x73, 0x75, 0x63, 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x75, 0x63, 0x63, 0x65, 0x65, 0x64, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x09, 0x73, 0x75, 0x63, 0x63, 0x65, + 0x65, 0x64, 0x65, 0x64, 0x12, 0x42, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, + 0x74, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x72, 0x65, 0x70, 0x72, 0x69, + 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x69, 0x6e, 0x67, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, + 0x69, 0x6e, 0x67, 0x12, 0x36, 0x0a, 0x09, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, + 0x52, 0x09, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x3c, 0x0a, 0x0b, 0x75, + 0x74, 0x69, 0x6c, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x73, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x74, + 0x69, 0x6c, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3d, 0x0a, 0x0c, 0x69, 0x6e, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, + 0x49, 0x6e, 0x66, 0x6f, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x69, 0x6e, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x45, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x72, + 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x69, 0x6e, 0x67, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x70, 0x72, 0x69, 0x6f, + 0x72, 0x69, 0x74, 0x69, 0x7a, 0x69, 0x6e, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, + 0x0e, 0x72, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x69, 0x6e, 0x67, 0x12, + 0x36, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x18, 0x15, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x65, 0x65, + 0x6d, 0x70, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x09, 0x70, 0x72, + 0x65, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x65, 0x6d, + 0x70, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, + 0x6e, 0x67, 0x42, 0x08, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x95, 0x01, 0x0a, + 0x0f, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x78, 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x61, 0x75, 0x73, 0x65, 0x52, 0x05, 0x63, + 0x61, 0x75, 0x73, 0x65, 0x22, 0x51, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x07, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x9b, 0x01, 0x0a, 0x0d, 0x4a, 0x6f, 0x62, 0x53, + 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x61, 0x74, + 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x77, 0x61, 0x74, 0x63, 0x68, 0x12, + 0x26, 0x0a, 0x0f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x66, 0x72, 0x6f, 0x6d, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x26, 0x0a, + 0x0e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x49, 0x66, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x49, 0x66, 0x4d, 0x69, + 0x73, 0x73, 0x69, 0x6e, 0x67, 0x22, 0x5b, 0x0a, 0x0c, 0x57, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, + 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x72, 0x6f, + 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x72, 0x6f, 0x6d, + 0x49, 0x64, 0x2a, 0x4c, 0x0a, 0x05, 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x76, 0x69, 0x63, 0x74, 0x65, + 0x64, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4f, 0x4d, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, + 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x45, 0x78, 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, + 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x10, 0x04, + 0x32, 0xe6, 0x01, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x65, 0x0a, 0x0f, 0x47, 0x65, + 0x74, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x12, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1d, 0x3a, 0x01, 0x2a, 0x22, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2d, 0x73, + 0x65, 0x74, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x75, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x30, + 0x01, 0x12, 0x3a, 0x0a, 0x05, 0x57, 0x61, 0x74, 0x63, 0x68, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x30, 0x01, 0x12, 0x3a, 0x0a, + 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, + 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x40, 0x5a, 0x27, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x2f, 0x70, 0x6b, 0x67, + 0x2f, 0x61, 0x70, 0x69, 0xaa, 0x02, 0x14, 0x41, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x6f, 0x2e, 0x41, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +}) -func (m *EventMessage_Submitted) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Submitted != nil { - { - size, err := m.Submitted.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *EventMessage_Queued) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_Queued) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Queued != nil { - { - size, err := m.Queued.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *EventMessage_Leased) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_Leased) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Leased != nil { - { - size, err := m.Leased.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} -func (m *EventMessage_LeaseReturned) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_LeaseReturned) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.LeaseReturned != nil { - { - size, err := m.LeaseReturned.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - return len(dAtA) - i, nil -} -func (m *EventMessage_LeaseExpired) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_LeaseExpired) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.LeaseExpired != nil { - { - size, err := m.LeaseExpired.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *EventMessage_Pending) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_Pending) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Pending != nil { - { - size, err := m.Pending.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - return len(dAtA) - i, nil -} -func (m *EventMessage_Running) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_Running) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Running != nil { - { - size, err := m.Running.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - return len(dAtA) - i, nil -} -func (m *EventMessage_UnableToSchedule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_UnableToSchedule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UnableToSchedule != nil { - { - size, err := m.UnableToSchedule.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - return len(dAtA) - i, nil -} -func (m *EventMessage_Failed) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_Failed) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Failed != nil { - { - size, err := m.Failed.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - return len(dAtA) - i, nil -} -func (m *EventMessage_Succeeded) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_Succeeded) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Succeeded != nil { - { - size, err := m.Succeeded.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - return len(dAtA) - i, nil -} -func (m *EventMessage_Reprioritized) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_Reprioritized) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Reprioritized != nil { - { - size, err := m.Reprioritized.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - return len(dAtA) - i, nil -} -func (m *EventMessage_Cancelling) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_Cancelling) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Cancelling != nil { - { - size, err := m.Cancelling.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - return len(dAtA) - i, nil -} -func (m *EventMessage_Cancelled) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_Cancelled) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Cancelled != nil { - { - size, err := m.Cancelled.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - return len(dAtA) - i, nil -} -func (m *EventMessage_Utilisation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_Utilisation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Utilisation != nil { - { - size, err := m.Utilisation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - return len(dAtA) - i, nil -} -func (m *EventMessage_IngressInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_IngressInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.IngressInfo != nil { - { - size, err := m.IngressInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - return len(dAtA) - i, nil -} -func (m *EventMessage_Reprioritizing) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_Reprioritizing) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Reprioritizing != nil { - { - size, err := m.Reprioritizing.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - return len(dAtA) - i, nil -} -func (m *EventMessage_Preempted) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_Preempted) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Preempted != nil { - { - size, err := m.Preempted.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa - } - return len(dAtA) - i, nil -} -func (m *EventMessage_Preempting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventMessage_Preempting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Preempting != nil { - { - size, err := m.Preempting.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 - } - return len(dAtA) - i, nil -} -func (m *ContainerStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContainerStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContainerStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Cause != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.Cause)) - i-- - dAtA[i] = 0x28 - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x1a - } - if m.ExitCode != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.ExitCode)) - i-- - dAtA[i] = 0x10 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EventStreamMessage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventStreamMessage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventStreamMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Message != nil { - { - size, err := m.Message.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobSetRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobSetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ErrorIfMissing { - i-- - if m.ErrorIfMissing { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x22 - } - if len(m.FromMessageId) > 0 { - i -= len(m.FromMessageId) - copy(dAtA[i:], m.FromMessageId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.FromMessageId))) - i-- - dAtA[i] = 0x1a - } - if m.Watch { - i-- - if m.Watch { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WatchRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WatchRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.FromId) > 0 { - i -= len(m.FromId) - copy(dAtA[i:], m.FromId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.FromId))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintEvent(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintEvent(dAtA []byte, offset int, v uint64) int { - offset -= sovEvent(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *JobSubmittedEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - if m.Job != nil { - l = m.Job.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobQueuedEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobLeasedEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobLeaseReturnedEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.KubernetesId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovEvent(uint64(m.PodNumber)) - } - if m.RunAttempted { - n += 2 - } - return n -} - -func (m *JobLeaseExpiredEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobPendingEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.KubernetesId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovEvent(uint64(m.PodNumber)) - } - l = len(m.PodName) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.PodNamespace) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobRunningEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.KubernetesId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.NodeName) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovEvent(uint64(m.PodNumber)) - } - l = len(m.PodName) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.PodNamespace) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobIngressInfoEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.KubernetesId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.NodeName) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovEvent(uint64(m.PodNumber)) - } - if len(m.IngressAddresses) > 0 { - for k, v := range m.IngressAddresses { - _ = k - _ = v - mapEntrySize := 1 + sovEvent(uint64(k)) + 1 + len(v) + sovEvent(uint64(len(v))) - n += mapEntrySize + 1 + sovEvent(uint64(mapEntrySize)) - } - } - l = len(m.PodName) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.PodNamespace) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobUnableToScheduleEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.KubernetesId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.NodeName) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovEvent(uint64(m.PodNumber)) - } - l = len(m.PodName) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.PodNamespace) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobFailedEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if len(m.ExitCodes) > 0 { - for k, v := range m.ExitCodes { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovEvent(uint64(len(k))) + 1 + sovEvent(uint64(v)) - n += mapEntrySize + 1 + sovEvent(uint64(mapEntrySize)) - } - } - l = len(m.KubernetesId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.NodeName) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovEvent(uint64(m.PodNumber)) - } - if len(m.ContainerStatuses) > 0 { - for _, e := range m.ContainerStatuses { - l = e.Size() - n += 1 + l + sovEvent(uint64(l)) - } - } - if m.Cause != 0 { - n += 1 + sovEvent(uint64(m.Cause)) - } - l = len(m.PodName) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.PodNamespace) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobPreemptingEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Requestor) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobPreemptedEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.PreemptiveJobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.PreemptiveRunId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobSucceededEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.KubernetesId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.NodeName) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovEvent(uint64(m.PodNumber)) - } - l = len(m.PodName) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.PodNamespace) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobUtilisationEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.KubernetesId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if len(m.MaxResourcesForPeriod) > 0 { - for k, v := range m.MaxResourcesForPeriod { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovEvent(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovEvent(uint64(len(k))) + l - n += mapEntrySize + 1 + sovEvent(uint64(mapEntrySize)) - } - } - l = len(m.NodeName) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovEvent(uint64(m.PodNumber)) - } - l = len(m.PodName) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.PodNamespace) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if len(m.TotalCumulativeUsage) > 0 { - for k, v := range m.TotalCumulativeUsage { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovEvent(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovEvent(uint64(len(k))) + l - n += mapEntrySize + 1 + sovEvent(uint64(mapEntrySize)) - } - } - if len(m.AvgResourcesForPeriod) > 0 { - for k, v := range m.AvgResourcesForPeriod { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovEvent(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovEvent(uint64(len(k))) + l - n += mapEntrySize + 1 + sovEvent(uint64(mapEntrySize)) - } - } - return n -} - -func (m *JobReprioritizingEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - if m.NewPriority != 0 { - n += 9 - } - l = len(m.Requestor) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobReprioritizedEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - if m.NewPriority != 0 { - n += 9 - } - l = len(m.Requestor) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobCancellingEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Requestor) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobCancelledEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Requestor) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobTerminatedEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.KubernetesId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovEvent(uint64(m.PodNumber)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.PodName) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.PodNamespace) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *EventMessage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Events != nil { - n += m.Events.Size() - } - return n -} - -func (m *EventMessage_Submitted) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Submitted != nil { - l = m.Submitted.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_Queued) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Queued != nil { - l = m.Queued.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_Leased) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Leased != nil { - l = m.Leased.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_LeaseReturned) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.LeaseReturned != nil { - l = m.LeaseReturned.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_LeaseExpired) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.LeaseExpired != nil { - l = m.LeaseExpired.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_Pending) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Pending != nil { - l = m.Pending.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_Running) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Running != nil { - l = m.Running.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_UnableToSchedule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.UnableToSchedule != nil { - l = m.UnableToSchedule.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_Failed) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Failed != nil { - l = m.Failed.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_Succeeded) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Succeeded != nil { - l = m.Succeeded.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_Reprioritized) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Reprioritized != nil { - l = m.Reprioritized.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_Cancelling) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Cancelling != nil { - l = m.Cancelling.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_Cancelled) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Cancelled != nil { - l = m.Cancelled.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_Utilisation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Utilisation != nil { - l = m.Utilisation.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_IngressInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.IngressInfo != nil { - l = m.IngressInfo.Size() - n += 2 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_Reprioritizing) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Reprioritizing != nil { - l = m.Reprioritizing.Size() - n += 2 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_Preempted) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Preempted != nil { - l = m.Preempted.Size() - n += 2 + l + sovEvent(uint64(l)) - } - return n -} -func (m *EventMessage_Preempting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Preempting != nil { - l = m.Preempting.Size() - n += 2 + l + sovEvent(uint64(l)) - } - return n -} -func (m *ContainerStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.ExitCode != 0 { - n += 1 + sovEvent(uint64(m.ExitCode)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Cause != 0 { - n += 1 + sovEvent(uint64(m.Cause)) - } - return n -} - -func (m *EventStreamMessage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Message != nil { - l = m.Message.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func (m *JobSetRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Watch { - n += 2 - } - l = len(m.FromMessageId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.ErrorIfMissing { - n += 2 - } - return n -} - -func (m *WatchRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.FromId) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func sovEvent(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozEvent(x uint64) (n int) { - return sovEvent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *JobSubmittedEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobSubmittedEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSubmittedEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Job", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Job == nil { - m.Job = &Job{} - } - if err := m.Job.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobQueuedEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobQueuedEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobQueuedEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobLeasedEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobLeasedEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobLeasedEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobLeaseReturnedEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobLeaseReturnedEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobLeaseReturnedEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubernetesId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KubernetesId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RunAttempted", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RunAttempted = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobLeaseExpiredEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobLeaseExpiredEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobLeaseExpiredEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobPendingEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobPendingEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobPendingEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubernetesId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KubernetesId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodNamespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobRunningEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRunningEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRunningEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubernetesId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KubernetesId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodNamespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobIngressInfoEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobIngressInfoEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobIngressInfoEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubernetesId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KubernetesId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IngressAddresses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.IngressAddresses == nil { - m.IngressAddresses = make(map[int32]string) - } - var mapkey int32 - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapkey |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthEvent - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthEvent - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.IngressAddresses[mapkey] = mapvalue - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodNamespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobUnableToScheduleEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobUnableToScheduleEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobUnableToScheduleEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubernetesId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KubernetesId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodNamespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobFailedEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobFailedEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobFailedEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExitCodes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExitCodes == nil { - m.ExitCodes = make(map[string]int32) - } - var mapkey string - var mapvalue int32 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthEvent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthEvent - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ExitCodes[mapkey] = mapvalue - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubernetesId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KubernetesId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerStatuses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerStatuses = append(m.ContainerStatuses, &ContainerStatus{}) - if err := m.ContainerStatuses[len(m.ContainerStatuses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Cause", wireType) - } - m.Cause = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Cause |= Cause(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodNamespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobPreemptingEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobPreemptingEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobPreemptingEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Requestor", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Requestor = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobPreemptedEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobPreemptedEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobPreemptedEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreemptiveJobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PreemptiveJobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreemptiveRunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PreemptiveRunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobSucceededEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobSucceededEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSucceededEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubernetesId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KubernetesId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodNamespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobUtilisationEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobUtilisationEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobUtilisationEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubernetesId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KubernetesId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxResourcesForPeriod", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxResourcesForPeriod == nil { - m.MaxResourcesForPeriod = make(map[string]*resource.Quantity) - } - var mapkey string - var mapvalue *resource.Quantity - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthEvent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthEvent - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthEvent - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthEvent - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.MaxResourcesForPeriod[mapkey] = mapvalue - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodNamespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalCumulativeUsage", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TotalCumulativeUsage == nil { - m.TotalCumulativeUsage = make(map[string]*resource.Quantity) - } - var mapkey string - var mapvalue *resource.Quantity - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthEvent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthEvent - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthEvent - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthEvent - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.TotalCumulativeUsage[mapkey] = mapvalue - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AvgResourcesForPeriod", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AvgResourcesForPeriod == nil { - m.AvgResourcesForPeriod = make(map[string]*resource.Quantity) - } - var mapkey string - var mapvalue *resource.Quantity - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthEvent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthEvent - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthEvent - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthEvent - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.AvgResourcesForPeriod[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobReprioritizingEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobReprioritizingEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobReprioritizingEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field NewPriority", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.NewPriority = float64(math.Float64frombits(v)) - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Requestor", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Requestor = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobReprioritizedEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobReprioritizedEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobReprioritizedEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field NewPriority", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.NewPriority = float64(math.Float64frombits(v)) - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Requestor", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Requestor = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobCancellingEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobCancellingEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobCancellingEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Requestor", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Requestor = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobCancelledEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobCancelledEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobCancelledEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Requestor", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Requestor = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobTerminatedEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobTerminatedEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobTerminatedEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubernetesId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KubernetesId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodNamespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventMessage) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventMessage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventMessage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Submitted", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobSubmittedEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_Submitted{v} - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queued", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobQueuedEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_Queued{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Leased", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobLeasedEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_Leased{v} - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LeaseReturned", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobLeaseReturnedEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_LeaseReturned{v} - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LeaseExpired", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobLeaseExpiredEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_LeaseExpired{v} - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pending", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobPendingEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_Pending{v} - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Running", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobRunningEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_Running{v} - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UnableToSchedule", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobUnableToScheduleEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_UnableToSchedule{v} - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Failed", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobFailedEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_Failed{v} - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobSucceededEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_Succeeded{v} - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reprioritized", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobReprioritizedEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_Reprioritized{v} - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cancelling", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobCancellingEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_Cancelling{v} - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cancelled", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobCancelledEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_Cancelled{v} - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Utilisation", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobUtilisationEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_Utilisation{v} - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IngressInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobIngressInfoEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_IngressInfo{v} - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reprioritizing", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobReprioritizingEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_Reprioritizing{v} - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Preempted", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobPreemptedEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_Preempted{v} - iNdEx = postIndex - case 22: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Preempting", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobPreemptingEvent{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Events = &EventMessage_Preempting{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContainerStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContainerStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExitCode", wireType) - } - m.ExitCode = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExitCode |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Cause", wireType) - } - m.Cause = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Cause |= Cause(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventStreamMessage) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventStreamMessage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventStreamMessage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Message == nil { - m.Message = &EventMessage{} - } - if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobSetRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobSetRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSetRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Watch", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Watch = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FromMessageId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FromMessageId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrorIfMissing", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ErrorIfMissing = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WatchRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WatchRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WatchRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FromId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FromId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +var ( + file_pkg_api_event_proto_rawDescOnce sync.Once + file_pkg_api_event_proto_rawDescData []byte +) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipEvent(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthEvent - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupEvent - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthEvent - } - if depth == 0 { - return iNdEx, nil - } +func file_pkg_api_event_proto_rawDescGZIP() []byte { + file_pkg_api_event_proto_rawDescOnce.Do(func() { + file_pkg_api_event_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_api_event_proto_rawDesc), len(file_pkg_api_event_proto_rawDesc))) + }) + return file_pkg_api_event_proto_rawDescData +} + +var file_pkg_api_event_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_pkg_api_event_proto_msgTypes = make([]protoimpl.MessageInfo, 29) +var file_pkg_api_event_proto_goTypes = []any{ + (Cause)(0), // 0: api.Cause + (*JobSubmittedEvent)(nil), // 1: api.JobSubmittedEvent + (*JobQueuedEvent)(nil), // 2: api.JobQueuedEvent + (*JobLeasedEvent)(nil), // 3: api.JobLeasedEvent + (*JobLeaseReturnedEvent)(nil), // 4: api.JobLeaseReturnedEvent + (*JobLeaseExpiredEvent)(nil), // 5: api.JobLeaseExpiredEvent + (*JobPendingEvent)(nil), // 6: api.JobPendingEvent + (*JobRunningEvent)(nil), // 7: api.JobRunningEvent + (*JobIngressInfoEvent)(nil), // 8: api.JobIngressInfoEvent + (*JobUnableToScheduleEvent)(nil), // 9: api.JobUnableToScheduleEvent + (*JobFailedEvent)(nil), // 10: api.JobFailedEvent + (*JobPreemptingEvent)(nil), // 11: api.JobPreemptingEvent + (*JobPreemptedEvent)(nil), // 12: api.JobPreemptedEvent + (*JobSucceededEvent)(nil), // 13: api.JobSucceededEvent + (*JobUtilisationEvent)(nil), // 14: api.JobUtilisationEvent + (*JobReprioritizingEvent)(nil), // 15: api.JobReprioritizingEvent + (*JobReprioritizedEvent)(nil), // 16: api.JobReprioritizedEvent + (*JobCancellingEvent)(nil), // 17: api.JobCancellingEvent + (*JobCancelledEvent)(nil), // 18: api.JobCancelledEvent + (*JobTerminatedEvent)(nil), // 19: api.JobTerminatedEvent + (*EventMessage)(nil), // 20: api.EventMessage + (*ContainerStatus)(nil), // 21: api.ContainerStatus + (*EventStreamMessage)(nil), // 22: api.EventStreamMessage + (*JobSetRequest)(nil), // 23: api.JobSetRequest + (*WatchRequest)(nil), // 24: api.WatchRequest + nil, // 25: api.JobIngressInfoEvent.IngressAddressesEntry + nil, // 26: api.JobFailedEvent.ExitCodesEntry + nil, // 27: api.JobUtilisationEvent.MaxResourcesForPeriodEntry + nil, // 28: api.JobUtilisationEvent.TotalCumulativeUsageEntry + nil, // 29: api.JobUtilisationEvent.AvgResourcesForPeriodEntry + (*timestamppb.Timestamp)(nil), // 30: google.protobuf.Timestamp + (*Job)(nil), // 31: api.Job + (*resource.Quantity)(nil), // 32: k8s.io.apimachinery.pkg.api.resource.Quantity + (*emptypb.Empty)(nil), // 33: google.protobuf.Empty + (*HealthCheckResponse)(nil), // 34: api.HealthCheckResponse +} +var file_pkg_api_event_proto_depIdxs = []int32{ + 30, // 0: api.JobSubmittedEvent.created:type_name -> google.protobuf.Timestamp + 31, // 1: api.JobSubmittedEvent.job:type_name -> api.Job + 30, // 2: api.JobQueuedEvent.created:type_name -> google.protobuf.Timestamp + 30, // 3: api.JobLeasedEvent.created:type_name -> google.protobuf.Timestamp + 30, // 4: api.JobLeaseReturnedEvent.created:type_name -> google.protobuf.Timestamp + 30, // 5: api.JobLeaseExpiredEvent.created:type_name -> google.protobuf.Timestamp + 30, // 6: api.JobPendingEvent.created:type_name -> google.protobuf.Timestamp + 30, // 7: api.JobRunningEvent.created:type_name -> google.protobuf.Timestamp + 30, // 8: api.JobIngressInfoEvent.created:type_name -> google.protobuf.Timestamp + 25, // 9: api.JobIngressInfoEvent.ingress_addresses:type_name -> api.JobIngressInfoEvent.IngressAddressesEntry + 30, // 10: api.JobUnableToScheduleEvent.created:type_name -> google.protobuf.Timestamp + 30, // 11: api.JobFailedEvent.created:type_name -> google.protobuf.Timestamp + 26, // 12: api.JobFailedEvent.exit_codes:type_name -> api.JobFailedEvent.ExitCodesEntry + 21, // 13: api.JobFailedEvent.container_statuses:type_name -> api.ContainerStatus + 0, // 14: api.JobFailedEvent.cause:type_name -> api.Cause + 30, // 15: api.JobPreemptingEvent.created:type_name -> google.protobuf.Timestamp + 30, // 16: api.JobPreemptedEvent.created:type_name -> google.protobuf.Timestamp + 30, // 17: api.JobSucceededEvent.created:type_name -> google.protobuf.Timestamp + 30, // 18: api.JobUtilisationEvent.created:type_name -> google.protobuf.Timestamp + 27, // 19: api.JobUtilisationEvent.MaxResourcesForPeriod:type_name -> api.JobUtilisationEvent.MaxResourcesForPeriodEntry + 28, // 20: api.JobUtilisationEvent.total_cumulative_usage:type_name -> api.JobUtilisationEvent.TotalCumulativeUsageEntry + 29, // 21: api.JobUtilisationEvent.AvgResourcesForPeriod:type_name -> api.JobUtilisationEvent.AvgResourcesForPeriodEntry + 30, // 22: api.JobReprioritizingEvent.created:type_name -> google.protobuf.Timestamp + 30, // 23: api.JobReprioritizedEvent.created:type_name -> google.protobuf.Timestamp + 30, // 24: api.JobCancellingEvent.created:type_name -> google.protobuf.Timestamp + 30, // 25: api.JobCancelledEvent.created:type_name -> google.protobuf.Timestamp + 30, // 26: api.JobTerminatedEvent.created:type_name -> google.protobuf.Timestamp + 1, // 27: api.EventMessage.submitted:type_name -> api.JobSubmittedEvent + 2, // 28: api.EventMessage.queued:type_name -> api.JobQueuedEvent + 3, // 29: api.EventMessage.leased:type_name -> api.JobLeasedEvent + 4, // 30: api.EventMessage.lease_returned:type_name -> api.JobLeaseReturnedEvent + 5, // 31: api.EventMessage.lease_expired:type_name -> api.JobLeaseExpiredEvent + 6, // 32: api.EventMessage.pending:type_name -> api.JobPendingEvent + 7, // 33: api.EventMessage.running:type_name -> api.JobRunningEvent + 9, // 34: api.EventMessage.unable_to_schedule:type_name -> api.JobUnableToScheduleEvent + 10, // 35: api.EventMessage.failed:type_name -> api.JobFailedEvent + 13, // 36: api.EventMessage.succeeded:type_name -> api.JobSucceededEvent + 16, // 37: api.EventMessage.reprioritized:type_name -> api.JobReprioritizedEvent + 17, // 38: api.EventMessage.cancelling:type_name -> api.JobCancellingEvent + 18, // 39: api.EventMessage.cancelled:type_name -> api.JobCancelledEvent + 14, // 40: api.EventMessage.utilisation:type_name -> api.JobUtilisationEvent + 8, // 41: api.EventMessage.ingress_info:type_name -> api.JobIngressInfoEvent + 15, // 42: api.EventMessage.reprioritizing:type_name -> api.JobReprioritizingEvent + 12, // 43: api.EventMessage.preempted:type_name -> api.JobPreemptedEvent + 11, // 44: api.EventMessage.preempting:type_name -> api.JobPreemptingEvent + 0, // 45: api.ContainerStatus.cause:type_name -> api.Cause + 20, // 46: api.EventStreamMessage.message:type_name -> api.EventMessage + 32, // 47: api.JobUtilisationEvent.MaxResourcesForPeriodEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity + 32, // 48: api.JobUtilisationEvent.TotalCumulativeUsageEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity + 32, // 49: api.JobUtilisationEvent.AvgResourcesForPeriodEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity + 23, // 50: api.Event.GetJobSetEvents:input_type -> api.JobSetRequest + 24, // 51: api.Event.Watch:input_type -> api.WatchRequest + 33, // 52: api.Event.Health:input_type -> google.protobuf.Empty + 22, // 53: api.Event.GetJobSetEvents:output_type -> api.EventStreamMessage + 22, // 54: api.Event.Watch:output_type -> api.EventStreamMessage + 34, // 55: api.Event.Health:output_type -> api.HealthCheckResponse + 53, // [53:56] is the sub-list for method output_type + 50, // [50:53] is the sub-list for method input_type + 50, // [50:50] is the sub-list for extension type_name + 50, // [50:50] is the sub-list for extension extendee + 0, // [0:50] is the sub-list for field type_name +} + +func init() { file_pkg_api_event_proto_init() } +func file_pkg_api_event_proto_init() { + if File_pkg_api_event_proto != nil { + return + } + file_pkg_api_submit_proto_init() + file_pkg_api_health_proto_init() + file_pkg_api_event_proto_msgTypes[19].OneofWrappers = []any{ + (*EventMessage_Submitted)(nil), + (*EventMessage_Queued)(nil), + (*EventMessage_Leased)(nil), + (*EventMessage_LeaseReturned)(nil), + (*EventMessage_LeaseExpired)(nil), + (*EventMessage_Pending)(nil), + (*EventMessage_Running)(nil), + (*EventMessage_UnableToSchedule)(nil), + (*EventMessage_Failed)(nil), + (*EventMessage_Succeeded)(nil), + (*EventMessage_Reprioritized)(nil), + (*EventMessage_Cancelling)(nil), + (*EventMessage_Cancelled)(nil), + (*EventMessage_Utilisation)(nil), + (*EventMessage_IngressInfo)(nil), + (*EventMessage_Reprioritizing)(nil), + (*EventMessage_Preempted)(nil), + (*EventMessage_Preempting)(nil), } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_api_event_proto_rawDesc), len(file_pkg_api_event_proto_rawDesc)), + NumEnums: 1, + NumMessages: 29, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_api_event_proto_goTypes, + DependencyIndexes: file_pkg_api_event_proto_depIdxs, + EnumInfos: file_pkg_api_event_proto_enumTypes, + MessageInfos: file_pkg_api_event_proto_msgTypes, + }.Build() + File_pkg_api_event_proto = out.File + file_pkg_api_event_proto_goTypes = nil + file_pkg_api_event_proto_depIdxs = nil } - -var ( - ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/api/event_grpc.pb.go b/pkg/api/event_grpc.pb.go new file mode 100644 index 00000000000..e883b2e9b2e --- /dev/null +++ b/pkg/api/event_grpc.pb.go @@ -0,0 +1,209 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 +// source: pkg/api/event.proto + +package api + +import ( + context "context" + + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Event_GetJobSetEvents_FullMethodName = "/api.Event/GetJobSetEvents" + Event_Watch_FullMethodName = "/api.Event/Watch" + Event_Health_FullMethodName = "/api.Event/Health" +) + +// EventClient is the client API for Event service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type EventClient interface { + GetJobSetEvents(ctx context.Context, in *JobSetRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[EventStreamMessage], error) + // Deprecated: Do not use. + Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[EventStreamMessage], error) + Health(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error) +} + +type eventClient struct { + cc grpc.ClientConnInterface +} + +func NewEventClient(cc grpc.ClientConnInterface) EventClient { + return &eventClient{cc} +} + +func (c *eventClient) GetJobSetEvents(ctx context.Context, in *JobSetRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[EventStreamMessage], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &Event_ServiceDesc.Streams[0], Event_GetJobSetEvents_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[JobSetRequest, EventStreamMessage]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Event_GetJobSetEventsClient = grpc.ServerStreamingClient[EventStreamMessage] + +// Deprecated: Do not use. +func (c *eventClient) Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[EventStreamMessage], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &Event_ServiceDesc.Streams[1], Event_Watch_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[WatchRequest, EventStreamMessage]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Event_WatchClient = grpc.ServerStreamingClient[EventStreamMessage] + +func (c *eventClient) Health(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(HealthCheckResponse) + err := c.cc.Invoke(ctx, Event_Health_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// EventServer is the server API for Event service. +// All implementations must embed UnimplementedEventServer +// for forward compatibility. +type EventServer interface { + GetJobSetEvents(*JobSetRequest, grpc.ServerStreamingServer[EventStreamMessage]) error + // Deprecated: Do not use. + Watch(*WatchRequest, grpc.ServerStreamingServer[EventStreamMessage]) error + Health(context.Context, *emptypb.Empty) (*HealthCheckResponse, error) + mustEmbedUnimplementedEventServer() +} + +// UnimplementedEventServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedEventServer struct{} + +func (UnimplementedEventServer) GetJobSetEvents(*JobSetRequest, grpc.ServerStreamingServer[EventStreamMessage]) error { + return status.Errorf(codes.Unimplemented, "method GetJobSetEvents not implemented") +} +func (UnimplementedEventServer) Watch(*WatchRequest, grpc.ServerStreamingServer[EventStreamMessage]) error { + return status.Errorf(codes.Unimplemented, "method Watch not implemented") +} +func (UnimplementedEventServer) Health(context.Context, *emptypb.Empty) (*HealthCheckResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Health not implemented") +} +func (UnimplementedEventServer) mustEmbedUnimplementedEventServer() {} +func (UnimplementedEventServer) testEmbeddedByValue() {} + +// UnsafeEventServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to EventServer will +// result in compilation errors. +type UnsafeEventServer interface { + mustEmbedUnimplementedEventServer() +} + +func RegisterEventServer(s grpc.ServiceRegistrar, srv EventServer) { + // If the following call pancis, it indicates UnimplementedEventServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Event_ServiceDesc, srv) +} + +func _Event_GetJobSetEvents_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(JobSetRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(EventServer).GetJobSetEvents(m, &grpc.GenericServerStream[JobSetRequest, EventStreamMessage]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Event_GetJobSetEventsServer = grpc.ServerStreamingServer[EventStreamMessage] + +func _Event_Watch_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WatchRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(EventServer).Watch(m, &grpc.GenericServerStream[WatchRequest, EventStreamMessage]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Event_WatchServer = grpc.ServerStreamingServer[EventStreamMessage] + +func _Event_Health_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EventServer).Health(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Event_Health_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EventServer).Health(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +// Event_ServiceDesc is the grpc.ServiceDesc for Event service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Event_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "api.Event", + HandlerType: (*EventServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Health", + Handler: _Event_Health_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "GetJobSetEvents", + Handler: _Event_GetJobSetEvents_Handler, + ServerStreams: true, + }, + { + StreamName: "Watch", + Handler: _Event_Watch_Handler, + ServerStreams: true, + }, + }, + Metadata: "pkg/api/event.proto", +} diff --git a/pkg/api/event_util.go b/pkg/api/event_util.go index cd820838aa2..37f138eeb97 100644 --- a/pkg/api/event_util.go +++ b/pkg/api/event_util.go @@ -4,15 +4,15 @@ import ( "encoding/json" "reflect" - "github.com/gogo/protobuf/types" "github.com/pkg/errors" + "google.golang.org/protobuf/types/known/timestamppb" ) type Event interface { GetJobId() string GetJobSetId() string GetQueue() string - GetCreated() *types.Timestamp + GetCreated() *timestamppb.Timestamp } type KubernetesEvent interface { diff --git a/pkg/api/executor.pb.go b/pkg/api/executor.pb.go index c2966395808..5a39fb1fb8b 100644 --- a/pkg/api/executor.pb.go +++ b/pkg/api/executor.pb.go @@ -1,1356 +1,380 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: pkg/api/executor.proto package api import ( - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" - proto "github.com/gogo/protobuf/proto" - types "github.com/gogo/protobuf/types" _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" ) -// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ExecutorSettingsUpsertRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Cordoned bool `protobuf:"varint,2,opt,name=cordoned,proto3" json:"cordoned,omitempty"` - CordonReason string `protobuf:"bytes,3,opt,name=cordonReason,proto3" json:"cordonReason,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Cordoned bool `protobuf:"varint,2,opt,name=cordoned,proto3" json:"cordoned,omitempty"` + CordonReason string `protobuf:"bytes,3,opt,name=cordonReason,proto3" json:"cordonReason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ExecutorSettingsUpsertRequest) Reset() { *m = ExecutorSettingsUpsertRequest{} } -func (m *ExecutorSettingsUpsertRequest) String() string { return proto.CompactTextString(m) } -func (*ExecutorSettingsUpsertRequest) ProtoMessage() {} -func (*ExecutorSettingsUpsertRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_506cd9cd149291ea, []int{0} -} -func (m *ExecutorSettingsUpsertRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExecutorSettingsUpsertRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExecutorSettingsUpsertRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *ExecutorSettingsUpsertRequest) Reset() { + *x = ExecutorSettingsUpsertRequest{} + mi := &file_pkg_api_executor_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ExecutorSettingsUpsertRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutorSettingsUpsertRequest.Merge(m, src) -} -func (m *ExecutorSettingsUpsertRequest) XXX_Size() int { - return m.Size() -} -func (m *ExecutorSettingsUpsertRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutorSettingsUpsertRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutorSettingsUpsertRequest proto.InternalMessageInfo -func (m *ExecutorSettingsUpsertRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +func (x *ExecutorSettingsUpsertRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExecutorSettingsUpsertRequest) GetCordoned() bool { - if m != nil { - return m.Cordoned - } - return false -} +func (*ExecutorSettingsUpsertRequest) ProtoMessage() {} -func (m *ExecutorSettingsUpsertRequest) GetCordonReason() string { - if m != nil { - return m.CordonReason - } - return "" -} - -type ExecutorSettingsDeleteRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (m *ExecutorSettingsDeleteRequest) Reset() { *m = ExecutorSettingsDeleteRequest{} } -func (m *ExecutorSettingsDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*ExecutorSettingsDeleteRequest) ProtoMessage() {} -func (*ExecutorSettingsDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_506cd9cd149291ea, []int{1} -} -func (m *ExecutorSettingsDeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExecutorSettingsDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExecutorSettingsDeleteRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *ExecutorSettingsUpsertRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_executor_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil - } -} -func (m *ExecutorSettingsDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutorSettingsDeleteRequest.Merge(m, src) -} -func (m *ExecutorSettingsDeleteRequest) XXX_Size() int { - return m.Size() -} -func (m *ExecutorSettingsDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutorSettingsDeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutorSettingsDeleteRequest proto.InternalMessageInfo - -func (m *ExecutorSettingsDeleteRequest) GetName() string { - if m != nil { - return m.Name + return ms } - return "" + return mi.MessageOf(x) } -// Jobs on the specified executor matching both the provided queues and priority classes will be preempted -type ExecutorPreemptRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Queues []string `protobuf:"bytes,2,rep,name=queues,proto3" json:"queues,omitempty"` - PriorityClasses []string `protobuf:"bytes,3,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` -} - -func (m *ExecutorPreemptRequest) Reset() { *m = ExecutorPreemptRequest{} } -func (m *ExecutorPreemptRequest) String() string { return proto.CompactTextString(m) } -func (*ExecutorPreemptRequest) ProtoMessage() {} -func (*ExecutorPreemptRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_506cd9cd149291ea, []int{2} -} -func (m *ExecutorPreemptRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExecutorPreemptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExecutorPreemptRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ExecutorPreemptRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutorPreemptRequest.Merge(m, src) -} -func (m *ExecutorPreemptRequest) XXX_Size() int { - return m.Size() -} -func (m *ExecutorPreemptRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutorPreemptRequest.DiscardUnknown(m) +// Deprecated: Use ExecutorSettingsUpsertRequest.ProtoReflect.Descriptor instead. +func (*ExecutorSettingsUpsertRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_executor_proto_rawDescGZIP(), []int{0} } -var xxx_messageInfo_ExecutorPreemptRequest proto.InternalMessageInfo - -func (m *ExecutorPreemptRequest) GetName() string { - if m != nil { - return m.Name +func (x *ExecutorSettingsUpsertRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *ExecutorPreemptRequest) GetQueues() []string { - if m != nil { - return m.Queues +func (x *ExecutorSettingsUpsertRequest) GetCordoned() bool { + if x != nil { + return x.Cordoned } - return nil -} - -func (m *ExecutorPreemptRequest) GetPriorityClasses() []string { - if m != nil { - return m.PriorityClasses - } - return nil -} - -// Jobs on the specified executor matching both the provided queues and priority classes will be cancelled -type ExecutorCancelRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Queues []string `protobuf:"bytes,2,rep,name=queues,proto3" json:"queues,omitempty"` - PriorityClasses []string `protobuf:"bytes,3,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` + return false } -func (m *ExecutorCancelRequest) Reset() { *m = ExecutorCancelRequest{} } -func (m *ExecutorCancelRequest) String() string { return proto.CompactTextString(m) } -func (*ExecutorCancelRequest) ProtoMessage() {} -func (*ExecutorCancelRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_506cd9cd149291ea, []int{3} -} -func (m *ExecutorCancelRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExecutorCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExecutorCancelRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ExecutorCancelRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutorCancelRequest.Merge(m, src) -} -func (m *ExecutorCancelRequest) XXX_Size() int { - return m.Size() -} -func (m *ExecutorCancelRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutorCancelRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutorCancelRequest proto.InternalMessageInfo - -func (m *ExecutorCancelRequest) GetName() string { - if m != nil { - return m.Name +func (x *ExecutorSettingsUpsertRequest) GetCordonReason() string { + if x != nil { + return x.CordonReason } return "" } -func (m *ExecutorCancelRequest) GetQueues() []string { - if m != nil { - return m.Queues - } - return nil -} - -func (m *ExecutorCancelRequest) GetPriorityClasses() []string { - if m != nil { - return m.PriorityClasses - } - return nil -} - -func init() { - proto.RegisterType((*ExecutorSettingsUpsertRequest)(nil), "api.ExecutorSettingsUpsertRequest") - proto.RegisterType((*ExecutorSettingsDeleteRequest)(nil), "api.ExecutorSettingsDeleteRequest") - proto.RegisterType((*ExecutorPreemptRequest)(nil), "api.ExecutorPreemptRequest") - proto.RegisterType((*ExecutorCancelRequest)(nil), "api.ExecutorCancelRequest") -} - -func init() { proto.RegisterFile("pkg/api/executor.proto", fileDescriptor_506cd9cd149291ea) } - -var fileDescriptor_506cd9cd149291ea = []byte{ - // 513 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x94, 0x31, 0x6f, 0xd3, 0x40, - 0x14, 0xc7, 0x73, 0x09, 0xaa, 0xd2, 0x13, 0x82, 0x62, 0x81, 0x65, 0x9c, 0xd6, 0x0e, 0x96, 0x68, - 0xa3, 0xaa, 0xb2, 0x45, 0xd9, 0x18, 0x90, 0x48, 0xa9, 0x3a, 0x82, 0x82, 0x58, 0x58, 0xd0, 0xc5, - 0x79, 0x18, 0x43, 0xec, 0xbb, 0xfa, 0xce, 0x88, 0x0a, 0x75, 0xe1, 0x13, 0x20, 0xf1, 0x5d, 0x60, - 0xe0, 0x0b, 0x30, 0x56, 0x62, 0x61, 0xb2, 0x50, 0xc2, 0x82, 0x3f, 0x05, 0xf2, 0x9d, 0x1d, 0xec, - 0xa0, 0x52, 0x3a, 0x76, 0xcb, 0xbd, 0xf7, 0xff, 0xbf, 0xdf, 0xbb, 0xf8, 0x6f, 0x63, 0x9d, 0xbd, - 0x0e, 0x3c, 0xc2, 0x42, 0x0f, 0xde, 0x82, 0x9f, 0x0a, 0x9a, 0xb8, 0x2c, 0xa1, 0x82, 0x6a, 0x1d, - 0xc2, 0x42, 0x73, 0x3d, 0xa0, 0x34, 0x98, 0x82, 0xec, 0x93, 0x38, 0xa6, 0x82, 0x88, 0x90, 0xc6, - 0x5c, 0x49, 0xcc, 0x5e, 0xd9, 0x95, 0xa7, 0x71, 0xfa, 0xc2, 0x83, 0x88, 0x89, 0x23, 0xd5, 0x74, - 0xbe, 0x20, 0xbc, 0xb1, 0x5f, 0x8e, 0x7c, 0x02, 0x42, 0x84, 0x71, 0xc0, 0x9f, 0x32, 0x0e, 0x89, - 0x18, 0xc1, 0x61, 0x0a, 0x5c, 0x68, 0x9b, 0xf8, 0x52, 0x4c, 0x22, 0x30, 0x50, 0x1f, 0x0d, 0x56, - 0x87, 0x5a, 0x9e, 0xd9, 0x57, 0x8a, 0xf3, 0x0e, 0x8d, 0x42, 0x21, 0x27, 0x8d, 0x64, 0x5f, 0xdb, - 0xc5, 0x5d, 0x9f, 0x26, 0x13, 0x1a, 0xc3, 0xc4, 0x68, 0xf7, 0xd1, 0xa0, 0x3b, 0xd4, 0xf3, 0xcc, - 0xd6, 0xaa, 0x5a, 0x4d, 0xbf, 0xd0, 0x69, 0xf7, 0xf1, 0x65, 0xf5, 0x7b, 0x04, 0x84, 0xd3, 0xd8, - 0xe8, 0x48, 0x86, 0x99, 0x67, 0xb6, 0x5e, 0xaf, 0xd7, 0xbc, 0x0d, 0xbd, 0x73, 0xf0, 0xf7, 0xf2, - 0x0f, 0x61, 0x0a, 0x02, 0xce, 0xb9, 0xbc, 0xf3, 0x19, 0x61, 0xbd, 0x9a, 0xf4, 0x38, 0x81, 0xa2, - 0x75, 0xde, 0xfb, 0xef, 0xe0, 0x95, 0xc3, 0x14, 0x52, 0xe0, 0x46, 0xbb, 0xdf, 0x19, 0xac, 0x0e, - 0xaf, 0xe7, 0x99, 0xbd, 0xa6, 0x2a, 0x35, 0x6d, 0xa9, 0xd1, 0x0e, 0xf0, 0x55, 0x96, 0x84, 0x34, - 0x09, 0xc5, 0xd1, 0xde, 0x94, 0x70, 0x0e, 0xdc, 0xe8, 0x48, 0xdb, 0x46, 0x9e, 0xd9, 0x37, 0x97, - 0x5a, 0x35, 0xff, 0xb2, 0xcb, 0xf9, 0x84, 0xf0, 0x8d, 0x6a, 0xf3, 0x3d, 0x12, 0xfb, 0x30, 0xbd, - 0x18, 0x8b, 0xef, 0xfe, 0xea, 0xe0, 0x6e, 0xb5, 0xb8, 0x76, 0x8c, 0x75, 0x95, 0xba, 0xe5, 0xc7, - 0xa9, 0x39, 0x2e, 0x61, 0xa1, 0xfb, 0xcf, 0x88, 0x9a, 0xba, 0xab, 0x22, 0xee, 0x56, 0x11, 0x77, - 0xf7, 0x0b, 0xa6, 0xb3, 0xf5, 0xfe, 0xdb, 0xcf, 0x8f, 0xed, 0x5b, 0xe6, 0xba, 0xf7, 0xe6, 0xce, - 0xe2, 0xc5, 0x79, 0xce, 0xcb, 0x19, 0xde, 0xbb, 0xe2, 0xfa, 0xc7, 0xf7, 0xd0, 0x76, 0x81, 0x57, - 0xb9, 0xf9, 0x4f, 0x7c, 0x23, 0x64, 0x67, 0xe1, 0xb7, 0xcf, 0xc4, 0x33, 0x7c, 0xad, 0x0c, 0xdd, - 0xa3, 0x78, 0xf1, 0x97, 0xf4, 0x1a, 0xe4, 0x66, 0x28, 0x4f, 0x45, 0x6e, 0x4a, 0x64, 0xdf, 0xe9, - 0xd5, 0x91, 0x1e, 0x53, 0xe6, 0x1a, 0x31, 0xc2, 0x6b, 0x2a, 0x2c, 0x35, 0xa0, 0xd9, 0x00, 0x36, - 0xb2, 0x74, 0x2a, 0xef, 0xb6, 0xe4, 0xd9, 0x8e, 0xd9, 0xe0, 0xf9, 0xd2, 0xfb, 0x07, 0x37, 0x7c, - 0xf0, 0x75, 0x66, 0xa1, 0x93, 0x99, 0x85, 0x7e, 0xcc, 0x2c, 0xf4, 0x61, 0x6e, 0xb5, 0x4e, 0xe6, - 0x56, 0xeb, 0xfb, 0xdc, 0x6a, 0x3d, 0xdb, 0x0a, 0x42, 0xf1, 0x32, 0x1d, 0xbb, 0x3e, 0x8d, 0x3c, - 0x92, 0x44, 0x64, 0x42, 0x58, 0x42, 0x5f, 0x81, 0x2f, 0xca, 0x93, 0x57, 0x7e, 0xf7, 0xc6, 0x2b, - 0x92, 0x7c, 0xf7, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xed, 0x8b, 0x50, 0xc7, 0x09, 0x05, 0x00, - 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// ExecutorClient is the client API for Executor service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ExecutorClient interface { - UpsertExecutorSettings(ctx context.Context, in *ExecutorSettingsUpsertRequest, opts ...grpc.CallOption) (*types.Empty, error) - DeleteExecutorSettings(ctx context.Context, in *ExecutorSettingsDeleteRequest, opts ...grpc.CallOption) (*types.Empty, error) - PreemptOnExecutor(ctx context.Context, in *ExecutorPreemptRequest, opts ...grpc.CallOption) (*types.Empty, error) - CancelOnExecutor(ctx context.Context, in *ExecutorCancelRequest, opts ...grpc.CallOption) (*types.Empty, error) -} - -type executorClient struct { - cc *grpc.ClientConn -} - -func NewExecutorClient(cc *grpc.ClientConn) ExecutorClient { - return &executorClient{cc} -} - -func (c *executorClient) UpsertExecutorSettings(ctx context.Context, in *ExecutorSettingsUpsertRequest, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.Executor/UpsertExecutorSettings", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *executorClient) DeleteExecutorSettings(ctx context.Context, in *ExecutorSettingsDeleteRequest, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.Executor/DeleteExecutorSettings", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *executorClient) PreemptOnExecutor(ctx context.Context, in *ExecutorPreemptRequest, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.Executor/PreemptOnExecutor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *executorClient) CancelOnExecutor(ctx context.Context, in *ExecutorCancelRequest, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.Executor/CancelOnExecutor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ExecutorServer is the server API for Executor service. -type ExecutorServer interface { - UpsertExecutorSettings(context.Context, *ExecutorSettingsUpsertRequest) (*types.Empty, error) - DeleteExecutorSettings(context.Context, *ExecutorSettingsDeleteRequest) (*types.Empty, error) - PreemptOnExecutor(context.Context, *ExecutorPreemptRequest) (*types.Empty, error) - CancelOnExecutor(context.Context, *ExecutorCancelRequest) (*types.Empty, error) +type ExecutorSettingsDeleteRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -// UnimplementedExecutorServer can be embedded to have forward compatible implementations. -type UnimplementedExecutorServer struct { +func (x *ExecutorSettingsDeleteRequest) Reset() { + *x = ExecutorSettingsDeleteRequest{} + mi := &file_pkg_api_executor_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (*UnimplementedExecutorServer) UpsertExecutorSettings(ctx context.Context, req *ExecutorSettingsUpsertRequest) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpsertExecutorSettings not implemented") -} -func (*UnimplementedExecutorServer) DeleteExecutorSettings(ctx context.Context, req *ExecutorSettingsDeleteRequest) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteExecutorSettings not implemented") -} -func (*UnimplementedExecutorServer) PreemptOnExecutor(ctx context.Context, req *ExecutorPreemptRequest) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method PreemptOnExecutor not implemented") -} -func (*UnimplementedExecutorServer) CancelOnExecutor(ctx context.Context, req *ExecutorCancelRequest) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelOnExecutor not implemented") +func (x *ExecutorSettingsDeleteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func RegisterExecutorServer(s *grpc.Server, srv ExecutorServer) { - s.RegisterService(&_Executor_serviceDesc, srv) -} +func (*ExecutorSettingsDeleteRequest) ProtoMessage() {} -func _Executor_UpsertExecutorSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExecutorSettingsUpsertRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExecutorServer).UpsertExecutorSettings(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Executor/UpsertExecutorSettings", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExecutorServer).UpsertExecutorSettings(ctx, req.(*ExecutorSettingsUpsertRequest)) +func (x *ExecutorSettingsDeleteRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_executor_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _Executor_DeleteExecutorSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExecutorSettingsDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExecutorServer).DeleteExecutorSettings(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Executor/DeleteExecutorSettings", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExecutorServer).DeleteExecutorSettings(ctx, req.(*ExecutorSettingsDeleteRequest)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use ExecutorSettingsDeleteRequest.ProtoReflect.Descriptor instead. +func (*ExecutorSettingsDeleteRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_executor_proto_rawDescGZIP(), []int{1} } -func _Executor_PreemptOnExecutor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExecutorPreemptRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExecutorServer).PreemptOnExecutor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Executor/PreemptOnExecutor", +func (x *ExecutorSettingsDeleteRequest) GetName() string { + if x != nil { + return x.Name } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExecutorServer).PreemptOnExecutor(ctx, req.(*ExecutorPreemptRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _Executor_CancelOnExecutor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExecutorCancelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExecutorServer).CancelOnExecutor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Executor/CancelOnExecutor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExecutorServer).CancelOnExecutor(ctx, req.(*ExecutorCancelRequest)) - } - return interceptor(ctx, in, info, handler) +// Jobs on the specified executor matching both the provided queues and priority classes will be preempted +type ExecutorPreemptRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Queues []string `protobuf:"bytes,2,rep,name=queues,proto3" json:"queues,omitempty"` + PriorityClasses []string `protobuf:"bytes,3,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var _Executor_serviceDesc = grpc.ServiceDesc{ - ServiceName: "api.Executor", - HandlerType: (*ExecutorServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UpsertExecutorSettings", - Handler: _Executor_UpsertExecutorSettings_Handler, - }, - { - MethodName: "DeleteExecutorSettings", - Handler: _Executor_DeleteExecutorSettings_Handler, - }, - { - MethodName: "PreemptOnExecutor", - Handler: _Executor_PreemptOnExecutor_Handler, - }, - { - MethodName: "CancelOnExecutor", - Handler: _Executor_CancelOnExecutor_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pkg/api/executor.proto", +func (x *ExecutorPreemptRequest) Reset() { + *x = ExecutorPreemptRequest{} + mi := &file_pkg_api_executor_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ExecutorSettingsUpsertRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *ExecutorPreemptRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExecutorSettingsUpsertRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*ExecutorPreemptRequest) ProtoMessage() {} -func (m *ExecutorSettingsUpsertRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CordonReason) > 0 { - i -= len(m.CordonReason) - copy(dAtA[i:], m.CordonReason) - i = encodeVarintExecutor(dAtA, i, uint64(len(m.CordonReason))) - i-- - dAtA[i] = 0x1a - } - if m.Cordoned { - i-- - if m.Cordoned { - dAtA[i] = 1 - } else { - dAtA[i] = 0 +func (x *ExecutorPreemptRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_executor_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x10 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintExecutor(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *ExecutorSettingsDeleteRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExecutorSettingsDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use ExecutorPreemptRequest.ProtoReflect.Descriptor instead. +func (*ExecutorPreemptRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_executor_proto_rawDescGZIP(), []int{2} } -func (m *ExecutorSettingsDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintExecutor(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa +func (x *ExecutorPreemptRequest) GetName() string { + if x != nil { + return x.Name } - return len(dAtA) - i, nil + return "" } -func (m *ExecutorPreemptRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ExecutorPreemptRequest) GetQueues() []string { + if x != nil { + return x.Queues } - return dAtA[:n], nil -} - -func (m *ExecutorPreemptRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *ExecutorPreemptRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PriorityClasses) > 0 { - for iNdEx := len(m.PriorityClasses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PriorityClasses[iNdEx]) - copy(dAtA[i:], m.PriorityClasses[iNdEx]) - i = encodeVarintExecutor(dAtA, i, uint64(len(m.PriorityClasses[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Queues) > 0 { - for iNdEx := len(m.Queues) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Queues[iNdEx]) - copy(dAtA[i:], m.Queues[iNdEx]) - i = encodeVarintExecutor(dAtA, i, uint64(len(m.Queues[iNdEx]))) - i-- - dAtA[i] = 0x12 - } +func (x *ExecutorPreemptRequest) GetPriorityClasses() []string { + if x != nil { + return x.PriorityClasses } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintExecutor(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return nil } -func (m *ExecutorCancelRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// Jobs on the specified executor matching both the provided queues and priority classes will be cancelled +type ExecutorCancelRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Queues []string `protobuf:"bytes,2,rep,name=queues,proto3" json:"queues,omitempty"` + PriorityClasses []string `protobuf:"bytes,3,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ExecutorCancelRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *ExecutorCancelRequest) Reset() { + *x = ExecutorCancelRequest{} + mi := &file_pkg_api_executor_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ExecutorCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PriorityClasses) > 0 { - for iNdEx := len(m.PriorityClasses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PriorityClasses[iNdEx]) - copy(dAtA[i:], m.PriorityClasses[iNdEx]) - i = encodeVarintExecutor(dAtA, i, uint64(len(m.PriorityClasses[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Queues) > 0 { - for iNdEx := len(m.Queues) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Queues[iNdEx]) - copy(dAtA[i:], m.Queues[iNdEx]) - i = encodeVarintExecutor(dAtA, i, uint64(len(m.Queues[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintExecutor(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *ExecutorCancelRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func encodeVarintExecutor(dAtA []byte, offset int, v uint64) int { - offset -= sovExecutor(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ExecutorSettingsUpsertRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovExecutor(uint64(l)) - } - if m.Cordoned { - n += 2 - } - l = len(m.CordonReason) - if l > 0 { - n += 1 + l + sovExecutor(uint64(l)) - } - return n -} +func (*ExecutorCancelRequest) ProtoMessage() {} -func (m *ExecutorSettingsDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovExecutor(uint64(l)) - } - return n -} - -func (m *ExecutorPreemptRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovExecutor(uint64(l)) - } - if len(m.Queues) > 0 { - for _, s := range m.Queues { - l = len(s) - n += 1 + l + sovExecutor(uint64(l)) +func (x *ExecutorCancelRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_executor_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if len(m.PriorityClasses) > 0 { - for _, s := range m.PriorityClasses { - l = len(s) - n += 1 + l + sovExecutor(uint64(l)) - } - } - return n + return mi.MessageOf(x) } -func (m *ExecutorCancelRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovExecutor(uint64(l)) - } - if len(m.Queues) > 0 { - for _, s := range m.Queues { - l = len(s) - n += 1 + l + sovExecutor(uint64(l)) - } - } - if len(m.PriorityClasses) > 0 { - for _, s := range m.PriorityClasses { - l = len(s) - n += 1 + l + sovExecutor(uint64(l)) - } - } - return n +// Deprecated: Use ExecutorCancelRequest.ProtoReflect.Descriptor instead. +func (*ExecutorCancelRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_executor_proto_rawDescGZIP(), []int{3} } -func sovExecutor(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozExecutor(x uint64) (n int) { - return sovExecutor(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ExecutorSettingsUpsertRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecutorSettingsUpsertRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecutorSettingsUpsertRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Cordoned", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Cordoned = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CordonReason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CordonReason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipExecutor(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutor - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ExecutorCancelRequest) GetName() string { + if x != nil { + return x.Name } - return nil + return "" } -func (m *ExecutorSettingsDeleteRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecutorSettingsDeleteRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecutorSettingsDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipExecutor(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutor - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ExecutorCancelRequest) GetQueues() []string { + if x != nil { + return x.Queues } return nil } -func (m *ExecutorPreemptRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecutorPreemptRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecutorPreemptRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queues = append(m.Queues, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PriorityClasses", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PriorityClasses = append(m.PriorityClasses, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipExecutor(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutor - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ExecutorCancelRequest) GetPriorityClasses() []string { + if x != nil { + return x.PriorityClasses } return nil } -func (m *ExecutorCancelRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecutorCancelRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecutorCancelRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queues = append(m.Queues, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PriorityClasses", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PriorityClasses = append(m.PriorityClasses, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipExecutor(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutor - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipExecutor(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowExecutor - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowExecutor - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowExecutor - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthExecutor - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupExecutor - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthExecutor - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} +var File_pkg_api_executor_proto protoreflect.FileDescriptor + +var file_pkg_api_executor_proto_rawDesc = string([]byte{ + 0x0a, 0x16, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x1c, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, + 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x73, 0x0a, 0x1d, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x55, 0x70, 0x73, 0x65, + 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, + 0x08, 0x63, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x08, 0x63, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x72, + 0x64, 0x6f, 0x6e, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x63, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x33, 0x0a, + 0x1d, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0x6e, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x50, 0x72, + 0x65, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x70, 0x72, 0x69, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x0f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x65, 0x73, 0x22, 0x6d, 0x0a, 0x15, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x43, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x70, 0x72, 0x69, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, + 0x73, 0x32, 0xe9, 0x03, 0x0a, 0x08, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x7d, + 0x0a, 0x16, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x55, + 0x70, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x3a, 0x01, 0x2a, 0x1a, + 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x7d, 0x0a, + 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x53, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x3a, 0x01, 0x2a, 0x2a, 0x1c, + 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x70, 0x0a, 0x11, + 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x4f, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, + 0x72, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, + 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, + 0x2a, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x2f, + 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x6d, + 0x0a, 0x10, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x6f, 0x72, 0x12, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, + 0x72, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01, + 0x2a, 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x2f, + 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x42, 0x29, 0x5a, + 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x6d, 0x61, + 0x64, 0x61, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, + 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) var ( - ErrInvalidLengthExecutor = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowExecutor = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupExecutor = fmt.Errorf("proto: unexpected end of group") + file_pkg_api_executor_proto_rawDescOnce sync.Once + file_pkg_api_executor_proto_rawDescData []byte ) + +func file_pkg_api_executor_proto_rawDescGZIP() []byte { + file_pkg_api_executor_proto_rawDescOnce.Do(func() { + file_pkg_api_executor_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_api_executor_proto_rawDesc), len(file_pkg_api_executor_proto_rawDesc))) + }) + return file_pkg_api_executor_proto_rawDescData +} + +var file_pkg_api_executor_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_pkg_api_executor_proto_goTypes = []any{ + (*ExecutorSettingsUpsertRequest)(nil), // 0: api.ExecutorSettingsUpsertRequest + (*ExecutorSettingsDeleteRequest)(nil), // 1: api.ExecutorSettingsDeleteRequest + (*ExecutorPreemptRequest)(nil), // 2: api.ExecutorPreemptRequest + (*ExecutorCancelRequest)(nil), // 3: api.ExecutorCancelRequest + (*emptypb.Empty)(nil), // 4: google.protobuf.Empty +} +var file_pkg_api_executor_proto_depIdxs = []int32{ + 0, // 0: api.Executor.UpsertExecutorSettings:input_type -> api.ExecutorSettingsUpsertRequest + 1, // 1: api.Executor.DeleteExecutorSettings:input_type -> api.ExecutorSettingsDeleteRequest + 2, // 2: api.Executor.PreemptOnExecutor:input_type -> api.ExecutorPreemptRequest + 3, // 3: api.Executor.CancelOnExecutor:input_type -> api.ExecutorCancelRequest + 4, // 4: api.Executor.UpsertExecutorSettings:output_type -> google.protobuf.Empty + 4, // 5: api.Executor.DeleteExecutorSettings:output_type -> google.protobuf.Empty + 4, // 6: api.Executor.PreemptOnExecutor:output_type -> google.protobuf.Empty + 4, // 7: api.Executor.CancelOnExecutor:output_type -> google.protobuf.Empty + 4, // [4:8] is the sub-list for method output_type + 0, // [0:4] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_pkg_api_executor_proto_init() } +func file_pkg_api_executor_proto_init() { + if File_pkg_api_executor_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_api_executor_proto_rawDesc), len(file_pkg_api_executor_proto_rawDesc)), + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_api_executor_proto_goTypes, + DependencyIndexes: file_pkg_api_executor_proto_depIdxs, + MessageInfos: file_pkg_api_executor_proto_msgTypes, + }.Build() + File_pkg_api_executor_proto = out.File + file_pkg_api_executor_proto_goTypes = nil + file_pkg_api_executor_proto_depIdxs = nil +} diff --git a/pkg/api/executor_grpc.pb.go b/pkg/api/executor_grpc.pb.go new file mode 100644 index 00000000000..ab9b8902a4b --- /dev/null +++ b/pkg/api/executor_grpc.pb.go @@ -0,0 +1,237 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 +// source: pkg/api/executor.proto + +package api + +import ( + context "context" + + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Executor_UpsertExecutorSettings_FullMethodName = "/api.Executor/UpsertExecutorSettings" + Executor_DeleteExecutorSettings_FullMethodName = "/api.Executor/DeleteExecutorSettings" + Executor_PreemptOnExecutor_FullMethodName = "/api.Executor/PreemptOnExecutor" + Executor_CancelOnExecutor_FullMethodName = "/api.Executor/CancelOnExecutor" +) + +// ExecutorClient is the client API for Executor service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ExecutorClient interface { + UpsertExecutorSettings(ctx context.Context, in *ExecutorSettingsUpsertRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteExecutorSettings(ctx context.Context, in *ExecutorSettingsDeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + PreemptOnExecutor(ctx context.Context, in *ExecutorPreemptRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + CancelOnExecutor(ctx context.Context, in *ExecutorCancelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) +} + +type executorClient struct { + cc grpc.ClientConnInterface +} + +func NewExecutorClient(cc grpc.ClientConnInterface) ExecutorClient { + return &executorClient{cc} +} + +func (c *executorClient) UpsertExecutorSettings(ctx context.Context, in *ExecutorSettingsUpsertRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, Executor_UpsertExecutorSettings_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *executorClient) DeleteExecutorSettings(ctx context.Context, in *ExecutorSettingsDeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, Executor_DeleteExecutorSettings_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *executorClient) PreemptOnExecutor(ctx context.Context, in *ExecutorPreemptRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, Executor_PreemptOnExecutor_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *executorClient) CancelOnExecutor(ctx context.Context, in *ExecutorCancelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, Executor_CancelOnExecutor_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ExecutorServer is the server API for Executor service. +// All implementations must embed UnimplementedExecutorServer +// for forward compatibility. +type ExecutorServer interface { + UpsertExecutorSettings(context.Context, *ExecutorSettingsUpsertRequest) (*emptypb.Empty, error) + DeleteExecutorSettings(context.Context, *ExecutorSettingsDeleteRequest) (*emptypb.Empty, error) + PreemptOnExecutor(context.Context, *ExecutorPreemptRequest) (*emptypb.Empty, error) + CancelOnExecutor(context.Context, *ExecutorCancelRequest) (*emptypb.Empty, error) + mustEmbedUnimplementedExecutorServer() +} + +// UnimplementedExecutorServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedExecutorServer struct{} + +func (UnimplementedExecutorServer) UpsertExecutorSettings(context.Context, *ExecutorSettingsUpsertRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpsertExecutorSettings not implemented") +} +func (UnimplementedExecutorServer) DeleteExecutorSettings(context.Context, *ExecutorSettingsDeleteRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteExecutorSettings not implemented") +} +func (UnimplementedExecutorServer) PreemptOnExecutor(context.Context, *ExecutorPreemptRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method PreemptOnExecutor not implemented") +} +func (UnimplementedExecutorServer) CancelOnExecutor(context.Context, *ExecutorCancelRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelOnExecutor not implemented") +} +func (UnimplementedExecutorServer) mustEmbedUnimplementedExecutorServer() {} +func (UnimplementedExecutorServer) testEmbeddedByValue() {} + +// UnsafeExecutorServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ExecutorServer will +// result in compilation errors. +type UnsafeExecutorServer interface { + mustEmbedUnimplementedExecutorServer() +} + +func RegisterExecutorServer(s grpc.ServiceRegistrar, srv ExecutorServer) { + // If the following call pancis, it indicates UnimplementedExecutorServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Executor_ServiceDesc, srv) +} + +func _Executor_UpsertExecutorSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExecutorSettingsUpsertRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExecutorServer).UpsertExecutorSettings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Executor_UpsertExecutorSettings_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExecutorServer).UpsertExecutorSettings(ctx, req.(*ExecutorSettingsUpsertRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Executor_DeleteExecutorSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExecutorSettingsDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExecutorServer).DeleteExecutorSettings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Executor_DeleteExecutorSettings_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExecutorServer).DeleteExecutorSettings(ctx, req.(*ExecutorSettingsDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Executor_PreemptOnExecutor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExecutorPreemptRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExecutorServer).PreemptOnExecutor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Executor_PreemptOnExecutor_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExecutorServer).PreemptOnExecutor(ctx, req.(*ExecutorPreemptRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Executor_CancelOnExecutor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExecutorCancelRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExecutorServer).CancelOnExecutor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Executor_CancelOnExecutor_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExecutorServer).CancelOnExecutor(ctx, req.(*ExecutorCancelRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Executor_ServiceDesc is the grpc.ServiceDesc for Executor service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Executor_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "api.Executor", + HandlerType: (*ExecutorServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UpsertExecutorSettings", + Handler: _Executor_UpsertExecutorSettings_Handler, + }, + { + MethodName: "DeleteExecutorSettings", + Handler: _Executor_DeleteExecutorSettings_Handler, + }, + { + MethodName: "PreemptOnExecutor", + Handler: _Executor_PreemptOnExecutor_Handler, + }, + { + MethodName: "CancelOnExecutor", + Handler: _Executor_CancelOnExecutor_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "pkg/api/executor.proto", +} diff --git a/pkg/api/health.pb.go b/pkg/api/health.pb.go index d9f6776aeb7..7f52afdc7bd 100644 --- a/pkg/api/health.pb.go +++ b/pkg/api/health.pb.go @@ -1,27 +1,26 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: pkg/api/health.proto package api import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" - proto "github.com/gogo/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type HealthCheckResponse_ServingStatus int32 @@ -31,304 +30,160 @@ const ( HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2 ) -var HealthCheckResponse_ServingStatus_name = map[int32]string{ - 0: "UNKNOWN", - 1: "SERVING", - 2: "NOT_SERVING", -} +// Enum value maps for HealthCheckResponse_ServingStatus. +var ( + HealthCheckResponse_ServingStatus_name = map[int32]string{ + 0: "UNKNOWN", + 1: "SERVING", + 2: "NOT_SERVING", + } + HealthCheckResponse_ServingStatus_value = map[string]int32{ + "UNKNOWN": 0, + "SERVING": 1, + "NOT_SERVING": 2, + } +) -var HealthCheckResponse_ServingStatus_value = map[string]int32{ - "UNKNOWN": 0, - "SERVING": 1, - "NOT_SERVING": 2, +func (x HealthCheckResponse_ServingStatus) Enum() *HealthCheckResponse_ServingStatus { + p := new(HealthCheckResponse_ServingStatus) + *p = x + return p } func (x HealthCheckResponse_ServingStatus) String() string { - return proto.EnumName(HealthCheckResponse_ServingStatus_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_b3ef73b965fdac69, []int{0, 0} +func (HealthCheckResponse_ServingStatus) Descriptor() protoreflect.EnumDescriptor { + return file_pkg_api_health_proto_enumTypes[0].Descriptor() } -type HealthCheckResponse struct { - Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=api.HealthCheckResponse_ServingStatus" json:"status,omitempty"` +func (HealthCheckResponse_ServingStatus) Type() protoreflect.EnumType { + return &file_pkg_api_health_proto_enumTypes[0] } -func (m *HealthCheckResponse) Reset() { *m = HealthCheckResponse{} } -func (m *HealthCheckResponse) String() string { return proto.CompactTextString(m) } -func (*HealthCheckResponse) ProtoMessage() {} -func (*HealthCheckResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b3ef73b965fdac69, []int{0} -} -func (m *HealthCheckResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +func (x HealthCheckResponse_ServingStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *HealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HealthCheckResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *HealthCheckResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_HealthCheckResponse.Merge(m, src) -} -func (m *HealthCheckResponse) XXX_Size() int { - return m.Size() -} -func (m *HealthCheckResponse) XXX_DiscardUnknown() { - xxx_messageInfo_HealthCheckResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_HealthCheckResponse proto.InternalMessageInfo -func (m *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus { - if m != nil { - return m.Status - } - return HealthCheckResponse_UNKNOWN +// Deprecated: Use HealthCheckResponse_ServingStatus.Descriptor instead. +func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) { + return file_pkg_api_health_proto_rawDescGZIP(), []int{0, 0} } -func init() { - proto.RegisterEnum("api.HealthCheckResponse_ServingStatus", HealthCheckResponse_ServingStatus_name, HealthCheckResponse_ServingStatus_value) - proto.RegisterType((*HealthCheckResponse)(nil), "api.HealthCheckResponse") +type HealthCheckResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=api.HealthCheckResponse_ServingStatus" json:"status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func init() { proto.RegisterFile("pkg/api/health.proto", fileDescriptor_b3ef73b965fdac69) } +func (x *HealthCheckResponse) Reset() { + *x = HealthCheckResponse{} + mi := &file_pkg_api_health_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -var fileDescriptor_b3ef73b965fdac69 = []byte{ - // 250 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x29, 0xc8, 0x4e, 0xd7, - 0x4f, 0x2c, 0xc8, 0xd4, 0xcf, 0x48, 0x4d, 0xcc, 0x29, 0xc9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x62, 0x4e, 0x2c, 0xc8, 0x54, 0x5a, 0xce, 0xc8, 0x25, 0xec, 0x01, 0x16, 0x75, 0xce, 0x48, - 0x4d, 0xce, 0x0e, 0x4a, 0x2d, 0x2e, 0xc8, 0xcf, 0x2b, 0x4e, 0x15, 0x0a, 0xe1, 0x62, 0x2b, 0x2e, - 0x49, 0x2c, 0x29, 0x2d, 0x96, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x33, 0x52, 0xd3, 0x4b, 0x2c, 0xc8, - 0xd4, 0xc3, 0xa2, 0x52, 0x2f, 0x38, 0xb5, 0xa8, 0x2c, 0x33, 0x2f, 0x3d, 0x18, 0xac, 0xda, 0x49, - 0xe4, 0xd5, 0x3d, 0x79, 0x01, 0x88, 0x4e, 0x9d, 0xfc, 0xdc, 0xcc, 0x92, 0xd4, 0xdc, 0x82, 0x92, - 0xca, 0x20, 0xa8, 0x59, 0x4a, 0x56, 0x5c, 0xbc, 0x28, 0xca, 0x85, 0xb8, 0xb9, 0xd8, 0x43, 0xfd, - 0xbc, 0xfd, 0xfc, 0xc3, 0xfd, 0x04, 0x18, 0x40, 0x9c, 0x60, 0xd7, 0xa0, 0x30, 0x4f, 0x3f, 0x77, - 0x01, 0x46, 0x21, 0x7e, 0x2e, 0x6e, 0x3f, 0xff, 0x90, 0x78, 0x98, 0x00, 0x93, 0x53, 0xc4, 0x89, - 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, - 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0xa9, 0xa7, 0x67, 0x96, 0x64, 0x94, 0x26, - 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x27, 0x16, 0xe5, 0x26, 0xa6, 0x24, 0x16, 0x14, 0xe5, 0x67, 0xa5, - 0x26, 0x97, 0x40, 0x79, 0xfa, 0x50, 0xef, 0xaf, 0x62, 0x12, 0x71, 0x04, 0x0b, 0x04, 0x40, 0xa4, - 0xf5, 0x3c, 0xf3, 0xf5, 0x1c, 0x0b, 0x32, 0x93, 0xd8, 0xc0, 0xe1, 0x61, 0x0c, 0x08, 0x00, 0x00, - 0xff, 0xff, 0x79, 0x85, 0x7d, 0x5b, 0x27, 0x01, 0x00, 0x00, +func (x *HealthCheckResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *HealthCheckResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (*HealthCheckResponse) ProtoMessage() {} + +func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_health_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *HealthCheckResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead. +func (*HealthCheckResponse) Descriptor() ([]byte, []int) { + return file_pkg_api_health_proto_rawDescGZIP(), []int{0} } -func (m *HealthCheckResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Status != 0 { - i = encodeVarintHealth(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x8 +func (x *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus { + if x != nil { + return x.Status } - return len(dAtA) - i, nil + return HealthCheckResponse_UNKNOWN } -func encodeVarintHealth(dAtA []byte, offset int, v uint64) int { - offset -= sovHealth(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *HealthCheckResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Status != 0 { - n += 1 + sovHealth(uint64(m.Status)) - } - return n +var File_pkg_api_health_proto protoreflect.FileDescriptor + +var file_pkg_api_health_proto_rawDesc = string([]byte{ + 0x0a, 0x14, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x22, 0x91, 0x01, 0x0a, 0x13, + 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x22, 0x3a, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, + 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0f, + 0x0a, 0x0b, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x42, + 0x40, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, + 0x6d, 0x61, 0x64, 0x61, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x61, 0x72, 0x6d, 0x61, + 0x64, 0x61, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0xaa, 0x02, 0x14, 0x41, 0x72, 0x6d, + 0x61, 0x64, 0x61, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x6f, 0x2e, 0x41, 0x70, + 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) + +var ( + file_pkg_api_health_proto_rawDescOnce sync.Once + file_pkg_api_health_proto_rawDescData []byte +) + +func file_pkg_api_health_proto_rawDescGZIP() []byte { + file_pkg_api_health_proto_rawDescOnce.Do(func() { + file_pkg_api_health_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_api_health_proto_rawDesc), len(file_pkg_api_health_proto_rawDesc))) + }) + return file_pkg_api_health_proto_rawDescData } -func sovHealth(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 +var file_pkg_api_health_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_pkg_api_health_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_pkg_api_health_proto_goTypes = []any{ + (HealthCheckResponse_ServingStatus)(0), // 0: api.HealthCheckResponse.ServingStatus + (*HealthCheckResponse)(nil), // 1: api.HealthCheckResponse } -func sozHealth(x uint64) (n int) { - return sovHealth(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +var file_pkg_api_health_proto_depIdxs = []int32{ + 0, // 0: api.HealthCheckResponse.status:type_name -> api.HealthCheckResponse.ServingStatus + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } -func (m *HealthCheckResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHealth - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HealthCheckResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HealthCheckResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHealth - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= HealthCheckResponse_ServingStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipHealth(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthHealth - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipHealth(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowHealth - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowHealth - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowHealth - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthHealth - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupHealth - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthHealth - } - if depth == 0 { - return iNdEx, nil - } +func init() { file_pkg_api_health_proto_init() } +func file_pkg_api_health_proto_init() { + if File_pkg_api_health_proto != nil { + return } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_api_health_proto_rawDesc), len(file_pkg_api_health_proto_rawDesc)), + NumEnums: 1, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_pkg_api_health_proto_goTypes, + DependencyIndexes: file_pkg_api_health_proto_depIdxs, + EnumInfos: file_pkg_api_health_proto_enumTypes, + MessageInfos: file_pkg_api_health_proto_msgTypes, + }.Build() + File_pkg_api_health_proto = out.File + file_pkg_api_health_proto_goTypes = nil + file_pkg_api_health_proto_depIdxs = nil } - -var ( - ErrInvalidLengthHealth = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowHealth = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupHealth = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/api/job.pb.go b/pkg/api/job.pb.go index cb776f8834b..fd03821fe66 100644 --- a/pkg/api/job.pb.go +++ b/pkg/api/job.pb.go @@ -1,33 +1,28 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: pkg/api/job.proto package api import ( - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" - proto "github.com/gogo/protobuf/proto" - types "github.com/gogo/protobuf/types" _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) -// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type JobRunState int32 @@ -44,4062 +39,1021 @@ const ( JobRunState_RUNS_STATE_LEASE_RETURNED JobRunState = 9 ) -var JobRunState_name = map[int32]string{ - 0: "RUN_STATE_UNKNOWN", - 1: "RUN_STATE_LEASED", - 2: "RUN_STATE_PENDING", - 3: "RUN_STATE_RUNNING", - 4: "RUN_STATE_SUCCEEDED", - 5: "RUN_STATE_FAILED", - 6: "RUN_STATE_PREEMPTED", - 7: "RUN_STATE_CANCELLED", - 8: "RUN_STATE_LEASE_EXPIRED", - 9: "RUNS_STATE_LEASE_RETURNED", -} +// Enum value maps for JobRunState. +var ( + JobRunState_name = map[int32]string{ + 0: "RUN_STATE_UNKNOWN", + 1: "RUN_STATE_LEASED", + 2: "RUN_STATE_PENDING", + 3: "RUN_STATE_RUNNING", + 4: "RUN_STATE_SUCCEEDED", + 5: "RUN_STATE_FAILED", + 6: "RUN_STATE_PREEMPTED", + 7: "RUN_STATE_CANCELLED", + 8: "RUN_STATE_LEASE_EXPIRED", + 9: "RUNS_STATE_LEASE_RETURNED", + } + JobRunState_value = map[string]int32{ + "RUN_STATE_UNKNOWN": 0, + "RUN_STATE_LEASED": 1, + "RUN_STATE_PENDING": 2, + "RUN_STATE_RUNNING": 3, + "RUN_STATE_SUCCEEDED": 4, + "RUN_STATE_FAILED": 5, + "RUN_STATE_PREEMPTED": 6, + "RUN_STATE_CANCELLED": 7, + "RUN_STATE_LEASE_EXPIRED": 8, + "RUNS_STATE_LEASE_RETURNED": 9, + } +) -var JobRunState_value = map[string]int32{ - "RUN_STATE_UNKNOWN": 0, - "RUN_STATE_LEASED": 1, - "RUN_STATE_PENDING": 2, - "RUN_STATE_RUNNING": 3, - "RUN_STATE_SUCCEEDED": 4, - "RUN_STATE_FAILED": 5, - "RUN_STATE_PREEMPTED": 6, - "RUN_STATE_CANCELLED": 7, - "RUN_STATE_LEASE_EXPIRED": 8, - "RUNS_STATE_LEASE_RETURNED": 9, +func (x JobRunState) Enum() *JobRunState { + p := new(JobRunState) + *p = x + return p } func (x JobRunState) String() string { - return proto.EnumName(JobRunState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (JobRunState) Descriptor() protoreflect.EnumDescriptor { + return file_pkg_api_job_proto_enumTypes[0].Descriptor() +} + +func (JobRunState) Type() protoreflect.EnumType { + return &file_pkg_api_job_proto_enumTypes[0] +} + +func (x JobRunState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use JobRunState.Descriptor instead. func (JobRunState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e45f6b75bfad87a4, []int{0} + return file_pkg_api_job_proto_rawDescGZIP(), []int{0} } type JobRunDetails struct { - RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"runId,omitempty"` - JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - State JobRunState `protobuf:"varint,3,opt,name=state,proto3,enum=api.JobRunState" json:"state,omitempty"` - Cluster string `protobuf:"bytes,4,opt,name=cluster,proto3" json:"cluster,omitempty"` - Node string `protobuf:"bytes,5,opt,name=node,proto3" json:"node,omitempty"` - LeasedTs *types.Timestamp `protobuf:"bytes,7,opt,name=leased_ts,json=leasedTs,proto3" json:"leasedTs,omitempty"` - PendingTs *types.Timestamp `protobuf:"bytes,8,opt,name=pending_ts,json=pendingTs,proto3" json:"pendingTs,omitempty"` - StartedTs *types.Timestamp `protobuf:"bytes,9,opt,name=started_ts,json=startedTs,proto3" json:"startedTs,omitempty"` - FinishedTs *types.Timestamp `protobuf:"bytes,10,opt,name=finished_ts,json=finishedTs,proto3" json:"finishedTs,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` + JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + State JobRunState `protobuf:"varint,3,opt,name=state,proto3,enum=api.JobRunState" json:"state,omitempty"` + Cluster string `protobuf:"bytes,4,opt,name=cluster,proto3" json:"cluster,omitempty"` + Node string `protobuf:"bytes,5,opt,name=node,proto3" json:"node,omitempty"` + LeasedTs *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=leased_ts,json=leasedTs,proto3" json:"leased_ts,omitempty"` + PendingTs *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=pending_ts,json=pendingTs,proto3" json:"pending_ts,omitempty"` + StartedTs *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=started_ts,json=startedTs,proto3" json:"started_ts,omitempty"` + FinishedTs *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=finished_ts,json=finishedTs,proto3" json:"finished_ts,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunDetails) Reset() { *m = JobRunDetails{} } -func (m *JobRunDetails) String() string { return proto.CompactTextString(m) } -func (*JobRunDetails) ProtoMessage() {} -func (*JobRunDetails) Descriptor() ([]byte, []int) { - return fileDescriptor_e45f6b75bfad87a4, []int{0} +func (x *JobRunDetails) Reset() { + *x = JobRunDetails{} + mi := &file_pkg_api_job_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRunDetails) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *JobRunDetails) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRunDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRunDetails.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*JobRunDetails) ProtoMessage() {} + +func (x *JobRunDetails) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_job_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *JobRunDetails) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRunDetails.Merge(m, src) -} -func (m *JobRunDetails) XXX_Size() int { - return m.Size() -} -func (m *JobRunDetails) XXX_DiscardUnknown() { - xxx_messageInfo_JobRunDetails.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_JobRunDetails proto.InternalMessageInfo +// Deprecated: Use JobRunDetails.ProtoReflect.Descriptor instead. +func (*JobRunDetails) Descriptor() ([]byte, []int) { + return file_pkg_api_job_proto_rawDescGZIP(), []int{0} +} -func (m *JobRunDetails) GetRunId() string { - if m != nil { - return m.RunId +func (x *JobRunDetails) GetRunId() string { + if x != nil { + return x.RunId } return "" } -func (m *JobRunDetails) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobRunDetails) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobRunDetails) GetState() JobRunState { - if m != nil { - return m.State +func (x *JobRunDetails) GetState() JobRunState { + if x != nil { + return x.State } return JobRunState_RUN_STATE_UNKNOWN } -func (m *JobRunDetails) GetCluster() string { - if m != nil { - return m.Cluster +func (x *JobRunDetails) GetCluster() string { + if x != nil { + return x.Cluster } return "" } -func (m *JobRunDetails) GetNode() string { - if m != nil { - return m.Node +func (x *JobRunDetails) GetNode() string { + if x != nil { + return x.Node } return "" } -func (m *JobRunDetails) GetLeasedTs() *types.Timestamp { - if m != nil { - return m.LeasedTs +func (x *JobRunDetails) GetLeasedTs() *timestamppb.Timestamp { + if x != nil { + return x.LeasedTs } return nil } -func (m *JobRunDetails) GetPendingTs() *types.Timestamp { - if m != nil { - return m.PendingTs +func (x *JobRunDetails) GetPendingTs() *timestamppb.Timestamp { + if x != nil { + return x.PendingTs } return nil } -func (m *JobRunDetails) GetStartedTs() *types.Timestamp { - if m != nil { - return m.StartedTs +func (x *JobRunDetails) GetStartedTs() *timestamppb.Timestamp { + if x != nil { + return x.StartedTs } return nil } -func (m *JobRunDetails) GetFinishedTs() *types.Timestamp { - if m != nil { - return m.FinishedTs +func (x *JobRunDetails) GetFinishedTs() *timestamppb.Timestamp { + if x != nil { + return x.FinishedTs } return nil } type JobDetails struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"` - Jobset string `protobuf:"bytes,3,opt,name=jobset,proto3" json:"jobset,omitempty"` - Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"` - State JobState `protobuf:"varint,5,opt,name=state,proto3,enum=api.JobState" json:"state,omitempty"` - SubmittedTs *types.Timestamp `protobuf:"bytes,6,opt,name=submitted_ts,json=submittedTs,proto3" json:"submittedTs,omitempty"` - CancelTs *types.Timestamp `protobuf:"bytes,7,opt,name=cancel_ts,json=cancelTs,proto3" json:"cancelTs,omitempty"` - CancelReason string `protobuf:"bytes,8,opt,name=cancel_reason,json=cancelReason,proto3" json:"cancelReason,omitempty"` - LastTransitionTs *types.Timestamp `protobuf:"bytes,9,opt,name=last_transition_ts,json=lastTransitionTs,proto3" json:"lastTransitionTs,omitempty"` - LatestRunId string `protobuf:"bytes,10,opt,name=latest_run_id,json=latestRunId,proto3" json:"latestRunId,omitempty"` - JobSpec *Job `protobuf:"bytes,11,opt,name=job_spec,json=jobSpec,proto3" json:"jobSpec,omitempty"` - JobRuns []*JobRunDetails `protobuf:"bytes,12,rep,name=job_runs,json=jobRuns,proto3" json:"jobRuns,omitempty"` - CancelUser string `protobuf:"bytes,13,opt,name=cancel_user,json=cancelUser,proto3" json:"cancelUser,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"` + Jobset string `protobuf:"bytes,3,opt,name=jobset,proto3" json:"jobset,omitempty"` + Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"` + State JobState `protobuf:"varint,5,opt,name=state,proto3,enum=api.JobState" json:"state,omitempty"` + SubmittedTs *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=submitted_ts,json=submittedTs,proto3" json:"submitted_ts,omitempty"` + CancelTs *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=cancel_ts,json=cancelTs,proto3" json:"cancel_ts,omitempty"` + CancelReason string `protobuf:"bytes,8,opt,name=cancel_reason,json=cancelReason,proto3" json:"cancel_reason,omitempty"` + LastTransitionTs *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=last_transition_ts,json=lastTransitionTs,proto3" json:"last_transition_ts,omitempty"` + LatestRunId string `protobuf:"bytes,10,opt,name=latest_run_id,json=latestRunId,proto3" json:"latest_run_id,omitempty"` + JobSpec *Job `protobuf:"bytes,11,opt,name=job_spec,json=jobSpec,proto3" json:"job_spec,omitempty"` // Only filled in if expand_job_spec is true + JobRuns []*JobRunDetails `protobuf:"bytes,12,rep,name=job_runs,json=jobRuns,proto3" json:"job_runs,omitempty"` // Only filled in if expand_job_run is true; + CancelUser string `protobuf:"bytes,13,opt,name=cancel_user,json=cancelUser,proto3" json:"cancel_user,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobDetails) Reset() { *m = JobDetails{} } -func (m *JobDetails) String() string { return proto.CompactTextString(m) } -func (*JobDetails) ProtoMessage() {} -func (*JobDetails) Descriptor() ([]byte, []int) { - return fileDescriptor_e45f6b75bfad87a4, []int{1} +func (x *JobDetails) Reset() { + *x = JobDetails{} + mi := &file_pkg_api_job_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobDetails) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *JobDetails) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobDetails.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*JobDetails) ProtoMessage() {} + +func (x *JobDetails) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_job_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *JobDetails) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobDetails.Merge(m, src) -} -func (m *JobDetails) XXX_Size() int { - return m.Size() -} -func (m *JobDetails) XXX_DiscardUnknown() { - xxx_messageInfo_JobDetails.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_JobDetails proto.InternalMessageInfo +// Deprecated: Use JobDetails.ProtoReflect.Descriptor instead. +func (*JobDetails) Descriptor() ([]byte, []int) { + return file_pkg_api_job_proto_rawDescGZIP(), []int{1} +} -func (m *JobDetails) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobDetails) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobDetails) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobDetails) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobDetails) GetJobset() string { - if m != nil { - return m.Jobset +func (x *JobDetails) GetJobset() string { + if x != nil { + return x.Jobset } return "" } -func (m *JobDetails) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *JobDetails) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *JobDetails) GetState() JobState { - if m != nil { - return m.State +func (x *JobDetails) GetState() JobState { + if x != nil { + return x.State } return JobState_QUEUED } -func (m *JobDetails) GetSubmittedTs() *types.Timestamp { - if m != nil { - return m.SubmittedTs +func (x *JobDetails) GetSubmittedTs() *timestamppb.Timestamp { + if x != nil { + return x.SubmittedTs } return nil } -func (m *JobDetails) GetCancelTs() *types.Timestamp { - if m != nil { - return m.CancelTs +func (x *JobDetails) GetCancelTs() *timestamppb.Timestamp { + if x != nil { + return x.CancelTs } return nil } -func (m *JobDetails) GetCancelReason() string { - if m != nil { - return m.CancelReason +func (x *JobDetails) GetCancelReason() string { + if x != nil { + return x.CancelReason } return "" } -func (m *JobDetails) GetLastTransitionTs() *types.Timestamp { - if m != nil { - return m.LastTransitionTs +func (x *JobDetails) GetLastTransitionTs() *timestamppb.Timestamp { + if x != nil { + return x.LastTransitionTs } return nil } -func (m *JobDetails) GetLatestRunId() string { - if m != nil { - return m.LatestRunId +func (x *JobDetails) GetLatestRunId() string { + if x != nil { + return x.LatestRunId } return "" } -func (m *JobDetails) GetJobSpec() *Job { - if m != nil { - return m.JobSpec +func (x *JobDetails) GetJobSpec() *Job { + if x != nil { + return x.JobSpec } return nil } -func (m *JobDetails) GetJobRuns() []*JobRunDetails { - if m != nil { - return m.JobRuns +func (x *JobDetails) GetJobRuns() []*JobRunDetails { + if x != nil { + return x.JobRuns } return nil } -func (m *JobDetails) GetCancelUser() string { - if m != nil { - return m.CancelUser +func (x *JobDetails) GetCancelUser() string { + if x != nil { + return x.CancelUser } return "" } type JobDetailsRequest struct { - JobIds []string `protobuf:"bytes,1,rep,name=job_ids,json=jobIds,proto3" json:"jobIds,omitempty"` - ExpandJobSpec bool `protobuf:"varint,2,opt,name=expand_job_spec,json=expandJobSpec,proto3" json:"expandJobSpec,omitempty"` - ExpandJobRun bool `protobuf:"varint,3,opt,name=expand_job_run,json=expandJobRun,proto3" json:"expandJobRun,omitempty"` -} - -func (m *JobDetailsRequest) Reset() { *m = JobDetailsRequest{} } -func (m *JobDetailsRequest) String() string { return proto.CompactTextString(m) } -func (*JobDetailsRequest) ProtoMessage() {} -func (*JobDetailsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e45f6b75bfad87a4, []int{2} -} -func (m *JobDetailsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobDetailsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobDetailsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobDetailsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobDetailsRequest.Merge(m, src) -} -func (m *JobDetailsRequest) XXX_Size() int { - return m.Size() -} -func (m *JobDetailsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_JobDetailsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_JobDetailsRequest proto.InternalMessageInfo - -func (m *JobDetailsRequest) GetJobIds() []string { - if m != nil { - return m.JobIds - } - return nil + state protoimpl.MessageState `protogen:"open.v1"` + JobIds []string `protobuf:"bytes,1,rep,name=job_ids,json=jobIds,proto3" json:"job_ids,omitempty"` + ExpandJobSpec bool `protobuf:"varint,2,opt,name=expand_job_spec,json=expandJobSpec,proto3" json:"expand_job_spec,omitempty"` + ExpandJobRun bool `protobuf:"varint,3,opt,name=expand_job_run,json=expandJobRun,proto3" json:"expand_job_run,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobDetailsRequest) GetExpandJobSpec() bool { - if m != nil { - return m.ExpandJobSpec - } - return false +func (x *JobDetailsRequest) Reset() { + *x = JobDetailsRequest{} + mi := &file_pkg_api_job_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobDetailsRequest) GetExpandJobRun() bool { - if m != nil { - return m.ExpandJobRun - } - return false +func (x *JobDetailsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type JobDetailsResponse struct { - JobDetails map[string]*JobDetails `protobuf:"bytes,1,rep,name=job_details,json=jobDetails,proto3" json:"jobDetails,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} +func (*JobDetailsRequest) ProtoMessage() {} -func (m *JobDetailsResponse) Reset() { *m = JobDetailsResponse{} } -func (m *JobDetailsResponse) String() string { return proto.CompactTextString(m) } -func (*JobDetailsResponse) ProtoMessage() {} -func (*JobDetailsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e45f6b75bfad87a4, []int{3} -} -func (m *JobDetailsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobDetailsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobDetailsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *JobDetailsRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_job_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *JobDetailsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobDetailsResponse.Merge(m, src) -} -func (m *JobDetailsResponse) XXX_Size() int { - return m.Size() -} -func (m *JobDetailsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_JobDetailsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_JobDetailsResponse proto.InternalMessageInfo -func (m *JobDetailsResponse) GetJobDetails() map[string]*JobDetails { - if m != nil { - return m.JobDetails - } - return nil -} - -type JobRunDetailsResponse struct { - JobRunDetails map[string]*JobRunDetails `protobuf:"bytes,1,rep,name=job_run_details,json=jobRunDetails,proto3" json:"jobRunDetails,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (m *JobRunDetailsResponse) Reset() { *m = JobRunDetailsResponse{} } -func (m *JobRunDetailsResponse) String() string { return proto.CompactTextString(m) } -func (*JobRunDetailsResponse) ProtoMessage() {} -func (*JobRunDetailsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e45f6b75bfad87a4, []int{4} -} -func (m *JobRunDetailsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobRunDetailsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRunDetailsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobRunDetailsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRunDetailsResponse.Merge(m, src) -} -func (m *JobRunDetailsResponse) XXX_Size() int { - return m.Size() -} -func (m *JobRunDetailsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_JobRunDetailsResponse.DiscardUnknown(m) +// Deprecated: Use JobDetailsRequest.ProtoReflect.Descriptor instead. +func (*JobDetailsRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_job_proto_rawDescGZIP(), []int{2} } -var xxx_messageInfo_JobRunDetailsResponse proto.InternalMessageInfo - -func (m *JobRunDetailsResponse) GetJobRunDetails() map[string]*JobRunDetails { - if m != nil { - return m.JobRunDetails +func (x *JobDetailsRequest) GetJobIds() []string { + if x != nil { + return x.JobIds } return nil } -type JobRunDetailsRequest struct { - RunIds []string `protobuf:"bytes,1,rep,name=run_ids,json=runIds,proto3" json:"runIds,omitempty"` -} - -func (m *JobRunDetailsRequest) Reset() { *m = JobRunDetailsRequest{} } -func (m *JobRunDetailsRequest) String() string { return proto.CompactTextString(m) } -func (*JobRunDetailsRequest) ProtoMessage() {} -func (*JobRunDetailsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e45f6b75bfad87a4, []int{5} -} -func (m *JobRunDetailsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobRunDetailsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRunDetailsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *JobDetailsRequest) GetExpandJobSpec() bool { + if x != nil { + return x.ExpandJobSpec } -} -func (m *JobRunDetailsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRunDetailsRequest.Merge(m, src) -} -func (m *JobRunDetailsRequest) XXX_Size() int { - return m.Size() -} -func (m *JobRunDetailsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_JobRunDetailsRequest.DiscardUnknown(m) + return false } -var xxx_messageInfo_JobRunDetailsRequest proto.InternalMessageInfo - -func (m *JobRunDetailsRequest) GetRunIds() []string { - if m != nil { - return m.RunIds +func (x *JobDetailsRequest) GetExpandJobRun() bool { + if x != nil { + return x.ExpandJobRun } - return nil + return false } -type JobErrorsRequest struct { - JobIds []string `protobuf:"bytes,1,rep,name=job_ids,json=jobIds,proto3" json:"jobIds,omitempty"` +type JobDetailsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + JobDetails map[string]*JobDetails `protobuf:"bytes,1,rep,name=job_details,json=jobDetails,proto3" json:"job_details,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobErrorsRequest) Reset() { *m = JobErrorsRequest{} } -func (m *JobErrorsRequest) String() string { return proto.CompactTextString(m) } -func (*JobErrorsRequest) ProtoMessage() {} -func (*JobErrorsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e45f6b75bfad87a4, []int{6} -} -func (m *JobErrorsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobErrorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobErrorsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobErrorsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobErrorsRequest.Merge(m, src) -} -func (m *JobErrorsRequest) XXX_Size() int { - return m.Size() -} -func (m *JobErrorsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_JobErrorsRequest.DiscardUnknown(m) +func (x *JobDetailsResponse) Reset() { + *x = JobDetailsResponse{} + mi := &file_pkg_api_job_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -var xxx_messageInfo_JobErrorsRequest proto.InternalMessageInfo - -func (m *JobErrorsRequest) GetJobIds() []string { - if m != nil { - return m.JobIds - } - return nil +func (x *JobDetailsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type JobErrorsResponse struct { - JobErrors map[string]string `protobuf:"bytes,1,rep,name=job_errors,json=jobErrors,proto3" json:"jobErrors,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} +func (*JobDetailsResponse) ProtoMessage() {} -func (m *JobErrorsResponse) Reset() { *m = JobErrorsResponse{} } -func (m *JobErrorsResponse) String() string { return proto.CompactTextString(m) } -func (*JobErrorsResponse) ProtoMessage() {} -func (*JobErrorsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e45f6b75bfad87a4, []int{7} -} -func (m *JobErrorsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobErrorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobErrorsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *JobDetailsResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_job_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil - } -} -func (m *JobErrorsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobErrorsResponse.Merge(m, src) -} -func (m *JobErrorsResponse) XXX_Size() int { - return m.Size() -} -func (m *JobErrorsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_JobErrorsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_JobErrorsResponse proto.InternalMessageInfo - -func (m *JobErrorsResponse) GetJobErrors() map[string]string { - if m != nil { - return m.JobErrors + return ms } - return nil -} - -type JobStatusRequest struct { - JobIds []string `protobuf:"bytes,1,rep,name=job_ids,json=jobIds,proto3" json:"jobIds,omitempty"` + return mi.MessageOf(x) } -func (m *JobStatusRequest) Reset() { *m = JobStatusRequest{} } -func (m *JobStatusRequest) String() string { return proto.CompactTextString(m) } -func (*JobStatusRequest) ProtoMessage() {} -func (*JobStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e45f6b75bfad87a4, []int{8} -} -func (m *JobStatusRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobStatusRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobStatusRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobStatusRequest.Merge(m, src) -} -func (m *JobStatusRequest) XXX_Size() int { - return m.Size() -} -func (m *JobStatusRequest) XXX_DiscardUnknown() { - xxx_messageInfo_JobStatusRequest.DiscardUnknown(m) +// Deprecated: Use JobDetailsResponse.ProtoReflect.Descriptor instead. +func (*JobDetailsResponse) Descriptor() ([]byte, []int) { + return file_pkg_api_job_proto_rawDescGZIP(), []int{3} } -var xxx_messageInfo_JobStatusRequest proto.InternalMessageInfo - -func (m *JobStatusRequest) GetJobIds() []string { - if m != nil { - return m.JobIds +func (x *JobDetailsResponse) GetJobDetails() map[string]*JobDetails { + if x != nil { + return x.JobDetails } return nil } -type JobStatusUsingExternalJobUriRequest struct { - Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` - Jobset string `protobuf:"bytes,2,opt,name=jobset,proto3" json:"jobset,omitempty"` - ExternalJobUri string `protobuf:"bytes,3,opt,name=external_job_uri,json=externalJobUri,proto3" json:"externalJobUri,omitempty"` -} - -func (m *JobStatusUsingExternalJobUriRequest) Reset() { *m = JobStatusUsingExternalJobUriRequest{} } -func (m *JobStatusUsingExternalJobUriRequest) String() string { return proto.CompactTextString(m) } -func (*JobStatusUsingExternalJobUriRequest) ProtoMessage() {} -func (*JobStatusUsingExternalJobUriRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e45f6b75bfad87a4, []int{9} -} -func (m *JobStatusUsingExternalJobUriRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobStatusUsingExternalJobUriRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobStatusUsingExternalJobUriRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobStatusUsingExternalJobUriRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobStatusUsingExternalJobUriRequest.Merge(m, src) -} -func (m *JobStatusUsingExternalJobUriRequest) XXX_Size() int { - return m.Size() -} -func (m *JobStatusUsingExternalJobUriRequest) XXX_DiscardUnknown() { - xxx_messageInfo_JobStatusUsingExternalJobUriRequest.DiscardUnknown(m) +type JobRunDetailsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + JobRunDetails map[string]*JobRunDetails `protobuf:"bytes,1,rep,name=job_run_details,json=jobRunDetails,proto3" json:"job_run_details,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var xxx_messageInfo_JobStatusUsingExternalJobUriRequest proto.InternalMessageInfo - -func (m *JobStatusUsingExternalJobUriRequest) GetQueue() string { - if m != nil { - return m.Queue - } - return "" +func (x *JobRunDetailsResponse) Reset() { + *x = JobRunDetailsResponse{} + mi := &file_pkg_api_job_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobStatusUsingExternalJobUriRequest) GetJobset() string { - if m != nil { - return m.Jobset - } - return "" +func (x *JobRunDetailsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobStatusUsingExternalJobUriRequest) GetExternalJobUri() string { - if m != nil { - return m.ExternalJobUri - } - return "" -} +func (*JobRunDetailsResponse) ProtoMessage() {} -type JobStatusResponse struct { - JobStates map[string]JobState `protobuf:"bytes,1,rep,name=job_states,json=jobStates,proto3" json:"jobStates,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=api.JobState"` -} - -func (m *JobStatusResponse) Reset() { *m = JobStatusResponse{} } -func (m *JobStatusResponse) String() string { return proto.CompactTextString(m) } -func (*JobStatusResponse) ProtoMessage() {} -func (*JobStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e45f6b75bfad87a4, []int{10} -} -func (m *JobStatusResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobStatusResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *JobRunDetailsResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_job_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil - } -} -func (m *JobStatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobStatusResponse.Merge(m, src) -} -func (m *JobStatusResponse) XXX_Size() int { - return m.Size() -} -func (m *JobStatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_JobStatusResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_JobStatusResponse proto.InternalMessageInfo - -func (m *JobStatusResponse) GetJobStates() map[string]JobState { - if m != nil { - return m.JobStates - } - return nil -} - -func init() { - proto.RegisterEnum("api.JobRunState", JobRunState_name, JobRunState_value) - proto.RegisterType((*JobRunDetails)(nil), "api.JobRunDetails") - proto.RegisterType((*JobDetails)(nil), "api.JobDetails") - proto.RegisterType((*JobDetailsRequest)(nil), "api.JobDetailsRequest") - proto.RegisterType((*JobDetailsResponse)(nil), "api.JobDetailsResponse") - proto.RegisterMapType((map[string]*JobDetails)(nil), "api.JobDetailsResponse.JobDetailsEntry") - proto.RegisterType((*JobRunDetailsResponse)(nil), "api.JobRunDetailsResponse") - proto.RegisterMapType((map[string]*JobRunDetails)(nil), "api.JobRunDetailsResponse.JobRunDetailsEntry") - proto.RegisterType((*JobRunDetailsRequest)(nil), "api.JobRunDetailsRequest") - proto.RegisterType((*JobErrorsRequest)(nil), "api.JobErrorsRequest") - proto.RegisterType((*JobErrorsResponse)(nil), "api.JobErrorsResponse") - proto.RegisterMapType((map[string]string)(nil), "api.JobErrorsResponse.JobErrorsEntry") - proto.RegisterType((*JobStatusRequest)(nil), "api.JobStatusRequest") - proto.RegisterType((*JobStatusUsingExternalJobUriRequest)(nil), "api.JobStatusUsingExternalJobUriRequest") - proto.RegisterType((*JobStatusResponse)(nil), "api.JobStatusResponse") - proto.RegisterMapType((map[string]JobState)(nil), "api.JobStatusResponse.JobStatesEntry") -} - -func init() { proto.RegisterFile("pkg/api/job.proto", fileDescriptor_e45f6b75bfad87a4) } - -var fileDescriptor_e45f6b75bfad87a4 = []byte{ - // 1420 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x5f, 0x6b, 0xdb, 0xd6, - 0x1b, 0x8e, 0x9c, 0x38, 0xb1, 0x8f, 0xeb, 0x44, 0x39, 0xf9, 0xe7, 0xb8, 0xfd, 0x59, 0xf9, 0xa9, - 0xac, 0x4d, 0x4b, 0x6b, 0xb3, 0x8c, 0x41, 0x97, 0x51, 0xb6, 0x24, 0x56, 0x4b, 0xb2, 0xce, 0x0d, - 0x8a, 0xcd, 0xca, 0xd8, 0x30, 0x92, 0x7d, 0x9a, 0xca, 0xb5, 0x25, 0x55, 0xe7, 0xa8, 0x34, 0xb0, - 0xab, 0xc1, 0x2e, 0x76, 0xb7, 0xd1, 0xef, 0x34, 0xb6, 0x8b, 0x41, 0x61, 0xbb, 0xe8, 0x95, 0x18, - 0xed, 0x60, 0xa0, 0xab, 0x7d, 0x84, 0xa1, 0x73, 0x24, 0xf9, 0x1c, 0x25, 0xc1, 0x69, 0x2f, 0xfd, - 0xbc, 0xef, 0xfb, 0x9c, 0x73, 0x9e, 0xf7, 0x9f, 0x0c, 0x16, 0xdd, 0xa7, 0xc7, 0x0d, 0xc3, 0xb5, - 0x1a, 0x03, 0xc7, 0xac, 0xbb, 0x9e, 0x43, 0x1c, 0x38, 0x6d, 0xb8, 0x56, 0x75, 0x39, 0xc1, 0xb1, - 0x6f, 0x8e, 0x2c, 0xc2, 0x4c, 0x55, 0xe5, 0xd8, 0x71, 0x8e, 0x87, 0xa8, 0x41, 0x7f, 0x99, 0xfe, - 0xe3, 0x06, 0xb1, 0x46, 0x08, 0x13, 0x63, 0xe4, 0xc6, 0x0e, 0x57, 0x62, 0x87, 0x28, 0xd2, 0xb0, - 0x6d, 0x87, 0x18, 0xc4, 0x72, 0x6c, 0xcc, 0xac, 0xea, 0xef, 0x33, 0xa0, 0x7c, 0xe0, 0x98, 0xba, - 0x6f, 0x37, 0x11, 0x31, 0xac, 0x21, 0x86, 0x37, 0xc1, 0xac, 0xe7, 0xdb, 0x5d, 0xab, 0x5f, 0x91, - 0x36, 0xa4, 0xcd, 0xe2, 0xee, 0x52, 0x18, 0x28, 0x0b, 0x9e, 0x6f, 0xef, 0xf7, 0x6f, 0x39, 0x23, - 0x8b, 0xa0, 0x91, 0x4b, 0x4e, 0xf4, 0x3c, 0x05, 0x22, 0xdf, 0x81, 0x63, 0x46, 0xbe, 0xb9, 0xb1, - 0xef, 0xc0, 0x31, 0x45, 0x5f, 0x0a, 0xc0, 0x4f, 0x41, 0x1e, 0x13, 0x83, 0xa0, 0xca, 0xf4, 0x86, - 0xb4, 0x39, 0xbf, 0x25, 0xd7, 0x0d, 0xd7, 0xaa, 0xb3, 0xa3, 0x8f, 0x22, 0x9c, 0x05, 0x53, 0x17, - 0x3e, 0x98, 0x02, 0xb0, 0x01, 0xe6, 0x7a, 0x43, 0x1f, 0x13, 0xe4, 0x55, 0x66, 0xe8, 0x49, 0x2b, - 0x61, 0xa0, 0x2c, 0xc6, 0x10, 0xe7, 0x9e, 0x78, 0xc1, 0x6b, 0x60, 0xc6, 0x76, 0xfa, 0xa8, 0x92, - 0xa7, 0xde, 0x30, 0x0c, 0x94, 0xf9, 0xe8, 0x37, 0xe7, 0x4a, 0xed, 0xf0, 0x21, 0x28, 0x0e, 0x91, - 0x81, 0x51, 0xbf, 0x4b, 0x70, 0x65, 0x6e, 0x43, 0xda, 0x2c, 0x6d, 0x55, 0xeb, 0x4c, 0xb1, 0x7a, - 0x22, 0x69, 0xbd, 0x9d, 0x48, 0xba, 0xbb, 0x1a, 0x06, 0x0a, 0x64, 0x01, 0x6d, 0xcc, 0x91, 0x15, - 0x12, 0x0c, 0xea, 0x00, 0xb8, 0xc8, 0xee, 0x5b, 0xf6, 0x71, 0xc4, 0x58, 0x98, 0xc8, 0xb8, 0x16, - 0x06, 0xca, 0x52, 0x1c, 0x21, 0x50, 0x16, 0x53, 0x30, 0xe2, 0xc4, 0xc4, 0xf0, 0x08, 0xbb, 0x65, - 0xf1, 0x62, 0x9c, 0x71, 0x84, 0xc8, 0x99, 0x82, 0xb0, 0x03, 0x4a, 0x8f, 0x2d, 0xdb, 0xc2, 0x4f, - 0x18, 0x29, 0x98, 0x48, 0x5a, 0x09, 0x03, 0x65, 0x39, 0x09, 0x11, 0x58, 0xc1, 0x18, 0x55, 0xff, - 0x9c, 0x05, 0xe0, 0xc0, 0x31, 0xb9, 0x62, 0x8a, 0x0b, 0x44, 0x9a, 0x58, 0x20, 0x37, 0x40, 0xfe, - 0x99, 0x8f, 0x7c, 0xc4, 0xd7, 0x12, 0x05, 0x78, 0x57, 0x0a, 0xc0, 0x5b, 0x94, 0x16, 0x23, 0x42, - 0x8b, 0xa9, 0xb8, 0xbb, 0x1c, 0x06, 0x8a, 0xcc, 0x10, 0xce, 0x39, 0xf6, 0x81, 0x1f, 0x83, 0xa2, - 0x6d, 0x8c, 0x10, 0x76, 0x8d, 0x1e, 0x8a, 0xcb, 0x87, 0x2a, 0x94, 0x82, 0xbc, 0x42, 0x29, 0x08, - 0xef, 0x24, 0x05, 0x9b, 0xa7, 0x05, 0x5b, 0x4e, 0x0a, 0x76, 0x72, 0xb5, 0x3e, 0x02, 0x97, 0x58, - 0x8f, 0xc6, 0x19, 0x9b, 0x9d, 0x28, 0xee, 0x7a, 0x18, 0x28, 0x2b, 0x69, 0x8c, 0xa0, 0x6e, 0x89, - 0x83, 0xa3, 0x72, 0xed, 0x19, 0x76, 0x0f, 0x0d, 0xdf, 0xa1, 0x5c, 0x59, 0x80, 0x58, 0xae, 0x09, - 0x06, 0x3f, 0x03, 0xe5, 0x98, 0xd0, 0x43, 0x06, 0x76, 0x6c, 0x5a, 0xb1, 0xc5, 0xdd, 0x6a, 0x18, - 0x28, 0xab, 0xcc, 0xa0, 0x53, 0x9c, 0x0b, 0xbe, 0xc4, 0xe3, 0xf0, 0x09, 0x80, 0x43, 0x03, 0x93, - 0x2e, 0xf1, 0x0c, 0x1b, 0x5b, 0xd1, 0x68, 0xb9, 0x58, 0x8d, 0xd6, 0xc2, 0x40, 0xa9, 0x46, 0x91, - 0xed, 0x34, 0x50, 0xb8, 0xa2, 0x9c, 0xb5, 0xc1, 0xbb, 0xa0, 0x3c, 0x34, 0x08, 0xc2, 0xa4, 0x1b, - 0xcf, 0x27, 0x40, 0xaf, 0x4a, 0xa5, 0x63, 0x06, 0x3d, 0x33, 0xa5, 0x4a, 0x1c, 0x0c, 0xb7, 0x41, - 0x21, 0x2a, 0x45, 0xec, 0xa2, 0x5e, 0xa5, 0x44, 0xaf, 0x57, 0x48, 0x32, 0xca, 0xa6, 0xc9, 0xc0, - 0x31, 0x8f, 0x5c, 0xd4, 0xe3, 0xa7, 0x49, 0x0c, 0xc1, 0x26, 0x8b, 0xf5, 0x7c, 0x1b, 0x57, 0x2e, - 0x6d, 0x4c, 0x6f, 0x96, 0xb6, 0x20, 0x37, 0xbe, 0xe2, 0x62, 0x4f, 0x59, 0x74, 0xdf, 0xc6, 0x19, - 0x96, 0x08, 0x82, 0x9f, 0x80, 0x52, 0xac, 0xb5, 0x8f, 0x91, 0x57, 0x29, 0xd3, 0xeb, 0xd3, 0xb6, - 0x62, 0x70, 0x07, 0x0b, 0xb3, 0x0c, 0x8c, 0x51, 0xf5, 0x37, 0x09, 0x2c, 0x8e, 0xdb, 0x4a, 0x47, - 0xcf, 0x7c, 0x84, 0x09, 0xbc, 0x0d, 0xe6, 0x58, 0x77, 0xe1, 0x8a, 0xb4, 0x31, 0xcd, 0xf5, 0xc1, - 0x7e, 0x1f, 0x67, 0xfa, 0x60, 0xbf, 0x8f, 0xe1, 0x1e, 0x58, 0x40, 0x2f, 0x5c, 0xc3, 0xee, 0x77, - 0x53, 0x21, 0xa2, 0x56, 0x2b, 0xec, 0x5e, 0x0e, 0x03, 0x65, 0x8d, 0x99, 0x0e, 0x4e, 0x89, 0x50, - 0x16, 0x0c, 0xf0, 0x73, 0x30, 0xcf, 0x91, 0x78, 0xbe, 0x4d, 0x5b, 0xb0, 0xc0, 0x2a, 0x26, 0x75, - 0xd5, 0x7d, 0xa1, 0x62, 0x78, 0x5c, 0xfd, 0x57, 0x02, 0x90, 0x7f, 0x0b, 0x76, 0x1d, 0x1b, 0x23, - 0x68, 0x82, 0x52, 0xc4, 0xd8, 0x67, 0x30, 0x7d, 0x50, 0x69, 0xeb, 0x7a, 0x22, 0x73, 0xc6, 0x9b, - 0x83, 0x34, 0x9b, 0x78, 0x27, 0x4c, 0xc6, 0x41, 0x0a, 0xf2, 0x32, 0x8e, 0xd1, 0xea, 0x73, 0xb0, - 0x90, 0x09, 0x84, 0x57, 0xc1, 0xf4, 0x53, 0x74, 0x12, 0x8f, 0xa7, 0xc5, 0x30, 0x50, 0xca, 0x4f, - 0xd1, 0x09, 0x17, 0x1e, 0x59, 0xe1, 0x36, 0xc8, 0x3f, 0x37, 0x86, 0xf1, 0x68, 0x2a, 0x6d, 0x2d, - 0x64, 0x6e, 0xc5, 0x86, 0x01, 0xf5, 0xe0, 0x87, 0x01, 0x05, 0xb6, 0x73, 0x77, 0x24, 0xf5, 0xc7, - 0x1c, 0x58, 0x11, 0x6a, 0x25, 0x7d, 0xb5, 0x07, 0x16, 0x62, 0x1d, 0x33, 0x2f, 0xbf, 0x7d, 0xba, - 0xc0, 0xf8, 0xc7, 0x8f, 0x51, 0xf6, 0x7e, 0x9a, 0xc2, 0x01, 0x8f, 0xf3, 0x29, 0x14, 0x0c, 0xd5, - 0xef, 0xa8, 0xfe, 0x19, 0x86, 0x8b, 0x09, 0x71, 0x57, 0x14, 0xe2, 0xac, 0x2e, 0x98, 0xa4, 0x85, - 0x06, 0x96, 0x33, 0xaf, 0x4a, 0x8b, 0x99, 0xf5, 0xb5, 0x50, 0xcc, 0xf4, 0x3b, 0x43, 0x28, 0x66, - 0x86, 0xa8, 0x3b, 0x40, 0x3e, 0x70, 0x4c, 0xcd, 0xf3, 0x1c, 0xef, 0x3d, 0xfb, 0x41, 0x7d, 0xcd, - 0x9a, 0x2a, 0xe1, 0x88, 0x33, 0xf2, 0x2d, 0x88, 0x2a, 0xa6, 0x8b, 0x28, 0x1a, 0x27, 0xe3, 0x83, - 0xe4, 0x9d, 0xa2, 0xef, 0x18, 0x61, 0x49, 0xa0, 0x5b, 0x65, 0x90, 0x60, 0xfc, 0x56, 0x49, 0xc1, - 0x6a, 0x1f, 0xcc, 0x8b, 0x51, 0x17, 0x13, 0xfe, 0x06, 0x2f, 0x7c, 0x71, 0xa2, 0xc8, 0x4c, 0x9d, - 0x68, 0x53, 0xf9, 0xef, 0xab, 0xce, 0x2f, 0x12, 0xb8, 0x9a, 0x72, 0x74, 0xb0, 0x65, 0x1f, 0x6b, - 0x2f, 0x08, 0xf2, 0x6c, 0x63, 0x78, 0xe0, 0x98, 0x1d, 0xcf, 0x4a, 0x68, 0xd3, 0xb5, 0x2d, 0xbd, - 0xc3, 0xda, 0xce, 0x5d, 0x60, 0x6d, 0xdf, 0x03, 0x32, 0x8a, 0x4f, 0xa4, 0xb3, 0xc6, 0xf7, 0xac, - 0x78, 0xdd, 0x5f, 0x09, 0x03, 0xa5, 0x82, 0x84, 0xdb, 0x70, 0xf1, 0xf3, 0xa2, 0x45, 0xfd, 0x87, - 0xa5, 0x39, 0x11, 0x43, 0x4c, 0x33, 0x5d, 0xd8, 0xa7, 0xd2, 0x2c, 0xfa, 0xa6, 0x4b, 0x3f, 0x93, - 0x66, 0x86, 0x65, 0xd2, 0xcc, 0xc0, 0x2a, 0xa6, 0x69, 0xe6, 0xa2, 0x2e, 0x96, 0xe6, 0x3b, 0x7c, - 0x9a, 0xcf, 0xfe, 0xe6, 0x38, 0x3f, 0xeb, 0x37, 0x7f, 0xc8, 0x81, 0x12, 0xf7, 0x45, 0x0d, 0x57, - 0xc0, 0xa2, 0xde, 0x69, 0x75, 0x8f, 0xda, 0x3b, 0x6d, 0xad, 0xdb, 0x69, 0x7d, 0xd1, 0x7a, 0xf8, - 0x55, 0x4b, 0x9e, 0x82, 0xcb, 0x40, 0x1e, 0xc3, 0x0f, 0xb4, 0x9d, 0x23, 0xad, 0x29, 0x4b, 0xa2, - 0xf3, 0xa1, 0xd6, 0x6a, 0xee, 0xb7, 0xee, 0xcb, 0x39, 0x11, 0xd6, 0x3b, 0xad, 0x56, 0x04, 0x4f, - 0xc3, 0x35, 0xb0, 0x34, 0x86, 0x8f, 0x3a, 0x7b, 0x7b, 0x9a, 0xd6, 0xd4, 0x9a, 0xf2, 0x8c, 0x48, - 0x7e, 0x6f, 0x67, 0xff, 0x81, 0xd6, 0x94, 0xf3, 0xa2, 0xfb, 0xa1, 0xae, 0x69, 0x5f, 0x1e, 0xb6, - 0xb5, 0xa6, 0x3c, 0x2b, 0x1a, 0xf6, 0x76, 0x5a, 0x7b, 0xda, 0x83, 0x28, 0x62, 0x0e, 0x5e, 0x06, - 0x6b, 0x99, 0x4b, 0x76, 0xb5, 0x47, 0x87, 0xfb, 0xba, 0xd6, 0x94, 0x0b, 0xf0, 0x7f, 0x60, 0x5d, - 0xef, 0xb4, 0x8e, 0x04, 0xab, 0xae, 0xb5, 0x3b, 0x7a, 0x4b, 0x6b, 0xca, 0xc5, 0xad, 0x97, 0x33, - 0x60, 0xe6, 0xc0, 0x31, 0x71, 0xf4, 0x21, 0x76, 0x1f, 0x91, 0x34, 0xa1, 0x70, 0x25, 0x9b, 0x60, - 0x5a, 0xc2, 0xd5, 0xd5, 0xb3, 0xf3, 0xae, 0xae, 0x7f, 0xff, 0xc7, 0xdf, 0x2f, 0x73, 0x4b, 0xea, - 0x7c, 0xe3, 0xf9, 0x87, 0xd1, 0xbf, 0xb1, 0x06, 0xa6, 0xf6, 0x6d, 0xe9, 0x26, 0xfc, 0x59, 0x02, - 0x0a, 0x4f, 0x7d, 0x46, 0x83, 0xc0, 0x4d, 0x91, 0xf6, 0xfc, 0x1e, 0x3a, 0xf7, 0x02, 0xb7, 0xe8, - 0x05, 0xae, 0xa9, 0xff, 0x17, 0x2f, 0x70, 0x06, 0x53, 0x74, 0xa7, 0x6f, 0x40, 0x99, 0x5d, 0x29, - 0xf9, 0xfa, 0x5e, 0x3d, 0xb5, 0x3d, 0xd9, 0x71, 0x6b, 0xe7, 0x6c, 0x55, 0xb5, 0x4a, 0xcf, 0x5b, - 0x56, 0x17, 0x92, 0xf3, 0xe2, 0x9d, 0x14, 0xb1, 0xa7, 0x5a, 0xb2, 0xd9, 0x35, 0xd6, 0x52, 0x98, - 0xc1, 0xe3, 0xa7, 0x88, 0xa3, 0xf2, 0xb4, 0x96, 0x6c, 0xc0, 0x46, 0xcc, 0x08, 0xc8, 0x8c, 0x99, - 0xfb, 0x17, 0xba, 0x7e, 0xd6, 0xfa, 0x63, 0x27, 0x54, 0xcf, 0xdf, 0x8c, 0xe2, 0x03, 0x3c, 0xdf, - 0xe6, 0x1e, 0xb0, 0xbb, 0xf3, 0xeb, 0x9b, 0x9a, 0xf4, 0xea, 0x4d, 0x4d, 0xfa, 0xeb, 0x4d, 0x4d, - 0xfa, 0xe9, 0x6d, 0x6d, 0xea, 0xd5, 0xdb, 0xda, 0xd4, 0xeb, 0xb7, 0xb5, 0xa9, 0xaf, 0xaf, 0x1f, - 0x5b, 0xe4, 0x89, 0x6f, 0xd6, 0x7b, 0xce, 0xa8, 0x61, 0x78, 0x23, 0xa3, 0x6f, 0xb8, 0x9e, 0x33, - 0x40, 0x3d, 0x12, 0xff, 0x6a, 0xc4, 0xff, 0xbc, 0xcd, 0x59, 0xfa, 0x21, 0xfb, 0xd1, 0x7f, 0x01, - 0x00, 0x00, 0xff, 0xff, 0x07, 0xbf, 0x46, 0xec, 0xa3, 0x0f, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// JobsClient is the client API for Jobs service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type JobsClient interface { - GetJobStatus(ctx context.Context, in *JobStatusRequest, opts ...grpc.CallOption) (*JobStatusResponse, error) - GetJobStatusUsingExternalJobUri(ctx context.Context, in *JobStatusUsingExternalJobUriRequest, opts ...grpc.CallOption) (*JobStatusResponse, error) - GetJobDetails(ctx context.Context, in *JobDetailsRequest, opts ...grpc.CallOption) (*JobDetailsResponse, error) - GetJobErrors(ctx context.Context, in *JobErrorsRequest, opts ...grpc.CallOption) (*JobErrorsResponse, error) - GetJobRunDetails(ctx context.Context, in *JobRunDetailsRequest, opts ...grpc.CallOption) (*JobRunDetailsResponse, error) -} - -type jobsClient struct { - cc *grpc.ClientConn -} - -func NewJobsClient(cc *grpc.ClientConn) JobsClient { - return &jobsClient{cc} -} - -func (c *jobsClient) GetJobStatus(ctx context.Context, in *JobStatusRequest, opts ...grpc.CallOption) (*JobStatusResponse, error) { - out := new(JobStatusResponse) - err := c.cc.Invoke(ctx, "/api.Jobs/GetJobStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *jobsClient) GetJobStatusUsingExternalJobUri(ctx context.Context, in *JobStatusUsingExternalJobUriRequest, opts ...grpc.CallOption) (*JobStatusResponse, error) { - out := new(JobStatusResponse) - err := c.cc.Invoke(ctx, "/api.Jobs/GetJobStatusUsingExternalJobUri", in, out, opts...) - if err != nil { - return nil, err + return ms } - return out, nil -} - -func (c *jobsClient) GetJobDetails(ctx context.Context, in *JobDetailsRequest, opts ...grpc.CallOption) (*JobDetailsResponse, error) { - out := new(JobDetailsResponse) - err := c.cc.Invoke(ctx, "/api.Jobs/GetJobDetails", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *jobsClient) GetJobErrors(ctx context.Context, in *JobErrorsRequest, opts ...grpc.CallOption) (*JobErrorsResponse, error) { - out := new(JobErrorsResponse) - err := c.cc.Invoke(ctx, "/api.Jobs/GetJobErrors", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *jobsClient) GetJobRunDetails(ctx context.Context, in *JobRunDetailsRequest, opts ...grpc.CallOption) (*JobRunDetailsResponse, error) { - out := new(JobRunDetailsResponse) - err := c.cc.Invoke(ctx, "/api.Jobs/GetJobRunDetails", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// JobsServer is the server API for Jobs service. -type JobsServer interface { - GetJobStatus(context.Context, *JobStatusRequest) (*JobStatusResponse, error) - GetJobStatusUsingExternalJobUri(context.Context, *JobStatusUsingExternalJobUriRequest) (*JobStatusResponse, error) - GetJobDetails(context.Context, *JobDetailsRequest) (*JobDetailsResponse, error) - GetJobErrors(context.Context, *JobErrorsRequest) (*JobErrorsResponse, error) - GetJobRunDetails(context.Context, *JobRunDetailsRequest) (*JobRunDetailsResponse, error) + return mi.MessageOf(x) } -// UnimplementedJobsServer can be embedded to have forward compatible implementations. -type UnimplementedJobsServer struct { -} - -func (*UnimplementedJobsServer) GetJobStatus(ctx context.Context, req *JobStatusRequest) (*JobStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetJobStatus not implemented") -} -func (*UnimplementedJobsServer) GetJobStatusUsingExternalJobUri(ctx context.Context, req *JobStatusUsingExternalJobUriRequest) (*JobStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetJobStatusUsingExternalJobUri not implemented") -} -func (*UnimplementedJobsServer) GetJobDetails(ctx context.Context, req *JobDetailsRequest) (*JobDetailsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetJobDetails not implemented") -} -func (*UnimplementedJobsServer) GetJobErrors(ctx context.Context, req *JobErrorsRequest) (*JobErrorsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetJobErrors not implemented") -} -func (*UnimplementedJobsServer) GetJobRunDetails(ctx context.Context, req *JobRunDetailsRequest) (*JobRunDetailsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetJobRunDetails not implemented") -} - -func RegisterJobsServer(s *grpc.Server, srv JobsServer) { - s.RegisterService(&_Jobs_serviceDesc, srv) -} - -func _Jobs_GetJobStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(JobStatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(JobsServer).GetJobStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Jobs/GetJobStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(JobsServer).GetJobStatus(ctx, req.(*JobStatusRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Jobs_GetJobStatusUsingExternalJobUri_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(JobStatusUsingExternalJobUriRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(JobsServer).GetJobStatusUsingExternalJobUri(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Jobs/GetJobStatusUsingExternalJobUri", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(JobsServer).GetJobStatusUsingExternalJobUri(ctx, req.(*JobStatusUsingExternalJobUriRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Jobs_GetJobDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(JobDetailsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(JobsServer).GetJobDetails(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Jobs/GetJobDetails", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(JobsServer).GetJobDetails(ctx, req.(*JobDetailsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Jobs_GetJobErrors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(JobErrorsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(JobsServer).GetJobErrors(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Jobs/GetJobErrors", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(JobsServer).GetJobErrors(ctx, req.(*JobErrorsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Jobs_GetJobRunDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(JobRunDetailsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(JobsServer).GetJobRunDetails(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Jobs/GetJobRunDetails", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(JobsServer).GetJobRunDetails(ctx, req.(*JobRunDetailsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Jobs_serviceDesc = grpc.ServiceDesc{ - ServiceName: "api.Jobs", - HandlerType: (*JobsServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetJobStatus", - Handler: _Jobs_GetJobStatus_Handler, - }, - { - MethodName: "GetJobStatusUsingExternalJobUri", - Handler: _Jobs_GetJobStatusUsingExternalJobUri_Handler, - }, - { - MethodName: "GetJobDetails", - Handler: _Jobs_GetJobDetails_Handler, - }, - { - MethodName: "GetJobErrors", - Handler: _Jobs_GetJobErrors_Handler, - }, - { - MethodName: "GetJobRunDetails", - Handler: _Jobs_GetJobRunDetails_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pkg/api/job.proto", +// Deprecated: Use JobRunDetailsResponse.ProtoReflect.Descriptor instead. +func (*JobRunDetailsResponse) Descriptor() ([]byte, []int) { + return file_pkg_api_job_proto_rawDescGZIP(), []int{4} } -func (m *JobRunDetails) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *JobRunDetailsResponse) GetJobRunDetails() map[string]*JobRunDetails { + if x != nil { + return x.JobRunDetails } - return dAtA[:n], nil + return nil } -func (m *JobRunDetails) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type JobRunDetailsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + RunIds []string `protobuf:"bytes,1,rep,name=run_ids,json=runIds,proto3" json:"run_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.FinishedTs != nil { - { - size, err := m.FinishedTs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintJob(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if m.StartedTs != nil { - { - size, err := m.StartedTs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintJob(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.PendingTs != nil { - { - size, err := m.PendingTs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintJob(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if m.LeasedTs != nil { - { - size, err := m.LeasedTs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintJob(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if len(m.Node) > 0 { - i -= len(m.Node) - copy(dAtA[i:], m.Node) - i = encodeVarintJob(dAtA, i, uint64(len(m.Node))) - i-- - dAtA[i] = 0x2a - } - if len(m.Cluster) > 0 { - i -= len(m.Cluster) - copy(dAtA[i:], m.Cluster) - i = encodeVarintJob(dAtA, i, uint64(len(m.Cluster))) - i-- - dAtA[i] = 0x22 - } - if m.State != 0 { - i = encodeVarintJob(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x18 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintJob(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x12 - } - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintJob(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *JobRunDetailsRequest) Reset() { + *x = JobRunDetailsRequest{} + mi := &file_pkg_api_job_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobDetails) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *JobRunDetailsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobDetails) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*JobRunDetailsRequest) ProtoMessage() {} -func (m *JobDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CancelUser) > 0 { - i -= len(m.CancelUser) - copy(dAtA[i:], m.CancelUser) - i = encodeVarintJob(dAtA, i, uint64(len(m.CancelUser))) - i-- - dAtA[i] = 0x6a - } - if len(m.JobRuns) > 0 { - for iNdEx := len(m.JobRuns) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.JobRuns[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintJob(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - } - if m.JobSpec != nil { - { - size, err := m.JobSpec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintJob(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if len(m.LatestRunId) > 0 { - i -= len(m.LatestRunId) - copy(dAtA[i:], m.LatestRunId) - i = encodeVarintJob(dAtA, i, uint64(len(m.LatestRunId))) - i-- - dAtA[i] = 0x52 - } - if m.LastTransitionTs != nil { - { - size, err := m.LastTransitionTs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintJob(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if len(m.CancelReason) > 0 { - i -= len(m.CancelReason) - copy(dAtA[i:], m.CancelReason) - i = encodeVarintJob(dAtA, i, uint64(len(m.CancelReason))) - i-- - dAtA[i] = 0x42 - } - if m.CancelTs != nil { - { - size, err := m.CancelTs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintJob(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.SubmittedTs != nil { - { - size, err := m.SubmittedTs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintJob(dAtA, i, uint64(size)) +func (x *JobRunDetailsRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_job_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x32 + return ms } - if m.State != 0 { - i = encodeVarintJob(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x28 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintJob(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x22 - } - if len(m.Jobset) > 0 { - i -= len(m.Jobset) - copy(dAtA[i:], m.Jobset) - i = encodeVarintJob(dAtA, i, uint64(len(m.Jobset))) - i-- - dAtA[i] = 0x1a - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintJob(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintJob(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobDetailsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *JobDetailsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobDetailsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ExpandJobRun { - i-- - if m.ExpandJobRun { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.ExpandJobSpec { - i-- - if m.ExpandJobSpec { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.JobIds) > 0 { - for iNdEx := len(m.JobIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.JobIds[iNdEx]) - copy(dAtA[i:], m.JobIds[iNdEx]) - i = encodeVarintJob(dAtA, i, uint64(len(m.JobIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *JobDetailsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobDetailsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobDetailsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobDetails) > 0 { - for k := range m.JobDetails { - v := m.JobDetails[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintJob(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintJob(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintJob(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil +// Deprecated: Use JobRunDetailsRequest.ProtoReflect.Descriptor instead. +func (*JobRunDetailsRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_job_proto_rawDescGZIP(), []int{5} } -func (m *JobRunDetailsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *JobRunDetailsRequest) GetRunIds() []string { + if x != nil { + return x.RunIds } - return dAtA[:n], nil + return nil } -func (m *JobRunDetailsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type JobErrorsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + JobIds []string `protobuf:"bytes,1,rep,name=job_ids,json=jobIds,proto3" json:"job_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunDetailsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobRunDetails) > 0 { - for k := range m.JobRunDetails { - v := m.JobRunDetails[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintJob(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintJob(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintJob(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil +func (x *JobErrorsRequest) Reset() { + *x = JobErrorsRequest{} + mi := &file_pkg_api_job_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRunDetailsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *JobErrorsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRunDetailsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*JobErrorsRequest) ProtoMessage() {} -func (m *JobRunDetailsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunIds) > 0 { - for iNdEx := len(m.RunIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.RunIds[iNdEx]) - copy(dAtA[i:], m.RunIds[iNdEx]) - i = encodeVarintJob(dAtA, i, uint64(len(m.RunIds[iNdEx]))) - i-- - dAtA[i] = 0xa +func (x *JobErrorsRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_job_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return len(dAtA) - i, nil -} - -func (m *JobErrorsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobErrorsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *JobErrorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobIds) > 0 { - for iNdEx := len(m.JobIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.JobIds[iNdEx]) - copy(dAtA[i:], m.JobIds[iNdEx]) - i = encodeVarintJob(dAtA, i, uint64(len(m.JobIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil +// Deprecated: Use JobErrorsRequest.ProtoReflect.Descriptor instead. +func (*JobErrorsRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_job_proto_rawDescGZIP(), []int{6} } -func (m *JobErrorsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *JobErrorsRequest) GetJobIds() []string { + if x != nil { + return x.JobIds } - return dAtA[:n], nil + return nil } -func (m *JobErrorsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type JobErrorsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + JobErrors map[string]string `protobuf:"bytes,1,rep,name=job_errors,json=jobErrors,proto3" json:"job_errors,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobErrorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobErrors) > 0 { - for k := range m.JobErrors { - v := m.JobErrors[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintJob(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintJob(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintJob(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil +func (x *JobErrorsResponse) Reset() { + *x = JobErrorsResponse{} + mi := &file_pkg_api_job_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobStatusRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *JobErrorsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobStatusRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*JobErrorsResponse) ProtoMessage() {} -func (m *JobStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobIds) > 0 { - for iNdEx := len(m.JobIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.JobIds[iNdEx]) - copy(dAtA[i:], m.JobIds[iNdEx]) - i = encodeVarintJob(dAtA, i, uint64(len(m.JobIds[iNdEx]))) - i-- - dAtA[i] = 0xa +func (x *JobErrorsResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_job_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return len(dAtA) - i, nil -} - -func (m *JobStatusUsingExternalJobUriRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *JobStatusUsingExternalJobUriRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use JobErrorsResponse.ProtoReflect.Descriptor instead. +func (*JobErrorsResponse) Descriptor() ([]byte, []int) { + return file_pkg_api_job_proto_rawDescGZIP(), []int{7} } -func (m *JobStatusUsingExternalJobUriRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ExternalJobUri) > 0 { - i -= len(m.ExternalJobUri) - copy(dAtA[i:], m.ExternalJobUri) - i = encodeVarintJob(dAtA, i, uint64(len(m.ExternalJobUri))) - i-- - dAtA[i] = 0x1a - } - if len(m.Jobset) > 0 { - i -= len(m.Jobset) - copy(dAtA[i:], m.Jobset) - i = encodeVarintJob(dAtA, i, uint64(len(m.Jobset))) - i-- - dAtA[i] = 0x12 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintJob(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0xa +func (x *JobErrorsResponse) GetJobErrors() map[string]string { + if x != nil { + return x.JobErrors } - return len(dAtA) - i, nil + return nil } -func (m *JobStatusResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type JobStatusRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + JobIds []string `protobuf:"bytes,1,rep,name=job_ids,json=jobIds,proto3" json:"job_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobStatusResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *JobStatusRequest) Reset() { + *x = JobStatusRequest{} + mi := &file_pkg_api_job_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobStates) > 0 { - for k := range m.JobStates { - v := m.JobStates[k] - baseI := i - i = encodeVarintJob(dAtA, i, uint64(v)) - i-- - dAtA[i] = 0x10 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintJob(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintJob(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil +func (x *JobStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func encodeVarintJob(dAtA []byte, offset int, v uint64) int { - offset -= sovJob(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *JobRunDetails) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovJob(uint64(l)) - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovJob(uint64(l)) - } - if m.State != 0 { - n += 1 + sovJob(uint64(m.State)) - } - l = len(m.Cluster) - if l > 0 { - n += 1 + l + sovJob(uint64(l)) - } - l = len(m.Node) - if l > 0 { - n += 1 + l + sovJob(uint64(l)) - } - if m.LeasedTs != nil { - l = m.LeasedTs.Size() - n += 1 + l + sovJob(uint64(l)) - } - if m.PendingTs != nil { - l = m.PendingTs.Size() - n += 1 + l + sovJob(uint64(l)) - } - if m.StartedTs != nil { - l = m.StartedTs.Size() - n += 1 + l + sovJob(uint64(l)) - } - if m.FinishedTs != nil { - l = m.FinishedTs.Size() - n += 1 + l + sovJob(uint64(l)) - } - return n -} +func (*JobStatusRequest) ProtoMessage() {} -func (m *JobDetails) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovJob(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovJob(uint64(l)) - } - l = len(m.Jobset) - if l > 0 { - n += 1 + l + sovJob(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovJob(uint64(l)) - } - if m.State != 0 { - n += 1 + sovJob(uint64(m.State)) - } - if m.SubmittedTs != nil { - l = m.SubmittedTs.Size() - n += 1 + l + sovJob(uint64(l)) - } - if m.CancelTs != nil { - l = m.CancelTs.Size() - n += 1 + l + sovJob(uint64(l)) - } - l = len(m.CancelReason) - if l > 0 { - n += 1 + l + sovJob(uint64(l)) - } - if m.LastTransitionTs != nil { - l = m.LastTransitionTs.Size() - n += 1 + l + sovJob(uint64(l)) - } - l = len(m.LatestRunId) - if l > 0 { - n += 1 + l + sovJob(uint64(l)) - } - if m.JobSpec != nil { - l = m.JobSpec.Size() - n += 1 + l + sovJob(uint64(l)) - } - if len(m.JobRuns) > 0 { - for _, e := range m.JobRuns { - l = e.Size() - n += 1 + l + sovJob(uint64(l)) +func (x *JobStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_job_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - l = len(m.CancelUser) - if l > 0 { - n += 1 + l + sovJob(uint64(l)) - } - return n + return mi.MessageOf(x) } -func (m *JobDetailsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.JobIds) > 0 { - for _, s := range m.JobIds { - l = len(s) - n += 1 + l + sovJob(uint64(l)) - } - } - if m.ExpandJobSpec { - n += 2 - } - if m.ExpandJobRun { - n += 2 - } - return n +// Deprecated: Use JobStatusRequest.ProtoReflect.Descriptor instead. +func (*JobStatusRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_job_proto_rawDescGZIP(), []int{8} } -func (m *JobDetailsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.JobDetails) > 0 { - for k, v := range m.JobDetails { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovJob(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovJob(uint64(len(k))) + l - n += mapEntrySize + 1 + sovJob(uint64(mapEntrySize)) - } +func (x *JobStatusRequest) GetJobIds() []string { + if x != nil { + return x.JobIds } - return n + return nil } -func (m *JobRunDetailsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.JobRunDetails) > 0 { - for k, v := range m.JobRunDetails { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovJob(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovJob(uint64(len(k))) + l - n += mapEntrySize + 1 + sovJob(uint64(mapEntrySize)) - } - } - return n +type JobStatusUsingExternalJobUriRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` + Jobset string `protobuf:"bytes,2,opt,name=jobset,proto3" json:"jobset,omitempty"` + ExternalJobUri string `protobuf:"bytes,3,opt,name=external_job_uri,json=externalJobUri,proto3" json:"external_job_uri,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunDetailsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.RunIds) > 0 { - for _, s := range m.RunIds { - l = len(s) - n += 1 + l + sovJob(uint64(l)) - } - } - return n +func (x *JobStatusUsingExternalJobUriRequest) Reset() { + *x = JobStatusUsingExternalJobUriRequest{} + mi := &file_pkg_api_job_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobErrorsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.JobIds) > 0 { - for _, s := range m.JobIds { - l = len(s) - n += 1 + l + sovJob(uint64(l)) - } - } - return n +func (x *JobStatusUsingExternalJobUriRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobErrorsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.JobErrors) > 0 { - for k, v := range m.JobErrors { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovJob(uint64(len(k))) + 1 + len(v) + sovJob(uint64(len(v))) - n += mapEntrySize + 1 + sovJob(uint64(mapEntrySize)) - } - } - return n -} +func (*JobStatusUsingExternalJobUriRequest) ProtoMessage() {} -func (m *JobStatusRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.JobIds) > 0 { - for _, s := range m.JobIds { - l = len(s) - n += 1 + l + sovJob(uint64(l)) +func (x *JobStatusUsingExternalJobUriRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_job_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *JobStatusUsingExternalJobUriRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovJob(uint64(l)) - } - l = len(m.Jobset) - if l > 0 { - n += 1 + l + sovJob(uint64(l)) - } - l = len(m.ExternalJobUri) - if l > 0 { - n += 1 + l + sovJob(uint64(l)) - } - return n +// Deprecated: Use JobStatusUsingExternalJobUriRequest.ProtoReflect.Descriptor instead. +func (*JobStatusUsingExternalJobUriRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_job_proto_rawDescGZIP(), []int{9} } -func (m *JobStatusResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.JobStates) > 0 { - for k, v := range m.JobStates { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovJob(uint64(len(k))) + 1 + sovJob(uint64(v)) - n += mapEntrySize + 1 + sovJob(uint64(mapEntrySize)) - } +func (x *JobStatusUsingExternalJobUriRequest) GetQueue() string { + if x != nil { + return x.Queue } - return n + return "" } -func sovJob(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozJob(x uint64) (n int) { - return sovJob(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *JobRunDetails) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRunDetails: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRunDetails: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.State |= JobRunState(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cluster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Node = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LeasedTs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LeasedTs == nil { - m.LeasedTs = &types.Timestamp{} - } - if err := m.LeasedTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PendingTs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PendingTs == nil { - m.PendingTs = &types.Timestamp{} - } - if err := m.PendingTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedTs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartedTs == nil { - m.StartedTs = &types.Timestamp{} - } - if err := m.StartedTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FinishedTs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FinishedTs == nil { - m.FinishedTs = &types.Timestamp{} - } - if err := m.FinishedTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipJob(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthJob - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *JobStatusUsingExternalJobUriRequest) GetJobset() string { + if x != nil { + return x.Jobset } - return nil + return "" } -func (m *JobDetails) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobDetails: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobDetails: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Jobset", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Jobset = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.State |= JobState(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SubmittedTs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SubmittedTs == nil { - m.SubmittedTs = &types.Timestamp{} - } - if err := m.SubmittedTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelTs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CancelTs == nil { - m.CancelTs = &types.Timestamp{} - } - if err := m.CancelTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelReason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CancelReason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastTransitionTs == nil { - m.LastTransitionTs = &types.Timestamp{} - } - if err := m.LastTransitionTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LatestRunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LatestRunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSpec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.JobSpec == nil { - m.JobSpec = &Job{} - } - if err := m.JobSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRuns", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobRuns = append(m.JobRuns, &JobRunDetails{}) - if err := m.JobRuns[len(m.JobRuns)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelUser", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CancelUser = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipJob(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthJob - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *JobStatusUsingExternalJobUriRequest) GetExternalJobUri() string { + if x != nil { + return x.ExternalJobUri } - return nil + return "" } -func (m *JobDetailsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobDetailsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobDetailsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobIds = append(m.JobIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpandJobSpec", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ExpandJobSpec = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpandJobRun", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ExpandJobRun = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipJob(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthJob - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +type JobStatusResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + JobStates map[string]JobState `protobuf:"bytes,1,rep,name=job_states,json=jobStates,proto3" json:"job_states,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=api.JobState"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobDetailsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobDetailsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobDetailsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobDetails", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.JobDetails == nil { - m.JobDetails = make(map[string]*JobDetails) - } - var mapkey string - var mapvalue *JobDetails - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthJob - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthJob - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthJob - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthJob - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &JobDetails{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipJob(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthJob - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.JobDetails[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipJob(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthJob - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *JobStatusResponse) Reset() { + *x = JobStatusResponse{} + mi := &file_pkg_api_job_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRunDetailsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRunDetailsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRunDetailsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRunDetails", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.JobRunDetails == nil { - m.JobRunDetails = make(map[string]*JobRunDetails) - } - var mapkey string - var mapvalue *JobRunDetails - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthJob - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthJob - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthJob - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthJob - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &JobRunDetails{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipJob(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthJob - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.JobRunDetails[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipJob(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthJob - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *JobStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRunDetailsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRunDetailsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRunDetailsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunIds = append(m.RunIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipJob(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthJob - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobErrorsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobErrorsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobErrorsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobIds = append(m.JobIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipJob(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthJob - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +func (*JobStatusResponse) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobErrorsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobErrorsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobErrorsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobErrors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.JobErrors == nil { - m.JobErrors = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthJob - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthJob - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthJob - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthJob - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipJob(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthJob - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.JobErrors[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipJob(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthJob - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy +func (x *JobStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_job_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return mi.MessageOf(x) } -func (m *JobStatusRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobStatusRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobIds = append(m.JobIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipJob(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthJob - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use JobStatusResponse.ProtoReflect.Descriptor instead. +func (*JobStatusResponse) Descriptor() ([]byte, []int) { + return file_pkg_api_job_proto_rawDescGZIP(), []int{10} } -func (m *JobStatusUsingExternalJobUriRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobStatusUsingExternalJobUriRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobStatusUsingExternalJobUriRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Jobset", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Jobset = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalJobUri", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExternalJobUri = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipJob(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthJob - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *JobStatusResponse) GetJobStates() map[string]JobState { + if x != nil { + return x.JobStates } return nil } -func (m *JobStatusResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobStatusResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobStates", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthJob - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthJob - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.JobStates == nil { - m.JobStates = make(map[string]JobState) - } - var mapkey string - var mapvalue JobState - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthJob - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthJob - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowJob - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= JobState(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := skipJob(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthJob - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.JobStates[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipJob(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthJob - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipJob(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowJob - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowJob - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowJob - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthJob - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupJob - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthJob - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} +var File_pkg_api_job_proto protoreflect.FileDescriptor + +var file_pkg_api_job_proto_rawDesc = string([]byte{ + 0x0a, 0x11, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x6f, 0x62, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x14, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xff, 0x02, + 0x0a, 0x0d, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, + 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x26, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x6f, 0x64, 0x65, 0x12, 0x37, 0x0a, 0x09, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x64, 0x5f, 0x74, 0x73, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x08, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x64, 0x54, 0x73, 0x12, 0x39, 0x0a, 0x0a, + 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x70, 0x65, + 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x5f, 0x74, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, + 0x54, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x74, + 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x54, 0x73, 0x22, + 0x94, 0x04, 0x0a, 0x0a, 0x4a, 0x6f, 0x62, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x15, + 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6a, + 0x6f, 0x62, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6a, 0x6f, 0x62, + 0x73, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x12, 0x23, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x0d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, + 0x74, 0x65, 0x64, 0x5f, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, + 0x74, 0x65, 0x64, 0x54, 0x73, 0x12, 0x37, 0x0a, 0x09, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, + 0x74, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x73, 0x12, 0x23, + 0x0a, 0x0d, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x74, 0x72, 0x61, 0x6e, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x10, 0x6c, 0x61, 0x73, + 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x73, 0x12, 0x22, 0x0a, + 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x75, 0x6e, 0x49, + 0x64, 0x12, 0x23, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x07, 0x6a, + 0x6f, 0x62, 0x53, 0x70, 0x65, 0x63, 0x12, 0x2d, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x72, 0x75, + 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, + 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x6a, 0x6f, + 0x62, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, + 0x75, 0x73, 0x65, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x22, 0x7a, 0x0a, 0x11, 0x4a, 0x6f, 0x62, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6a, + 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6a, 0x6f, + 0x62, 0x49, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x5f, 0x6a, + 0x6f, 0x62, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, + 0x78, 0x70, 0x61, 0x6e, 0x64, 0x4a, 0x6f, 0x62, 0x53, 0x70, 0x65, 0x63, 0x12, 0x24, 0x0a, 0x0e, + 0x65, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x4a, 0x6f, 0x62, 0x52, + 0x75, 0x6e, 0x22, 0xae, 0x01, 0x0a, 0x12, 0x4a, 0x6f, 0x62, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x6a, 0x6f, 0x62, + 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4a, 0x6f, 0x62, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x6a, 0x6f, 0x62, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0x1a, 0x4e, 0x0a, 0x0f, 0x4a, 0x6f, 0x62, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, + 0x62, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0xc4, 0x01, 0x0a, 0x15, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, + 0x0f, 0x6a, 0x6f, 0x62, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, + 0x52, 0x75, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x73, 0x1a, 0x54, 0x0a, 0x12, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x28, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x2f, 0x0a, 0x14, 0x4a, 0x6f, + 0x62, 0x52, 0x75, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x06, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x2b, 0x0a, 0x10, 0x4a, + 0x6f, 0x62, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x17, 0x0a, 0x07, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x06, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x73, 0x22, 0x97, 0x01, 0x0a, 0x11, 0x4a, 0x6f, 0x62, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, + 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4a, 0x6f, 0x62, 0x45, 0x72, + 0x72, 0x6f, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x45, 0x72, + 0x72, 0x6f, 0x72, 0x73, 0x1a, 0x3c, 0x0a, 0x0e, 0x4a, 0x6f, 0x62, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0x2b, 0x0a, 0x10, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x73, 0x22, + 0x7d, 0x0a, 0x23, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x73, 0x69, 0x6e, + 0x67, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x4a, 0x6f, 0x62, 0x55, 0x72, 0x69, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x6a, 0x6f, 0x62, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6a, 0x6f, + 0x62, 0x73, 0x65, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x4a, 0x6f, 0x62, 0x55, 0x72, 0x69, 0x22, 0xa6, + 0x01, 0x0a, 0x11, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, + 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x09, 0x6a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x1a, 0x4b, 0x0a, 0x0e, 0x4a, 0x6f, + 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x23, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x85, 0x02, 0x0a, 0x0b, 0x4a, 0x6f, 0x62, 0x52, + 0x75, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x55, 0x4e, 0x5f, 0x53, + 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x14, + 0x0a, 0x10, 0x52, 0x55, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x45, 0x41, 0x53, + 0x45, 0x44, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x55, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, + 0x45, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x52, + 0x55, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, + 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x55, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, + 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x52, + 0x55, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, + 0x05, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x55, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x50, + 0x52, 0x45, 0x45, 0x4d, 0x50, 0x54, 0x45, 0x44, 0x10, 0x06, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x55, + 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, + 0x44, 0x10, 0x07, 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x55, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, + 0x5f, 0x4c, 0x45, 0x41, 0x53, 0x45, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45, 0x44, 0x10, 0x08, + 0x12, 0x1d, 0x0a, 0x19, 0x52, 0x55, 0x4e, 0x53, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, + 0x45, 0x41, 0x53, 0x45, 0x5f, 0x52, 0x45, 0x54, 0x55, 0x52, 0x4e, 0x45, 0x44, 0x10, 0x09, 0x32, + 0x93, 0x04, 0x0a, 0x04, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x58, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x4a, + 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, + 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x3a, + 0x01, 0x2a, 0x22, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2f, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x91, 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x55, 0x73, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x4a, 0x6f, 0x62, 0x55, 0x72, 0x69, 0x12, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x73, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x4a, 0x6f, 0x62, 0x55, 0x72, 0x69, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, + 0x3a, 0x01, 0x2a, 0x22, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2f, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x55, 0x73, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x4a, 0x6f, 0x62, 0x55, 0x72, 0x69, 0x12, 0x5c, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, + 0x62, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, + 0x3a, 0x01, 0x2a, 0x22, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2f, 0x64, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x73, 0x12, 0x58, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x45, 0x72, + 0x72, 0x6f, 0x72, 0x73, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x45, 0x72, + 0x72, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x3a, 0x01, 0x2a, 0x22, 0x0e, + 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x65, + 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x73, 0x12, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x14, 0x3a, 0x01, 0x2a, 0x22, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6e, 0x2f, 0x64, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x42, 0x29, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) var ( - ErrInvalidLengthJob = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowJob = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupJob = fmt.Errorf("proto: unexpected end of group") + file_pkg_api_job_proto_rawDescOnce sync.Once + file_pkg_api_job_proto_rawDescData []byte ) + +func file_pkg_api_job_proto_rawDescGZIP() []byte { + file_pkg_api_job_proto_rawDescOnce.Do(func() { + file_pkg_api_job_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_api_job_proto_rawDesc), len(file_pkg_api_job_proto_rawDesc))) + }) + return file_pkg_api_job_proto_rawDescData +} + +var file_pkg_api_job_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_pkg_api_job_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_pkg_api_job_proto_goTypes = []any{ + (JobRunState)(0), // 0: api.JobRunState + (*JobRunDetails)(nil), // 1: api.JobRunDetails + (*JobDetails)(nil), // 2: api.JobDetails + (*JobDetailsRequest)(nil), // 3: api.JobDetailsRequest + (*JobDetailsResponse)(nil), // 4: api.JobDetailsResponse + (*JobRunDetailsResponse)(nil), // 5: api.JobRunDetailsResponse + (*JobRunDetailsRequest)(nil), // 6: api.JobRunDetailsRequest + (*JobErrorsRequest)(nil), // 7: api.JobErrorsRequest + (*JobErrorsResponse)(nil), // 8: api.JobErrorsResponse + (*JobStatusRequest)(nil), // 9: api.JobStatusRequest + (*JobStatusUsingExternalJobUriRequest)(nil), // 10: api.JobStatusUsingExternalJobUriRequest + (*JobStatusResponse)(nil), // 11: api.JobStatusResponse + nil, // 12: api.JobDetailsResponse.JobDetailsEntry + nil, // 13: api.JobRunDetailsResponse.JobRunDetailsEntry + nil, // 14: api.JobErrorsResponse.JobErrorsEntry + nil, // 15: api.JobStatusResponse.JobStatesEntry + (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp + (JobState)(0), // 17: api.JobState + (*Job)(nil), // 18: api.Job +} +var file_pkg_api_job_proto_depIdxs = []int32{ + 0, // 0: api.JobRunDetails.state:type_name -> api.JobRunState + 16, // 1: api.JobRunDetails.leased_ts:type_name -> google.protobuf.Timestamp + 16, // 2: api.JobRunDetails.pending_ts:type_name -> google.protobuf.Timestamp + 16, // 3: api.JobRunDetails.started_ts:type_name -> google.protobuf.Timestamp + 16, // 4: api.JobRunDetails.finished_ts:type_name -> google.protobuf.Timestamp + 17, // 5: api.JobDetails.state:type_name -> api.JobState + 16, // 6: api.JobDetails.submitted_ts:type_name -> google.protobuf.Timestamp + 16, // 7: api.JobDetails.cancel_ts:type_name -> google.protobuf.Timestamp + 16, // 8: api.JobDetails.last_transition_ts:type_name -> google.protobuf.Timestamp + 18, // 9: api.JobDetails.job_spec:type_name -> api.Job + 1, // 10: api.JobDetails.job_runs:type_name -> api.JobRunDetails + 12, // 11: api.JobDetailsResponse.job_details:type_name -> api.JobDetailsResponse.JobDetailsEntry + 13, // 12: api.JobRunDetailsResponse.job_run_details:type_name -> api.JobRunDetailsResponse.JobRunDetailsEntry + 14, // 13: api.JobErrorsResponse.job_errors:type_name -> api.JobErrorsResponse.JobErrorsEntry + 15, // 14: api.JobStatusResponse.job_states:type_name -> api.JobStatusResponse.JobStatesEntry + 2, // 15: api.JobDetailsResponse.JobDetailsEntry.value:type_name -> api.JobDetails + 1, // 16: api.JobRunDetailsResponse.JobRunDetailsEntry.value:type_name -> api.JobRunDetails + 17, // 17: api.JobStatusResponse.JobStatesEntry.value:type_name -> api.JobState + 9, // 18: api.Jobs.GetJobStatus:input_type -> api.JobStatusRequest + 10, // 19: api.Jobs.GetJobStatusUsingExternalJobUri:input_type -> api.JobStatusUsingExternalJobUriRequest + 3, // 20: api.Jobs.GetJobDetails:input_type -> api.JobDetailsRequest + 7, // 21: api.Jobs.GetJobErrors:input_type -> api.JobErrorsRequest + 6, // 22: api.Jobs.GetJobRunDetails:input_type -> api.JobRunDetailsRequest + 11, // 23: api.Jobs.GetJobStatus:output_type -> api.JobStatusResponse + 11, // 24: api.Jobs.GetJobStatusUsingExternalJobUri:output_type -> api.JobStatusResponse + 4, // 25: api.Jobs.GetJobDetails:output_type -> api.JobDetailsResponse + 8, // 26: api.Jobs.GetJobErrors:output_type -> api.JobErrorsResponse + 5, // 27: api.Jobs.GetJobRunDetails:output_type -> api.JobRunDetailsResponse + 23, // [23:28] is the sub-list for method output_type + 18, // [18:23] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name +} + +func init() { file_pkg_api_job_proto_init() } +func file_pkg_api_job_proto_init() { + if File_pkg_api_job_proto != nil { + return + } + file_pkg_api_submit_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_api_job_proto_rawDesc), len(file_pkg_api_job_proto_rawDesc)), + NumEnums: 1, + NumMessages: 15, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_api_job_proto_goTypes, + DependencyIndexes: file_pkg_api_job_proto_depIdxs, + EnumInfos: file_pkg_api_job_proto_enumTypes, + MessageInfos: file_pkg_api_job_proto_msgTypes, + }.Build() + File_pkg_api_job_proto = out.File + file_pkg_api_job_proto_goTypes = nil + file_pkg_api_job_proto_depIdxs = nil +} diff --git a/pkg/api/job_grpc.pb.go b/pkg/api/job_grpc.pb.go new file mode 100644 index 00000000000..3ce1957f51b --- /dev/null +++ b/pkg/api/job_grpc.pb.go @@ -0,0 +1,274 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 +// source: pkg/api/job.proto + +package api + +import ( + context "context" + + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Jobs_GetJobStatus_FullMethodName = "/api.Jobs/GetJobStatus" + Jobs_GetJobStatusUsingExternalJobUri_FullMethodName = "/api.Jobs/GetJobStatusUsingExternalJobUri" + Jobs_GetJobDetails_FullMethodName = "/api.Jobs/GetJobDetails" + Jobs_GetJobErrors_FullMethodName = "/api.Jobs/GetJobErrors" + Jobs_GetJobRunDetails_FullMethodName = "/api.Jobs/GetJobRunDetails" +) + +// JobsClient is the client API for Jobs service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type JobsClient interface { + GetJobStatus(ctx context.Context, in *JobStatusRequest, opts ...grpc.CallOption) (*JobStatusResponse, error) + GetJobStatusUsingExternalJobUri(ctx context.Context, in *JobStatusUsingExternalJobUriRequest, opts ...grpc.CallOption) (*JobStatusResponse, error) + GetJobDetails(ctx context.Context, in *JobDetailsRequest, opts ...grpc.CallOption) (*JobDetailsResponse, error) + GetJobErrors(ctx context.Context, in *JobErrorsRequest, opts ...grpc.CallOption) (*JobErrorsResponse, error) + GetJobRunDetails(ctx context.Context, in *JobRunDetailsRequest, opts ...grpc.CallOption) (*JobRunDetailsResponse, error) +} + +type jobsClient struct { + cc grpc.ClientConnInterface +} + +func NewJobsClient(cc grpc.ClientConnInterface) JobsClient { + return &jobsClient{cc} +} + +func (c *jobsClient) GetJobStatus(ctx context.Context, in *JobStatusRequest, opts ...grpc.CallOption) (*JobStatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(JobStatusResponse) + err := c.cc.Invoke(ctx, Jobs_GetJobStatus_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *jobsClient) GetJobStatusUsingExternalJobUri(ctx context.Context, in *JobStatusUsingExternalJobUriRequest, opts ...grpc.CallOption) (*JobStatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(JobStatusResponse) + err := c.cc.Invoke(ctx, Jobs_GetJobStatusUsingExternalJobUri_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *jobsClient) GetJobDetails(ctx context.Context, in *JobDetailsRequest, opts ...grpc.CallOption) (*JobDetailsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(JobDetailsResponse) + err := c.cc.Invoke(ctx, Jobs_GetJobDetails_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *jobsClient) GetJobErrors(ctx context.Context, in *JobErrorsRequest, opts ...grpc.CallOption) (*JobErrorsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(JobErrorsResponse) + err := c.cc.Invoke(ctx, Jobs_GetJobErrors_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *jobsClient) GetJobRunDetails(ctx context.Context, in *JobRunDetailsRequest, opts ...grpc.CallOption) (*JobRunDetailsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(JobRunDetailsResponse) + err := c.cc.Invoke(ctx, Jobs_GetJobRunDetails_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// JobsServer is the server API for Jobs service. +// All implementations must embed UnimplementedJobsServer +// for forward compatibility. +type JobsServer interface { + GetJobStatus(context.Context, *JobStatusRequest) (*JobStatusResponse, error) + GetJobStatusUsingExternalJobUri(context.Context, *JobStatusUsingExternalJobUriRequest) (*JobStatusResponse, error) + GetJobDetails(context.Context, *JobDetailsRequest) (*JobDetailsResponse, error) + GetJobErrors(context.Context, *JobErrorsRequest) (*JobErrorsResponse, error) + GetJobRunDetails(context.Context, *JobRunDetailsRequest) (*JobRunDetailsResponse, error) + mustEmbedUnimplementedJobsServer() +} + +// UnimplementedJobsServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedJobsServer struct{} + +func (UnimplementedJobsServer) GetJobStatus(context.Context, *JobStatusRequest) (*JobStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetJobStatus not implemented") +} +func (UnimplementedJobsServer) GetJobStatusUsingExternalJobUri(context.Context, *JobStatusUsingExternalJobUriRequest) (*JobStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetJobStatusUsingExternalJobUri not implemented") +} +func (UnimplementedJobsServer) GetJobDetails(context.Context, *JobDetailsRequest) (*JobDetailsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetJobDetails not implemented") +} +func (UnimplementedJobsServer) GetJobErrors(context.Context, *JobErrorsRequest) (*JobErrorsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetJobErrors not implemented") +} +func (UnimplementedJobsServer) GetJobRunDetails(context.Context, *JobRunDetailsRequest) (*JobRunDetailsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetJobRunDetails not implemented") +} +func (UnimplementedJobsServer) mustEmbedUnimplementedJobsServer() {} +func (UnimplementedJobsServer) testEmbeddedByValue() {} + +// UnsafeJobsServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to JobsServer will +// result in compilation errors. +type UnsafeJobsServer interface { + mustEmbedUnimplementedJobsServer() +} + +func RegisterJobsServer(s grpc.ServiceRegistrar, srv JobsServer) { + // If the following call pancis, it indicates UnimplementedJobsServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Jobs_ServiceDesc, srv) +} + +func _Jobs_GetJobStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(JobStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(JobsServer).GetJobStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Jobs_GetJobStatus_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(JobsServer).GetJobStatus(ctx, req.(*JobStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Jobs_GetJobStatusUsingExternalJobUri_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(JobStatusUsingExternalJobUriRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(JobsServer).GetJobStatusUsingExternalJobUri(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Jobs_GetJobStatusUsingExternalJobUri_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(JobsServer).GetJobStatusUsingExternalJobUri(ctx, req.(*JobStatusUsingExternalJobUriRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Jobs_GetJobDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(JobDetailsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(JobsServer).GetJobDetails(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Jobs_GetJobDetails_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(JobsServer).GetJobDetails(ctx, req.(*JobDetailsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Jobs_GetJobErrors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(JobErrorsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(JobsServer).GetJobErrors(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Jobs_GetJobErrors_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(JobsServer).GetJobErrors(ctx, req.(*JobErrorsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Jobs_GetJobRunDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(JobRunDetailsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(JobsServer).GetJobRunDetails(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Jobs_GetJobRunDetails_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(JobsServer).GetJobRunDetails(ctx, req.(*JobRunDetailsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Jobs_ServiceDesc is the grpc.ServiceDesc for Jobs service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Jobs_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "api.Jobs", + HandlerType: (*JobsServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetJobStatus", + Handler: _Jobs_GetJobStatus_Handler, + }, + { + MethodName: "GetJobStatusUsingExternalJobUri", + Handler: _Jobs_GetJobStatusUsingExternalJobUri_Handler, + }, + { + MethodName: "GetJobDetails", + Handler: _Jobs_GetJobDetails_Handler, + }, + { + MethodName: "GetJobErrors", + Handler: _Jobs_GetJobErrors_Handler, + }, + { + MethodName: "GetJobRunDetails", + Handler: _Jobs_GetJobRunDetails_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "pkg/api/job.proto", +} diff --git a/pkg/api/schedulerobjects/scheduler_reporting.pb.go b/pkg/api/schedulerobjects/scheduler_reporting.pb.go index 7b4c11a6bb1..2642ecefbae 100644 --- a/pkg/api/schedulerobjects/scheduler_reporting.pb.go +++ b/pkg/api/schedulerobjects/scheduler_reporting.pb.go @@ -1,1916 +1,580 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: pkg/api/schedulerobjects/scheduler_reporting.proto package schedulerobjects import ( - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" - proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // Deprecated. This will be removed in a future release. Please use GetQueueReport instead. type MostRecentForQueue struct { - QueueName string `protobuf:"bytes,1,opt,name=queue_name,json=queueName,proto3" json:"queueName,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QueueName string `protobuf:"bytes,1,opt,name=queue_name,json=queueName,proto3" json:"queue_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *MostRecentForQueue) Reset() { *m = MostRecentForQueue{} } -func (m *MostRecentForQueue) String() string { return proto.CompactTextString(m) } -func (*MostRecentForQueue) ProtoMessage() {} -func (*MostRecentForQueue) Descriptor() ([]byte, []int) { - return fileDescriptor_c6edb75717835892, []int{0} +func (x *MostRecentForQueue) Reset() { + *x = MostRecentForQueue{} + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *MostRecentForQueue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MostRecentForQueue) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MostRecentForQueue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MostRecentForQueue.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MostRecentForQueue) ProtoMessage() {} + +func (x *MostRecentForQueue) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MostRecentForQueue) XXX_Merge(src proto.Message) { - xxx_messageInfo_MostRecentForQueue.Merge(m, src) -} -func (m *MostRecentForQueue) XXX_Size() int { - return m.Size() -} -func (m *MostRecentForQueue) XXX_DiscardUnknown() { - xxx_messageInfo_MostRecentForQueue.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MostRecentForQueue proto.InternalMessageInfo +// Deprecated: Use MostRecentForQueue.ProtoReflect.Descriptor instead. +func (*MostRecentForQueue) Descriptor() ([]byte, []int) { + return file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDescGZIP(), []int{0} +} -func (m *MostRecentForQueue) GetQueueName() string { - if m != nil { - return m.QueueName +func (x *MostRecentForQueue) GetQueueName() string { + if x != nil { + return x.QueueName } return "" } // Deprecated. This will be removed in a future release. Please use GetJobReport instead. type MostRecentForJob struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *MostRecentForJob) Reset() { *m = MostRecentForJob{} } -func (m *MostRecentForJob) String() string { return proto.CompactTextString(m) } -func (*MostRecentForJob) ProtoMessage() {} -func (*MostRecentForJob) Descriptor() ([]byte, []int) { - return fileDescriptor_c6edb75717835892, []int{1} +func (x *MostRecentForJob) Reset() { + *x = MostRecentForJob{} + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *MostRecentForJob) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MostRecentForJob) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MostRecentForJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MostRecentForJob.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MostRecentForJob) ProtoMessage() {} + +func (x *MostRecentForJob) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MostRecentForJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_MostRecentForJob.Merge(m, src) -} -func (m *MostRecentForJob) XXX_Size() int { - return m.Size() -} -func (m *MostRecentForJob) XXX_DiscardUnknown() { - xxx_messageInfo_MostRecentForJob.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MostRecentForJob proto.InternalMessageInfo +// Deprecated: Use MostRecentForJob.ProtoReflect.Descriptor instead. +func (*MostRecentForJob) Descriptor() ([]byte, []int) { + return file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDescGZIP(), []int{1} +} -func (m *MostRecentForJob) GetJobId() string { - if m != nil { - return m.JobId +func (x *MostRecentForJob) GetJobId() string { + if x != nil { + return x.JobId } return "" } type SchedulingReportRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Filter: // // *SchedulingReportRequest_MostRecentForQueue // *SchedulingReportRequest_MostRecentForJob - Filter isSchedulingReportRequest_Filter `protobuf_oneof:"filter"` - Verbosity int32 `protobuf:"varint,3,opt,name=verbosity,proto3" json:"verbosity,omitempty"` + Filter isSchedulingReportRequest_Filter `protobuf_oneof:"filter"` + Verbosity int32 `protobuf:"varint,3,opt,name=verbosity,proto3" json:"verbosity,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *SchedulingReportRequest) Reset() { *m = SchedulingReportRequest{} } -func (m *SchedulingReportRequest) String() string { return proto.CompactTextString(m) } -func (*SchedulingReportRequest) ProtoMessage() {} -func (*SchedulingReportRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6edb75717835892, []int{2} -} -func (m *SchedulingReportRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SchedulingReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SchedulingReportRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SchedulingReportRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SchedulingReportRequest.Merge(m, src) -} -func (m *SchedulingReportRequest) XXX_Size() int { - return m.Size() -} -func (m *SchedulingReportRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SchedulingReportRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SchedulingReportRequest proto.InternalMessageInfo - -type isSchedulingReportRequest_Filter interface { - isSchedulingReportRequest_Filter() - MarshalTo([]byte) (int, error) - Size() int +func (x *SchedulingReportRequest) Reset() { + *x = SchedulingReportRequest{} + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -type SchedulingReportRequest_MostRecentForQueue struct { - MostRecentForQueue *MostRecentForQueue `protobuf:"bytes,1,opt,name=most_recent_for_queue,json=mostRecentForQueue,proto3,oneof" json:"mostRecentForQueue,omitempty"` -} -type SchedulingReportRequest_MostRecentForJob struct { - MostRecentForJob *MostRecentForJob `protobuf:"bytes,2,opt,name=most_recent_for_job,json=mostRecentForJob,proto3,oneof" json:"mostRecentForJob,omitempty"` +func (x *SchedulingReportRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (*SchedulingReportRequest_MostRecentForQueue) isSchedulingReportRequest_Filter() {} -func (*SchedulingReportRequest_MostRecentForJob) isSchedulingReportRequest_Filter() {} +func (*SchedulingReportRequest) ProtoMessage() {} -func (m *SchedulingReportRequest) GetFilter() isSchedulingReportRequest_Filter { - if m != nil { - return m.Filter +func (x *SchedulingReportRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *SchedulingReportRequest) GetMostRecentForQueue() *MostRecentForQueue { - if x, ok := m.GetFilter().(*SchedulingReportRequest_MostRecentForQueue); ok { - return x.MostRecentForQueue - } - return nil +// Deprecated: Use SchedulingReportRequest.ProtoReflect.Descriptor instead. +func (*SchedulingReportRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDescGZIP(), []int{2} } -func (m *SchedulingReportRequest) GetMostRecentForJob() *MostRecentForJob { - if x, ok := m.GetFilter().(*SchedulingReportRequest_MostRecentForJob); ok { - return x.MostRecentForJob +func (x *SchedulingReportRequest) GetFilter() isSchedulingReportRequest_Filter { + if x != nil { + return x.Filter } return nil } -func (m *SchedulingReportRequest) GetVerbosity() int32 { - if m != nil { - return m.Verbosity - } - return 0 -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*SchedulingReportRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*SchedulingReportRequest_MostRecentForQueue)(nil), - (*SchedulingReportRequest_MostRecentForJob)(nil), - } -} - -type SchedulingReport struct { - Report string `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` -} - -func (m *SchedulingReport) Reset() { *m = SchedulingReport{} } -func (m *SchedulingReport) String() string { return proto.CompactTextString(m) } -func (*SchedulingReport) ProtoMessage() {} -func (*SchedulingReport) Descriptor() ([]byte, []int) { - return fileDescriptor_c6edb75717835892, []int{3} -} -func (m *SchedulingReport) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SchedulingReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SchedulingReport.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *SchedulingReportRequest) GetMostRecentForQueue() *MostRecentForQueue { + if x != nil { + if x, ok := x.Filter.(*SchedulingReportRequest_MostRecentForQueue); ok { + return x.MostRecentForQueue } - return b[:n], nil } -} -func (m *SchedulingReport) XXX_Merge(src proto.Message) { - xxx_messageInfo_SchedulingReport.Merge(m, src) -} -func (m *SchedulingReport) XXX_Size() int { - return m.Size() -} -func (m *SchedulingReport) XXX_DiscardUnknown() { - xxx_messageInfo_SchedulingReport.DiscardUnknown(m) -} - -var xxx_messageInfo_SchedulingReport proto.InternalMessageInfo - -func (m *SchedulingReport) GetReport() string { - if m != nil { - return m.Report - } - return "" -} - -type QueueReportRequest struct { - QueueName string `protobuf:"bytes,1,opt,name=queue_name,json=queueName,proto3" json:"queueName,omitempty"` - Verbosity int32 `protobuf:"varint,2,opt,name=verbosity,proto3" json:"verbosity,omitempty"` + return nil } -func (m *QueueReportRequest) Reset() { *m = QueueReportRequest{} } -func (m *QueueReportRequest) String() string { return proto.CompactTextString(m) } -func (*QueueReportRequest) ProtoMessage() {} -func (*QueueReportRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6edb75717835892, []int{4} -} -func (m *QueueReportRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueueReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueueReportRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *SchedulingReportRequest) GetMostRecentForJob() *MostRecentForJob { + if x != nil { + if x, ok := x.Filter.(*SchedulingReportRequest_MostRecentForJob); ok { + return x.MostRecentForJob } - return b[:n], nil } -} -func (m *QueueReportRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueueReportRequest.Merge(m, src) -} -func (m *QueueReportRequest) XXX_Size() int { - return m.Size() -} -func (m *QueueReportRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueueReportRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueueReportRequest proto.InternalMessageInfo - -func (m *QueueReportRequest) GetQueueName() string { - if m != nil { - return m.QueueName - } - return "" + return nil } -func (m *QueueReportRequest) GetVerbosity() int32 { - if m != nil { - return m.Verbosity +func (x *SchedulingReportRequest) GetVerbosity() int32 { + if x != nil { + return x.Verbosity } return 0 } -type QueueReport struct { - Report string `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` -} - -func (m *QueueReport) Reset() { *m = QueueReport{} } -func (m *QueueReport) String() string { return proto.CompactTextString(m) } -func (*QueueReport) ProtoMessage() {} -func (*QueueReport) Descriptor() ([]byte, []int) { - return fileDescriptor_c6edb75717835892, []int{5} -} -func (m *QueueReport) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueueReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueueReport.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueueReport) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueueReport.Merge(m, src) -} -func (m *QueueReport) XXX_Size() int { - return m.Size() -} -func (m *QueueReport) XXX_DiscardUnknown() { - xxx_messageInfo_QueueReport.DiscardUnknown(m) -} - -var xxx_messageInfo_QueueReport proto.InternalMessageInfo - -func (m *QueueReport) GetReport() string { - if m != nil { - return m.Report - } - return "" -} - -type JobReportRequest struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` -} - -func (m *JobReportRequest) Reset() { *m = JobReportRequest{} } -func (m *JobReportRequest) String() string { return proto.CompactTextString(m) } -func (*JobReportRequest) ProtoMessage() {} -func (*JobReportRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6edb75717835892, []int{6} -} -func (m *JobReportRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobReportRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobReportRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobReportRequest.Merge(m, src) -} -func (m *JobReportRequest) XXX_Size() int { - return m.Size() -} -func (m *JobReportRequest) XXX_DiscardUnknown() { - xxx_messageInfo_JobReportRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_JobReportRequest proto.InternalMessageInfo - -func (m *JobReportRequest) GetJobId() string { - if m != nil { - return m.JobId - } - return "" -} - -type JobReport struct { - Report string `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` -} - -func (m *JobReport) Reset() { *m = JobReport{} } -func (m *JobReport) String() string { return proto.CompactTextString(m) } -func (*JobReport) ProtoMessage() {} -func (*JobReport) Descriptor() ([]byte, []int) { - return fileDescriptor_c6edb75717835892, []int{7} -} -func (m *JobReport) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobReport.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobReport) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobReport.Merge(m, src) -} -func (m *JobReport) XXX_Size() int { - return m.Size() -} -func (m *JobReport) XXX_DiscardUnknown() { - xxx_messageInfo_JobReport.DiscardUnknown(m) -} - -var xxx_messageInfo_JobReport proto.InternalMessageInfo - -func (m *JobReport) GetReport() string { - if m != nil { - return m.Report - } - return "" -} - -func init() { - proto.RegisterType((*MostRecentForQueue)(nil), "schedulerobjects.MostRecentForQueue") - proto.RegisterType((*MostRecentForJob)(nil), "schedulerobjects.MostRecentForJob") - proto.RegisterType((*SchedulingReportRequest)(nil), "schedulerobjects.SchedulingReportRequest") - proto.RegisterType((*SchedulingReport)(nil), "schedulerobjects.SchedulingReport") - proto.RegisterType((*QueueReportRequest)(nil), "schedulerobjects.QueueReportRequest") - proto.RegisterType((*QueueReport)(nil), "schedulerobjects.QueueReport") - proto.RegisterType((*JobReportRequest)(nil), "schedulerobjects.JobReportRequest") - proto.RegisterType((*JobReport)(nil), "schedulerobjects.JobReport") -} - -func init() { - proto.RegisterFile("pkg/api/schedulerobjects/scheduler_reporting.proto", fileDescriptor_c6edb75717835892) -} - -var fileDescriptor_c6edb75717835892 = []byte{ - // 589 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcf, 0x6b, 0x13, 0x41, - 0x14, 0xce, 0xa6, 0x34, 0x98, 0xa9, 0xe8, 0x32, 0xb1, 0x24, 0xc4, 0x76, 0x13, 0x47, 0xc1, 0x46, - 0x6a, 0x16, 0x23, 0x8a, 0x22, 0x14, 0xc9, 0xc1, 0x68, 0x50, 0xc1, 0xed, 0xcd, 0xcb, 0xb2, 0x93, - 0x4c, 0xb7, 0x1b, 0xb3, 0xfb, 0xb6, 0xb3, 0x93, 0x42, 0x0d, 0x5e, 0x2c, 0x78, 0x16, 0xfc, 0x03, - 0xfc, 0x77, 0x3c, 0x78, 0x28, 0x78, 0xf1, 0x14, 0x24, 0xf1, 0x94, 0xbf, 0x42, 0x32, 0x9b, 0x9f, - 0xbb, 0xfd, 0x61, 0x7a, 0x4b, 0xbe, 0x79, 0xfb, 0xbe, 0xef, 0x9b, 0xef, 0xcd, 0x43, 0x15, 0xff, - 0x83, 0xad, 0x5b, 0xbe, 0xa3, 0x07, 0x8d, 0x7d, 0xd6, 0xec, 0xb4, 0x19, 0x07, 0xda, 0x62, 0x0d, - 0x11, 0xcc, 0x00, 0x93, 0x33, 0x1f, 0xb8, 0x70, 0x3c, 0xbb, 0xec, 0x73, 0x10, 0x80, 0xd5, 0x68, - 0x6d, 0x7e, 0xc3, 0x06, 0xb0, 0xdb, 0x4c, 0x36, 0xb2, 0x3c, 0x0f, 0x84, 0x25, 0x1c, 0xf0, 0x82, - 0xb0, 0x9e, 0xbc, 0x46, 0xf8, 0x0d, 0x04, 0xc2, 0x60, 0x0d, 0xe6, 0x89, 0x17, 0xc0, 0xdf, 0x75, - 0x58, 0x87, 0xe1, 0xc7, 0x08, 0x1d, 0x8c, 0x7e, 0x98, 0x9e, 0xe5, 0xb2, 0x9c, 0x52, 0x54, 0xb6, - 0xd2, 0xd5, 0xec, 0xb0, 0x57, 0xc8, 0x48, 0xf4, 0xad, 0xe5, 0xb2, 0x6d, 0x70, 0x1d, 0xc1, 0x5c, - 0x5f, 0x1c, 0x19, 0xe9, 0x29, 0x48, 0x76, 0x90, 0xba, 0xd0, 0xad, 0x0e, 0x14, 0xdf, 0x43, 0xa9, - 0x16, 0x50, 0xd3, 0x69, 0x8e, 0xfb, 0x64, 0x86, 0xbd, 0xc2, 0xf5, 0x16, 0xd0, 0x57, 0xcd, 0xb9, - 0x1e, 0xab, 0x12, 0x20, 0x3f, 0x93, 0x28, 0xbb, 0x1b, 0x1a, 0x70, 0x3c, 0xdb, 0x90, 0xde, 0x0c, - 0x76, 0xd0, 0x61, 0x81, 0xc0, 0x5d, 0xb4, 0xee, 0x42, 0x20, 0x4c, 0x2e, 0x9b, 0x9b, 0x7b, 0xc0, - 0x4d, 0x49, 0x2c, 0xdb, 0xae, 0x55, 0xee, 0x94, 0xa3, 0xce, 0xcb, 0x71, 0x63, 0xd5, 0xe2, 0xb0, - 0x57, 0xd8, 0x70, 0x63, 0xf8, 0x4c, 0xc9, 0xcb, 0x84, 0x81, 0xe3, 0xe7, 0x38, 0x40, 0x99, 0x28, - 0x79, 0x0b, 0x68, 0x2e, 0x29, 0xa9, 0xc9, 0x05, 0xd4, 0x75, 0xa0, 0x55, 0x6d, 0xd8, 0x2b, 0xe4, - 0xdd, 0x08, 0xba, 0x40, 0xab, 0x46, 0x4f, 0xf1, 0x23, 0x94, 0x3e, 0x64, 0x9c, 0x42, 0xe0, 0x88, - 0xa3, 0xdc, 0x4a, 0x51, 0xd9, 0x5a, 0x0d, 0x43, 0x98, 0x82, 0xf3, 0x21, 0x4c, 0xc1, 0xea, 0x15, - 0x94, 0xda, 0x73, 0xda, 0x82, 0x71, 0xf2, 0x1c, 0xa9, 0xd1, 0xdb, 0xc4, 0xdb, 0x28, 0x15, 0xce, - 0xcc, 0x38, 0x8e, 0x1b, 0xc3, 0x5e, 0x41, 0x0d, 0x91, 0xb9, 0x76, 0xe3, 0x1a, 0x72, 0xac, 0x20, - 0x2c, 0x6f, 0x60, 0x31, 0x8b, 0x4b, 0xce, 0xc7, 0xa2, 0xa3, 0xe4, 0xff, 0x3a, 0x22, 0xcf, 0xd0, - 0xda, 0x9c, 0x88, 0x25, 0x2d, 0xec, 0x20, 0xb5, 0x0e, 0x74, 0x51, 0xff, 0x32, 0x33, 0xf9, 0x14, - 0xa5, 0xa7, 0xdf, 0x2f, 0x47, 0x5d, 0xf9, 0xbe, 0x82, 0xf0, 0xee, 0x64, 0x34, 0x8c, 0xc9, 0x4b, - 0xc5, 0xc7, 0x0a, 0xca, 0xd4, 0x98, 0x88, 0x45, 0x53, 0x8a, 0xcf, 0xd1, 0x19, 0x8f, 0x21, 0x4f, - 0x2e, 0x2e, 0x25, 0x9b, 0x9f, 0x7f, 0xfd, 0xfd, 0x96, 0xcc, 0xe2, 0x75, 0xfd, 0xf0, 0xc1, 0x64, - 0x63, 0x38, 0x9e, 0x7d, 0x3f, 0x14, 0x87, 0xbf, 0x28, 0xe8, 0x5a, 0x8d, 0x89, 0xf9, 0x8b, 0x3d, - 0xe5, 0x0d, 0xc5, 0xc3, 0xcf, 0x6f, 0x9e, 0x5b, 0x45, 0x74, 0x49, 0x5b, 0xc2, 0x77, 0x47, 0xb4, - 0x32, 0x7a, 0xbd, 0x3b, 0x1b, 0x96, 0x4f, 0xb3, 0xdd, 0x35, 0x11, 0xf2, 0x11, 0x5d, 0xad, 0x31, - 0x31, 0xbb, 0xe3, 0x53, 0xbc, 0x45, 0x03, 0xcc, 0xdf, 0x3c, 0xa7, 0x86, 0x94, 0xa4, 0x82, 0xdb, - 0xf8, 0xd6, 0x48, 0x41, 0x0b, 0xa8, 0xde, 0x0d, 0xc3, 0x8e, 0x73, 0x57, 0x8d, 0x1f, 0x7d, 0x4d, - 0x39, 0xe9, 0x6b, 0xca, 0x9f, 0xbe, 0xa6, 0x7c, 0x1d, 0x68, 0x89, 0x93, 0x81, 0x96, 0xf8, 0x3d, - 0xd0, 0x12, 0xef, 0x9f, 0xd8, 0x8e, 0xd8, 0xef, 0xd0, 0x72, 0x03, 0x5c, 0xdd, 0xe2, 0xae, 0xd5, - 0xb4, 0x7c, 0x0e, 0x23, 0xa6, 0xf1, 0x3f, 0xfd, 0xac, 0xe5, 0x4c, 0x53, 0x72, 0xb3, 0x3e, 0xfc, - 0x17, 0x00, 0x00, 0xff, 0xff, 0x2f, 0xcc, 0xde, 0x68, 0xbf, 0x05, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// SchedulerReportingClient is the client API for SchedulerReporting service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type SchedulerReportingClient interface { - // Return the most recent scheduling report for each executor. - GetSchedulingReport(ctx context.Context, in *SchedulingReportRequest, opts ...grpc.CallOption) (*SchedulingReport, error) - // Return the most recent report scheduling for each executor for the given queue. - GetQueueReport(ctx context.Context, in *QueueReportRequest, opts ...grpc.CallOption) (*QueueReport, error) - // Return the most recent scheduling report for each executor for the given job. - GetJobReport(ctx context.Context, in *JobReportRequest, opts ...grpc.CallOption) (*JobReport, error) -} - -type schedulerReportingClient struct { - cc *grpc.ClientConn -} - -func NewSchedulerReportingClient(cc *grpc.ClientConn) SchedulerReportingClient { - return &schedulerReportingClient{cc} -} - -func (c *schedulerReportingClient) GetSchedulingReport(ctx context.Context, in *SchedulingReportRequest, opts ...grpc.CallOption) (*SchedulingReport, error) { - out := new(SchedulingReport) - err := c.cc.Invoke(ctx, "/schedulerobjects.SchedulerReporting/GetSchedulingReport", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *schedulerReportingClient) GetQueueReport(ctx context.Context, in *QueueReportRequest, opts ...grpc.CallOption) (*QueueReport, error) { - out := new(QueueReport) - err := c.cc.Invoke(ctx, "/schedulerobjects.SchedulerReporting/GetQueueReport", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *schedulerReportingClient) GetJobReport(ctx context.Context, in *JobReportRequest, opts ...grpc.CallOption) (*JobReport, error) { - out := new(JobReport) - err := c.cc.Invoke(ctx, "/schedulerobjects.SchedulerReporting/GetJobReport", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// SchedulerReportingServer is the server API for SchedulerReporting service. -type SchedulerReportingServer interface { - // Return the most recent scheduling report for each executor. - GetSchedulingReport(context.Context, *SchedulingReportRequest) (*SchedulingReport, error) - // Return the most recent report scheduling for each executor for the given queue. - GetQueueReport(context.Context, *QueueReportRequest) (*QueueReport, error) - // Return the most recent scheduling report for each executor for the given job. - GetJobReport(context.Context, *JobReportRequest) (*JobReport, error) -} - -// UnimplementedSchedulerReportingServer can be embedded to have forward compatible implementations. -type UnimplementedSchedulerReportingServer struct { -} - -func (*UnimplementedSchedulerReportingServer) GetSchedulingReport(ctx context.Context, req *SchedulingReportRequest) (*SchedulingReport, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetSchedulingReport not implemented") -} -func (*UnimplementedSchedulerReportingServer) GetQueueReport(ctx context.Context, req *QueueReportRequest) (*QueueReport, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetQueueReport not implemented") -} -func (*UnimplementedSchedulerReportingServer) GetJobReport(ctx context.Context, req *JobReportRequest) (*JobReport, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetJobReport not implemented") +type isSchedulingReportRequest_Filter interface { + isSchedulingReportRequest_Filter() } -func RegisterSchedulerReportingServer(s *grpc.Server, srv SchedulerReportingServer) { - s.RegisterService(&_SchedulerReporting_serviceDesc, srv) +type SchedulingReportRequest_MostRecentForQueue struct { + // Deprecated. This will be removed in a future release. Please use GetQueueReport instead. + MostRecentForQueue *MostRecentForQueue `protobuf:"bytes,1,opt,name=most_recent_for_queue,json=mostRecentForQueue,proto3,oneof"` } -func _SchedulerReporting_GetSchedulingReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SchedulingReportRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SchedulerReportingServer).GetSchedulingReport(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/schedulerobjects.SchedulerReporting/GetSchedulingReport", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SchedulerReportingServer).GetSchedulingReport(ctx, req.(*SchedulingReportRequest)) - } - return interceptor(ctx, in, info, handler) +type SchedulingReportRequest_MostRecentForJob struct { + // Deprecated. This will be removed in a future release. Please use GetJobReport instead. + MostRecentForJob *MostRecentForJob `protobuf:"bytes,2,opt,name=most_recent_for_job,json=mostRecentForJob,proto3,oneof"` } -func _SchedulerReporting_GetQueueReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueueReportRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SchedulerReportingServer).GetQueueReport(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/schedulerobjects.SchedulerReporting/GetQueueReport", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SchedulerReportingServer).GetQueueReport(ctx, req.(*QueueReportRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*SchedulingReportRequest_MostRecentForQueue) isSchedulingReportRequest_Filter() {} -func _SchedulerReporting_GetJobReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(JobReportRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SchedulerReportingServer).GetJobReport(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/schedulerobjects.SchedulerReporting/GetJobReport", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SchedulerReportingServer).GetJobReport(ctx, req.(*JobReportRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*SchedulingReportRequest_MostRecentForJob) isSchedulingReportRequest_Filter() {} -var _SchedulerReporting_serviceDesc = grpc.ServiceDesc{ - ServiceName: "schedulerobjects.SchedulerReporting", - HandlerType: (*SchedulerReportingServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetSchedulingReport", - Handler: _SchedulerReporting_GetSchedulingReport_Handler, - }, - { - MethodName: "GetQueueReport", - Handler: _SchedulerReporting_GetQueueReport_Handler, - }, - { - MethodName: "GetJobReport", - Handler: _SchedulerReporting_GetJobReport_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pkg/api/schedulerobjects/scheduler_reporting.proto", +type SchedulingReport struct { + state protoimpl.MessageState `protogen:"open.v1"` + Report string `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *MostRecentForQueue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *SchedulingReport) Reset() { + *x = SchedulingReport{} + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *MostRecentForQueue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *SchedulingReport) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MostRecentForQueue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.QueueName) > 0 { - i -= len(m.QueueName) - copy(dAtA[i:], m.QueueName) - i = encodeVarintSchedulerReporting(dAtA, i, uint64(len(m.QueueName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +func (*SchedulingReport) ProtoMessage() {} -func (m *MostRecentForJob) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *SchedulingReport) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil -} - -func (m *MostRecentForJob) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *MostRecentForJob) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintSchedulerReporting(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// Deprecated: Use SchedulingReport.ProtoReflect.Descriptor instead. +func (*SchedulingReport) Descriptor() ([]byte, []int) { + return file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDescGZIP(), []int{3} } -func (m *SchedulingReportRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *SchedulingReport) GetReport() string { + if x != nil { + return x.Report } - return dAtA[:n], nil + return "" } -func (m *SchedulingReportRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type QueueReportRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + QueueName string `protobuf:"bytes,1,opt,name=queue_name,json=queueName,proto3" json:"queue_name,omitempty"` + Verbosity int32 `protobuf:"varint,2,opt,name=verbosity,proto3" json:"verbosity,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *SchedulingReportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Verbosity != 0 { - i = encodeVarintSchedulerReporting(dAtA, i, uint64(m.Verbosity)) - i-- - dAtA[i] = 0x18 - } - if m.Filter != nil { - { - size := m.Filter.Size() - i -= size - if _, err := m.Filter.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil +func (x *QueueReportRequest) Reset() { + *x = QueueReportRequest{} + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *SchedulingReportRequest_MostRecentForQueue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *QueueReportRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SchedulingReportRequest_MostRecentForQueue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.MostRecentForQueue != nil { - { - size, err := m.MostRecentForQueue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerReporting(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *SchedulingReportRequest_MostRecentForJob) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*QueueReportRequest) ProtoMessage() {} -func (m *SchedulingReportRequest_MostRecentForJob) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.MostRecentForJob != nil { - { - size, err := m.MostRecentForJob.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulerReporting(dAtA, i, uint64(size)) +func (x *QueueReportRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x12 + return ms } - return len(dAtA) - i, nil -} -func (m *SchedulingReport) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *SchedulingReport) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use QueueReportRequest.ProtoReflect.Descriptor instead. +func (*QueueReportRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDescGZIP(), []int{4} } -func (m *SchedulingReport) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Report) > 0 { - i -= len(m.Report) - copy(dAtA[i:], m.Report) - i = encodeVarintSchedulerReporting(dAtA, i, uint64(len(m.Report))) - i-- - dAtA[i] = 0xa +func (x *QueueReportRequest) GetQueueName() string { + if x != nil { + return x.QueueName } - return len(dAtA) - i, nil + return "" } -func (m *QueueReportRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *QueueReportRequest) GetVerbosity() int32 { + if x != nil { + return x.Verbosity } - return dAtA[:n], nil -} - -func (m *QueueReportRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return 0 } -func (m *QueueReportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Verbosity != 0 { - i = encodeVarintSchedulerReporting(dAtA, i, uint64(m.Verbosity)) - i-- - dAtA[i] = 0x10 - } - if len(m.QueueName) > 0 { - i -= len(m.QueueName) - copy(dAtA[i:], m.QueueName) - i = encodeVarintSchedulerReporting(dAtA, i, uint64(len(m.QueueName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type QueueReport struct { + state protoimpl.MessageState `protogen:"open.v1"` + Report string `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *QueueReport) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *QueueReport) Reset() { + *x = QueueReport{} + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *QueueReport) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *QueueReport) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *QueueReport) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Report) > 0 { - i -= len(m.Report) - copy(dAtA[i:], m.Report) - i = encodeVarintSchedulerReporting(dAtA, i, uint64(len(m.Report))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +func (*QueueReport) ProtoMessage() {} -func (m *JobReportRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *QueueReport) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *JobReportRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use QueueReport.ProtoReflect.Descriptor instead. +func (*QueueReport) Descriptor() ([]byte, []int) { + return file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDescGZIP(), []int{5} } -func (m *JobReportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintSchedulerReporting(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa +func (x *QueueReport) GetReport() string { + if x != nil { + return x.Report } - return len(dAtA) - i, nil + return "" } -func (m *JobReport) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type JobReportRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobReport) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *JobReportRequest) Reset() { + *x = JobReportRequest{} + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobReport) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Report) > 0 { - i -= len(m.Report) - copy(dAtA[i:], m.Report) - i = encodeVarintSchedulerReporting(dAtA, i, uint64(len(m.Report))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *JobReportRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func encodeVarintSchedulerReporting(dAtA []byte, offset int, v uint64) int { - offset -= sovSchedulerReporting(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *MostRecentForQueue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.QueueName) - if l > 0 { - n += 1 + l + sovSchedulerReporting(uint64(l)) - } - return n -} +func (*JobReportRequest) ProtoMessage() {} -func (m *MostRecentForJob) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovSchedulerReporting(uint64(l)) - } - return n -} - -func (m *SchedulingReportRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Filter != nil { - n += m.Filter.Size() - } - if m.Verbosity != 0 { - n += 1 + sovSchedulerReporting(uint64(m.Verbosity)) - } - return n -} - -func (m *SchedulingReportRequest_MostRecentForQueue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MostRecentForQueue != nil { - l = m.MostRecentForQueue.Size() - n += 1 + l + sovSchedulerReporting(uint64(l)) - } - return n -} -func (m *SchedulingReportRequest_MostRecentForJob) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MostRecentForJob != nil { - l = m.MostRecentForJob.Size() - n += 1 + l + sovSchedulerReporting(uint64(l)) - } - return n -} -func (m *SchedulingReport) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Report) - if l > 0 { - n += 1 + l + sovSchedulerReporting(uint64(l)) +func (x *JobReportRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return n + return mi.MessageOf(x) } -func (m *QueueReportRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.QueueName) - if l > 0 { - n += 1 + l + sovSchedulerReporting(uint64(l)) - } - if m.Verbosity != 0 { - n += 1 + sovSchedulerReporting(uint64(m.Verbosity)) - } - return n +// Deprecated: Use JobReportRequest.ProtoReflect.Descriptor instead. +func (*JobReportRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDescGZIP(), []int{6} } -func (m *QueueReport) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Report) - if l > 0 { - n += 1 + l + sovSchedulerReporting(uint64(l)) +func (x *JobReportRequest) GetJobId() string { + if x != nil { + return x.JobId } - return n + return "" } -func (m *JobReportRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovSchedulerReporting(uint64(l)) - } - return n +type JobReport struct { + state protoimpl.MessageState `protogen:"open.v1"` + Report string `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobReport) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Report) - if l > 0 { - n += 1 + l + sovSchedulerReporting(uint64(l)) - } - return n +func (x *JobReport) Reset() { + *x = JobReport{} + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func sovSchedulerReporting(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozSchedulerReporting(x uint64) (n int) { - return sovSchedulerReporting(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func (x *JobReport) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MostRecentForQueue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MostRecentForQueue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MostRecentForQueue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueueName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerReporting - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerReporting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.QueueName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSchedulerReporting(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerReporting - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MostRecentForJob) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MostRecentForJob: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MostRecentForJob: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerReporting - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerReporting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSchedulerReporting(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerReporting - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +func (*JobReport) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SchedulingReportRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SchedulingReportRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SchedulingReportRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MostRecentForQueue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerReporting - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerReporting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &MostRecentForQueue{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Filter = &SchedulingReportRequest_MostRecentForQueue{v} - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MostRecentForJob", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchedulerReporting - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulerReporting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &MostRecentForJob{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Filter = &SchedulingReportRequest_MostRecentForJob{v} - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Verbosity", wireType) - } - m.Verbosity = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Verbosity |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipSchedulerReporting(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerReporting - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy +func (x *JobReport) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return mi.MessageOf(x) } -func (m *SchedulingReport) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SchedulingReport: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SchedulingReport: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Report", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerReporting - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerReporting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Report = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSchedulerReporting(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerReporting - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use JobReport.ProtoReflect.Descriptor instead. +func (*JobReport) Descriptor() ([]byte, []int) { + return file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDescGZIP(), []int{7} } -func (m *QueueReportRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueueReportRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueueReportRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueueName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerReporting - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerReporting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.QueueName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Verbosity", wireType) - } - m.Verbosity = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Verbosity |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipSchedulerReporting(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerReporting - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *JobReport) GetReport() string { + if x != nil { + return x.Report } - return nil + return "" } -func (m *QueueReport) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueueReport: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueueReport: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Report", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerReporting - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerReporting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Report = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSchedulerReporting(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerReporting - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobReportRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobReportRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobReportRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerReporting - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerReporting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSchedulerReporting(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerReporting - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +var File_pkg_api_schedulerobjects_scheduler_reporting_proto protoreflect.FileDescriptor + +var file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDesc = string([]byte{ + 0x0a, 0x32, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x12, 0x4d, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, + 0x6e, 0x74, 0x46, 0x6f, 0x72, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x71, 0x75, + 0x65, 0x75, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x71, 0x75, 0x65, 0x75, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x29, 0x0a, 0x10, 0x4d, 0x6f, 0x73, + 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x46, 0x6f, 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x15, 0x0a, + 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, + 0x6f, 0x62, 0x49, 0x64, 0x22, 0xf1, 0x01, 0x0a, 0x17, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x59, 0x0a, 0x15, 0x6d, 0x6f, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, + 0x66, 0x6f, 0x72, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2e, 0x4d, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x46, 0x6f, 0x72, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x63, + 0x65, 0x6e, 0x74, 0x46, 0x6f, 0x72, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x53, 0x0a, 0x13, 0x6d, + 0x6f, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x6a, + 0x6f, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x4d, 0x6f, 0x73, 0x74, + 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x46, 0x6f, 0x72, 0x4a, 0x6f, 0x62, 0x48, 0x00, 0x52, 0x10, + 0x6d, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x46, 0x6f, 0x72, 0x4a, 0x6f, 0x62, + 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x65, 0x72, 0x62, 0x6f, 0x73, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x09, 0x76, 0x65, 0x72, 0x62, 0x6f, 0x73, 0x69, 0x74, 0x79, 0x42, 0x08, + 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x2a, 0x0a, 0x10, 0x53, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x22, 0x51, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x71, 0x75, + 0x65, 0x75, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x71, 0x75, 0x65, 0x75, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x65, 0x72, + 0x62, 0x6f, 0x73, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x76, 0x65, + 0x72, 0x62, 0x6f, 0x73, 0x69, 0x74, 0x79, 0x22, 0x25, 0x0a, 0x0b, 0x51, 0x75, 0x65, 0x75, 0x65, + 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x29, + 0x0a, 0x10, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x23, 0x0a, 0x09, 0x4a, 0x6f, 0x62, + 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x32, 0x9f, + 0x03, 0x0a, 0x12, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x83, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x29, 0x2e, + 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x1d, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x69, 0x6e, 0x67, 0x2d, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x86, 0x01, 0x0a, 0x0e, + 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x24, + 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x76, 0x31, + 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x75, 0x65, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x7d, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2d, 0x72, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x12, 0x7a, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x12, 0x22, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, + 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2f, 0x7b, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x7d, 0x2f, + 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2d, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, + 0x72, 0x6d, 0x61, 0x64, 0x61, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x61, 0x72, 0x6d, + 0x61, 0x64, 0x61, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +}) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobReport) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobReport: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobReport: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Report", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSchedulerReporting - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulerReporting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Report = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSchedulerReporting(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchedulerReporting - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +var ( + file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDescOnce sync.Once + file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDescData []byte +) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipSchedulerReporting(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSchedulerReporting - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthSchedulerReporting - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupSchedulerReporting - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthSchedulerReporting - } - if depth == 0 { - return iNdEx, nil - } +func file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDescGZIP() []byte { + file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDescOnce.Do(func() { + file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDesc), len(file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDesc))) + }) + return file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDescData +} + +var file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_pkg_api_schedulerobjects_scheduler_reporting_proto_goTypes = []any{ + (*MostRecentForQueue)(nil), // 0: schedulerobjects.MostRecentForQueue + (*MostRecentForJob)(nil), // 1: schedulerobjects.MostRecentForJob + (*SchedulingReportRequest)(nil), // 2: schedulerobjects.SchedulingReportRequest + (*SchedulingReport)(nil), // 3: schedulerobjects.SchedulingReport + (*QueueReportRequest)(nil), // 4: schedulerobjects.QueueReportRequest + (*QueueReport)(nil), // 5: schedulerobjects.QueueReport + (*JobReportRequest)(nil), // 6: schedulerobjects.JobReportRequest + (*JobReport)(nil), // 7: schedulerobjects.JobReport +} +var file_pkg_api_schedulerobjects_scheduler_reporting_proto_depIdxs = []int32{ + 0, // 0: schedulerobjects.SchedulingReportRequest.most_recent_for_queue:type_name -> schedulerobjects.MostRecentForQueue + 1, // 1: schedulerobjects.SchedulingReportRequest.most_recent_for_job:type_name -> schedulerobjects.MostRecentForJob + 2, // 2: schedulerobjects.SchedulerReporting.GetSchedulingReport:input_type -> schedulerobjects.SchedulingReportRequest + 4, // 3: schedulerobjects.SchedulerReporting.GetQueueReport:input_type -> schedulerobjects.QueueReportRequest + 6, // 4: schedulerobjects.SchedulerReporting.GetJobReport:input_type -> schedulerobjects.JobReportRequest + 3, // 5: schedulerobjects.SchedulerReporting.GetSchedulingReport:output_type -> schedulerobjects.SchedulingReport + 5, // 6: schedulerobjects.SchedulerReporting.GetQueueReport:output_type -> schedulerobjects.QueueReport + 7, // 7: schedulerobjects.SchedulerReporting.GetJobReport:output_type -> schedulerobjects.JobReport + 5, // [5:8] is the sub-list for method output_type + 2, // [2:5] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_pkg_api_schedulerobjects_scheduler_reporting_proto_init() } +func file_pkg_api_schedulerobjects_scheduler_reporting_proto_init() { + if File_pkg_api_schedulerobjects_scheduler_reporting_proto != nil { + return + } + file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes[2].OneofWrappers = []any{ + (*SchedulingReportRequest_MostRecentForQueue)(nil), + (*SchedulingReportRequest_MostRecentForJob)(nil), } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDesc), len(file_pkg_api_schedulerobjects_scheduler_reporting_proto_rawDesc)), + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_api_schedulerobjects_scheduler_reporting_proto_goTypes, + DependencyIndexes: file_pkg_api_schedulerobjects_scheduler_reporting_proto_depIdxs, + MessageInfos: file_pkg_api_schedulerobjects_scheduler_reporting_proto_msgTypes, + }.Build() + File_pkg_api_schedulerobjects_scheduler_reporting_proto = out.File + file_pkg_api_schedulerobjects_scheduler_reporting_proto_goTypes = nil + file_pkg_api_schedulerobjects_scheduler_reporting_proto_depIdxs = nil } - -var ( - ErrInvalidLengthSchedulerReporting = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowSchedulerReporting = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupSchedulerReporting = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/api/schedulerobjects/scheduler_reporting_grpc.pb.go b/pkg/api/schedulerobjects/scheduler_reporting_grpc.pb.go new file mode 100644 index 00000000000..ae80e6026ae --- /dev/null +++ b/pkg/api/schedulerobjects/scheduler_reporting_grpc.pb.go @@ -0,0 +1,204 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 +// source: pkg/api/schedulerobjects/scheduler_reporting.proto + +package schedulerobjects + +import ( + context "context" + + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + SchedulerReporting_GetSchedulingReport_FullMethodName = "/schedulerobjects.SchedulerReporting/GetSchedulingReport" + SchedulerReporting_GetQueueReport_FullMethodName = "/schedulerobjects.SchedulerReporting/GetQueueReport" + SchedulerReporting_GetJobReport_FullMethodName = "/schedulerobjects.SchedulerReporting/GetJobReport" +) + +// SchedulerReportingClient is the client API for SchedulerReporting service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type SchedulerReportingClient interface { + // Return the most recent scheduling report for each executor. + GetSchedulingReport(ctx context.Context, in *SchedulingReportRequest, opts ...grpc.CallOption) (*SchedulingReport, error) + // Return the most recent report scheduling for each executor for the given queue. + GetQueueReport(ctx context.Context, in *QueueReportRequest, opts ...grpc.CallOption) (*QueueReport, error) + // Return the most recent scheduling report for each executor for the given job. + GetJobReport(ctx context.Context, in *JobReportRequest, opts ...grpc.CallOption) (*JobReport, error) +} + +type schedulerReportingClient struct { + cc grpc.ClientConnInterface +} + +func NewSchedulerReportingClient(cc grpc.ClientConnInterface) SchedulerReportingClient { + return &schedulerReportingClient{cc} +} + +func (c *schedulerReportingClient) GetSchedulingReport(ctx context.Context, in *SchedulingReportRequest, opts ...grpc.CallOption) (*SchedulingReport, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SchedulingReport) + err := c.cc.Invoke(ctx, SchedulerReporting_GetSchedulingReport_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schedulerReportingClient) GetQueueReport(ctx context.Context, in *QueueReportRequest, opts ...grpc.CallOption) (*QueueReport, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueueReport) + err := c.cc.Invoke(ctx, SchedulerReporting_GetQueueReport_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schedulerReportingClient) GetJobReport(ctx context.Context, in *JobReportRequest, opts ...grpc.CallOption) (*JobReport, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(JobReport) + err := c.cc.Invoke(ctx, SchedulerReporting_GetJobReport_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SchedulerReportingServer is the server API for SchedulerReporting service. +// All implementations must embed UnimplementedSchedulerReportingServer +// for forward compatibility. +type SchedulerReportingServer interface { + // Return the most recent scheduling report for each executor. + GetSchedulingReport(context.Context, *SchedulingReportRequest) (*SchedulingReport, error) + // Return the most recent report scheduling for each executor for the given queue. + GetQueueReport(context.Context, *QueueReportRequest) (*QueueReport, error) + // Return the most recent scheduling report for each executor for the given job. + GetJobReport(context.Context, *JobReportRequest) (*JobReport, error) + mustEmbedUnimplementedSchedulerReportingServer() +} + +// UnimplementedSchedulerReportingServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedSchedulerReportingServer struct{} + +func (UnimplementedSchedulerReportingServer) GetSchedulingReport(context.Context, *SchedulingReportRequest) (*SchedulingReport, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSchedulingReport not implemented") +} +func (UnimplementedSchedulerReportingServer) GetQueueReport(context.Context, *QueueReportRequest) (*QueueReport, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetQueueReport not implemented") +} +func (UnimplementedSchedulerReportingServer) GetJobReport(context.Context, *JobReportRequest) (*JobReport, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetJobReport not implemented") +} +func (UnimplementedSchedulerReportingServer) mustEmbedUnimplementedSchedulerReportingServer() {} +func (UnimplementedSchedulerReportingServer) testEmbeddedByValue() {} + +// UnsafeSchedulerReportingServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SchedulerReportingServer will +// result in compilation errors. +type UnsafeSchedulerReportingServer interface { + mustEmbedUnimplementedSchedulerReportingServer() +} + +func RegisterSchedulerReportingServer(s grpc.ServiceRegistrar, srv SchedulerReportingServer) { + // If the following call pancis, it indicates UnimplementedSchedulerReportingServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&SchedulerReporting_ServiceDesc, srv) +} + +func _SchedulerReporting_GetSchedulingReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SchedulingReportRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulerReportingServer).GetSchedulingReport(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SchedulerReporting_GetSchedulingReport_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulerReportingServer).GetSchedulingReport(ctx, req.(*SchedulingReportRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchedulerReporting_GetQueueReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueueReportRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulerReportingServer).GetQueueReport(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SchedulerReporting_GetQueueReport_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulerReportingServer).GetQueueReport(ctx, req.(*QueueReportRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchedulerReporting_GetJobReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(JobReportRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulerReportingServer).GetJobReport(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SchedulerReporting_GetJobReport_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulerReportingServer).GetJobReport(ctx, req.(*JobReportRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// SchedulerReporting_ServiceDesc is the grpc.ServiceDesc for SchedulerReporting service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SchedulerReporting_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "schedulerobjects.SchedulerReporting", + HandlerType: (*SchedulerReportingServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetSchedulingReport", + Handler: _SchedulerReporting_GetSchedulingReport_Handler, + }, + { + MethodName: "GetQueueReport", + Handler: _SchedulerReporting_GetQueueReport_Handler, + }, + { + MethodName: "GetJobReport", + Handler: _SchedulerReporting_GetJobReport_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "pkg/api/schedulerobjects/scheduler_reporting.proto", +} diff --git a/pkg/api/submit.go b/pkg/api/submit.go index 0a913f1215b..1b2df44dcd1 100644 --- a/pkg/api/submit.go +++ b/pkg/api/submit.go @@ -3,8 +3,8 @@ package api import ( "context" - "github.com/gogo/status" "google.golang.org/grpc" + "google.golang.org/grpc/status" ) type CustomSubmitClient struct { diff --git a/pkg/api/submit.pb.go b/pkg/api/submit.pb.go index 4285e86f829..397e4795b43 100644 --- a/pkg/api/submit.pb.go +++ b/pkg/api/submit.pb.go @@ -1,36 +1,31 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: pkg/api/submit.proto package api import ( - context "context" - encoding_binary "encoding/binary" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - - proto "github.com/gogo/protobuf/proto" - types "github.com/gogo/protobuf/types" + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" v1 "k8s.io/api/core/v1" v11 "k8s.io/api/networking/v1" ) -// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // Ingress type is being kept here to maintain backwards compatibility for a while. type IngressType int32 @@ -39,20 +34,41 @@ const ( IngressType_Ingress IngressType = 0 ) -var IngressType_name = map[int32]string{ - 0: "Ingress", -} +// Enum value maps for IngressType. +var ( + IngressType_name = map[int32]string{ + 0: "Ingress", + } + IngressType_value = map[string]int32{ + "Ingress": 0, + } +) -var IngressType_value = map[string]int32{ - "Ingress": 0, +func (x IngressType) Enum() *IngressType { + p := new(IngressType) + *p = x + return p } func (x IngressType) String() string { - return proto.EnumName(IngressType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (IngressType) Descriptor() protoreflect.EnumDescriptor { + return file_pkg_api_submit_proto_enumTypes[0].Descriptor() +} + +func (IngressType) Type() protoreflect.EnumType { + return &file_pkg_api_submit_proto_enumTypes[0] +} + +func (x IngressType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use IngressType.Descriptor instead. func (IngressType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{0} + return file_pkg_api_submit_proto_rawDescGZIP(), []int{0} } type ServiceType int32 @@ -62,22 +78,43 @@ const ( ServiceType_Headless ServiceType = 1 ) -var ServiceType_name = map[int32]string{ - 0: "NodePort", - 1: "Headless", -} +// Enum value maps for ServiceType. +var ( + ServiceType_name = map[int32]string{ + 0: "NodePort", + 1: "Headless", + } + ServiceType_value = map[string]int32{ + "NodePort": 0, + "Headless": 1, + } +) -var ServiceType_value = map[string]int32{ - "NodePort": 0, - "Headless": 1, +func (x ServiceType) Enum() *ServiceType { + p := new(ServiceType) + *p = x + return p } func (x ServiceType) String() string { - return proto.EnumName(ServiceType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ServiceType) Descriptor() protoreflect.EnumDescriptor { + return file_pkg_api_submit_proto_enumTypes[1].Descriptor() +} + +func (ServiceType) Type() protoreflect.EnumType { + return &file_pkg_api_submit_proto_enumTypes[1] } +func (x ServiceType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ServiceType.Descriptor instead. func (ServiceType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{1} + return file_pkg_api_submit_proto_rawDescGZIP(), []int{1} } // swagger:model @@ -97,651 +134,678 @@ const ( JobState_REJECTED JobState = 10 ) -var JobState_name = map[int32]string{ - 0: "QUEUED", - 1: "PENDING", - 2: "RUNNING", - 3: "SUCCEEDED", - 4: "FAILED", - 5: "UNKNOWN", - 6: "SUBMITTED", - 7: "LEASED", - 8: "PREEMPTED", - 9: "CANCELLED", - 10: "REJECTED", -} - -var JobState_value = map[string]int32{ - "QUEUED": 0, - "PENDING": 1, - "RUNNING": 2, - "SUCCEEDED": 3, - "FAILED": 4, - "UNKNOWN": 5, - "SUBMITTED": 6, - "LEASED": 7, - "PREEMPTED": 8, - "CANCELLED": 9, - "REJECTED": 10, +// Enum value maps for JobState. +var ( + JobState_name = map[int32]string{ + 0: "QUEUED", + 1: "PENDING", + 2: "RUNNING", + 3: "SUCCEEDED", + 4: "FAILED", + 5: "UNKNOWN", + 6: "SUBMITTED", + 7: "LEASED", + 8: "PREEMPTED", + 9: "CANCELLED", + 10: "REJECTED", + } + JobState_value = map[string]int32{ + "QUEUED": 0, + "PENDING": 1, + "RUNNING": 2, + "SUCCEEDED": 3, + "FAILED": 4, + "UNKNOWN": 5, + "SUBMITTED": 6, + "LEASED": 7, + "PREEMPTED": 8, + "CANCELLED": 9, + "REJECTED": 10, + } +) + +func (x JobState) Enum() *JobState { + p := new(JobState) + *p = x + return p } func (x JobState) String() string { - return proto.EnumName(JobState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (JobState) Descriptor() protoreflect.EnumDescriptor { + return file_pkg_api_submit_proto_enumTypes[2].Descriptor() } +func (JobState) Type() protoreflect.EnumType { + return &file_pkg_api_submit_proto_enumTypes[2] +} + +func (x JobState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use JobState.Descriptor instead. func (JobState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{2} + return file_pkg_api_submit_proto_rawDescGZIP(), []int{2} } type JobSubmitRequestItem struct { - Priority float64 `protobuf:"fixed64,1,opt,name=priority,proto3" json:"priority,omitempty"` - Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` - ClientId string `protobuf:"bytes,8,opt,name=client_id,json=clientId,proto3" json:"clientId,omitempty"` - Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Annotations map[string]string `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - RequiredNodeLabels map[string]string `protobuf:"bytes,6,rep,name=required_node_labels,json=requiredNodeLabels,proto3" json:"requiredNodeLabels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Deprecated: Do not use. - PodSpec *v1.PodSpec `protobuf:"bytes,2,opt,name=pod_spec,json=podSpec,proto3" json:"podSpec,omitempty"` // Deprecated: Do not use. - PodSpecs []*v1.PodSpec `protobuf:"bytes,7,rep,name=pod_specs,json=podSpecs,proto3" json:"podSpecs,omitempty"` - Ingress []*IngressConfig `protobuf:"bytes,9,rep,name=ingress,proto3" json:"ingress,omitempty"` - Services []*ServiceConfig `protobuf:"bytes,10,rep,name=services,proto3" json:"services,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Priority float64 `protobuf:"fixed64,1,opt,name=priority,proto3" json:"priority,omitempty"` + Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` + ClientId string `protobuf:"bytes,8,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Annotations map[string]string `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + // Deprecated: Marked as deprecated in pkg/api/submit.proto. + RequiredNodeLabels map[string]string `protobuf:"bytes,6,rep,name=required_node_labels,json=requiredNodeLabels,proto3" json:"required_node_labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Use PodSpec.NodeSelector instead + // Deprecated: Marked as deprecated in pkg/api/submit.proto. + PodSpec *v1.PodSpec `protobuf:"bytes,2,opt,name=pod_spec,json=podSpec,proto3" json:"pod_spec,omitempty"` // Use PodSpecs instead + PodSpecs []*v1.PodSpec `protobuf:"bytes,7,rep,name=pod_specs,json=podSpecs,proto3" json:"pod_specs,omitempty"` + Ingress []*IngressConfig `protobuf:"bytes,9,rep,name=ingress,proto3" json:"ingress,omitempty"` + Services []*ServiceConfig `protobuf:"bytes,10,rep,name=services,proto3" json:"services,omitempty"` // Indicates which scheduler should manage this job. // If empty, the default scheduler is used. - Scheduler string `protobuf:"bytes,11,opt,name=scheduler,proto3" json:"scheduler,omitempty"` + Scheduler string `protobuf:"bytes,11,opt,name=scheduler,proto3" json:"scheduler,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobSubmitRequestItem) Reset() { *m = JobSubmitRequestItem{} } -func (m *JobSubmitRequestItem) String() string { return proto.CompactTextString(m) } -func (*JobSubmitRequestItem) ProtoMessage() {} -func (*JobSubmitRequestItem) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{0} -} -func (m *JobSubmitRequestItem) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobSubmitRequestItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobSubmitRequestItem.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobSubmitRequestItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobSubmitRequestItem.Merge(m, src) +func (x *JobSubmitRequestItem) Reset() { + *x = JobSubmitRequestItem{} + mi := &file_pkg_api_submit_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobSubmitRequestItem) XXX_Size() int { - return m.Size() + +func (x *JobSubmitRequestItem) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobSubmitRequestItem) XXX_DiscardUnknown() { - xxx_messageInfo_JobSubmitRequestItem.DiscardUnknown(m) + +func (*JobSubmitRequestItem) ProtoMessage() {} + +func (x *JobSubmitRequestItem) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobSubmitRequestItem proto.InternalMessageInfo +// Deprecated: Use JobSubmitRequestItem.ProtoReflect.Descriptor instead. +func (*JobSubmitRequestItem) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{0} +} -func (m *JobSubmitRequestItem) GetPriority() float64 { - if m != nil { - return m.Priority +func (x *JobSubmitRequestItem) GetPriority() float64 { + if x != nil { + return x.Priority } return 0 } -func (m *JobSubmitRequestItem) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *JobSubmitRequestItem) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *JobSubmitRequestItem) GetClientId() string { - if m != nil { - return m.ClientId +func (x *JobSubmitRequestItem) GetClientId() string { + if x != nil { + return x.ClientId } return "" } -func (m *JobSubmitRequestItem) GetLabels() map[string]string { - if m != nil { - return m.Labels +func (x *JobSubmitRequestItem) GetLabels() map[string]string { + if x != nil { + return x.Labels } return nil } -func (m *JobSubmitRequestItem) GetAnnotations() map[string]string { - if m != nil { - return m.Annotations +func (x *JobSubmitRequestItem) GetAnnotations() map[string]string { + if x != nil { + return x.Annotations } return nil } -// Deprecated: Do not use. -func (m *JobSubmitRequestItem) GetRequiredNodeLabels() map[string]string { - if m != nil { - return m.RequiredNodeLabels +// Deprecated: Marked as deprecated in pkg/api/submit.proto. +func (x *JobSubmitRequestItem) GetRequiredNodeLabels() map[string]string { + if x != nil { + return x.RequiredNodeLabels } return nil } -// Deprecated: Do not use. -func (m *JobSubmitRequestItem) GetPodSpec() *v1.PodSpec { - if m != nil { - return m.PodSpec +// Deprecated: Marked as deprecated in pkg/api/submit.proto. +func (x *JobSubmitRequestItem) GetPodSpec() *v1.PodSpec { + if x != nil { + return x.PodSpec } return nil } -func (m *JobSubmitRequestItem) GetPodSpecs() []*v1.PodSpec { - if m != nil { - return m.PodSpecs +func (x *JobSubmitRequestItem) GetPodSpecs() []*v1.PodSpec { + if x != nil { + return x.PodSpecs } return nil } -func (m *JobSubmitRequestItem) GetIngress() []*IngressConfig { - if m != nil { - return m.Ingress +func (x *JobSubmitRequestItem) GetIngress() []*IngressConfig { + if x != nil { + return x.Ingress } return nil } -func (m *JobSubmitRequestItem) GetServices() []*ServiceConfig { - if m != nil { - return m.Services +func (x *JobSubmitRequestItem) GetServices() []*ServiceConfig { + if x != nil { + return x.Services } return nil } -func (m *JobSubmitRequestItem) GetScheduler() string { - if m != nil { - return m.Scheduler +func (x *JobSubmitRequestItem) GetScheduler() string { + if x != nil { + return x.Scheduler } return "" } type IngressConfig struct { - Type IngressType `protobuf:"varint,1,opt,name=type,proto3,enum=api.IngressType" json:"type,omitempty"` // Deprecated: Do not use. - Ports []uint32 `protobuf:"varint,2,rep,packed,name=ports,proto3" json:"ports,omitempty"` - Annotations map[string]string `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - TlsEnabled bool `protobuf:"varint,4,opt,name=tls_enabled,json=tlsEnabled,proto3" json:"tlsEnabled,omitempty"` - CertName string `protobuf:"bytes,5,opt,name=cert_name,json=certName,proto3" json:"certName,omitempty"` - UseClusterIP bool `protobuf:"varint,6,opt,name=use_clusterIP,json=useClusterIP,proto3" json:"useClusterIP,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in pkg/api/submit.proto. + Type IngressType `protobuf:"varint,1,opt,name=type,proto3,enum=api.IngressType" json:"type,omitempty"` + Ports []uint32 `protobuf:"varint,2,rep,packed,name=ports,proto3" json:"ports,omitempty"` + Annotations map[string]string `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + TlsEnabled bool `protobuf:"varint,4,opt,name=tls_enabled,json=tlsEnabled,proto3" json:"tls_enabled,omitempty"` + CertName string `protobuf:"bytes,5,opt,name=cert_name,json=certName,proto3" json:"cert_name,omitempty"` + UseClusterIP bool `protobuf:"varint,6,opt,name=use_clusterIP,json=useClusterIP,proto3" json:"use_clusterIP,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *IngressConfig) Reset() { *m = IngressConfig{} } -func (m *IngressConfig) String() string { return proto.CompactTextString(m) } -func (*IngressConfig) ProtoMessage() {} -func (*IngressConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{1} -} -func (m *IngressConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IngressConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *IngressConfig) Reset() { + *x = IngressConfig{} + mi := &file_pkg_api_submit_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *IngressConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressConfig.Merge(m, src) -} -func (m *IngressConfig) XXX_Size() int { - return m.Size() + +func (x *IngressConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IngressConfig) XXX_DiscardUnknown() { - xxx_messageInfo_IngressConfig.DiscardUnknown(m) + +func (*IngressConfig) ProtoMessage() {} + +func (x *IngressConfig) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_IngressConfig proto.InternalMessageInfo +// Deprecated: Use IngressConfig.ProtoReflect.Descriptor instead. +func (*IngressConfig) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{1} +} -// Deprecated: Do not use. -func (m *IngressConfig) GetType() IngressType { - if m != nil { - return m.Type +// Deprecated: Marked as deprecated in pkg/api/submit.proto. +func (x *IngressConfig) GetType() IngressType { + if x != nil { + return x.Type } return IngressType_Ingress } -func (m *IngressConfig) GetPorts() []uint32 { - if m != nil { - return m.Ports +func (x *IngressConfig) GetPorts() []uint32 { + if x != nil { + return x.Ports } return nil } -func (m *IngressConfig) GetAnnotations() map[string]string { - if m != nil { - return m.Annotations +func (x *IngressConfig) GetAnnotations() map[string]string { + if x != nil { + return x.Annotations } return nil } -func (m *IngressConfig) GetTlsEnabled() bool { - if m != nil { - return m.TlsEnabled +func (x *IngressConfig) GetTlsEnabled() bool { + if x != nil { + return x.TlsEnabled } return false } -func (m *IngressConfig) GetCertName() string { - if m != nil { - return m.CertName +func (x *IngressConfig) GetCertName() string { + if x != nil { + return x.CertName } return "" } -func (m *IngressConfig) GetUseClusterIP() bool { - if m != nil { - return m.UseClusterIP +func (x *IngressConfig) GetUseClusterIP() bool { + if x != nil { + return x.UseClusterIP } return false } type ServiceConfig struct { - Type ServiceType `protobuf:"varint,1,opt,name=type,proto3,enum=api.ServiceType" json:"type,omitempty"` - Ports []uint32 `protobuf:"varint,2,rep,packed,name=ports,proto3" json:"ports,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Type ServiceType `protobuf:"varint,1,opt,name=type,proto3,enum=api.ServiceType" json:"type,omitempty"` + Ports []uint32 `protobuf:"varint,2,rep,packed,name=ports,proto3" json:"ports,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // The name of the service resource that is created. If empty a name will be generated based on the job ID. + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ServiceConfig) Reset() { *m = ServiceConfig{} } -func (m *ServiceConfig) String() string { return proto.CompactTextString(m) } -func (*ServiceConfig) ProtoMessage() {} -func (*ServiceConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{2} -} -func (m *ServiceConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ServiceConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ServiceConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceConfig.Merge(m, src) +func (x *ServiceConfig) Reset() { + *x = ServiceConfig{} + mi := &file_pkg_api_submit_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ServiceConfig) XXX_Size() int { - return m.Size() + +func (x *ServiceConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServiceConfig) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceConfig.DiscardUnknown(m) + +func (*ServiceConfig) ProtoMessage() {} + +func (x *ServiceConfig) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServiceConfig proto.InternalMessageInfo +// Deprecated: Use ServiceConfig.ProtoReflect.Descriptor instead. +func (*ServiceConfig) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{2} +} -func (m *ServiceConfig) GetType() ServiceType { - if m != nil { - return m.Type +func (x *ServiceConfig) GetType() ServiceType { + if x != nil { + return x.Type } return ServiceType_NodePort } -func (m *ServiceConfig) GetPorts() []uint32 { - if m != nil { - return m.Ports +func (x *ServiceConfig) GetPorts() []uint32 { + if x != nil { + return x.Ports } return nil } -func (m *ServiceConfig) GetName() string { - if m != nil { - return m.Name +func (x *ServiceConfig) GetName() string { + if x != nil { + return x.Name } return "" } // swagger:model type JobSubmitRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - JobRequestItems []*JobSubmitRequestItem `protobuf:"bytes,3,rep,name=job_request_items,json=jobRequestItems,proto3" json:"jobRequestItems,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + JobRequestItems []*JobSubmitRequestItem `protobuf:"bytes,3,rep,name=job_request_items,json=jobRequestItems,proto3" json:"job_request_items,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobSubmitRequest) Reset() { *m = JobSubmitRequest{} } -func (m *JobSubmitRequest) String() string { return proto.CompactTextString(m) } -func (*JobSubmitRequest) ProtoMessage() {} -func (*JobSubmitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{3} -} -func (m *JobSubmitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobSubmitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobSubmitRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobSubmitRequest) Reset() { + *x = JobSubmitRequest{} + mi := &file_pkg_api_submit_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobSubmitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobSubmitRequest.Merge(m, src) -} -func (m *JobSubmitRequest) XXX_Size() int { - return m.Size() + +func (x *JobSubmitRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobSubmitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_JobSubmitRequest.DiscardUnknown(m) + +func (*JobSubmitRequest) ProtoMessage() {} + +func (x *JobSubmitRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobSubmitRequest proto.InternalMessageInfo +// Deprecated: Use JobSubmitRequest.ProtoReflect.Descriptor instead. +func (*JobSubmitRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{3} +} -func (m *JobSubmitRequest) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobSubmitRequest) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobSubmitRequest) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobSubmitRequest) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobSubmitRequest) GetJobRequestItems() []*JobSubmitRequestItem { - if m != nil { - return m.JobRequestItems +func (x *JobSubmitRequest) GetJobRequestItems() []*JobSubmitRequestItem { + if x != nil { + return x.JobRequestItems } return nil } // swagger:model type JobPreemptRequest struct { - Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - JobIds []string `protobuf:"bytes,3,rep,name=job_ids,json=jobIds,proto3" json:"jobIds,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + JobIds []string `protobuf:"bytes,3,rep,name=job_ids,json=jobIds,proto3" json:"job_ids,omitempty"` + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobPreemptRequest) Reset() { *m = JobPreemptRequest{} } -func (m *JobPreemptRequest) String() string { return proto.CompactTextString(m) } -func (*JobPreemptRequest) ProtoMessage() {} -func (*JobPreemptRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{4} -} -func (m *JobPreemptRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobPreemptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobPreemptRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobPreemptRequest) Reset() { + *x = JobPreemptRequest{} + mi := &file_pkg_api_submit_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobPreemptRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobPreemptRequest.Merge(m, src) -} -func (m *JobPreemptRequest) XXX_Size() int { - return m.Size() + +func (x *JobPreemptRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobPreemptRequest) XXX_DiscardUnknown() { - xxx_messageInfo_JobPreemptRequest.DiscardUnknown(m) + +func (*JobPreemptRequest) ProtoMessage() {} + +func (x *JobPreemptRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobPreemptRequest proto.InternalMessageInfo +// Deprecated: Use JobPreemptRequest.ProtoReflect.Descriptor instead. +func (*JobPreemptRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{4} +} -func (m *JobPreemptRequest) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobPreemptRequest) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobPreemptRequest) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobPreemptRequest) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobPreemptRequest) GetJobIds() []string { - if m != nil { - return m.JobIds +func (x *JobPreemptRequest) GetJobIds() []string { + if x != nil { + return x.JobIds } return nil } -func (m *JobPreemptRequest) GetReason() string { - if m != nil { - return m.Reason +func (x *JobPreemptRequest) GetReason() string { + if x != nil { + return x.Reason } return "" } // swagger:model type JobCancelRequest struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - JobIds []string `protobuf:"bytes,4,rep,name=job_ids,json=jobIds,proto3" json:"jobIds,omitempty"` - Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + JobIds []string `protobuf:"bytes,4,rep,name=job_ids,json=jobIds,proto3" json:"job_ids,omitempty"` + Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobCancelRequest) Reset() { *m = JobCancelRequest{} } -func (m *JobCancelRequest) String() string { return proto.CompactTextString(m) } -func (*JobCancelRequest) ProtoMessage() {} -func (*JobCancelRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{5} -} -func (m *JobCancelRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobCancelRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobCancelRequest) Reset() { + *x = JobCancelRequest{} + mi := &file_pkg_api_submit_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobCancelRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobCancelRequest.Merge(m, src) -} -func (m *JobCancelRequest) XXX_Size() int { - return m.Size() + +func (x *JobCancelRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobCancelRequest) XXX_DiscardUnknown() { - xxx_messageInfo_JobCancelRequest.DiscardUnknown(m) + +func (*JobCancelRequest) ProtoMessage() {} + +func (x *JobCancelRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobCancelRequest proto.InternalMessageInfo +// Deprecated: Use JobCancelRequest.ProtoReflect.Descriptor instead. +func (*JobCancelRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{5} +} -func (m *JobCancelRequest) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobCancelRequest) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobCancelRequest) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobCancelRequest) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobCancelRequest) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobCancelRequest) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobCancelRequest) GetJobIds() []string { - if m != nil { - return m.JobIds +func (x *JobCancelRequest) GetJobIds() []string { + if x != nil { + return x.JobIds } return nil } -func (m *JobCancelRequest) GetReason() string { - if m != nil { - return m.Reason +func (x *JobCancelRequest) GetReason() string { + if x != nil { + return x.Reason } return "" } // swagger:model type JobSetCancelRequest struct { - JobSetId string `protobuf:"bytes,1,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"` - Filter *JobSetFilter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobSetId string `protobuf:"bytes,1,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"` + Filter *JobSetFilter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobSetCancelRequest) Reset() { *m = JobSetCancelRequest{} } -func (m *JobSetCancelRequest) String() string { return proto.CompactTextString(m) } -func (*JobSetCancelRequest) ProtoMessage() {} -func (*JobSetCancelRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{6} -} -func (m *JobSetCancelRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobSetCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobSetCancelRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobSetCancelRequest) Reset() { + *x = JobSetCancelRequest{} + mi := &file_pkg_api_submit_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobSetCancelRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobSetCancelRequest.Merge(m, src) -} -func (m *JobSetCancelRequest) XXX_Size() int { - return m.Size() + +func (x *JobSetCancelRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobSetCancelRequest) XXX_DiscardUnknown() { - xxx_messageInfo_JobSetCancelRequest.DiscardUnknown(m) + +func (*JobSetCancelRequest) ProtoMessage() {} + +func (x *JobSetCancelRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobSetCancelRequest proto.InternalMessageInfo +// Deprecated: Use JobSetCancelRequest.ProtoReflect.Descriptor instead. +func (*JobSetCancelRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{6} +} -func (m *JobSetCancelRequest) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobSetCancelRequest) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobSetCancelRequest) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobSetCancelRequest) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobSetCancelRequest) GetFilter() *JobSetFilter { - if m != nil { - return m.Filter +func (x *JobSetCancelRequest) GetFilter() *JobSetFilter { + if x != nil { + return x.Filter } return nil } -func (m *JobSetCancelRequest) GetReason() string { - if m != nil { - return m.Reason +func (x *JobSetCancelRequest) GetReason() string { + if x != nil { + return x.Reason } return "" } // swagger:model type JobSetFilter struct { - States []JobState `protobuf:"varint,1,rep,packed,name=states,proto3,enum=api.JobState" json:"states,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + States []JobState `protobuf:"varint,1,rep,packed,name=states,proto3,enum=api.JobState" json:"states,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobSetFilter) Reset() { *m = JobSetFilter{} } -func (m *JobSetFilter) String() string { return proto.CompactTextString(m) } -func (*JobSetFilter) ProtoMessage() {} -func (*JobSetFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{7} -} -func (m *JobSetFilter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobSetFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobSetFilter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobSetFilter) Reset() { + *x = JobSetFilter{} + mi := &file_pkg_api_submit_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobSetFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobSetFilter.Merge(m, src) -} -func (m *JobSetFilter) XXX_Size() int { - return m.Size() + +func (x *JobSetFilter) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobSetFilter) XXX_DiscardUnknown() { - xxx_messageInfo_JobSetFilter.DiscardUnknown(m) + +func (*JobSetFilter) ProtoMessage() {} + +func (x *JobSetFilter) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobSetFilter proto.InternalMessageInfo +// Deprecated: Use JobSetFilter.ProtoReflect.Descriptor instead. +func (*JobSetFilter) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{7} +} -func (m *JobSetFilter) GetStates() []JobState { - if m != nil { - return m.States +func (x *JobSetFilter) GetStates() []JobState { + if x != nil { + return x.States } return nil } type Job struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ClientId string `protobuf:"bytes,13,opt,name=client_id,json=clientId,proto3" json:"clientId,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - Namespace string `protobuf:"bytes,7,opt,name=namespace,proto3" json:"namespace,omitempty"` - Labels map[string]string `protobuf:"bytes,9,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Annotations map[string]string `protobuf:"bytes,10,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - RequiredNodeLabels map[string]string `protobuf:"bytes,11,rep,name=required_node_labels,json=requiredNodeLabels,proto3" json:"requiredNodeLabels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Deprecated: Do not use. + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ClientId string `protobuf:"bytes,13,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + Namespace string `protobuf:"bytes,7,opt,name=namespace,proto3" json:"namespace,omitempty"` + Labels map[string]string `protobuf:"bytes,9,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Annotations map[string]string `protobuf:"bytes,10,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + // Deprecated: Marked as deprecated in pkg/api/submit.proto. + RequiredNodeLabels map[string]string `protobuf:"bytes,11,rep,name=required_node_labels,json=requiredNodeLabels,proto3" json:"required_node_labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` Owner string `protobuf:"bytes,8,opt,name=owner,proto3" json:"owner,omitempty"` - QueueOwnershipUserGroups []string `protobuf:"bytes,15,rep,name=queue_ownership_user_groups,json=queueOwnershipUserGroups,proto3" json:"queueOwnershipUserGroups,omitempty"` - CompressedQueueOwnershipUserGroups []byte `protobuf:"bytes,19,opt,name=compressed_queue_ownership_user_groups,json=compressedQueueOwnershipUserGroups,proto3" json:"compressedQueueOwnershipUserGroups,omitempty"` + QueueOwnershipUserGroups []string `protobuf:"bytes,15,rep,name=queue_ownership_user_groups,json=queueOwnershipUserGroups,proto3" json:"queue_ownership_user_groups,omitempty"` + CompressedQueueOwnershipUserGroups []byte `protobuf:"bytes,19,opt,name=compressed_queue_ownership_user_groups,json=compressedQueueOwnershipUserGroups,proto3" json:"compressed_queue_ownership_user_groups,omitempty"` Priority float64 `protobuf:"fixed64,4,opt,name=priority,proto3" json:"priority,omitempty"` - PodSpec *v1.PodSpec `protobuf:"bytes,5,opt,name=pod_spec,json=podSpec,proto3" json:"podSpec,omitempty"` // Deprecated: Do not use. - PodSpecs []*v1.PodSpec `protobuf:"bytes,12,rep,name=pod_specs,json=podSpecs,proto3" json:"podSpecs,omitempty"` + // Deprecated: Marked as deprecated in pkg/api/submit.proto. + PodSpec *v1.PodSpec `protobuf:"bytes,5,opt,name=pod_spec,json=podSpec,proto3" json:"pod_spec,omitempty"` // Use PodSpecs instead + PodSpecs []*v1.PodSpec `protobuf:"bytes,12,rep,name=pod_specs,json=podSpecs,proto3" json:"pod_specs,omitempty"` // Resource requests and limits necessary for scheduling the main pod of this job. // The requests and limits herein are set to: // @@ -755,12123 +819,2298 @@ type Job struct { // This is because containers run in parallel, whereas initContainers run serially. // This field is populated automatically at submission. // Submitting a job with this field already populated results in an error. - SchedulingResourceRequirements *v1.ResourceRequirements `protobuf:"bytes,21,opt,name=scheduling_resource_requirements,json=schedulingResourceRequirements,proto3" json:"schedulingResourceRequirements,omitempty"` - Created *types.Timestamp `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"` + SchedulingResourceRequirements *v1.ResourceRequirements `protobuf:"bytes,21,opt,name=scheduling_resource_requirements,json=schedulingResourceRequirements,proto3" json:"scheduling_resource_requirements,omitempty"` + Created *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"` // Services can be provided either as Armada-specific config objects or as proper k8s objects. // These options are exclusive, i.e., if either ingress or services is provided, // then neither of k8s_ingress or k8s_service can be provided, and vice versa. Ingress []*IngressConfig `protobuf:"bytes,14,rep,name=ingress,proto3" json:"ingress,omitempty"` Services []*ServiceConfig `protobuf:"bytes,16,rep,name=services,proto3" json:"services,omitempty"` - K8SIngress []*v11.Ingress `protobuf:"bytes,17,rep,name=k8s_ingress,json=k8sIngress,proto3" json:"k8sIngress,omitempty"` - K8SService []*v1.Service `protobuf:"bytes,18,rep,name=k8s_service,json=k8sService,proto3" json:"k8sService,omitempty"` + K8SIngress []*v11.Ingress `protobuf:"bytes,17,rep,name=k8s_ingress,json=k8sIngress,proto3" json:"k8s_ingress,omitempty"` + K8SService []*v1.Service `protobuf:"bytes,18,rep,name=k8s_service,json=k8sService,proto3" json:"k8s_service,omitempty"` // Indicates which scheduler should manage this job. // If empty, the default scheduler is used. - Scheduler string `protobuf:"bytes,20,opt,name=scheduler,proto3" json:"scheduler,omitempty"` + Scheduler string `protobuf:"bytes,20,opt,name=scheduler,proto3" json:"scheduler,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *Job) Reset() { *m = Job{} } -func (m *Job) String() string { return proto.CompactTextString(m) } -func (*Job) ProtoMessage() {} -func (*Job) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{8} -} -func (m *Job) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Job) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Job.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Job) XXX_Merge(src proto.Message) { - xxx_messageInfo_Job.Merge(m, src) +func (x *Job) Reset() { + *x = Job{} + mi := &file_pkg_api_submit_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *Job) XXX_Size() int { - return m.Size() + +func (x *Job) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Job) XXX_DiscardUnknown() { - xxx_messageInfo_Job.DiscardUnknown(m) + +func (*Job) ProtoMessage() {} + +func (x *Job) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Job proto.InternalMessageInfo +// Deprecated: Use Job.ProtoReflect.Descriptor instead. +func (*Job) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{8} +} -func (m *Job) GetId() string { - if m != nil { - return m.Id +func (x *Job) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *Job) GetClientId() string { - if m != nil { - return m.ClientId +func (x *Job) GetClientId() string { + if x != nil { + return x.ClientId } return "" } -func (m *Job) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *Job) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *Job) GetQueue() string { - if m != nil { - return m.Queue +func (x *Job) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *Job) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *Job) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *Job) GetLabels() map[string]string { - if m != nil { - return m.Labels +func (x *Job) GetLabels() map[string]string { + if x != nil { + return x.Labels } return nil } -func (m *Job) GetAnnotations() map[string]string { - if m != nil { - return m.Annotations +func (x *Job) GetAnnotations() map[string]string { + if x != nil { + return x.Annotations } return nil } -// Deprecated: Do not use. -func (m *Job) GetRequiredNodeLabels() map[string]string { - if m != nil { - return m.RequiredNodeLabels +// Deprecated: Marked as deprecated in pkg/api/submit.proto. +func (x *Job) GetRequiredNodeLabels() map[string]string { + if x != nil { + return x.RequiredNodeLabels } return nil } -func (m *Job) GetOwner() string { - if m != nil { - return m.Owner +func (x *Job) GetOwner() string { + if x != nil { + return x.Owner } return "" } -func (m *Job) GetQueueOwnershipUserGroups() []string { - if m != nil { - return m.QueueOwnershipUserGroups +func (x *Job) GetQueueOwnershipUserGroups() []string { + if x != nil { + return x.QueueOwnershipUserGroups } return nil } -func (m *Job) GetCompressedQueueOwnershipUserGroups() []byte { - if m != nil { - return m.CompressedQueueOwnershipUserGroups +func (x *Job) GetCompressedQueueOwnershipUserGroups() []byte { + if x != nil { + return x.CompressedQueueOwnershipUserGroups } return nil } -func (m *Job) GetPriority() float64 { - if m != nil { - return m.Priority +func (x *Job) GetPriority() float64 { + if x != nil { + return x.Priority } return 0 } -// Deprecated: Do not use. -func (m *Job) GetPodSpec() *v1.PodSpec { - if m != nil { - return m.PodSpec +// Deprecated: Marked as deprecated in pkg/api/submit.proto. +func (x *Job) GetPodSpec() *v1.PodSpec { + if x != nil { + return x.PodSpec } return nil } -func (m *Job) GetPodSpecs() []*v1.PodSpec { - if m != nil { - return m.PodSpecs +func (x *Job) GetPodSpecs() []*v1.PodSpec { + if x != nil { + return x.PodSpecs } return nil } -func (m *Job) GetSchedulingResourceRequirements() *v1.ResourceRequirements { - if m != nil { - return m.SchedulingResourceRequirements +func (x *Job) GetSchedulingResourceRequirements() *v1.ResourceRequirements { + if x != nil { + return x.SchedulingResourceRequirements } return nil } -func (m *Job) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *Job) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *Job) GetIngress() []*IngressConfig { - if m != nil { - return m.Ingress +func (x *Job) GetIngress() []*IngressConfig { + if x != nil { + return x.Ingress } return nil } -func (m *Job) GetServices() []*ServiceConfig { - if m != nil { - return m.Services +func (x *Job) GetServices() []*ServiceConfig { + if x != nil { + return x.Services } return nil } -func (m *Job) GetK8SIngress() []*v11.Ingress { - if m != nil { - return m.K8SIngress +func (x *Job) GetK8SIngress() []*v11.Ingress { + if x != nil { + return x.K8SIngress } return nil } -func (m *Job) GetK8SService() []*v1.Service { - if m != nil { - return m.K8SService +func (x *Job) GetK8SService() []*v1.Service { + if x != nil { + return x.K8SService } return nil } -func (m *Job) GetScheduler() string { - if m != nil { - return m.Scheduler +func (x *Job) GetScheduler() string { + if x != nil { + return x.Scheduler } return "" } // swagger:model type JobReprioritizeRequest struct { - JobIds []string `protobuf:"bytes,1,rep,name=job_ids,json=jobIds,proto3" json:"jobIds,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` - NewPriority float64 `protobuf:"fixed64,4,opt,name=new_priority,json=newPriority,proto3" json:"newPriority,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobIds []string `protobuf:"bytes,1,rep,name=job_ids,json=jobIds,proto3" json:"job_ids,omitempty"` + JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` + Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` + NewPriority float64 `protobuf:"fixed64,4,opt,name=new_priority,json=newPriority,proto3" json:"new_priority,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobReprioritizeRequest) Reset() { *m = JobReprioritizeRequest{} } -func (m *JobReprioritizeRequest) String() string { return proto.CompactTextString(m) } -func (*JobReprioritizeRequest) ProtoMessage() {} -func (*JobReprioritizeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{9} -} -func (m *JobReprioritizeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobReprioritizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobReprioritizeRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobReprioritizeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobReprioritizeRequest.Merge(m, src) +func (x *JobReprioritizeRequest) Reset() { + *x = JobReprioritizeRequest{} + mi := &file_pkg_api_submit_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobReprioritizeRequest) XXX_Size() int { - return m.Size() + +func (x *JobReprioritizeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobReprioritizeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_JobReprioritizeRequest.DiscardUnknown(m) + +func (*JobReprioritizeRequest) ProtoMessage() {} + +func (x *JobReprioritizeRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobReprioritizeRequest proto.InternalMessageInfo +// Deprecated: Use JobReprioritizeRequest.ProtoReflect.Descriptor instead. +func (*JobReprioritizeRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{9} +} -func (m *JobReprioritizeRequest) GetJobIds() []string { - if m != nil { - return m.JobIds +func (x *JobReprioritizeRequest) GetJobIds() []string { + if x != nil { + return x.JobIds } return nil } -func (m *JobReprioritizeRequest) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *JobReprioritizeRequest) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *JobReprioritizeRequest) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobReprioritizeRequest) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobReprioritizeRequest) GetNewPriority() float64 { - if m != nil { - return m.NewPriority +func (x *JobReprioritizeRequest) GetNewPriority() float64 { + if x != nil { + return x.NewPriority } return 0 } // swagger:model type JobReprioritizeResponse struct { - ReprioritizationResults map[string]string `protobuf:"bytes,1,rep,name=reprioritization_results,json=reprioritizationResults,proto3" json:"reprioritizationResults,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + state protoimpl.MessageState `protogen:"open.v1"` + ReprioritizationResults map[string]string `protobuf:"bytes,1,rep,name=reprioritization_results,json=reprioritizationResults,proto3" json:"reprioritization_results,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobReprioritizeResponse) Reset() { *m = JobReprioritizeResponse{} } -func (m *JobReprioritizeResponse) String() string { return proto.CompactTextString(m) } -func (*JobReprioritizeResponse) ProtoMessage() {} -func (*JobReprioritizeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{10} -} -func (m *JobReprioritizeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobReprioritizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobReprioritizeResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobReprioritizeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobReprioritizeResponse.Merge(m, src) +func (x *JobReprioritizeResponse) Reset() { + *x = JobReprioritizeResponse{} + mi := &file_pkg_api_submit_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobReprioritizeResponse) XXX_Size() int { - return m.Size() + +func (x *JobReprioritizeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobReprioritizeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_JobReprioritizeResponse.DiscardUnknown(m) + +func (*JobReprioritizeResponse) ProtoMessage() {} + +func (x *JobReprioritizeResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobReprioritizeResponse proto.InternalMessageInfo +// Deprecated: Use JobReprioritizeResponse.ProtoReflect.Descriptor instead. +func (*JobReprioritizeResponse) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{10} +} -func (m *JobReprioritizeResponse) GetReprioritizationResults() map[string]string { - if m != nil { - return m.ReprioritizationResults +func (x *JobReprioritizeResponse) GetReprioritizationResults() map[string]string { + if x != nil { + return x.ReprioritizationResults } return nil } type JobSubmitResponseItem struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobSubmitResponseItem) Reset() { *m = JobSubmitResponseItem{} } -func (m *JobSubmitResponseItem) String() string { return proto.CompactTextString(m) } -func (*JobSubmitResponseItem) ProtoMessage() {} -func (*JobSubmitResponseItem) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{11} -} -func (m *JobSubmitResponseItem) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobSubmitResponseItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobSubmitResponseItem.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobSubmitResponseItem) Reset() { + *x = JobSubmitResponseItem{} + mi := &file_pkg_api_submit_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobSubmitResponseItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobSubmitResponseItem.Merge(m, src) -} -func (m *JobSubmitResponseItem) XXX_Size() int { - return m.Size() + +func (x *JobSubmitResponseItem) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobSubmitResponseItem) XXX_DiscardUnknown() { - xxx_messageInfo_JobSubmitResponseItem.DiscardUnknown(m) + +func (*JobSubmitResponseItem) ProtoMessage() {} + +func (x *JobSubmitResponseItem) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobSubmitResponseItem proto.InternalMessageInfo +// Deprecated: Use JobSubmitResponseItem.ProtoReflect.Descriptor instead. +func (*JobSubmitResponseItem) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{11} +} -func (m *JobSubmitResponseItem) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobSubmitResponseItem) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobSubmitResponseItem) GetError() string { - if m != nil { - return m.Error +func (x *JobSubmitResponseItem) GetError() string { + if x != nil { + return x.Error } return "" } // swagger:model type JobSubmitResponse struct { - JobResponseItems []*JobSubmitResponseItem `protobuf:"bytes,1,rep,name=job_response_items,json=jobResponseItems,proto3" json:"jobResponseItems,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobResponseItems []*JobSubmitResponseItem `protobuf:"bytes,1,rep,name=job_response_items,json=jobResponseItems,proto3" json:"job_response_items,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobSubmitResponse) Reset() { *m = JobSubmitResponse{} } -func (m *JobSubmitResponse) String() string { return proto.CompactTextString(m) } -func (*JobSubmitResponse) ProtoMessage() {} -func (*JobSubmitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{12} -} -func (m *JobSubmitResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobSubmitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobSubmitResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobSubmitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobSubmitResponse.Merge(m, src) +func (x *JobSubmitResponse) Reset() { + *x = JobSubmitResponse{} + mi := &file_pkg_api_submit_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobSubmitResponse) XXX_Size() int { - return m.Size() + +func (x *JobSubmitResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobSubmitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_JobSubmitResponse.DiscardUnknown(m) + +func (*JobSubmitResponse) ProtoMessage() {} + +func (x *JobSubmitResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobSubmitResponse proto.InternalMessageInfo +// Deprecated: Use JobSubmitResponse.ProtoReflect.Descriptor instead. +func (*JobSubmitResponse) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{12} +} -func (m *JobSubmitResponse) GetJobResponseItems() []*JobSubmitResponseItem { - if m != nil { - return m.JobResponseItems +func (x *JobSubmitResponse) GetJobResponseItems() []*JobSubmitResponseItem { + if x != nil { + return x.JobResponseItems } return nil } // swagger:model type Queue struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - PriorityFactor float64 `protobuf:"fixed64,2,opt,name=priority_factor,json=priorityFactor,proto3" json:"priorityFactor,omitempty"` - UserOwners []string `protobuf:"bytes,3,rep,name=user_owners,json=userOwners,proto3" json:"userOwners,omitempty"` - GroupOwners []string `protobuf:"bytes,4,rep,name=group_owners,json=groupOwners,proto3" json:"groupOwners,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + PriorityFactor float64 `protobuf:"fixed64,2,opt,name=priority_factor,json=priorityFactor,proto3" json:"priority_factor,omitempty"` + UserOwners []string `protobuf:"bytes,3,rep,name=user_owners,json=userOwners,proto3" json:"user_owners,omitempty"` + GroupOwners []string `protobuf:"bytes,4,rep,name=group_owners,json=groupOwners,proto3" json:"group_owners,omitempty"` // These are ignored and should be removed - ResourceLimits map[string]float64 `protobuf:"bytes,5,rep,name=resource_limits,json=resourceLimits,proto3" json:"resourceLimits,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"` // Deprecated: Do not use. + // + // Deprecated: Marked as deprecated in pkg/api/submit.proto. + ResourceLimits map[string]float64 `protobuf:"bytes,5,rep,name=resource_limits,json=resourceLimits,proto3" json:"resource_limits,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` // Map from priority class name to resource limit overrides for this queue and priority class. // If provided for a priority class, global limits for that priority class do not apply to this queue. - ResourceLimitsByPriorityClassName map[string]*PriorityClassResourceLimits `protobuf:"bytes,7,rep,name=resource_limits_by_priority_class_name,json=resourceLimitsByPriorityClassName,proto3" json:"resourceLimitsByPriorityClassName,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ResourceLimitsByPriorityClassName map[string]*PriorityClassResourceLimits `protobuf:"bytes,7,rep,name=resource_limits_by_priority_class_name,json=resourceLimitsByPriorityClassName,proto3" json:"resource_limits_by_priority_class_name,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` Permissions []*Queue_Permissions `protobuf:"bytes,6,rep,name=permissions,proto3" json:"permissions,omitempty"` // Determines whether scheduling is enabled for this queue. Cordoned bool `protobuf:"varint,8,opt,name=cordoned,proto3" json:"cordoned,omitempty"` // A list of Kubernetes-like key-value labels, e.g. armadaproject.io/priority=critical - LabelsDeprecated []string `protobuf:"bytes,9,rep,name=labels_deprecated,json=labelsDeprecated,proto3" json:"labelsDeprecated,omitempty"` // Deprecated: Do not use. - Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // + // Deprecated: Marked as deprecated in pkg/api/submit.proto. + LabelsDeprecated []string `protobuf:"bytes,9,rep,name=labels_deprecated,json=labelsDeprecated,proto3" json:"labels_deprecated,omitempty"` + Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *Queue) Reset() { *m = Queue{} } -func (m *Queue) String() string { return proto.CompactTextString(m) } -func (*Queue) ProtoMessage() {} -func (*Queue) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{13} -} -func (m *Queue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Queue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Queue.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *Queue) Reset() { + *x = Queue{} + mi := &file_pkg_api_submit_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *Queue) XXX_Merge(src proto.Message) { - xxx_messageInfo_Queue.Merge(m, src) -} -func (m *Queue) XXX_Size() int { - return m.Size() + +func (x *Queue) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Queue) XXX_DiscardUnknown() { - xxx_messageInfo_Queue.DiscardUnknown(m) + +func (*Queue) ProtoMessage() {} + +func (x *Queue) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Queue proto.InternalMessageInfo +// Deprecated: Use Queue.ProtoReflect.Descriptor instead. +func (*Queue) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{13} +} -func (m *Queue) GetName() string { - if m != nil { - return m.Name +func (x *Queue) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *Queue) GetPriorityFactor() float64 { - if m != nil { - return m.PriorityFactor +func (x *Queue) GetPriorityFactor() float64 { + if x != nil { + return x.PriorityFactor } return 0 } -func (m *Queue) GetUserOwners() []string { - if m != nil { - return m.UserOwners +func (x *Queue) GetUserOwners() []string { + if x != nil { + return x.UserOwners } return nil } -func (m *Queue) GetGroupOwners() []string { - if m != nil { - return m.GroupOwners +func (x *Queue) GetGroupOwners() []string { + if x != nil { + return x.GroupOwners } return nil } -// Deprecated: Do not use. -func (m *Queue) GetResourceLimits() map[string]float64 { - if m != nil { - return m.ResourceLimits +// Deprecated: Marked as deprecated in pkg/api/submit.proto. +func (x *Queue) GetResourceLimits() map[string]float64 { + if x != nil { + return x.ResourceLimits } return nil } -func (m *Queue) GetResourceLimitsByPriorityClassName() map[string]*PriorityClassResourceLimits { - if m != nil { - return m.ResourceLimitsByPriorityClassName +func (x *Queue) GetResourceLimitsByPriorityClassName() map[string]*PriorityClassResourceLimits { + if x != nil { + return x.ResourceLimitsByPriorityClassName } return nil } -func (m *Queue) GetPermissions() []*Queue_Permissions { - if m != nil { - return m.Permissions +func (x *Queue) GetPermissions() []*Queue_Permissions { + if x != nil { + return x.Permissions } return nil } -func (m *Queue) GetCordoned() bool { - if m != nil { - return m.Cordoned +func (x *Queue) GetCordoned() bool { + if x != nil { + return x.Cordoned } return false } -// Deprecated: Do not use. -func (m *Queue) GetLabelsDeprecated() []string { - if m != nil { - return m.LabelsDeprecated +// Deprecated: Marked as deprecated in pkg/api/submit.proto. +func (x *Queue) GetLabelsDeprecated() []string { + if x != nil { + return x.LabelsDeprecated } return nil } -func (m *Queue) GetLabels() map[string]string { - if m != nil { - return m.Labels +func (x *Queue) GetLabels() map[string]string { + if x != nil { + return x.Labels } return nil } -type Queue_Permissions struct { - Subjects []*Queue_Permissions_Subject `protobuf:"bytes,1,rep,name=subjects,proto3" json:"subjects,omitempty"` - Verbs []string `protobuf:"bytes,2,rep,name=verbs,proto3" json:"verbs,omitempty"` +type PriorityClassResourceLimits struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Limits resources assigned to jobs of this priority class. + // Specifically, jobs of this priority class are only scheduled if doing so does not exceed this limit. + MaximumResourceFraction map[string]float64 `protobuf:"bytes,1,rep,name=maximum_resource_fraction,json=maximumResourceFraction,proto3" json:"maximum_resource_fraction,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` + // Per-pool override of maximum_resource_fraction. + // If missing for a particular pool, maximum_resource_fraction is used instead for that pool. + MaximumResourceFractionByPool map[string]*PriorityClassPoolResourceLimits `protobuf:"bytes,2,rep,name=maximum_resource_fraction_by_pool,json=maximumResourceFractionByPool,proto3" json:"maximum_resource_fraction_by_pool,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *Queue_Permissions) Reset() { *m = Queue_Permissions{} } -func (m *Queue_Permissions) String() string { return proto.CompactTextString(m) } -func (*Queue_Permissions) ProtoMessage() {} -func (*Queue_Permissions) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{13, 0} -} -func (m *Queue_Permissions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Queue_Permissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Queue_Permissions.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Queue_Permissions) XXX_Merge(src proto.Message) { - xxx_messageInfo_Queue_Permissions.Merge(m, src) +func (x *PriorityClassResourceLimits) Reset() { + *x = PriorityClassResourceLimits{} + mi := &file_pkg_api_submit_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *Queue_Permissions) XXX_Size() int { - return m.Size() + +func (x *PriorityClassResourceLimits) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Queue_Permissions) XXX_DiscardUnknown() { - xxx_messageInfo_Queue_Permissions.DiscardUnknown(m) + +func (*PriorityClassResourceLimits) ProtoMessage() {} + +func (x *PriorityClassResourceLimits) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Queue_Permissions proto.InternalMessageInfo +// Deprecated: Use PriorityClassResourceLimits.ProtoReflect.Descriptor instead. +func (*PriorityClassResourceLimits) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{14} +} -func (m *Queue_Permissions) GetSubjects() []*Queue_Permissions_Subject { - if m != nil { - return m.Subjects +func (x *PriorityClassResourceLimits) GetMaximumResourceFraction() map[string]float64 { + if x != nil { + return x.MaximumResourceFraction } return nil } -func (m *Queue_Permissions) GetVerbs() []string { - if m != nil { - return m.Verbs +func (x *PriorityClassResourceLimits) GetMaximumResourceFractionByPool() map[string]*PriorityClassPoolResourceLimits { + if x != nil { + return x.MaximumResourceFractionByPool } return nil } -type Queue_Permissions_Subject struct { - Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +type PriorityClassPoolResourceLimits struct { + state protoimpl.MessageState `protogen:"open.v1"` + MaximumResourceFraction map[string]float64 `protobuf:"bytes,1,rep,name=maximum_resource_fraction,json=maximumResourceFraction,proto3" json:"maximum_resource_fraction,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *Queue_Permissions_Subject) Reset() { *m = Queue_Permissions_Subject{} } -func (m *Queue_Permissions_Subject) String() string { return proto.CompactTextString(m) } -func (*Queue_Permissions_Subject) ProtoMessage() {} -func (*Queue_Permissions_Subject) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{13, 0, 0} -} -func (m *Queue_Permissions_Subject) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Queue_Permissions_Subject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Queue_Permissions_Subject.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *PriorityClassPoolResourceLimits) Reset() { + *x = PriorityClassPoolResourceLimits{} + mi := &file_pkg_api_submit_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PriorityClassPoolResourceLimits) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PriorityClassPoolResourceLimits) ProtoMessage() {} + +func (x *PriorityClassPoolResourceLimits) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *Queue_Permissions_Subject) XXX_Merge(src proto.Message) { - xxx_messageInfo_Queue_Permissions_Subject.Merge(m, src) + +// Deprecated: Use PriorityClassPoolResourceLimits.ProtoReflect.Descriptor instead. +func (*PriorityClassPoolResourceLimits) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{15} } -func (m *Queue_Permissions_Subject) XXX_Size() int { - return m.Size() + +func (x *PriorityClassPoolResourceLimits) GetMaximumResourceFraction() map[string]float64 { + if x != nil { + return x.MaximumResourceFraction + } + return nil } -func (m *Queue_Permissions_Subject) XXX_DiscardUnknown() { - xxx_messageInfo_Queue_Permissions_Subject.DiscardUnknown(m) + +// swagger:model +type QueueList struct { + state protoimpl.MessageState `protogen:"open.v1"` + Queues []*Queue `protobuf:"bytes,1,rep,name=queues,proto3" json:"queues,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var xxx_messageInfo_Queue_Permissions_Subject proto.InternalMessageInfo +func (x *QueueList) Reset() { + *x = QueueList{} + mi := &file_pkg_api_submit_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -func (m *Queue_Permissions_Subject) GetKind() string { - if m != nil { - return m.Kind - } - return "" +func (x *QueueList) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Queue_Permissions_Subject) GetName() string { - if m != nil { - return m.Name +func (*QueueList) ProtoMessage() {} + +func (x *QueueList) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -type PriorityClassResourceLimits struct { - // Limits resources assigned to jobs of this priority class. - // Specifically, jobs of this priority class are only scheduled if doing so does not exceed this limit. - MaximumResourceFraction map[string]float64 `protobuf:"bytes,1,rep,name=maximum_resource_fraction,json=maximumResourceFraction,proto3" json:"maximumResourceFraction,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"` - // Per-pool override of maximum_resource_fraction. - // If missing for a particular pool, maximum_resource_fraction is used instead for that pool. - MaximumResourceFractionByPool map[string]*PriorityClassPoolResourceLimits `protobuf:"bytes,2,rep,name=maximum_resource_fraction_by_pool,json=maximumResourceFractionByPool,proto3" json:"maximumResourceFractionByPool,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +// Deprecated: Use QueueList.ProtoReflect.Descriptor instead. +func (*QueueList) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{16} } -func (m *PriorityClassResourceLimits) Reset() { *m = PriorityClassResourceLimits{} } -func (m *PriorityClassResourceLimits) String() string { return proto.CompactTextString(m) } -func (*PriorityClassResourceLimits) ProtoMessage() {} -func (*PriorityClassResourceLimits) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{14} -} -func (m *PriorityClassResourceLimits) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PriorityClassResourceLimits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PriorityClassResourceLimits.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *QueueList) GetQueues() []*Queue { + if x != nil { + return x.Queues } + return nil } -func (m *PriorityClassResourceLimits) XXX_Merge(src proto.Message) { - xxx_messageInfo_PriorityClassResourceLimits.Merge(m, src) + +// swagger:model +type CancellationResult struct { + state protoimpl.MessageState `protogen:"open.v1"` + CancelledIds []string `protobuf:"bytes,1,rep,name=cancelled_ids,json=cancelledIds,proto3" json:"cancelled_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PriorityClassResourceLimits) XXX_Size() int { - return m.Size() + +func (x *CancellationResult) Reset() { + *x = CancellationResult{} + mi := &file_pkg_api_submit_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PriorityClassResourceLimits) XXX_DiscardUnknown() { - xxx_messageInfo_PriorityClassResourceLimits.DiscardUnknown(m) + +func (x *CancellationResult) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_PriorityClassResourceLimits proto.InternalMessageInfo +func (*CancellationResult) ProtoMessage() {} -func (m *PriorityClassResourceLimits) GetMaximumResourceFraction() map[string]float64 { - if m != nil { - return m.MaximumResourceFraction +func (x *CancellationResult) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) +} + +// Deprecated: Use CancellationResult.ProtoReflect.Descriptor instead. +func (*CancellationResult) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{17} } -func (m *PriorityClassResourceLimits) GetMaximumResourceFractionByPool() map[string]*PriorityClassPoolResourceLimits { - if m != nil { - return m.MaximumResourceFractionByPool +func (x *CancellationResult) GetCancelledIds() []string { + if x != nil { + return x.CancelledIds } return nil } -type PriorityClassPoolResourceLimits struct { - MaximumResourceFraction map[string]float64 `protobuf:"bytes,1,rep,name=maximum_resource_fraction,json=maximumResourceFraction,proto3" json:"maximumResourceFraction,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"` +//swagger:model +type QueueGetRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PriorityClassPoolResourceLimits) Reset() { *m = PriorityClassPoolResourceLimits{} } -func (m *PriorityClassPoolResourceLimits) String() string { return proto.CompactTextString(m) } -func (*PriorityClassPoolResourceLimits) ProtoMessage() {} -func (*PriorityClassPoolResourceLimits) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{15} -} -func (m *PriorityClassPoolResourceLimits) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PriorityClassPoolResourceLimits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PriorityClassPoolResourceLimits.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *PriorityClassPoolResourceLimits) XXX_Merge(src proto.Message) { - xxx_messageInfo_PriorityClassPoolResourceLimits.Merge(m, src) -} -func (m *PriorityClassPoolResourceLimits) XXX_Size() int { - return m.Size() +func (x *QueueGetRequest) Reset() { + *x = QueueGetRequest{} + mi := &file_pkg_api_submit_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PriorityClassPoolResourceLimits) XXX_DiscardUnknown() { - xxx_messageInfo_PriorityClassPoolResourceLimits.DiscardUnknown(m) -} - -var xxx_messageInfo_PriorityClassPoolResourceLimits proto.InternalMessageInfo -func (m *PriorityClassPoolResourceLimits) GetMaximumResourceFraction() map[string]float64 { - if m != nil { - return m.MaximumResourceFraction - } - return nil +func (x *QueueGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -// swagger:model -type QueueList struct { - Queues []*Queue `protobuf:"bytes,1,rep,name=queues,proto3" json:"queues,omitempty"` -} +func (*QueueGetRequest) ProtoMessage() {} -func (m *QueueList) Reset() { *m = QueueList{} } -func (m *QueueList) String() string { return proto.CompactTextString(m) } -func (*QueueList) ProtoMessage() {} -func (*QueueList) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{16} -} -func (m *QueueList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueueList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueueList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *QueueGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *QueueList) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueueList.Merge(m, src) -} -func (m *QueueList) XXX_Size() int { - return m.Size() -} -func (m *QueueList) XXX_DiscardUnknown() { - xxx_messageInfo_QueueList.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_QueueList proto.InternalMessageInfo +// Deprecated: Use QueueGetRequest.ProtoReflect.Descriptor instead. +func (*QueueGetRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{18} +} -func (m *QueueList) GetQueues() []*Queue { - if m != nil { - return m.Queues +func (x *QueueGetRequest) GetName() string { + if x != nil { + return x.Name } - return nil + return "" } -// swagger:model -type CancellationResult struct { - CancelledIds []string `protobuf:"bytes,1,rep,name=cancelled_ids,json=cancelledIds,proto3" json:"cancelledIds,omitempty"` +//swagger:model +type QueueCordonRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *CancellationResult) Reset() { *m = CancellationResult{} } -func (m *CancellationResult) String() string { return proto.CompactTextString(m) } -func (*CancellationResult) ProtoMessage() {} -func (*CancellationResult) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{17} -} -func (m *CancellationResult) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancellationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancellationResult.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *CancellationResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancellationResult.Merge(m, src) -} -func (m *CancellationResult) XXX_Size() int { - return m.Size() +func (x *QueueCordonRequest) Reset() { + *x = QueueCordonRequest{} + mi := &file_pkg_api_submit_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CancellationResult) XXX_DiscardUnknown() { - xxx_messageInfo_CancellationResult.DiscardUnknown(m) -} - -var xxx_messageInfo_CancellationResult proto.InternalMessageInfo -func (m *CancellationResult) GetCancelledIds() []string { - if m != nil { - return m.CancelledIds - } - return nil +func (x *QueueCordonRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -//swagger:model -type QueueGetRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} +func (*QueueCordonRequest) ProtoMessage() {} -func (m *QueueGetRequest) Reset() { *m = QueueGetRequest{} } -func (m *QueueGetRequest) String() string { return proto.CompactTextString(m) } -func (*QueueGetRequest) ProtoMessage() {} -func (*QueueGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{18} -} -func (m *QueueGetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueueGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueueGetRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *QueueCordonRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *QueueGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueueGetRequest.Merge(m, src) -} -func (m *QueueGetRequest) XXX_Size() int { - return m.Size() -} -func (m *QueueGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueueGetRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_QueueGetRequest proto.InternalMessageInfo +// Deprecated: Use QueueCordonRequest.ProtoReflect.Descriptor instead. +func (*QueueCordonRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{19} +} -func (m *QueueGetRequest) GetName() string { - if m != nil { - return m.Name +func (x *QueueCordonRequest) GetName() string { + if x != nil { + return x.Name } return "" } //swagger:model -type QueueCordonRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +type QueueUncordonRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *QueueCordonRequest) Reset() { *m = QueueCordonRequest{} } -func (m *QueueCordonRequest) String() string { return proto.CompactTextString(m) } -func (*QueueCordonRequest) ProtoMessage() {} -func (*QueueCordonRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{19} -} -func (m *QueueCordonRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueueCordonRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueueCordonRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueueCordonRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueueCordonRequest.Merge(m, src) -} -func (m *QueueCordonRequest) XXX_Size() int { - return m.Size() +func (x *QueueUncordonRequest) Reset() { + *x = QueueUncordonRequest{} + mi := &file_pkg_api_submit_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *QueueCordonRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueueCordonRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueueCordonRequest proto.InternalMessageInfo -func (m *QueueCordonRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +func (x *QueueUncordonRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -//swagger:model -type QueueUncordonRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} +func (*QueueUncordonRequest) ProtoMessage() {} -func (m *QueueUncordonRequest) Reset() { *m = QueueUncordonRequest{} } -func (m *QueueUncordonRequest) String() string { return proto.CompactTextString(m) } -func (*QueueUncordonRequest) ProtoMessage() {} -func (*QueueUncordonRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{20} -} -func (m *QueueUncordonRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueueUncordonRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueueUncordonRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *QueueUncordonRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *QueueUncordonRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueueUncordonRequest.Merge(m, src) -} -func (m *QueueUncordonRequest) XXX_Size() int { - return m.Size() -} -func (m *QueueUncordonRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueueUncordonRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_QueueUncordonRequest proto.InternalMessageInfo +// Deprecated: Use QueueUncordonRequest.ProtoReflect.Descriptor instead. +func (*QueueUncordonRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{20} +} -func (m *QueueUncordonRequest) GetName() string { - if m != nil { - return m.Name +func (x *QueueUncordonRequest) GetName() string { + if x != nil { + return x.Name } return "" } //swagger:model type StreamingQueueGetRequest struct { - Num uint32 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Num uint32 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *StreamingQueueGetRequest) Reset() { *m = StreamingQueueGetRequest{} } -func (m *StreamingQueueGetRequest) String() string { return proto.CompactTextString(m) } -func (*StreamingQueueGetRequest) ProtoMessage() {} -func (*StreamingQueueGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{21} -} -func (m *StreamingQueueGetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StreamingQueueGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StreamingQueueGetRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *StreamingQueueGetRequest) Reset() { + *x = StreamingQueueGetRequest{} + mi := &file_pkg_api_submit_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *StreamingQueueGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StreamingQueueGetRequest.Merge(m, src) -} -func (m *StreamingQueueGetRequest) XXX_Size() int { - return m.Size() + +func (x *StreamingQueueGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StreamingQueueGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StreamingQueueGetRequest.DiscardUnknown(m) + +func (*StreamingQueueGetRequest) ProtoMessage() {} + +func (x *StreamingQueueGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StreamingQueueGetRequest proto.InternalMessageInfo +// Deprecated: Use StreamingQueueGetRequest.ProtoReflect.Descriptor instead. +func (*StreamingQueueGetRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{21} +} -func (m *StreamingQueueGetRequest) GetNum() uint32 { - if m != nil { - return m.Num +func (x *StreamingQueueGetRequest) GetNum() uint32 { + if x != nil { + return x.Num } return 0 } //swagger:model type QueueDeleteRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *QueueDeleteRequest) Reset() { *m = QueueDeleteRequest{} } -func (m *QueueDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*QueueDeleteRequest) ProtoMessage() {} -func (*QueueDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{22} -} -func (m *QueueDeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueueDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueueDeleteRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueueDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueueDeleteRequest.Merge(m, src) +func (x *QueueDeleteRequest) Reset() { + *x = QueueDeleteRequest{} + mi := &file_pkg_api_submit_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *QueueDeleteRequest) XXX_Size() int { - return m.Size() + +func (x *QueueDeleteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *QueueDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueueDeleteRequest.DiscardUnknown(m) + +func (*QueueDeleteRequest) ProtoMessage() {} + +func (x *QueueDeleteRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_QueueDeleteRequest proto.InternalMessageInfo +// Deprecated: Use QueueDeleteRequest.ProtoReflect.Descriptor instead. +func (*QueueDeleteRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{22} +} -func (m *QueueDeleteRequest) GetName() string { - if m != nil { - return m.Name +func (x *QueueDeleteRequest) GetName() string { + if x != nil { + return x.Name } return "" } type JobSetInfo struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - QueuedJobs int32 `protobuf:"varint,2,opt,name=queued_jobs,json=queuedJobs,proto3" json:"queuedJobs,omitempty"` - LeasedJobs int32 `protobuf:"varint,3,opt,name=leased_jobs,json=leasedJobs,proto3" json:"leasedJobs,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + QueuedJobs int32 `protobuf:"varint,2,opt,name=queued_jobs,json=queuedJobs,proto3" json:"queued_jobs,omitempty"` + LeasedJobs int32 `protobuf:"varint,3,opt,name=leased_jobs,json=leasedJobs,proto3" json:"leased_jobs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobSetInfo) Reset() { *m = JobSetInfo{} } -func (m *JobSetInfo) String() string { return proto.CompactTextString(m) } -func (*JobSetInfo) ProtoMessage() {} -func (*JobSetInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{23} -} -func (m *JobSetInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobSetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobSetInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobSetInfo) Reset() { + *x = JobSetInfo{} + mi := &file_pkg_api_submit_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobSetInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobSetInfo.Merge(m, src) -} -func (m *JobSetInfo) XXX_Size() int { - return m.Size() + +func (x *JobSetInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobSetInfo) XXX_DiscardUnknown() { - xxx_messageInfo_JobSetInfo.DiscardUnknown(m) + +func (*JobSetInfo) ProtoMessage() {} + +func (x *JobSetInfo) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobSetInfo proto.InternalMessageInfo +// Deprecated: Use JobSetInfo.ProtoReflect.Descriptor instead. +func (*JobSetInfo) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{23} +} -func (m *JobSetInfo) GetName() string { - if m != nil { - return m.Name +func (x *JobSetInfo) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *JobSetInfo) GetQueuedJobs() int32 { - if m != nil { - return m.QueuedJobs +func (x *JobSetInfo) GetQueuedJobs() int32 { + if x != nil { + return x.QueuedJobs } return 0 } -func (m *JobSetInfo) GetLeasedJobs() int32 { - if m != nil { - return m.LeasedJobs +func (x *JobSetInfo) GetLeasedJobs() int32 { + if x != nil { + return x.LeasedJobs } return 0 } type QueueUpdateResponse struct { - Queue *Queue `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Queue *Queue `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *QueueUpdateResponse) Reset() { *m = QueueUpdateResponse{} } -func (m *QueueUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*QueueUpdateResponse) ProtoMessage() {} -func (*QueueUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{24} -} -func (m *QueueUpdateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueueUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueueUpdateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueueUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueueUpdateResponse.Merge(m, src) +func (x *QueueUpdateResponse) Reset() { + *x = QueueUpdateResponse{} + mi := &file_pkg_api_submit_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *QueueUpdateResponse) XXX_Size() int { - return m.Size() + +func (x *QueueUpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *QueueUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueueUpdateResponse.DiscardUnknown(m) + +func (*QueueUpdateResponse) ProtoMessage() {} + +func (x *QueueUpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_QueueUpdateResponse proto.InternalMessageInfo +// Deprecated: Use QueueUpdateResponse.ProtoReflect.Descriptor instead. +func (*QueueUpdateResponse) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{24} +} -func (m *QueueUpdateResponse) GetQueue() *Queue { - if m != nil { - return m.Queue +func (x *QueueUpdateResponse) GetQueue() *Queue { + if x != nil { + return x.Queue } return nil } -func (m *QueueUpdateResponse) GetError() string { - if m != nil { - return m.Error +func (x *QueueUpdateResponse) GetError() string { + if x != nil { + return x.Error } return "" } type BatchQueueUpdateResponse struct { - FailedQueues []*QueueUpdateResponse `protobuf:"bytes,1,rep,name=failed_queues,json=failedQueues,proto3" json:"failedQueues,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + FailedQueues []*QueueUpdateResponse `protobuf:"bytes,1,rep,name=failed_queues,json=failedQueues,proto3" json:"failed_queues,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *BatchQueueUpdateResponse) Reset() { *m = BatchQueueUpdateResponse{} } -func (m *BatchQueueUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*BatchQueueUpdateResponse) ProtoMessage() {} -func (*BatchQueueUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{25} -} -func (m *BatchQueueUpdateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchQueueUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchQueueUpdateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BatchQueueUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchQueueUpdateResponse.Merge(m, src) +func (x *BatchQueueUpdateResponse) Reset() { + *x = BatchQueueUpdateResponse{} + mi := &file_pkg_api_submit_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *BatchQueueUpdateResponse) XXX_Size() int { - return m.Size() + +func (x *BatchQueueUpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BatchQueueUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BatchQueueUpdateResponse.DiscardUnknown(m) + +func (*BatchQueueUpdateResponse) ProtoMessage() {} + +func (x *BatchQueueUpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BatchQueueUpdateResponse proto.InternalMessageInfo +// Deprecated: Use BatchQueueUpdateResponse.ProtoReflect.Descriptor instead. +func (*BatchQueueUpdateResponse) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{25} +} -func (m *BatchQueueUpdateResponse) GetFailedQueues() []*QueueUpdateResponse { - if m != nil { - return m.FailedQueues +func (x *BatchQueueUpdateResponse) GetFailedQueues() []*QueueUpdateResponse { + if x != nil { + return x.FailedQueues } return nil } type QueueCreateResponse struct { - Queue *Queue `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Queue *Queue `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *QueueCreateResponse) Reset() { *m = QueueCreateResponse{} } -func (m *QueueCreateResponse) String() string { return proto.CompactTextString(m) } -func (*QueueCreateResponse) ProtoMessage() {} -func (*QueueCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{26} -} -func (m *QueueCreateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueueCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueueCreateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *QueueCreateResponse) Reset() { + *x = QueueCreateResponse{} + mi := &file_pkg_api_submit_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *QueueCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueueCreateResponse.Merge(m, src) -} -func (m *QueueCreateResponse) XXX_Size() int { - return m.Size() + +func (x *QueueCreateResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *QueueCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueueCreateResponse.DiscardUnknown(m) + +func (*QueueCreateResponse) ProtoMessage() {} + +func (x *QueueCreateResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_QueueCreateResponse proto.InternalMessageInfo +// Deprecated: Use QueueCreateResponse.ProtoReflect.Descriptor instead. +func (*QueueCreateResponse) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{26} +} -func (m *QueueCreateResponse) GetQueue() *Queue { - if m != nil { - return m.Queue +func (x *QueueCreateResponse) GetQueue() *Queue { + if x != nil { + return x.Queue } return nil } -func (m *QueueCreateResponse) GetError() string { - if m != nil { - return m.Error +func (x *QueueCreateResponse) GetError() string { + if x != nil { + return x.Error } return "" } type BatchQueueCreateResponse struct { - FailedQueues []*QueueCreateResponse `protobuf:"bytes,1,rep,name=failed_queues,json=failedQueues,proto3" json:"failedQueues,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + FailedQueues []*QueueCreateResponse `protobuf:"bytes,1,rep,name=failed_queues,json=failedQueues,proto3" json:"failed_queues,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *BatchQueueCreateResponse) Reset() { *m = BatchQueueCreateResponse{} } -func (m *BatchQueueCreateResponse) String() string { return proto.CompactTextString(m) } -func (*BatchQueueCreateResponse) ProtoMessage() {} -func (*BatchQueueCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{27} -} -func (m *BatchQueueCreateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchQueueCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchQueueCreateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *BatchQueueCreateResponse) Reset() { + *x = BatchQueueCreateResponse{} + mi := &file_pkg_api_submit_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *BatchQueueCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchQueueCreateResponse.Merge(m, src) -} -func (m *BatchQueueCreateResponse) XXX_Size() int { - return m.Size() + +func (x *BatchQueueCreateResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BatchQueueCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BatchQueueCreateResponse.DiscardUnknown(m) + +func (*BatchQueueCreateResponse) ProtoMessage() {} + +func (x *BatchQueueCreateResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BatchQueueCreateResponse proto.InternalMessageInfo +// Deprecated: Use BatchQueueCreateResponse.ProtoReflect.Descriptor instead. +func (*BatchQueueCreateResponse) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{27} +} -func (m *BatchQueueCreateResponse) GetFailedQueues() []*QueueCreateResponse { - if m != nil { - return m.FailedQueues +func (x *BatchQueueCreateResponse) GetFailedQueues() []*QueueCreateResponse { + if x != nil { + return x.FailedQueues } return nil } // Indicates the end of streams type EndMarker struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *EndMarker) Reset() { *m = EndMarker{} } -func (m *EndMarker) String() string { return proto.CompactTextString(m) } -func (*EndMarker) ProtoMessage() {} -func (*EndMarker) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{28} -} -func (m *EndMarker) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EndMarker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EndMarker.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *EndMarker) XXX_Merge(src proto.Message) { - xxx_messageInfo_EndMarker.Merge(m, src) +func (x *EndMarker) Reset() { + *x = EndMarker{} + mi := &file_pkg_api_submit_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *EndMarker) XXX_Size() int { - return m.Size() + +func (x *EndMarker) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EndMarker) XXX_DiscardUnknown() { - xxx_messageInfo_EndMarker.DiscardUnknown(m) + +func (*EndMarker) ProtoMessage() {} + +func (x *EndMarker) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_EndMarker proto.InternalMessageInfo +// Deprecated: Use EndMarker.ProtoReflect.Descriptor instead. +func (*EndMarker) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{28} +} type StreamingQueueMessage struct { + state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Event: + // // *StreamingQueueMessage_Queue // *StreamingQueueMessage_End - Event isStreamingQueueMessage_Event `protobuf_oneof:"event"` + Event isStreamingQueueMessage_Event `protobuf_oneof:"event"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *StreamingQueueMessage) Reset() { *m = StreamingQueueMessage{} } -func (m *StreamingQueueMessage) String() string { return proto.CompactTextString(m) } -func (*StreamingQueueMessage) ProtoMessage() {} -func (*StreamingQueueMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{29} -} -func (m *StreamingQueueMessage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StreamingQueueMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StreamingQueueMessage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *StreamingQueueMessage) Reset() { + *x = StreamingQueueMessage{} + mi := &file_pkg_api_submit_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StreamingQueueMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StreamingQueueMessage) ProtoMessage() {} + +func (x *StreamingQueueMessage) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *StreamingQueueMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_StreamingQueueMessage.Merge(m, src) + +// Deprecated: Use StreamingQueueMessage.ProtoReflect.Descriptor instead. +func (*StreamingQueueMessage) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{29} } -func (m *StreamingQueueMessage) XXX_Size() int { - return m.Size() + +func (x *StreamingQueueMessage) GetEvent() isStreamingQueueMessage_Event { + if x != nil { + return x.Event + } + return nil } -func (m *StreamingQueueMessage) XXX_DiscardUnknown() { - xxx_messageInfo_StreamingQueueMessage.DiscardUnknown(m) + +func (x *StreamingQueueMessage) GetQueue() *Queue { + if x != nil { + if x, ok := x.Event.(*StreamingQueueMessage_Queue); ok { + return x.Queue + } + } + return nil } -var xxx_messageInfo_StreamingQueueMessage proto.InternalMessageInfo +func (x *StreamingQueueMessage) GetEnd() *EndMarker { + if x != nil { + if x, ok := x.Event.(*StreamingQueueMessage_End); ok { + return x.End + } + } + return nil +} type isStreamingQueueMessage_Event interface { isStreamingQueueMessage_Event() - MarshalTo([]byte) (int, error) - Size() int } type StreamingQueueMessage_Queue struct { - Queue *Queue `protobuf:"bytes,1,opt,name=queue,proto3,oneof" json:"queue,omitempty"` + Queue *Queue `protobuf:"bytes,1,opt,name=queue,proto3,oneof"` } + type StreamingQueueMessage_End struct { - End *EndMarker `protobuf:"bytes,2,opt,name=end,proto3,oneof" json:"end,omitempty"` + End *EndMarker `protobuf:"bytes,2,opt,name=end,proto3,oneof"` } func (*StreamingQueueMessage_Queue) isStreamingQueueMessage_Event() {} -func (*StreamingQueueMessage_End) isStreamingQueueMessage_Event() {} -func (m *StreamingQueueMessage) GetEvent() isStreamingQueueMessage_Event { - if m != nil { - return m.Event - } - return nil -} +func (*StreamingQueueMessage_End) isStreamingQueueMessage_Event() {} -func (m *StreamingQueueMessage) GetQueue() *Queue { - if x, ok := m.GetEvent().(*StreamingQueueMessage_Queue); ok { - return x.Queue - } - return nil +type QueuePreemptRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + PriorityClasses []string `protobuf:"bytes,2,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *StreamingQueueMessage) GetEnd() *EndMarker { - if x, ok := m.GetEvent().(*StreamingQueueMessage_End); ok { - return x.End - } - return nil +func (x *QueuePreemptRequest) Reset() { + *x = QueuePreemptRequest{} + mi := &file_pkg_api_submit_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*StreamingQueueMessage) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*StreamingQueueMessage_Queue)(nil), - (*StreamingQueueMessage_End)(nil), - } +func (x *QueuePreemptRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type QueuePreemptRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - PriorityClasses []string `protobuf:"bytes,2,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` -} +func (*QueuePreemptRequest) ProtoMessage() {} -func (m *QueuePreemptRequest) Reset() { *m = QueuePreemptRequest{} } -func (m *QueuePreemptRequest) String() string { return proto.CompactTextString(m) } -func (*QueuePreemptRequest) ProtoMessage() {} -func (*QueuePreemptRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{30} -} -func (m *QueuePreemptRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueuePreemptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueuePreemptRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *QueuePreemptRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *QueuePreemptRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueuePreemptRequest.Merge(m, src) -} -func (m *QueuePreemptRequest) XXX_Size() int { - return m.Size() -} -func (m *QueuePreemptRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueuePreemptRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_QueuePreemptRequest proto.InternalMessageInfo +// Deprecated: Use QueuePreemptRequest.ProtoReflect.Descriptor instead. +func (*QueuePreemptRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{30} +} -func (m *QueuePreemptRequest) GetName() string { - if m != nil { - return m.Name +func (x *QueuePreemptRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *QueuePreemptRequest) GetPriorityClasses() []string { - if m != nil { - return m.PriorityClasses +func (x *QueuePreemptRequest) GetPriorityClasses() []string { + if x != nil { + return x.PriorityClasses } return nil } type QueueCancelRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - PriorityClasses []string `protobuf:"bytes,2,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + PriorityClasses []string `protobuf:"bytes,2,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` // In practice jobs are only cancellable from non-terminal states - JobStates []JobState `protobuf:"varint,3,rep,packed,name=jobStates,proto3,enum=api.JobState" json:"jobStates,omitempty"` + JobStates []JobState `protobuf:"varint,3,rep,packed,name=jobStates,proto3,enum=api.JobState" json:"jobStates,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *QueueCancelRequest) Reset() { *m = QueueCancelRequest{} } -func (m *QueueCancelRequest) String() string { return proto.CompactTextString(m) } -func (*QueueCancelRequest) ProtoMessage() {} -func (*QueueCancelRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e998bacb27df16c1, []int{31} -} -func (m *QueueCancelRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueueCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueueCancelRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueueCancelRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueueCancelRequest.Merge(m, src) -} -func (m *QueueCancelRequest) XXX_Size() int { - return m.Size() -} -func (m *QueueCancelRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueueCancelRequest.DiscardUnknown(m) +func (x *QueueCancelRequest) Reset() { + *x = QueueCancelRequest{} + mi := &file_pkg_api_submit_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -var xxx_messageInfo_QueueCancelRequest proto.InternalMessageInfo - -func (m *QueueCancelRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +func (x *QueueCancelRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *QueueCancelRequest) GetPriorityClasses() []string { - if m != nil { - return m.PriorityClasses - } - return nil -} +func (*QueueCancelRequest) ProtoMessage() {} -func (m *QueueCancelRequest) GetJobStates() []JobState { - if m != nil { - return m.JobStates +func (x *QueueCancelRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func init() { - proto.RegisterEnum("api.IngressType", IngressType_name, IngressType_value) - proto.RegisterEnum("api.ServiceType", ServiceType_name, ServiceType_value) - proto.RegisterEnum("api.JobState", JobState_name, JobState_value) - proto.RegisterType((*JobSubmitRequestItem)(nil), "api.JobSubmitRequestItem") - proto.RegisterMapType((map[string]string)(nil), "api.JobSubmitRequestItem.AnnotationsEntry") - proto.RegisterMapType((map[string]string)(nil), "api.JobSubmitRequestItem.LabelsEntry") - proto.RegisterMapType((map[string]string)(nil), "api.JobSubmitRequestItem.RequiredNodeLabelsEntry") - proto.RegisterType((*IngressConfig)(nil), "api.IngressConfig") - proto.RegisterMapType((map[string]string)(nil), "api.IngressConfig.AnnotationsEntry") - proto.RegisterType((*ServiceConfig)(nil), "api.ServiceConfig") - proto.RegisterType((*JobSubmitRequest)(nil), "api.JobSubmitRequest") - proto.RegisterType((*JobPreemptRequest)(nil), "api.JobPreemptRequest") - proto.RegisterType((*JobCancelRequest)(nil), "api.JobCancelRequest") - proto.RegisterType((*JobSetCancelRequest)(nil), "api.JobSetCancelRequest") - proto.RegisterType((*JobSetFilter)(nil), "api.JobSetFilter") - proto.RegisterType((*Job)(nil), "api.Job") - proto.RegisterMapType((map[string]string)(nil), "api.Job.AnnotationsEntry") - proto.RegisterMapType((map[string]string)(nil), "api.Job.LabelsEntry") - proto.RegisterMapType((map[string]string)(nil), "api.Job.RequiredNodeLabelsEntry") - proto.RegisterType((*JobReprioritizeRequest)(nil), "api.JobReprioritizeRequest") - proto.RegisterType((*JobReprioritizeResponse)(nil), "api.JobReprioritizeResponse") - proto.RegisterMapType((map[string]string)(nil), "api.JobReprioritizeResponse.ReprioritizationResultsEntry") - proto.RegisterType((*JobSubmitResponseItem)(nil), "api.JobSubmitResponseItem") - proto.RegisterType((*JobSubmitResponse)(nil), "api.JobSubmitResponse") - proto.RegisterType((*Queue)(nil), "api.Queue") - proto.RegisterMapType((map[string]string)(nil), "api.Queue.LabelsEntry") - proto.RegisterMapType((map[string]*PriorityClassResourceLimits)(nil), "api.Queue.ResourceLimitsByPriorityClassNameEntry") - proto.RegisterMapType((map[string]float64)(nil), "api.Queue.ResourceLimitsEntry") - proto.RegisterType((*Queue_Permissions)(nil), "api.Queue.Permissions") - proto.RegisterType((*Queue_Permissions_Subject)(nil), "api.Queue.Permissions.Subject") - proto.RegisterType((*PriorityClassResourceLimits)(nil), "api.PriorityClassResourceLimits") - proto.RegisterMapType((map[string]*PriorityClassPoolResourceLimits)(nil), "api.PriorityClassResourceLimits.MaximumResourceFractionByPoolEntry") - proto.RegisterMapType((map[string]float64)(nil), "api.PriorityClassResourceLimits.MaximumResourceFractionEntry") - proto.RegisterType((*PriorityClassPoolResourceLimits)(nil), "api.PriorityClassPoolResourceLimits") - proto.RegisterMapType((map[string]float64)(nil), "api.PriorityClassPoolResourceLimits.MaximumResourceFractionEntry") - proto.RegisterType((*QueueList)(nil), "api.QueueList") - proto.RegisterType((*CancellationResult)(nil), "api.CancellationResult") - proto.RegisterType((*QueueGetRequest)(nil), "api.QueueGetRequest") - proto.RegisterType((*QueueCordonRequest)(nil), "api.QueueCordonRequest") - proto.RegisterType((*QueueUncordonRequest)(nil), "api.QueueUncordonRequest") - proto.RegisterType((*StreamingQueueGetRequest)(nil), "api.StreamingQueueGetRequest") - proto.RegisterType((*QueueDeleteRequest)(nil), "api.QueueDeleteRequest") - proto.RegisterType((*JobSetInfo)(nil), "api.JobSetInfo") - proto.RegisterType((*QueueUpdateResponse)(nil), "api.QueueUpdateResponse") - proto.RegisterType((*BatchQueueUpdateResponse)(nil), "api.BatchQueueUpdateResponse") - proto.RegisterType((*QueueCreateResponse)(nil), "api.QueueCreateResponse") - proto.RegisterType((*BatchQueueCreateResponse)(nil), "api.BatchQueueCreateResponse") - proto.RegisterType((*EndMarker)(nil), "api.EndMarker") - proto.RegisterType((*StreamingQueueMessage)(nil), "api.StreamingQueueMessage") - proto.RegisterType((*QueuePreemptRequest)(nil), "api.QueuePreemptRequest") - proto.RegisterType((*QueueCancelRequest)(nil), "api.QueueCancelRequest") -} - -func init() { proto.RegisterFile("pkg/api/submit.proto", fileDescriptor_e998bacb27df16c1) } - -var fileDescriptor_e998bacb27df16c1 = []byte{ - // 3129 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x1a, 0x4b, 0x73, 0x1b, 0x49, - 0xd9, 0xe3, 0xb7, 0x3e, 0x59, 0xb6, 0xdc, 0x71, 0x9c, 0xb1, 0x92, 0xb5, 0x9c, 0xd9, 0xdd, 0xac, - 0x93, 0x0d, 0xf2, 0xc6, 0xcb, 0x16, 0x49, 0x58, 0x08, 0x91, 0xac, 0x24, 0x76, 0x12, 0xc7, 0x6b, - 0xc7, 0xfb, 0xa0, 0x28, 0xc4, 0x48, 0xd3, 0x96, 0xc7, 0x96, 0x66, 0xb4, 0x33, 0xa3, 0x04, 0x43, - 0xed, 0x85, 0xa2, 0xd8, 0x03, 0x97, 0x2d, 0x38, 0x42, 0x01, 0x07, 0xa8, 0xa2, 0x96, 0x33, 0x17, - 0x8a, 0x1f, 0x40, 0xc1, 0x65, 0x29, 0x2e, 0x70, 0x51, 0x51, 0xbb, 0x3c, 0xaa, 0x74, 0xe3, 0xce, - 0x81, 0xea, 0xaf, 0x7b, 0x66, 0x7a, 0xf4, 0xb2, 0x94, 0xc4, 0xd9, 0x0b, 0x37, 0xf5, 0xd7, 0xdf, - 0xbb, 0xbf, 0xfe, 0x1e, 0x3d, 0x82, 0xb9, 0xda, 0x61, 0x79, 0x45, 0xaf, 0x99, 0x2b, 0x6e, 0xbd, - 0x58, 0x35, 0xbd, 0x4c, 0xcd, 0xb1, 0x3d, 0x9b, 0x8c, 0xe8, 0x35, 0x33, 0x75, 0xb6, 0x6c, 0xdb, - 0xe5, 0x0a, 0x5d, 0x41, 0x50, 0xb1, 0xbe, 0xb7, 0x42, 0xab, 0x35, 0xef, 0x88, 0x63, 0xa4, 0xd2, - 0xad, 0x9b, 0x9e, 0x59, 0xa5, 0xae, 0xa7, 0x57, 0x6b, 0x02, 0x41, 0x3b, 0xbc, 0xea, 0x66, 0x4c, - 0x1b, 0x79, 0x97, 0x6c, 0x87, 0xae, 0x3c, 0xba, 0xb2, 0x52, 0xa6, 0x16, 0x75, 0x74, 0x8f, 0x1a, - 0x02, 0x67, 0x59, 0xc2, 0xb1, 0xa8, 0xf7, 0xd8, 0x76, 0x0e, 0x4d, 0xab, 0xdc, 0x09, 0xf3, 0x9c, - 0x10, 0xc7, 0x30, 0x75, 0xcb, 0xb2, 0x3d, 0xdd, 0x33, 0x6d, 0xcb, 0x15, 0xbb, 0x81, 0x11, 0xfb, - 0x54, 0xaf, 0x78, 0xfb, 0x1c, 0xaa, 0xfd, 0x2a, 0x06, 0x73, 0x1b, 0x76, 0x71, 0x07, 0x0d, 0xdb, - 0xa6, 0xef, 0xd7, 0xa9, 0xeb, 0xad, 0x7b, 0xb4, 0x4a, 0x56, 0x61, 0xb2, 0xe6, 0x98, 0xb6, 0x63, - 0x7a, 0x47, 0xaa, 0xb2, 0xa4, 0x2c, 0x2b, 0xd9, 0xf9, 0x66, 0x23, 0x4d, 0x7c, 0xd8, 0x65, 0xbb, - 0x6a, 0x7a, 0x68, 0xeb, 0x76, 0x80, 0x47, 0xde, 0x80, 0x98, 0xa5, 0x57, 0xa9, 0x5b, 0xd3, 0x4b, - 0x54, 0x1d, 0x59, 0x52, 0x96, 0x63, 0xd9, 0x33, 0xcd, 0x46, 0xfa, 0x54, 0x00, 0x94, 0xa8, 0x42, - 0x4c, 0xf2, 0x3a, 0xc4, 0x4a, 0x15, 0x93, 0x5a, 0x5e, 0xc1, 0x34, 0xd4, 0x49, 0x24, 0x43, 0x59, - 0x1c, 0xb8, 0x6e, 0xc8, 0xb2, 0x7c, 0x18, 0xd9, 0x81, 0xf1, 0x8a, 0x5e, 0xa4, 0x15, 0x57, 0x1d, - 0x5d, 0x1a, 0x59, 0x8e, 0xaf, 0xbe, 0x9c, 0xd1, 0x6b, 0x66, 0xa6, 0x93, 0x29, 0x99, 0x7b, 0x88, - 0x97, 0xb7, 0x3c, 0xe7, 0x28, 0x3b, 0xd7, 0x6c, 0xa4, 0x93, 0x9c, 0x50, 0x62, 0x2b, 0x58, 0x91, - 0x32, 0xc4, 0x25, 0xc7, 0xa9, 0x63, 0xc8, 0xf9, 0x52, 0x77, 0xce, 0x37, 0x43, 0x64, 0xce, 0x7e, - 0xa1, 0xd9, 0x48, 0x9f, 0x96, 0x58, 0x48, 0x32, 0x64, 0xce, 0xe4, 0x43, 0x05, 0xe6, 0x1c, 0xfa, - 0x7e, 0xdd, 0x74, 0xa8, 0x51, 0xb0, 0x6c, 0x83, 0x16, 0x84, 0x31, 0xe3, 0x28, 0xf2, 0x4a, 0x77, - 0x91, 0xdb, 0x82, 0x6a, 0xd3, 0x36, 0xa8, 0x6c, 0x98, 0xd6, 0x6c, 0xa4, 0xcf, 0x39, 0x6d, 0x9b, - 0xa1, 0x02, 0xaa, 0xb2, 0x4d, 0xda, 0xf7, 0xc9, 0x03, 0x98, 0xac, 0xd9, 0x46, 0xc1, 0xad, 0xd1, - 0x92, 0x3a, 0xbc, 0xa4, 0x2c, 0xc7, 0x57, 0xcf, 0x66, 0x78, 0xc4, 0xa1, 0x0e, 0x2c, 0x2a, 0x33, - 0x8f, 0xae, 0x64, 0xb6, 0x6c, 0x63, 0xa7, 0x46, 0x4b, 0x78, 0x9e, 0xb3, 0x35, 0xbe, 0x88, 0xf0, - 0x9e, 0x10, 0x40, 0xb2, 0x05, 0x31, 0x9f, 0xa1, 0xab, 0x4e, 0xa0, 0x39, 0x3d, 0x39, 0xf2, 0xb0, - 0xe2, 0x0b, 0x37, 0x12, 0x56, 0x02, 0x46, 0x72, 0x30, 0x61, 0x5a, 0x65, 0x87, 0xba, 0xae, 0x1a, - 0x43, 0x7e, 0x04, 0x19, 0xad, 0x73, 0x58, 0xce, 0xb6, 0xf6, 0xcc, 0x72, 0xf6, 0x34, 0x53, 0x4c, - 0xa0, 0x49, 0x5c, 0x7c, 0x4a, 0x72, 0x0b, 0x26, 0x5d, 0xea, 0x3c, 0x32, 0x4b, 0xd4, 0x55, 0x41, - 0xe2, 0xb2, 0xc3, 0x81, 0x82, 0x0b, 0x2a, 0xe3, 0xe3, 0xc9, 0xca, 0xf8, 0x30, 0x16, 0xe3, 0x6e, - 0x69, 0x9f, 0x1a, 0xf5, 0x0a, 0x75, 0xd4, 0x78, 0x18, 0xe3, 0x01, 0x50, 0x8e, 0xf1, 0x00, 0x98, - 0xd2, 0x21, 0x2e, 0x9d, 0x16, 0x79, 0x11, 0x46, 0x0e, 0x29, 0xbf, 0x58, 0xb1, 0xec, 0x6c, 0xb3, - 0x91, 0x4e, 0x1c, 0x52, 0xf9, 0x4e, 0xb1, 0x5d, 0x72, 0x11, 0xc6, 0x1e, 0xe9, 0x95, 0x3a, 0xc5, - 0x73, 0x89, 0x65, 0x4f, 0x35, 0x1b, 0xe9, 0x19, 0x04, 0x48, 0x88, 0x1c, 0xe3, 0xfa, 0xf0, 0x55, - 0x25, 0xb5, 0x07, 0xc9, 0xd6, 0x78, 0x3c, 0x11, 0x39, 0x55, 0x38, 0xd3, 0x25, 0x08, 0x4f, 0x42, - 0xdc, 0xc6, 0xe8, 0xe4, 0x54, 0x32, 0xa1, 0xfd, 0x67, 0x04, 0x12, 0x91, 0x03, 0x27, 0xd7, 0x61, - 0xd4, 0x3b, 0xaa, 0x51, 0x14, 0x36, 0xbd, 0x9a, 0x94, 0x43, 0xe2, 0xe1, 0x51, 0x8d, 0xe2, 0x4d, - 0x9f, 0x66, 0x18, 0x91, 0x30, 0x45, 0x1a, 0xa6, 0x42, 0xcd, 0x76, 0x3c, 0x57, 0x1d, 0x5e, 0x1a, - 0x59, 0x4e, 0x70, 0x15, 0x10, 0x20, 0xab, 0x80, 0x00, 0xf2, 0xad, 0x68, 0x4a, 0x18, 0xc1, 0xd0, - 0x79, 0xb1, 0x3d, 0x00, 0x9f, 0x3c, 0x17, 0x5c, 0x83, 0xb8, 0x57, 0x71, 0x0b, 0xd4, 0xd2, 0x8b, - 0x15, 0x6a, 0xa8, 0xa3, 0x4b, 0xca, 0xf2, 0x64, 0x56, 0x6d, 0x36, 0xd2, 0x73, 0x1e, 0xf3, 0x2b, - 0x42, 0x25, 0x5a, 0x08, 0xa1, 0x98, 0x39, 0xa9, 0xe3, 0x15, 0x58, 0x2e, 0x55, 0xc7, 0xa4, 0xcc, - 0x49, 0x1d, 0x6f, 0x53, 0xaf, 0xd2, 0x48, 0xe6, 0x14, 0x30, 0x72, 0x03, 0x12, 0x75, 0x97, 0x16, - 0x4a, 0x95, 0xba, 0xeb, 0x51, 0x67, 0x7d, 0x4b, 0x1d, 0x47, 0x89, 0xa9, 0x66, 0x23, 0x3d, 0x5f, - 0x77, 0x69, 0xce, 0x87, 0x4b, 0xc4, 0x53, 0x32, 0xfc, 0x79, 0x05, 0x9a, 0xf6, 0x53, 0x05, 0x12, - 0x91, 0xeb, 0x49, 0xae, 0x76, 0x38, 0x73, 0x81, 0x81, 0x67, 0x4e, 0xda, 0xcf, 0x7c, 0xf0, 0x13, - 0xbf, 0x00, 0xa3, 0xe8, 0x4f, 0x5e, 0xc0, 0x90, 0xa5, 0x15, 0xf5, 0x25, 0xee, 0x6b, 0x7f, 0x53, - 0x20, 0xd9, 0x9a, 0xa2, 0x99, 0x9c, 0xf7, 0xeb, 0xb4, 0x4e, 0x85, 0x27, 0x50, 0x0e, 0x02, 0x64, - 0x39, 0x08, 0x20, 0x5f, 0x04, 0x38, 0xb0, 0x8b, 0x05, 0x97, 0x62, 0xdd, 0x1b, 0x0e, 0x4f, 0xef, - 0xc0, 0x2e, 0xee, 0xd0, 0x96, 0xba, 0xe7, 0xc3, 0x88, 0x01, 0xb3, 0x8c, 0xca, 0xe1, 0xf2, 0x0a, - 0x0c, 0xc1, 0x8f, 0xca, 0x85, 0xae, 0x55, 0x23, 0xfb, 0x42, 0xb3, 0x91, 0x5e, 0x38, 0xb0, 0x8b, - 0x12, 0x4c, 0xb6, 0x7c, 0xa6, 0x65, 0x4b, 0xfb, 0xb3, 0x02, 0xb3, 0x1b, 0x76, 0x71, 0xcb, 0xa1, - 0x0c, 0xe1, 0xb9, 0x19, 0xf7, 0x05, 0x98, 0x60, 0x54, 0xa6, 0xc1, 0x4d, 0x8a, 0xf1, 0x72, 0x7d, - 0x60, 0x17, 0xd7, 0x8d, 0x48, 0xb9, 0xe6, 0x10, 0x72, 0x19, 0xc6, 0x1d, 0xaa, 0xbb, 0xb6, 0x85, - 0x97, 0x46, 0x60, 0x73, 0x88, 0x8c, 0xcd, 0x21, 0xda, 0x7f, 0xf9, 0x79, 0xe5, 0x74, 0xab, 0x44, - 0x2b, 0xbe, 0x49, 0x97, 0x60, 0x9c, 0x4b, 0x94, 0x6d, 0x42, 0xf6, 0xb2, 0x4d, 0x08, 0x78, 0x42, - 0x9b, 0x02, 0xa7, 0x8d, 0x1c, 0xeb, 0x34, 0xc9, 0xfc, 0xd1, 0x81, 0xcc, 0x1f, 0xeb, 0xc3, 0xfc, - 0x7f, 0x2a, 0x70, 0x6a, 0x03, 0x95, 0x8a, 0x7a, 0x20, 0x6a, 0x95, 0x32, 0xa8, 0x55, 0xc3, 0xc7, - 0x5a, 0x75, 0x03, 0xc6, 0xf7, 0xcc, 0x8a, 0x47, 0x1d, 0xf4, 0x40, 0x7c, 0x75, 0x36, 0x08, 0x53, - 0xea, 0xdd, 0xc2, 0x0d, 0xae, 0x39, 0x47, 0x92, 0x35, 0xe7, 0x90, 0x01, 0x8f, 0xf9, 0x2e, 0x4c, - 0xc9, 0xbc, 0xc9, 0x97, 0x61, 0xdc, 0xf5, 0x74, 0x8f, 0xba, 0xaa, 0xb2, 0x34, 0xb2, 0x3c, 0xbd, - 0x9a, 0x08, 0xc4, 0x33, 0x28, 0x67, 0xc6, 0x11, 0x64, 0x66, 0x1c, 0xa2, 0xfd, 0x7a, 0x06, 0x46, - 0x36, 0xec, 0x22, 0x59, 0x82, 0xe1, 0xc0, 0x39, 0xc9, 0x66, 0x23, 0x3d, 0x65, 0xca, 0x6e, 0x19, - 0x36, 0x8d, 0x68, 0x13, 0x9b, 0xe8, 0xb3, 0x89, 0x3d, 0xf1, 0x88, 0x8a, 0x74, 0xe4, 0x13, 0x7d, - 0x77, 0xe4, 0xd9, 0xa0, 0xb9, 0xe6, 0x0d, 0xd7, 0x9c, 0xef, 0xb3, 0x01, 0x7a, 0xe9, 0xb7, 0xa3, - 0x85, 0x13, 0xa2, 0x29, 0xea, 0xc9, 0xcb, 0xe5, 0xa3, 0x2e, 0x9d, 0x73, 0x1c, 0x05, 0x2c, 0x05, - 0x02, 0x9e, 0x75, 0xa3, 0x7c, 0x11, 0xc6, 0xec, 0xc7, 0x16, 0x75, 0xc4, 0x84, 0x82, 0x5e, 0x47, - 0x80, 0xec, 0x75, 0x04, 0x10, 0x0a, 0x67, 0xd1, 0xfd, 0x05, 0x5c, 0xba, 0xfb, 0x66, 0xad, 0x50, - 0x77, 0xa9, 0x53, 0x28, 0x3b, 0x76, 0xbd, 0xe6, 0xaa, 0x33, 0x78, 0xb7, 0x2f, 0x34, 0x1b, 0x69, - 0x0d, 0xd1, 0x1e, 0xf8, 0x58, 0xbb, 0x2e, 0x75, 0x6e, 0x23, 0x8e, 0xc4, 0x53, 0xed, 0x86, 0x43, - 0xbe, 0xaf, 0xc0, 0x85, 0x92, 0x5d, 0xad, 0xb1, 0x26, 0x84, 0x1a, 0x85, 0x5e, 0x22, 0x4f, 0x2d, - 0x29, 0xcb, 0x53, 0xd9, 0xd7, 0x9a, 0x8d, 0xf4, 0xe5, 0x90, 0xe2, 0xad, 0xe3, 0x85, 0x6b, 0xc7, - 0x63, 0x47, 0x26, 0xc5, 0xd1, 0x3e, 0x27, 0x45, 0x79, 0xea, 0x18, 0x7b, 0xe6, 0x53, 0xc7, 0xd4, - 0xb3, 0x98, 0x3a, 0x7e, 0xa1, 0xc0, 0x92, 0xe8, 0xdf, 0x4d, 0xab, 0x5c, 0x70, 0xa8, 0x6b, 0xd7, - 0x9d, 0x12, 0x2d, 0x88, 0xd0, 0xa8, 0x52, 0xcb, 0x73, 0xd5, 0xd3, 0xa8, 0xfb, 0x72, 0x27, 0x49, - 0xdb, 0x82, 0x60, 0x5b, 0xc2, 0xcf, 0x5e, 0x6e, 0x36, 0xd2, 0xcb, 0x21, 0xd7, 0x4e, 0x38, 0x92, - 0x32, 0x8b, 0xbd, 0x31, 0xc9, 0x5d, 0x98, 0x28, 0x39, 0x54, 0xf7, 0xa8, 0x81, 0x3d, 0x5c, 0x7c, - 0x35, 0x95, 0xe1, 0x4f, 0x00, 0x19, 0xff, 0xc5, 0x21, 0xf3, 0xd0, 0x7f, 0x71, 0xe0, 0x03, 0x92, - 0x40, 0x97, 0x07, 0x24, 0x01, 0x92, 0xa7, 0xac, 0xe9, 0x67, 0x32, 0x65, 0x25, 0x9f, 0x62, 0xca, - 0xfa, 0x06, 0xc4, 0x0f, 0xaf, 0xba, 0x05, 0x5f, 0xa1, 0x59, 0x64, 0x75, 0x5e, 0x76, 0x73, 0xf8, - 0x14, 0xc2, 0x9c, 0x2d, 0xb4, 0xe4, 0x6d, 0xf3, 0xe1, 0x55, 0x77, 0xbd, 0x4d, 0x45, 0x08, 0xa1, - 0x2c, 0x35, 0x31, 0xee, 0x42, 0x9a, 0x4a, 0xba, 0x87, 0x8b, 0xd0, 0x3b, 0xe0, 0x2b, 0xd6, 0x2d, - 0x7c, 0x05, 0x34, 0x3a, 0x1b, 0xce, 0xfd, 0x7f, 0x36, 0x7c, 0x0e, 0xb3, 0xe1, 0x7c, 0xf2, 0xcc, - 0xc6, 0xe8, 0xe4, 0x62, 0x32, 0xad, 0xfd, 0x4b, 0x81, 0xf9, 0x0d, 0xd6, 0xc6, 0x8a, 0x24, 0x63, - 0x7e, 0x87, 0xfa, 0x2d, 0x8e, 0xd4, 0x57, 0x29, 0x7d, 0xf4, 0x55, 0x27, 0x5e, 0x95, 0xdf, 0x84, - 0x29, 0x8b, 0x3e, 0x2e, 0xb4, 0x64, 0x4d, 0x2c, 0x80, 0x16, 0x7d, 0xbc, 0xd5, 0x9e, 0x38, 0xe3, - 0x12, 0x58, 0xfb, 0xcd, 0x30, 0x9c, 0x69, 0x33, 0xd4, 0xad, 0xd9, 0x96, 0x4b, 0xc9, 0x4f, 0x14, - 0x50, 0x9d, 0x70, 0x03, 0x8f, 0x9b, 0xa5, 0xae, 0x7a, 0xc5, 0xe3, 0xb6, 0xc7, 0x57, 0xaf, 0xf9, - 0x15, 0xb2, 0x13, 0x83, 0xcc, 0x76, 0x0b, 0xf1, 0x36, 0xa7, 0xe5, 0xa5, 0xf3, 0xe5, 0x66, 0x23, - 0x7d, 0xde, 0xe9, 0x8c, 0x21, 0x69, 0x7b, 0xa6, 0x0b, 0x4a, 0xca, 0x81, 0x73, 0xbd, 0xf8, 0x9f, - 0xc8, 0x10, 0x69, 0xc1, 0x69, 0x69, 0x22, 0xe2, 0x56, 0xe2, 0x03, 0xe7, 0x20, 0x9d, 0xff, 0x45, - 0x18, 0xa3, 0x8e, 0x63, 0x3b, 0xb2, 0x4c, 0x04, 0xc8, 0xa8, 0x08, 0xd0, 0x3e, 0xc0, 0xc1, 0x29, - 0x2a, 0x8f, 0xec, 0x03, 0xe1, 0x43, 0x1b, 0x5f, 0x8b, 0xa9, 0x8d, 0x9f, 0x47, 0xaa, 0x75, 0x6a, - 0x0b, 0x75, 0xcc, 0x2e, 0x36, 0x1b, 0xe9, 0x14, 0xce, 0x66, 0x21, 0x50, 0xf6, 0x74, 0xb2, 0x75, - 0x4f, 0xfb, 0x30, 0x0e, 0x63, 0x58, 0xa9, 0x83, 0x31, 0x56, 0xe9, 0x3d, 0xc6, 0x92, 0x3c, 0xcc, - 0xf8, 0x81, 0x58, 0xd8, 0xd3, 0x4b, 0x9e, 0xb0, 0x52, 0xc9, 0x9e, 0x6b, 0x36, 0xd2, 0xaa, 0xbf, - 0x75, 0x0b, 0x77, 0x24, 0xe2, 0xe9, 0xe8, 0x0e, 0xb9, 0x06, 0x71, 0x6c, 0x38, 0x78, 0xff, 0x21, - 0xc6, 0x37, 0x4c, 0x9b, 0x0c, 0xcc, 0xfb, 0x06, 0x39, 0x6d, 0x86, 0x50, 0x76, 0x1d, 0xb0, 0x4d, - 0xf1, 0x69, 0xf9, 0xec, 0x83, 0xd7, 0x01, 0xe1, 0x6d, 0xc4, 0x71, 0x09, 0x4c, 0xca, 0x30, 0x13, - 0xd4, 0xe6, 0x8a, 0x59, 0x35, 0x3d, 0xff, 0xdd, 0x76, 0x11, 0x1d, 0x8b, 0xce, 0x08, 0x8a, 0xf1, - 0x3d, 0x44, 0xe0, 0xd1, 0xcc, 0x9c, 0xab, 0x3a, 0x91, 0x8d, 0x48, 0x6f, 0x31, 0x1d, 0xdd, 0x23, - 0xbf, 0x55, 0xe0, 0x42, 0x8b, 0xa4, 0x42, 0xf1, 0x28, 0xb8, 0xc5, 0x85, 0x52, 0x45, 0x77, 0x5d, - 0xfe, 0x14, 0x33, 0x21, 0xbd, 0xe2, 0x76, 0x52, 0x20, 0x7b, 0xe4, 0xdf, 0xe6, 0x1c, 0x23, 0xda, - 0xd4, 0xab, 0x94, 0xeb, 0xb4, 0xd2, 0x6c, 0xa4, 0x5f, 0x75, 0x8e, 0xc3, 0x95, 0x5c, 0x71, 0xfe, - 0x58, 0x64, 0xb2, 0x03, 0xf1, 0x1a, 0x75, 0xaa, 0xa6, 0xeb, 0x62, 0x23, 0xce, 0x5f, 0x98, 0xe7, - 0x25, 0xdd, 0xb6, 0xc2, 0x5d, 0xee, 0x75, 0x09, 0x5d, 0xf6, 0xba, 0x04, 0x66, 0x4d, 0x5f, 0xc9, - 0x76, 0x0c, 0xdb, 0xa2, 0xfc, 0xc9, 0x7e, 0x52, 0x4c, 0x3b, 0x02, 0x16, 0x99, 0x76, 0x04, 0x8c, - 0xdc, 0x87, 0x59, 0xde, 0xab, 0x17, 0x0c, 0x5a, 0x73, 0x68, 0x09, 0x1b, 0x97, 0x18, 0x1e, 0xf6, - 0x12, 0x0b, 0x74, 0xbe, 0xb9, 0x16, 0xec, 0x45, 0x4e, 0x23, 0xd9, 0xba, 0x4b, 0xd6, 0x82, 0x21, - 0x05, 0xda, 0x4c, 0xea, 0x7b, 0x4c, 0x49, 0xfd, 0x5b, 0x81, 0xb8, 0xe4, 0x00, 0xb2, 0x0d, 0x93, - 0x6e, 0xbd, 0x78, 0x40, 0x4b, 0x41, 0xc2, 0x5c, 0xec, 0xec, 0xaa, 0xcc, 0x0e, 0x47, 0x13, 0xdd, - 0x8c, 0xa0, 0x89, 0x74, 0x33, 0x02, 0x86, 0x29, 0x8b, 0x3a, 0x45, 0xfe, 0xf8, 0xe4, 0xa7, 0x2c, - 0x06, 0x88, 0xa4, 0x2c, 0x06, 0x48, 0xbd, 0x07, 0x13, 0x82, 0x2f, 0xbb, 0xc0, 0x87, 0xa6, 0x65, - 0xc8, 0x17, 0x98, 0xad, 0xe5, 0x0b, 0xcc, 0xd6, 0xc1, 0x45, 0x1f, 0xee, 0x7d, 0xd1, 0x53, 0x26, - 0x9c, 0xea, 0x70, 0x0d, 0x9e, 0x20, 0xe9, 0x2a, 0xc7, 0xb6, 0x01, 0x3f, 0x53, 0xe0, 0x42, 0x7f, - 0x11, 0xdf, 0x9f, 0xf8, 0xbb, 0xb2, 0x78, 0x7f, 0xc8, 0x8b, 0x30, 0x6c, 0x91, 0x76, 0x9c, 0x82, - 0x27, 0xdf, 0x72, 0x69, 0x3f, 0x1a, 0x83, 0xb3, 0x3d, 0x54, 0x64, 0xf3, 0xc5, 0x42, 0x55, 0xff, - 0xb6, 0x59, 0xad, 0x57, 0xc3, 0xe1, 0x62, 0xcf, 0xd1, 0x4b, 0xac, 0x2c, 0x8a, 0xd0, 0xfb, 0xca, - 0x71, 0x86, 0x66, 0xee, 0x73, 0x0e, 0x3e, 0xf4, 0x96, 0xa0, 0x97, 0xea, 0x75, 0xb5, 0x33, 0x86, - 0x5c, 0xaf, 0xbb, 0xa0, 0x90, 0xdf, 0x29, 0x70, 0xbe, 0xab, 0x8a, 0x98, 0xfb, 0x6c, 0xbb, 0x82, - 0x41, 0x1d, 0x5f, 0xcd, 0x3d, 0xa9, 0xaa, 0xd9, 0xa3, 0x2d, 0xdb, 0xae, 0x70, 0x85, 0x5f, 0x6d, - 0x36, 0xd2, 0xaf, 0x54, 0x7b, 0xe1, 0x49, 0x6a, 0xbf, 0xd0, 0x13, 0x91, 0x35, 0x1b, 0xbd, 0x9c, - 0x73, 0x52, 0x71, 0xaf, 0x1d, 0x6f, 0x66, 0x7f, 0xa2, 0x1f, 0x44, 0x63, 0xfe, 0xa5, 0x76, 0xff, - 0x32, 0x86, 0x83, 0xc5, 0xbd, 0xf6, 0xfb, 0x61, 0x48, 0x1f, 0xc3, 0x83, 0xfc, 0xb2, 0x8f, 0xc0, - 0xbc, 0xd9, 0x8f, 0x36, 0x27, 0x1a, 0x9c, 0x9f, 0xc7, 0xf9, 0x6a, 0x79, 0x88, 0x61, 0x1d, 0xb8, - 0x67, 0xba, 0x1e, 0xb9, 0x0a, 0xe3, 0xd8, 0xce, 0xfb, 0x75, 0x02, 0xc2, 0x3a, 0xc1, 0x6b, 0x0e, - 0xdf, 0x95, 0x6b, 0x0e, 0x87, 0x68, 0xbb, 0x40, 0xf8, 0x1b, 0x6c, 0x45, 0xea, 0x81, 0xc9, 0x0d, - 0x48, 0x94, 0x38, 0x94, 0x1a, 0xd2, 0xac, 0x82, 0xdf, 0x65, 0x82, 0x8d, 0xe8, 0xc4, 0x32, 0x25, - 0xc3, 0xb5, 0x6b, 0x30, 0x83, 0xd2, 0x6f, 0xd3, 0xe0, 0xc5, 0xbe, 0xcf, 0x26, 0x50, 0x7b, 0x13, - 0x08, 0x92, 0xe6, 0xb0, 0x56, 0x0f, 0x4a, 0xfd, 0x55, 0x98, 0x43, 0xea, 0x5d, 0xab, 0xf4, 0x44, - 0xf4, 0x37, 0x40, 0xdd, 0xf1, 0x1c, 0xaa, 0x57, 0x4d, 0xab, 0xdc, 0x6a, 0xc1, 0x8b, 0x30, 0x62, - 0xd5, 0xab, 0xc8, 0x22, 0xc1, 0x8f, 0xd1, 0xaa, 0x57, 0xe5, 0x63, 0xb4, 0xea, 0xd5, 0x40, 0xfd, - 0x35, 0x5a, 0xa1, 0x1e, 0x1d, 0x54, 0xfc, 0xc7, 0x0a, 0x00, 0x7f, 0x32, 0x5e, 0xb7, 0xf6, 0xec, - 0xbe, 0x1b, 0xe7, 0x6b, 0x10, 0xc7, 0xf3, 0x34, 0x0a, 0x07, 0x36, 0xd6, 0x76, 0x65, 0x79, 0x8c, - 0x77, 0xbc, 0x1c, 0xbc, 0x61, 0x47, 0x0a, 0x3c, 0x84, 0x50, 0x46, 0x5a, 0xa1, 0xba, 0xeb, 0x93, - 0x8e, 0x84, 0xa4, 0x1c, 0xdc, 0x4a, 0x1a, 0x42, 0xb5, 0xc7, 0x70, 0x8a, 0xfb, 0xba, 0x66, 0xe8, - 0x5e, 0x38, 0xf8, 0xbd, 0x21, 0x7f, 0x9a, 0x89, 0xc6, 0x62, 0xaf, 0x49, 0x74, 0x80, 0xc1, 0xa6, - 0x0e, 0x6a, 0x56, 0xf7, 0x4a, 0xfb, 0x9d, 0xa4, 0xbf, 0x07, 0x89, 0x3d, 0xdd, 0xac, 0xf8, 0x8f, - 0x90, 0xfe, 0x8d, 0x50, 0x43, 0x2d, 0xa2, 0x04, 0x3c, 0xa8, 0x39, 0xc9, 0x5b, 0xad, 0xb7, 0x64, - 0x4a, 0x86, 0x07, 0xf6, 0xe6, 0xf0, 0x99, 0xea, 0xf3, 0xb2, 0xb7, 0x45, 0xfa, 0xf1, 0xf6, 0x46, - 0x09, 0x06, 0xb0, 0x37, 0x0e, 0xb1, 0xbc, 0x65, 0xdc, 0xd7, 0x9d, 0x43, 0xea, 0x68, 0x1f, 0x29, - 0x70, 0x3a, 0x7a, 0x33, 0xee, 0x53, 0xd7, 0xd5, 0xcb, 0x94, 0x7c, 0x69, 0x30, 0xfb, 0xef, 0x0c, - 0x85, 0x5f, 0x04, 0x46, 0xa8, 0x65, 0x88, 0xa2, 0x32, 0x8d, 0x64, 0x81, 0x3c, 0x7e, 0xbf, 0xa8, - 0xdc, 0x63, 0xde, 0x19, 0xda, 0x66, 0xf8, 0xd9, 0x09, 0x18, 0xa3, 0x8f, 0xa8, 0xe5, 0x69, 0x3f, - 0x50, 0xc4, 0x81, 0xb4, 0x7c, 0x1b, 0xec, 0xf7, 0xd6, 0xdc, 0x0e, 0xc7, 0x4d, 0x2c, 0x1b, 0xd4, - 0xef, 0x8a, 0xf1, 0x13, 0x65, 0xcb, 0x96, 0xfc, 0x89, 0xb2, 0x65, 0x4b, 0xfb, 0x93, 0xe2, 0xe7, - 0xac, 0xc8, 0xe7, 0xac, 0xe7, 0xad, 0x07, 0x59, 0x83, 0xd8, 0x81, 0xf8, 0x98, 0xc4, 0xc7, 0xde, - 0xb6, 0x4f, 0x4c, 0xf8, 0x06, 0x18, 0xe0, 0xc8, 0x6f, 0x80, 0x01, 0xf0, 0x52, 0x0a, 0xe2, 0xd2, - 0x9f, 0x17, 0x48, 0x1c, 0x26, 0xc4, 0x32, 0x39, 0x74, 0xe9, 0x22, 0xc4, 0xa5, 0x8f, 0xdc, 0x64, - 0x0a, 0x26, 0x37, 0x6d, 0x83, 0x6e, 0xd9, 0x8e, 0x97, 0x1c, 0x62, 0xab, 0x3b, 0x54, 0x37, 0x2a, - 0x0c, 0x55, 0xb9, 0xf4, 0x73, 0x05, 0x26, 0x7d, 0xb9, 0x04, 0x60, 0xfc, 0xad, 0xdd, 0xfc, 0x6e, - 0x7e, 0x2d, 0x39, 0xc4, 0x18, 0x6e, 0xe5, 0x37, 0xd7, 0xd6, 0x37, 0x6f, 0x27, 0x15, 0xb6, 0xd8, - 0xde, 0xdd, 0xdc, 0x64, 0x8b, 0x61, 0x92, 0x80, 0xd8, 0xce, 0x6e, 0x2e, 0x97, 0xcf, 0xaf, 0xe5, - 0xd7, 0x92, 0x23, 0x8c, 0xe8, 0xd6, 0xcd, 0xf5, 0x7b, 0xf9, 0xb5, 0xe4, 0x28, 0xc3, 0xdb, 0xdd, - 0xbc, 0xbb, 0xf9, 0xe0, 0x9d, 0xcd, 0xe4, 0x18, 0xc7, 0xcb, 0xde, 0x5f, 0x7f, 0xf8, 0x30, 0xbf, - 0x96, 0x1c, 0x67, 0x78, 0xf7, 0xf2, 0x37, 0x77, 0xf2, 0x6b, 0xc9, 0x09, 0xb6, 0xb5, 0xb5, 0x9d, - 0xcf, 0xdf, 0xdf, 0x62, 0x5b, 0x93, 0x6c, 0x99, 0xbb, 0xb9, 0x99, 0xcb, 0xdf, 0x63, 0x5c, 0x62, - 0x4c, 0xc3, 0xed, 0xfc, 0x46, 0x3e, 0xc7, 0x36, 0x61, 0xf5, 0x8f, 0x63, 0x30, 0x85, 0xc7, 0xe6, - 0x3f, 0x9a, 0xbe, 0x0e, 0x71, 0x7e, 0x59, 0xf8, 0xb3, 0x85, 0x14, 0xc9, 0xa9, 0xf9, 0xb6, 0xe7, - 0xec, 0x3c, 0xf3, 0x9b, 0x36, 0x44, 0x6e, 0xc0, 0x94, 0x44, 0xe4, 0x92, 0xe9, 0x90, 0x8a, 0xd5, - 0xe6, 0xd4, 0x0b, 0xb8, 0xee, 0x76, 0x7f, 0xb5, 0x21, 0x26, 0x95, 0xa7, 0xa4, 0x01, 0xa5, 0x4a, - 0x44, 0xc7, 0x4b, 0x8d, 0x26, 0x3d, 0x6d, 0x88, 0x7c, 0x0d, 0xe2, 0xbc, 0x44, 0x71, 0xa9, 0x67, - 0x42, 0xfa, 0x48, 0xe5, 0xea, 0xa1, 0x42, 0x06, 0x26, 0x6f, 0x53, 0x8f, 0x93, 0xcf, 0x85, 0xe4, - 0x61, 0xc1, 0x4c, 0x49, 0xa6, 0x68, 0x43, 0x64, 0x03, 0x62, 0x3e, 0xbe, 0x4b, 0xb8, 0x7e, 0xdd, - 0x4a, 0x6d, 0x2a, 0xd5, 0x61, 0x5b, 0xe4, 0x1b, 0x6d, 0xe8, 0x35, 0x85, 0x69, 0xcf, 0xfb, 0x83, - 0x36, 0xed, 0x23, 0x6d, 0x43, 0x0f, 0xed, 0xd7, 0x20, 0xe1, 0xf7, 0x08, 0x9c, 0xc7, 0x82, 0x54, - 0x21, 0xa2, 0xcd, 0x43, 0x4f, 0x2e, 0xd3, 0x22, 0xf9, 0x3c, 0x10, 0x6c, 0xa4, 0xc4, 0x1b, 0x4d, - 0x4b, 0x3d, 0xb8, 0x64, 0x21, 0xc1, 0x33, 0xc7, 0x83, 0x0e, 0xf6, 0xc8, 0x29, 0xa5, 0x3b, 0x8f, - 0xd5, 0x1f, 0xc6, 0x60, 0x9c, 0x3f, 0xdb, 0x91, 0xb7, 0x01, 0xf8, 0x2f, 0x2c, 0xf0, 0xa7, 0x3b, - 0xfe, 0x15, 0x23, 0x35, 0xdf, 0xf9, 0xad, 0x4f, 0x5b, 0xf8, 0xde, 0x5f, 0xfe, 0xf1, 0xe3, 0xe1, - 0x53, 0xda, 0xf4, 0xca, 0xa3, 0x2b, 0x2b, 0x07, 0x76, 0x51, 0xfc, 0xd1, 0xf4, 0xba, 0x72, 0x89, - 0xbc, 0x03, 0xc0, 0xb5, 0x89, 0xf2, 0x8d, 0x6a, 0xc8, 0x55, 0x6f, 0xef, 0x29, 0xdb, 0x19, 0xf3, - 0x86, 0x91, 0x31, 0xfe, 0x26, 0x4c, 0x05, 0x8c, 0x77, 0xa8, 0x27, 0x7c, 0xd8, 0xe1, 0x1f, 0x02, - 0x5d, 0xed, 0x3f, 0x87, 0xcc, 0xe7, 0xb5, 0x59, 0xc1, 0xdc, 0xa5, 0x9e, 0xc4, 0xdf, 0x82, 0xa4, - 0xfc, 0xc2, 0x8c, 0xea, 0x9f, 0xed, 0xfc, 0xf6, 0xcc, 0xc5, 0x9c, 0xeb, 0xf5, 0x30, 0xad, 0xa5, - 0x51, 0xd8, 0x82, 0x36, 0xe7, 0x5b, 0x22, 0x3d, 0x32, 0x53, 0x26, 0xef, 0x3d, 0x88, 0x8b, 0xb3, - 0x47, 0x51, 0x81, 0xab, 0xfb, 0x0c, 0x88, 0x14, 0xf2, 0x9f, 0xd3, 0x66, 0x7c, 0xfe, 0x35, 0x4e, - 0xc7, 0x58, 0xdf, 0x1e, 0x3c, 0x45, 0xcd, 0x21, 0xbb, 0x69, 0x2d, 0xc6, 0xd8, 0x61, 0xe5, 0x65, - 0x8c, 0x4a, 0x4f, 0x97, 0xb6, 0x5e, 0x42, 0xa6, 0x8b, 0xda, 0x02, 0x63, 0x5a, 0x64, 0x58, 0xd4, - 0x58, 0xe1, 0xdf, 0xef, 0x44, 0x23, 0xc2, 0x84, 0x6c, 0x0e, 0x9e, 0xda, 0xce, 0x22, 0xe3, 0xd3, - 0xa9, 0x64, 0xa0, 0xed, 0xca, 0x77, 0x59, 0x95, 0xfc, 0x40, 0x28, 0xfd, 0x34, 0x59, 0x4f, 0x28, - 0x9d, 0x8a, 0x28, 0x5d, 0x47, 0x1c, 0x49, 0xe9, 0x77, 0x9f, 0x32, 0x33, 0xaa, 0x28, 0x85, 0x5c, - 0x6a, 0xb3, 0x80, 0xdc, 0x1a, 0x28, 0x63, 0x0a, 0x3e, 0xa4, 0x9d, 0x8f, 0xf1, 0x8c, 0x32, 0xa9, - 0x08, 0x34, 0x42, 0x64, 0x7f, 0x70, 0x47, 0xbc, 0xa6, 0x90, 0xeb, 0x30, 0x7e, 0x07, 0xff, 0x9f, - 0x4d, 0xba, 0x58, 0x9a, 0xe2, 0xf7, 0x94, 0x23, 0xe5, 0xf6, 0x69, 0xe9, 0x30, 0x68, 0x32, 0xdf, - 0xfd, 0xc3, 0xa7, 0x8b, 0xca, 0x27, 0x9f, 0x2e, 0x2a, 0x7f, 0xff, 0x74, 0x51, 0xf9, 0xe8, 0xb3, - 0xc5, 0xa1, 0x4f, 0x3e, 0x5b, 0x1c, 0xfa, 0xeb, 0x67, 0x8b, 0x43, 0x5f, 0x7f, 0xa5, 0x6c, 0x7a, - 0xfb, 0xf5, 0x62, 0xa6, 0x64, 0x57, 0x57, 0x74, 0xa7, 0xaa, 0x1b, 0x7a, 0xcd, 0xb1, 0x0f, 0x68, - 0xc9, 0x13, 0xab, 0x15, 0xf1, 0xdf, 0xf0, 0x8f, 0x87, 0xe7, 0x6e, 0x22, 0x60, 0x8b, 0x6f, 0x67, - 0xd6, 0xed, 0xcc, 0xcd, 0x9a, 0x59, 0x1c, 0x47, 0x1d, 0x5e, 0xff, 0x5f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x0e, 0xd4, 0xc6, 0x26, 0x09, 0x2f, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// QueueServiceClient is the client API for QueueService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueueServiceClient interface { - CreateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*types.Empty, error) - CreateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueCreateResponse, error) - UpdateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*types.Empty, error) - UpdateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueUpdateResponse, error) - DeleteQueue(ctx context.Context, in *QueueDeleteRequest, opts ...grpc.CallOption) (*types.Empty, error) - GetQueue(ctx context.Context, in *QueueGetRequest, opts ...grpc.CallOption) (*Queue, error) - GetQueues(ctx context.Context, in *StreamingQueueGetRequest, opts ...grpc.CallOption) (QueueService_GetQueuesClient, error) - CordonQueue(ctx context.Context, in *QueueCordonRequest, opts ...grpc.CallOption) (*types.Empty, error) - UncordonQueue(ctx context.Context, in *QueueUncordonRequest, opts ...grpc.CallOption) (*types.Empty, error) - PreemptOnQueue(ctx context.Context, in *QueuePreemptRequest, opts ...grpc.CallOption) (*types.Empty, error) - CancelOnQueue(ctx context.Context, in *QueueCancelRequest, opts ...grpc.CallOption) (*types.Empty, error) -} - -type queueServiceClient struct { - cc *grpc.ClientConn -} - -func NewQueueServiceClient(cc *grpc.ClientConn) QueueServiceClient { - return &queueServiceClient{cc} -} - -func (c *queueServiceClient) CreateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.QueueService/CreateQueue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queueServiceClient) CreateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueCreateResponse, error) { - out := new(BatchQueueCreateResponse) - err := c.cc.Invoke(ctx, "/api.QueueService/CreateQueues", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queueServiceClient) UpdateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.QueueService/UpdateQueue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use QueueCancelRequest.ProtoReflect.Descriptor instead. +func (*QueueCancelRequest) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{31} } -func (c *queueServiceClient) UpdateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueUpdateResponse, error) { - out := new(BatchQueueUpdateResponse) - err := c.cc.Invoke(ctx, "/api.QueueService/UpdateQueues", in, out, opts...) - if err != nil { - return nil, err +func (x *QueueCancelRequest) GetName() string { + if x != nil { + return x.Name } - return out, nil + return "" } -func (c *queueServiceClient) DeleteQueue(ctx context.Context, in *QueueDeleteRequest, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.QueueService/DeleteQueue", in, out, opts...) - if err != nil { - return nil, err +func (x *QueueCancelRequest) GetPriorityClasses() []string { + if x != nil { + return x.PriorityClasses } - return out, nil + return nil } -func (c *queueServiceClient) GetQueue(ctx context.Context, in *QueueGetRequest, opts ...grpc.CallOption) (*Queue, error) { - out := new(Queue) - err := c.cc.Invoke(ctx, "/api.QueueService/GetQueue", in, out, opts...) - if err != nil { - return nil, err +func (x *QueueCancelRequest) GetJobStates() []JobState { + if x != nil { + return x.JobStates } - return out, nil + return nil } -func (c *queueServiceClient) GetQueues(ctx context.Context, in *StreamingQueueGetRequest, opts ...grpc.CallOption) (QueueService_GetQueuesClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueueService_serviceDesc.Streams[0], "/api.QueueService/GetQueues", opts...) - if err != nil { - return nil, err - } - x := &queueServiceGetQueuesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil +type Queue_Permissions struct { + state protoimpl.MessageState `protogen:"open.v1"` + Subjects []*Queue_Permissions_Subject `protobuf:"bytes,1,rep,name=subjects,proto3" json:"subjects,omitempty"` + Verbs []string `protobuf:"bytes,2,rep,name=verbs,proto3" json:"verbs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -type QueueService_GetQueuesClient interface { - Recv() (*StreamingQueueMessage, error) - grpc.ClientStream +func (x *Queue_Permissions) Reset() { + *x = Queue_Permissions{} + mi := &file_pkg_api_submit_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -type queueServiceGetQueuesClient struct { - grpc.ClientStream +func (x *Queue_Permissions) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *queueServiceGetQueuesClient) Recv() (*StreamingQueueMessage, error) { - m := new(StreamingQueueMessage) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +func (*Queue_Permissions) ProtoMessage() {} -func (c *queueServiceClient) CordonQueue(ctx context.Context, in *QueueCordonRequest, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.QueueService/CordonQueue", in, out, opts...) - if err != nil { - return nil, err +func (x *Queue_Permissions) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[40] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -func (c *queueServiceClient) UncordonQueue(ctx context.Context, in *QueueUncordonRequest, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.QueueService/UncordonQueue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use Queue_Permissions.ProtoReflect.Descriptor instead. +func (*Queue_Permissions) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{13, 0} } -func (c *queueServiceClient) PreemptOnQueue(ctx context.Context, in *QueuePreemptRequest, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.QueueService/PreemptOnQueue", in, out, opts...) - if err != nil { - return nil, err +func (x *Queue_Permissions) GetSubjects() []*Queue_Permissions_Subject { + if x != nil { + return x.Subjects } - return out, nil + return nil } -func (c *queueServiceClient) CancelOnQueue(ctx context.Context, in *QueueCancelRequest, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.QueueService/CancelOnQueue", in, out, opts...) - if err != nil { - return nil, err +func (x *Queue_Permissions) GetVerbs() []string { + if x != nil { + return x.Verbs } - return out, nil + return nil } -// QueueServiceServer is the server API for QueueService service. -type QueueServiceServer interface { - CreateQueue(context.Context, *Queue) (*types.Empty, error) - CreateQueues(context.Context, *QueueList) (*BatchQueueCreateResponse, error) - UpdateQueue(context.Context, *Queue) (*types.Empty, error) - UpdateQueues(context.Context, *QueueList) (*BatchQueueUpdateResponse, error) - DeleteQueue(context.Context, *QueueDeleteRequest) (*types.Empty, error) - GetQueue(context.Context, *QueueGetRequest) (*Queue, error) - GetQueues(*StreamingQueueGetRequest, QueueService_GetQueuesServer) error - CordonQueue(context.Context, *QueueCordonRequest) (*types.Empty, error) - UncordonQueue(context.Context, *QueueUncordonRequest) (*types.Empty, error) - PreemptOnQueue(context.Context, *QueuePreemptRequest) (*types.Empty, error) - CancelOnQueue(context.Context, *QueueCancelRequest) (*types.Empty, error) +type Queue_Permissions_Subject struct { + state protoimpl.MessageState `protogen:"open.v1"` + Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -// UnimplementedQueueServiceServer can be embedded to have forward compatible implementations. -type UnimplementedQueueServiceServer struct { +func (x *Queue_Permissions_Subject) Reset() { + *x = Queue_Permissions_Subject{} + mi := &file_pkg_api_submit_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (*UnimplementedQueueServiceServer) CreateQueue(ctx context.Context, req *Queue) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateQueue not implemented") -} -func (*UnimplementedQueueServiceServer) CreateQueues(ctx context.Context, req *QueueList) (*BatchQueueCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateQueues not implemented") -} -func (*UnimplementedQueueServiceServer) UpdateQueue(ctx context.Context, req *Queue) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateQueue not implemented") -} -func (*UnimplementedQueueServiceServer) UpdateQueues(ctx context.Context, req *QueueList) (*BatchQueueUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateQueues not implemented") -} -func (*UnimplementedQueueServiceServer) DeleteQueue(ctx context.Context, req *QueueDeleteRequest) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteQueue not implemented") -} -func (*UnimplementedQueueServiceServer) GetQueue(ctx context.Context, req *QueueGetRequest) (*Queue, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetQueue not implemented") -} -func (*UnimplementedQueueServiceServer) GetQueues(req *StreamingQueueGetRequest, srv QueueService_GetQueuesServer) error { - return status.Errorf(codes.Unimplemented, "method GetQueues not implemented") -} -func (*UnimplementedQueueServiceServer) CordonQueue(ctx context.Context, req *QueueCordonRequest) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method CordonQueue not implemented") -} -func (*UnimplementedQueueServiceServer) UncordonQueue(ctx context.Context, req *QueueUncordonRequest) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method UncordonQueue not implemented") -} -func (*UnimplementedQueueServiceServer) PreemptOnQueue(ctx context.Context, req *QueuePreemptRequest) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method PreemptOnQueue not implemented") -} -func (*UnimplementedQueueServiceServer) CancelOnQueue(ctx context.Context, req *QueueCancelRequest) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelOnQueue not implemented") +func (x *Queue_Permissions_Subject) String() string { + return protoimpl.X.MessageStringOf(x) } -func RegisterQueueServiceServer(s *grpc.Server, srv QueueServiceServer) { - s.RegisterService(&_QueueService_serviceDesc, srv) -} +func (*Queue_Permissions_Subject) ProtoMessage() {} -func _QueueService_CreateQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Queue) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueueServiceServer).CreateQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.QueueService/CreateQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueueServiceServer).CreateQueue(ctx, req.(*Queue)) +func (x *Queue_Permissions_Subject) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_submit_proto_msgTypes[44] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _QueueService_CreateQueues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueueList) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueueServiceServer).CreateQueues(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.QueueService/CreateQueues", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueueServiceServer).CreateQueues(ctx, req.(*QueueList)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use Queue_Permissions_Subject.ProtoReflect.Descriptor instead. +func (*Queue_Permissions_Subject) Descriptor() ([]byte, []int) { + return file_pkg_api_submit_proto_rawDescGZIP(), []int{13, 0, 0} } -func _QueueService_UpdateQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Queue) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueueServiceServer).UpdateQueue(ctx, in) +func (x *Queue_Permissions_Subject) GetKind() string { + if x != nil { + return x.Kind } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.QueueService/UpdateQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueueServiceServer).UpdateQueue(ctx, req.(*Queue)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _QueueService_UpdateQueues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueueList) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueueServiceServer).UpdateQueues(ctx, in) +func (x *Queue_Permissions_Subject) GetName() string { + if x != nil { + return x.Name } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.QueueService/UpdateQueues", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueueServiceServer).UpdateQueues(ctx, req.(*QueueList)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _QueueService_DeleteQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueueDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueueServiceServer).DeleteQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.QueueService/DeleteQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueueServiceServer).DeleteQueue(ctx, req.(*QueueDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _QueueService_GetQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueueGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueueServiceServer).GetQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.QueueService/GetQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueueServiceServer).GetQueue(ctx, req.(*QueueGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _QueueService_GetQueues_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(StreamingQueueGetRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(QueueServiceServer).GetQueues(m, &queueServiceGetQueuesServer{stream}) -} - -type QueueService_GetQueuesServer interface { - Send(*StreamingQueueMessage) error - grpc.ServerStream -} - -type queueServiceGetQueuesServer struct { - grpc.ServerStream -} - -func (x *queueServiceGetQueuesServer) Send(m *StreamingQueueMessage) error { - return x.ServerStream.SendMsg(m) -} - -func _QueueService_CordonQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueueCordonRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueueServiceServer).CordonQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.QueueService/CordonQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueueServiceServer).CordonQueue(ctx, req.(*QueueCordonRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _QueueService_UncordonQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueueUncordonRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueueServiceServer).UncordonQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.QueueService/UncordonQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueueServiceServer).UncordonQueue(ctx, req.(*QueueUncordonRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _QueueService_PreemptOnQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueuePreemptRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueueServiceServer).PreemptOnQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.QueueService/PreemptOnQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueueServiceServer).PreemptOnQueue(ctx, req.(*QueuePreemptRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _QueueService_CancelOnQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueueCancelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueueServiceServer).CancelOnQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.QueueService/CancelOnQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueueServiceServer).CancelOnQueue(ctx, req.(*QueueCancelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _QueueService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "api.QueueService", - HandlerType: (*QueueServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateQueue", - Handler: _QueueService_CreateQueue_Handler, - }, - { - MethodName: "CreateQueues", - Handler: _QueueService_CreateQueues_Handler, - }, - { - MethodName: "UpdateQueue", - Handler: _QueueService_UpdateQueue_Handler, - }, - { - MethodName: "UpdateQueues", - Handler: _QueueService_UpdateQueues_Handler, - }, - { - MethodName: "DeleteQueue", - Handler: _QueueService_DeleteQueue_Handler, - }, - { - MethodName: "GetQueue", - Handler: _QueueService_GetQueue_Handler, - }, - { - MethodName: "CordonQueue", - Handler: _QueueService_CordonQueue_Handler, - }, - { - MethodName: "UncordonQueue", - Handler: _QueueService_UncordonQueue_Handler, - }, - { - MethodName: "PreemptOnQueue", - Handler: _QueueService_PreemptOnQueue_Handler, - }, - { - MethodName: "CancelOnQueue", - Handler: _QueueService_CancelOnQueue_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "GetQueues", - Handler: _QueueService_GetQueues_Handler, - ServerStreams: true, - }, - }, - Metadata: "pkg/api/submit.proto", -} - -// SubmitClient is the client API for Submit service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type SubmitClient interface { - SubmitJobs(ctx context.Context, in *JobSubmitRequest, opts ...grpc.CallOption) (*JobSubmitResponse, error) - CancelJobs(ctx context.Context, in *JobCancelRequest, opts ...grpc.CallOption) (*CancellationResult, error) - CancelJobSet(ctx context.Context, in *JobSetCancelRequest, opts ...grpc.CallOption) (*types.Empty, error) - ReprioritizeJobs(ctx context.Context, in *JobReprioritizeRequest, opts ...grpc.CallOption) (*JobReprioritizeResponse, error) - PreemptJobs(ctx context.Context, in *JobPreemptRequest, opts ...grpc.CallOption) (*types.Empty, error) - CreateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*types.Empty, error) - CreateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueCreateResponse, error) - UpdateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*types.Empty, error) - UpdateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueUpdateResponse, error) - DeleteQueue(ctx context.Context, in *QueueDeleteRequest, opts ...grpc.CallOption) (*types.Empty, error) - GetQueue(ctx context.Context, in *QueueGetRequest, opts ...grpc.CallOption) (*Queue, error) - GetQueues(ctx context.Context, in *StreamingQueueGetRequest, opts ...grpc.CallOption) (Submit_GetQueuesClient, error) - Health(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error) -} - -type submitClient struct { - cc *grpc.ClientConn -} - -func NewSubmitClient(cc *grpc.ClientConn) SubmitClient { - return &submitClient{cc} -} - -func (c *submitClient) SubmitJobs(ctx context.Context, in *JobSubmitRequest, opts ...grpc.CallOption) (*JobSubmitResponse, error) { - out := new(JobSubmitResponse) - err := c.cc.Invoke(ctx, "/api.Submit/SubmitJobs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *submitClient) CancelJobs(ctx context.Context, in *JobCancelRequest, opts ...grpc.CallOption) (*CancellationResult, error) { - out := new(CancellationResult) - err := c.cc.Invoke(ctx, "/api.Submit/CancelJobs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *submitClient) CancelJobSet(ctx context.Context, in *JobSetCancelRequest, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.Submit/CancelJobSet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *submitClient) ReprioritizeJobs(ctx context.Context, in *JobReprioritizeRequest, opts ...grpc.CallOption) (*JobReprioritizeResponse, error) { - out := new(JobReprioritizeResponse) - err := c.cc.Invoke(ctx, "/api.Submit/ReprioritizeJobs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *submitClient) PreemptJobs(ctx context.Context, in *JobPreemptRequest, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.Submit/PreemptJobs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *submitClient) CreateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.Submit/CreateQueue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *submitClient) CreateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueCreateResponse, error) { - out := new(BatchQueueCreateResponse) - err := c.cc.Invoke(ctx, "/api.Submit/CreateQueues", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *submitClient) UpdateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.Submit/UpdateQueue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *submitClient) UpdateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueUpdateResponse, error) { - out := new(BatchQueueUpdateResponse) - err := c.cc.Invoke(ctx, "/api.Submit/UpdateQueues", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *submitClient) DeleteQueue(ctx context.Context, in *QueueDeleteRequest, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/api.Submit/DeleteQueue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *submitClient) GetQueue(ctx context.Context, in *QueueGetRequest, opts ...grpc.CallOption) (*Queue, error) { - out := new(Queue) - err := c.cc.Invoke(ctx, "/api.Submit/GetQueue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *submitClient) GetQueues(ctx context.Context, in *StreamingQueueGetRequest, opts ...grpc.CallOption) (Submit_GetQueuesClient, error) { - stream, err := c.cc.NewStream(ctx, &_Submit_serviceDesc.Streams[0], "/api.Submit/GetQueues", opts...) - if err != nil { - return nil, err - } - x := &submitGetQueuesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Submit_GetQueuesClient interface { - Recv() (*StreamingQueueMessage, error) - grpc.ClientStream -} - -type submitGetQueuesClient struct { - grpc.ClientStream -} - -func (x *submitGetQueuesClient) Recv() (*StreamingQueueMessage, error) { - m := new(StreamingQueueMessage) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *submitClient) Health(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error) { - out := new(HealthCheckResponse) - err := c.cc.Invoke(ctx, "/api.Submit/Health", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// SubmitServer is the server API for Submit service. -type SubmitServer interface { - SubmitJobs(context.Context, *JobSubmitRequest) (*JobSubmitResponse, error) - CancelJobs(context.Context, *JobCancelRequest) (*CancellationResult, error) - CancelJobSet(context.Context, *JobSetCancelRequest) (*types.Empty, error) - ReprioritizeJobs(context.Context, *JobReprioritizeRequest) (*JobReprioritizeResponse, error) - PreemptJobs(context.Context, *JobPreemptRequest) (*types.Empty, error) - CreateQueue(context.Context, *Queue) (*types.Empty, error) - CreateQueues(context.Context, *QueueList) (*BatchQueueCreateResponse, error) - UpdateQueue(context.Context, *Queue) (*types.Empty, error) - UpdateQueues(context.Context, *QueueList) (*BatchQueueUpdateResponse, error) - DeleteQueue(context.Context, *QueueDeleteRequest) (*types.Empty, error) - GetQueue(context.Context, *QueueGetRequest) (*Queue, error) - GetQueues(*StreamingQueueGetRequest, Submit_GetQueuesServer) error - Health(context.Context, *types.Empty) (*HealthCheckResponse, error) -} - -// UnimplementedSubmitServer can be embedded to have forward compatible implementations. -type UnimplementedSubmitServer struct { -} - -func (*UnimplementedSubmitServer) SubmitJobs(ctx context.Context, req *JobSubmitRequest) (*JobSubmitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SubmitJobs not implemented") -} -func (*UnimplementedSubmitServer) CancelJobs(ctx context.Context, req *JobCancelRequest) (*CancellationResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelJobs not implemented") -} -func (*UnimplementedSubmitServer) CancelJobSet(ctx context.Context, req *JobSetCancelRequest) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelJobSet not implemented") -} -func (*UnimplementedSubmitServer) ReprioritizeJobs(ctx context.Context, req *JobReprioritizeRequest) (*JobReprioritizeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReprioritizeJobs not implemented") -} -func (*UnimplementedSubmitServer) PreemptJobs(ctx context.Context, req *JobPreemptRequest) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method PreemptJobs not implemented") -} -func (*UnimplementedSubmitServer) CreateQueue(ctx context.Context, req *Queue) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateQueue not implemented") -} -func (*UnimplementedSubmitServer) CreateQueues(ctx context.Context, req *QueueList) (*BatchQueueCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateQueues not implemented") -} -func (*UnimplementedSubmitServer) UpdateQueue(ctx context.Context, req *Queue) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateQueue not implemented") -} -func (*UnimplementedSubmitServer) UpdateQueues(ctx context.Context, req *QueueList) (*BatchQueueUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateQueues not implemented") -} -func (*UnimplementedSubmitServer) DeleteQueue(ctx context.Context, req *QueueDeleteRequest) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteQueue not implemented") -} -func (*UnimplementedSubmitServer) GetQueue(ctx context.Context, req *QueueGetRequest) (*Queue, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetQueue not implemented") -} -func (*UnimplementedSubmitServer) GetQueues(req *StreamingQueueGetRequest, srv Submit_GetQueuesServer) error { - return status.Errorf(codes.Unimplemented, "method GetQueues not implemented") -} -func (*UnimplementedSubmitServer) Health(ctx context.Context, req *types.Empty) (*HealthCheckResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Health not implemented") -} +var File_pkg_api_submit_proto protoreflect.FileDescriptor + +var file_pkg_api_submit_proto_rawDesc = string([]byte{ + 0x0a, 0x14, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, + 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x6b, 0x38, 0x73, 0x2e, 0x69, + 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x6b, + 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, + 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x68, + 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x06, 0x0a, 0x14, + 0x4a, 0x6f, 0x62, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1b, + 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x06, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x4c, 0x0a, 0x0b, 0x61, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x67, 0x0a, 0x14, 0x72, 0x65, 0x71, 0x75, + 0x69, 0x72, 0x65, 0x64, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x74, 0x65, + 0x6d, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x72, + 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x12, 0x3a, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x64, 0x53, 0x70, 0x65, 0x63, + 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x53, 0x70, 0x65, 0x63, 0x12, 0x38, 0x0a, + 0x09, 0x70, 0x6f, 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x64, 0x53, 0x70, 0x65, 0x63, 0x52, 0x08, 0x70, + 0x6f, 0x64, 0x53, 0x70, 0x65, 0x63, 0x73, 0x12, 0x2c, 0x0a, 0x07, 0x69, 0x6e, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x49, + 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x69, 0x6e, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x72, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, + 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x45, + 0x0a, 0x17, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, 0x0c, 0x10, 0x0d, 0x22, 0xb9, 0x02, 0x0a, 0x0d, + 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x28, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x42, 0x02, 0x18, + 0x01, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x45, 0x0a, + 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6c, 0x73, 0x5f, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x74, 0x6c, 0x73, 0x45, 0x6e, + 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x65, 0x72, 0x74, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x49, 0x50, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x50, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x5f, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x05, 0x70, + 0x6f, 0x72, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8d, 0x01, 0x0a, 0x10, 0x4a, 0x6f, 0x62, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, + 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, + 0x65, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, + 0x64, 0x12, 0x45, 0x0a, 0x11, 0x6a, 0x6f, 0x62, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x0f, 0x6a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x78, 0x0a, 0x11, 0x4a, 0x6f, 0x62, 0x50, + 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, + 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, + 0x65, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, + 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x06, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x22, 0x8e, 0x01, 0x0a, 0x10, 0x4a, 0x6f, 0x62, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1c, + 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, + 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, + 0x75, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x06, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, + 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x22, 0x8c, 0x01, 0x0a, 0x13, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x43, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, + 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, + 0x29, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x22, 0x35, 0x0a, 0x0c, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x12, 0x25, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x22, 0xf8, 0x09, 0x0a, 0x03, 0x4a, 0x6f, + 0x62, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, + 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, + 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, + 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x12, 0x2c, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3b, + 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x2e, 0x41, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, + 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x56, 0x0a, 0x14, 0x72, + 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x4a, 0x6f, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, + 0x12, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x1b, 0x71, 0x75, 0x65, + 0x75, 0x65, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x5f, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x09, 0x52, 0x18, + 0x71, 0x75, 0x65, 0x75, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x55, 0x73, + 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x52, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x70, + 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x5f, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x22, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, + 0x73, 0x73, 0x65, 0x64, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, + 0x69, 0x70, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x1a, 0x0a, 0x08, + 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, + 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x3a, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, + 0x73, 0x70, 0x65, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6b, 0x38, 0x73, + 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x6f, 0x64, 0x53, 0x70, 0x65, 0x63, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x70, 0x6f, 0x64, + 0x53, 0x70, 0x65, 0x63, 0x12, 0x38, 0x0a, 0x09, 0x70, 0x6f, 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, + 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x64, + 0x53, 0x70, 0x65, 0x63, 0x52, 0x08, 0x70, 0x6f, 0x64, 0x53, 0x70, 0x65, 0x63, 0x73, 0x12, 0x72, + 0x0a, 0x20, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, + 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x52, 0x1e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2c, 0x0a, 0x07, 0x69, 0x6e, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x69, + 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x0b, 0x6b, 0x38, 0x73, 0x5f, 0x69, 0x6e, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6b, 0x38, + 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0a, + 0x6b, 0x38, 0x73, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3c, 0x0a, 0x0b, 0x6b, 0x38, + 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1b, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x0a, 0x6b, 0x38, + 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x72, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x1a, 0x45, 0x0a, 0x17, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x4e, 0x6f, 0x64, + 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, 0x16, 0x10, 0x17, 0x4a, 0x04, + 0x08, 0x1e, 0x10, 0x1f, 0x22, 0x88, 0x01, 0x0a, 0x16, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x70, 0x72, + 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x17, 0x0a, 0x07, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x06, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x73, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, + 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, + 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0c, + 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x01, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, + 0xdb, 0x01, 0x0a, 0x17, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, + 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x18, 0x72, + 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, + 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x72, + 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x17, 0x72, 0x65, 0x70, 0x72, 0x69, 0x6f, + 0x72, 0x69, 0x74, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x73, 0x1a, 0x4a, 0x0a, 0x1c, 0x52, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x44, 0x0a, + 0x15, 0x4a, 0x6f, 0x62, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x14, 0x0a, + 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x22, 0x5d, 0x0a, 0x11, 0x4a, 0x6f, 0x62, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x12, 0x6a, 0x6f, 0x62, 0x5f, + 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x75, + 0x62, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d, + 0x52, 0x10, 0x6a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x74, 0x65, + 0x6d, 0x73, 0x22, 0x9e, 0x07, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x66, 0x61, 0x63, + 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0e, 0x70, 0x72, 0x69, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, + 0x75, 0x73, 0x65, 0x72, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x4b, 0x0a, + 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, + 0x75, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x84, 0x01, 0x0a, 0x26, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x5f, 0x62, + 0x79, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x21, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, + 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, + 0x75, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, + 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x63, + 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, + 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x65, 0x64, 0x12, 0x2f, 0x0a, 0x11, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x09, 0x20, 0x03, + 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x10, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x44, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, + 0x75, 0x65, 0x75, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x92, 0x01, 0x0a, 0x0b, 0x50, 0x65, 0x72, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x65, 0x72, 0x62, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x05, 0x76, 0x65, 0x72, 0x62, 0x73, 0x1a, 0x31, 0x0a, 0x07, 0x53, 0x75, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x41, 0x0a, + 0x13, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x1a, 0x76, 0x0a, 0x26, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x6d, 0x69, + 0x74, 0x73, 0x42, 0x79, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0xec, 0x03, 0x0a, 0x1b, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x6d, + 0x69, 0x74, 0x73, 0x12, 0x79, 0x0a, 0x19, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x2e, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x17, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x8d, + 0x01, 0x0a, 0x21, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x79, 0x5f, + 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x2e, 0x4d, 0x61, 0x78, + 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x72, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x50, 0x6f, 0x6f, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x1d, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x50, 0x6f, 0x6f, 0x6c, 0x1a, 0x4a, + 0x0a, 0x1c, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x76, 0x0a, 0x22, 0x4d, 0x61, + 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x72, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x50, 0x6f, 0x6f, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x3a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0xec, 0x01, 0x0a, 0x1f, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x7d, 0x0a, 0x19, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, + 0x6d, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x6f, 0x6f, + 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x2e, + 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, + 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x17, 0x6d, 0x61, + 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x72, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x4a, 0x0a, 0x1c, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0x2f, 0x0a, 0x09, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x22, + 0x0a, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x06, 0x71, 0x75, 0x65, 0x75, + 0x65, 0x73, 0x22, 0x39, 0x0a, 0x12, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0c, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x49, 0x64, 0x73, 0x22, 0x25, 0x0a, + 0x0f, 0x51, 0x75, 0x65, 0x75, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x28, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x75, 0x65, 0x43, 0x6f, 0x72, + 0x64, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2a, + 0x0a, 0x14, 0x51, 0x75, 0x65, 0x75, 0x65, 0x55, 0x6e, 0x63, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2c, 0x0a, 0x18, 0x53, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x51, 0x75, 0x65, 0x75, 0x65, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6e, 0x75, 0x6d, 0x22, 0x28, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x75, + 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0x62, 0x0a, 0x0a, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x6a, + 0x6f, 0x62, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x71, 0x75, 0x65, 0x75, 0x65, + 0x64, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x64, 0x5f, + 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6c, 0x65, 0x61, 0x73, + 0x65, 0x64, 0x4a, 0x6f, 0x62, 0x73, 0x22, 0x4d, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x75, 0x65, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, + 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x59, 0x0a, 0x18, 0x42, 0x61, 0x74, 0x63, 0x68, 0x51, 0x75, + 0x65, 0x75, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x3d, 0x0a, 0x0d, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x71, 0x75, 0x65, 0x75, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, + 0x75, 0x65, 0x75, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x0c, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x51, 0x75, 0x65, 0x75, 0x65, 0x73, + 0x22, 0x4d, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, + 0x75, 0x65, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, + 0x59, 0x0a, 0x18, 0x42, 0x61, 0x74, 0x63, 0x68, 0x51, 0x75, 0x65, 0x75, 0x65, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0d, 0x66, + 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0c, 0x66, 0x61, + 0x69, 0x6c, 0x65, 0x64, 0x51, 0x75, 0x65, 0x75, 0x65, 0x73, 0x22, 0x0b, 0x0a, 0x09, 0x45, 0x6e, + 0x64, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x22, 0x68, 0x0a, 0x15, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x69, 0x6e, 0x67, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x22, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x48, 0x00, 0x52, 0x05, 0x71, + 0x75, 0x65, 0x75, 0x65, 0x12, 0x22, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6e, 0x64, 0x4d, 0x61, 0x72, 0x6b, 0x65, + 0x72, 0x48, 0x00, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x22, 0x53, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x75, 0x65, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f, + 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x22, 0x7f, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x75, 0x65, 0x43, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x28, 0x0a, 0x0f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x69, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x09, 0x6a, 0x6f, + 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0d, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x09, 0x6a, 0x6f, + 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x2a, 0x1a, 0x0a, 0x0b, 0x49, 0x6e, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x10, 0x00, 0x2a, 0x29, 0x0a, 0x0b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x10, 0x00, + 0x12, 0x0c, 0x0a, 0x08, 0x48, 0x65, 0x61, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x10, 0x01, 0x2a, 0x9f, + 0x01, 0x0a, 0x08, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x51, + 0x55, 0x45, 0x55, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, + 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, + 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x03, + 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, + 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x42, + 0x4d, 0x49, 0x54, 0x54, 0x45, 0x44, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x45, 0x41, 0x53, + 0x45, 0x44, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x52, 0x45, 0x45, 0x4d, 0x50, 0x54, 0x45, + 0x44, 0x10, 0x08, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, + 0x10, 0x09, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x0a, + 0x32, 0xca, 0x05, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x33, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, + 0x12, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x1a, 0x16, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, + 0x75, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x51, 0x75, 0x65, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, + 0x75, 0x65, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x0c, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x0e, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x51, 0x75, 0x65, 0x75, 0x65, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x40, 0x0a, + 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x17, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, + 0x2e, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x14, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x22, 0x00, 0x12, + 0x4a, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x51, 0x75, 0x65, 0x75, + 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x51, 0x75, 0x65, 0x75, 0x65, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x40, 0x0a, 0x0b, 0x43, + 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x43, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x44, 0x0a, + 0x0d, 0x55, 0x6e, 0x63, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x19, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x55, 0x6e, 0x63, 0x6f, 0x72, 0x64, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x4f, 0x6e, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, + 0x65, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x4f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x32, 0x8b, 0x09, + 0x0a, 0x06, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x12, 0x56, 0x0a, 0x0a, 0x53, 0x75, 0x62, 0x6d, + 0x69, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x3a, 0x01, 0x2a, + 0x22, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, + 0x12, 0x57, 0x0a, 0x0a, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x15, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x19, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x3a, 0x01, 0x2a, 0x22, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x6a, + 0x6f, 0x62, 0x2f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x5e, 0x0a, 0x0c, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x12, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1c, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x16, 0x3a, 0x01, 0x2a, 0x22, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x73, + 0x65, 0x74, 0x2f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x6e, 0x0a, 0x10, 0x52, 0x65, 0x70, + 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x1b, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, + 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, + 0x3a, 0x01, 0x2a, 0x22, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2f, 0x72, 0x65, 0x70, + 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x12, 0x59, 0x0a, 0x0b, 0x50, 0x72, 0x65, + 0x65, 0x6d, 0x70, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, + 0x6f, 0x62, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, + 0x3a, 0x01, 0x2a, 0x22, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2f, 0x70, 0x72, 0x65, + 0x65, 0x6d, 0x70, 0x74, 0x12, 0x47, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x51, 0x75, + 0x65, 0x75, 0x65, 0x12, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x1a, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x14, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x3a, + 0x01, 0x2a, 0x22, 0x09, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x63, 0x0a, + 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x0e, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x1d, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x51, 0x75, 0x65, 0x75, 0x65, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, + 0x63, 0x68, 0x65, 0x64, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x75, + 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x75, + 0x65, 0x12, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x3a, 0x01, 0x2a, + 0x1a, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, + 0x65, 0x7d, 0x12, 0x63, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x75, + 0x65, 0x73, 0x12, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4c, 0x69, + 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x51, 0x75, + 0x65, 0x75, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x1a, 0x19, 0x2f, 0x76, + 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, + 0x75, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x2a, + 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, + 0x7d, 0x12, 0x46, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x14, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x22, + 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, + 0x75, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x64, 0x0a, 0x09, 0x47, 0x65, 0x74, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x51, 0x75, 0x65, 0x75, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x62, + 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x30, 0x01, 0x12, + 0x3a, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x1a, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x40, 0x5a, 0x27, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x2f, 0x70, + 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0xaa, 0x02, 0x14, 0x41, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x6f, 0x2e, 0x41, 0x70, 0x69, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) -func RegisterSubmitServer(s *grpc.Server, srv SubmitServer) { - s.RegisterService(&_Submit_serviceDesc, srv) -} - -func _Submit_SubmitJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(JobSubmitRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SubmitServer).SubmitJobs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Submit/SubmitJobs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SubmitServer).SubmitJobs(ctx, req.(*JobSubmitRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Submit_CancelJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(JobCancelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SubmitServer).CancelJobs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Submit/CancelJobs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SubmitServer).CancelJobs(ctx, req.(*JobCancelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Submit_CancelJobSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(JobSetCancelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SubmitServer).CancelJobSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Submit/CancelJobSet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SubmitServer).CancelJobSet(ctx, req.(*JobSetCancelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Submit_ReprioritizeJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(JobReprioritizeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SubmitServer).ReprioritizeJobs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Submit/ReprioritizeJobs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SubmitServer).ReprioritizeJobs(ctx, req.(*JobReprioritizeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Submit_PreemptJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(JobPreemptRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SubmitServer).PreemptJobs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Submit/PreemptJobs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SubmitServer).PreemptJobs(ctx, req.(*JobPreemptRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Submit_CreateQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Queue) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SubmitServer).CreateQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Submit/CreateQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SubmitServer).CreateQueue(ctx, req.(*Queue)) - } - return interceptor(ctx, in, info, handler) -} - -func _Submit_CreateQueues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueueList) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SubmitServer).CreateQueues(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Submit/CreateQueues", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SubmitServer).CreateQueues(ctx, req.(*QueueList)) - } - return interceptor(ctx, in, info, handler) -} - -func _Submit_UpdateQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Queue) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SubmitServer).UpdateQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Submit/UpdateQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SubmitServer).UpdateQueue(ctx, req.(*Queue)) - } - return interceptor(ctx, in, info, handler) -} - -func _Submit_UpdateQueues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueueList) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SubmitServer).UpdateQueues(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Submit/UpdateQueues", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SubmitServer).UpdateQueues(ctx, req.(*QueueList)) - } - return interceptor(ctx, in, info, handler) -} - -func _Submit_DeleteQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueueDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SubmitServer).DeleteQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Submit/DeleteQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SubmitServer).DeleteQueue(ctx, req.(*QueueDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Submit_GetQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueueGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SubmitServer).GetQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Submit/GetQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SubmitServer).GetQueue(ctx, req.(*QueueGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Submit_GetQueues_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(StreamingQueueGetRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(SubmitServer).GetQueues(m, &submitGetQueuesServer{stream}) -} - -type Submit_GetQueuesServer interface { - Send(*StreamingQueueMessage) error - grpc.ServerStream -} - -type submitGetQueuesServer struct { - grpc.ServerStream -} - -func (x *submitGetQueuesServer) Send(m *StreamingQueueMessage) error { - return x.ServerStream.SendMsg(m) -} +var ( + file_pkg_api_submit_proto_rawDescOnce sync.Once + file_pkg_api_submit_proto_rawDescData []byte +) -func _Submit_Health_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(types.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SubmitServer).Health(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Submit/Health", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SubmitServer).Health(ctx, req.(*types.Empty)) +func file_pkg_api_submit_proto_rawDescGZIP() []byte { + file_pkg_api_submit_proto_rawDescOnce.Do(func() { + file_pkg_api_submit_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_api_submit_proto_rawDesc), len(file_pkg_api_submit_proto_rawDesc))) + }) + return file_pkg_api_submit_proto_rawDescData +} + +var file_pkg_api_submit_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_pkg_api_submit_proto_msgTypes = make([]protoimpl.MessageInfo, 48) +var file_pkg_api_submit_proto_goTypes = []any{ + (IngressType)(0), // 0: api.IngressType + (ServiceType)(0), // 1: api.ServiceType + (JobState)(0), // 2: api.JobState + (*JobSubmitRequestItem)(nil), // 3: api.JobSubmitRequestItem + (*IngressConfig)(nil), // 4: api.IngressConfig + (*ServiceConfig)(nil), // 5: api.ServiceConfig + (*JobSubmitRequest)(nil), // 6: api.JobSubmitRequest + (*JobPreemptRequest)(nil), // 7: api.JobPreemptRequest + (*JobCancelRequest)(nil), // 8: api.JobCancelRequest + (*JobSetCancelRequest)(nil), // 9: api.JobSetCancelRequest + (*JobSetFilter)(nil), // 10: api.JobSetFilter + (*Job)(nil), // 11: api.Job + (*JobReprioritizeRequest)(nil), // 12: api.JobReprioritizeRequest + (*JobReprioritizeResponse)(nil), // 13: api.JobReprioritizeResponse + (*JobSubmitResponseItem)(nil), // 14: api.JobSubmitResponseItem + (*JobSubmitResponse)(nil), // 15: api.JobSubmitResponse + (*Queue)(nil), // 16: api.Queue + (*PriorityClassResourceLimits)(nil), // 17: api.PriorityClassResourceLimits + (*PriorityClassPoolResourceLimits)(nil), // 18: api.PriorityClassPoolResourceLimits + (*QueueList)(nil), // 19: api.QueueList + (*CancellationResult)(nil), // 20: api.CancellationResult + (*QueueGetRequest)(nil), // 21: api.QueueGetRequest + (*QueueCordonRequest)(nil), // 22: api.QueueCordonRequest + (*QueueUncordonRequest)(nil), // 23: api.QueueUncordonRequest + (*StreamingQueueGetRequest)(nil), // 24: api.StreamingQueueGetRequest + (*QueueDeleteRequest)(nil), // 25: api.QueueDeleteRequest + (*JobSetInfo)(nil), // 26: api.JobSetInfo + (*QueueUpdateResponse)(nil), // 27: api.QueueUpdateResponse + (*BatchQueueUpdateResponse)(nil), // 28: api.BatchQueueUpdateResponse + (*QueueCreateResponse)(nil), // 29: api.QueueCreateResponse + (*BatchQueueCreateResponse)(nil), // 30: api.BatchQueueCreateResponse + (*EndMarker)(nil), // 31: api.EndMarker + (*StreamingQueueMessage)(nil), // 32: api.StreamingQueueMessage + (*QueuePreemptRequest)(nil), // 33: api.QueuePreemptRequest + (*QueueCancelRequest)(nil), // 34: api.QueueCancelRequest + nil, // 35: api.JobSubmitRequestItem.LabelsEntry + nil, // 36: api.JobSubmitRequestItem.AnnotationsEntry + nil, // 37: api.JobSubmitRequestItem.RequiredNodeLabelsEntry + nil, // 38: api.IngressConfig.AnnotationsEntry + nil, // 39: api.Job.LabelsEntry + nil, // 40: api.Job.AnnotationsEntry + nil, // 41: api.Job.RequiredNodeLabelsEntry + nil, // 42: api.JobReprioritizeResponse.ReprioritizationResultsEntry + (*Queue_Permissions)(nil), // 43: api.Queue.Permissions + nil, // 44: api.Queue.ResourceLimitsEntry + nil, // 45: api.Queue.ResourceLimitsByPriorityClassNameEntry + nil, // 46: api.Queue.LabelsEntry + (*Queue_Permissions_Subject)(nil), // 47: api.Queue.Permissions.Subject + nil, // 48: api.PriorityClassResourceLimits.MaximumResourceFractionEntry + nil, // 49: api.PriorityClassResourceLimits.MaximumResourceFractionByPoolEntry + nil, // 50: api.PriorityClassPoolResourceLimits.MaximumResourceFractionEntry + (*v1.PodSpec)(nil), // 51: k8s.io.api.core.v1.PodSpec + (*v1.ResourceRequirements)(nil), // 52: k8s.io.api.core.v1.ResourceRequirements + (*timestamppb.Timestamp)(nil), // 53: google.protobuf.Timestamp + (*v11.Ingress)(nil), // 54: k8s.io.api.networking.v1.Ingress + (*v1.Service)(nil), // 55: k8s.io.api.core.v1.Service + (*emptypb.Empty)(nil), // 56: google.protobuf.Empty + (*HealthCheckResponse)(nil), // 57: api.HealthCheckResponse +} +var file_pkg_api_submit_proto_depIdxs = []int32{ + 35, // 0: api.JobSubmitRequestItem.labels:type_name -> api.JobSubmitRequestItem.LabelsEntry + 36, // 1: api.JobSubmitRequestItem.annotations:type_name -> api.JobSubmitRequestItem.AnnotationsEntry + 37, // 2: api.JobSubmitRequestItem.required_node_labels:type_name -> api.JobSubmitRequestItem.RequiredNodeLabelsEntry + 51, // 3: api.JobSubmitRequestItem.pod_spec:type_name -> k8s.io.api.core.v1.PodSpec + 51, // 4: api.JobSubmitRequestItem.pod_specs:type_name -> k8s.io.api.core.v1.PodSpec + 4, // 5: api.JobSubmitRequestItem.ingress:type_name -> api.IngressConfig + 5, // 6: api.JobSubmitRequestItem.services:type_name -> api.ServiceConfig + 0, // 7: api.IngressConfig.type:type_name -> api.IngressType + 38, // 8: api.IngressConfig.annotations:type_name -> api.IngressConfig.AnnotationsEntry + 1, // 9: api.ServiceConfig.type:type_name -> api.ServiceType + 3, // 10: api.JobSubmitRequest.job_request_items:type_name -> api.JobSubmitRequestItem + 10, // 11: api.JobSetCancelRequest.filter:type_name -> api.JobSetFilter + 2, // 12: api.JobSetFilter.states:type_name -> api.JobState + 39, // 13: api.Job.labels:type_name -> api.Job.LabelsEntry + 40, // 14: api.Job.annotations:type_name -> api.Job.AnnotationsEntry + 41, // 15: api.Job.required_node_labels:type_name -> api.Job.RequiredNodeLabelsEntry + 51, // 16: api.Job.pod_spec:type_name -> k8s.io.api.core.v1.PodSpec + 51, // 17: api.Job.pod_specs:type_name -> k8s.io.api.core.v1.PodSpec + 52, // 18: api.Job.scheduling_resource_requirements:type_name -> k8s.io.api.core.v1.ResourceRequirements + 53, // 19: api.Job.created:type_name -> google.protobuf.Timestamp + 4, // 20: api.Job.ingress:type_name -> api.IngressConfig + 5, // 21: api.Job.services:type_name -> api.ServiceConfig + 54, // 22: api.Job.k8s_ingress:type_name -> k8s.io.api.networking.v1.Ingress + 55, // 23: api.Job.k8s_service:type_name -> k8s.io.api.core.v1.Service + 42, // 24: api.JobReprioritizeResponse.reprioritization_results:type_name -> api.JobReprioritizeResponse.ReprioritizationResultsEntry + 14, // 25: api.JobSubmitResponse.job_response_items:type_name -> api.JobSubmitResponseItem + 44, // 26: api.Queue.resource_limits:type_name -> api.Queue.ResourceLimitsEntry + 45, // 27: api.Queue.resource_limits_by_priority_class_name:type_name -> api.Queue.ResourceLimitsByPriorityClassNameEntry + 43, // 28: api.Queue.permissions:type_name -> api.Queue.Permissions + 46, // 29: api.Queue.labels:type_name -> api.Queue.LabelsEntry + 48, // 30: api.PriorityClassResourceLimits.maximum_resource_fraction:type_name -> api.PriorityClassResourceLimits.MaximumResourceFractionEntry + 49, // 31: api.PriorityClassResourceLimits.maximum_resource_fraction_by_pool:type_name -> api.PriorityClassResourceLimits.MaximumResourceFractionByPoolEntry + 50, // 32: api.PriorityClassPoolResourceLimits.maximum_resource_fraction:type_name -> api.PriorityClassPoolResourceLimits.MaximumResourceFractionEntry + 16, // 33: api.QueueList.queues:type_name -> api.Queue + 16, // 34: api.QueueUpdateResponse.queue:type_name -> api.Queue + 27, // 35: api.BatchQueueUpdateResponse.failed_queues:type_name -> api.QueueUpdateResponse + 16, // 36: api.QueueCreateResponse.queue:type_name -> api.Queue + 29, // 37: api.BatchQueueCreateResponse.failed_queues:type_name -> api.QueueCreateResponse + 16, // 38: api.StreamingQueueMessage.queue:type_name -> api.Queue + 31, // 39: api.StreamingQueueMessage.end:type_name -> api.EndMarker + 2, // 40: api.QueueCancelRequest.jobStates:type_name -> api.JobState + 47, // 41: api.Queue.Permissions.subjects:type_name -> api.Queue.Permissions.Subject + 17, // 42: api.Queue.ResourceLimitsByPriorityClassNameEntry.value:type_name -> api.PriorityClassResourceLimits + 18, // 43: api.PriorityClassResourceLimits.MaximumResourceFractionByPoolEntry.value:type_name -> api.PriorityClassPoolResourceLimits + 16, // 44: api.QueueService.CreateQueue:input_type -> api.Queue + 19, // 45: api.QueueService.CreateQueues:input_type -> api.QueueList + 16, // 46: api.QueueService.UpdateQueue:input_type -> api.Queue + 19, // 47: api.QueueService.UpdateQueues:input_type -> api.QueueList + 25, // 48: api.QueueService.DeleteQueue:input_type -> api.QueueDeleteRequest + 21, // 49: api.QueueService.GetQueue:input_type -> api.QueueGetRequest + 24, // 50: api.QueueService.GetQueues:input_type -> api.StreamingQueueGetRequest + 22, // 51: api.QueueService.CordonQueue:input_type -> api.QueueCordonRequest + 23, // 52: api.QueueService.UncordonQueue:input_type -> api.QueueUncordonRequest + 33, // 53: api.QueueService.PreemptOnQueue:input_type -> api.QueuePreemptRequest + 34, // 54: api.QueueService.CancelOnQueue:input_type -> api.QueueCancelRequest + 6, // 55: api.Submit.SubmitJobs:input_type -> api.JobSubmitRequest + 8, // 56: api.Submit.CancelJobs:input_type -> api.JobCancelRequest + 9, // 57: api.Submit.CancelJobSet:input_type -> api.JobSetCancelRequest + 12, // 58: api.Submit.ReprioritizeJobs:input_type -> api.JobReprioritizeRequest + 7, // 59: api.Submit.PreemptJobs:input_type -> api.JobPreemptRequest + 16, // 60: api.Submit.CreateQueue:input_type -> api.Queue + 19, // 61: api.Submit.CreateQueues:input_type -> api.QueueList + 16, // 62: api.Submit.UpdateQueue:input_type -> api.Queue + 19, // 63: api.Submit.UpdateQueues:input_type -> api.QueueList + 25, // 64: api.Submit.DeleteQueue:input_type -> api.QueueDeleteRequest + 21, // 65: api.Submit.GetQueue:input_type -> api.QueueGetRequest + 24, // 66: api.Submit.GetQueues:input_type -> api.StreamingQueueGetRequest + 56, // 67: api.Submit.Health:input_type -> google.protobuf.Empty + 56, // 68: api.QueueService.CreateQueue:output_type -> google.protobuf.Empty + 30, // 69: api.QueueService.CreateQueues:output_type -> api.BatchQueueCreateResponse + 56, // 70: api.QueueService.UpdateQueue:output_type -> google.protobuf.Empty + 28, // 71: api.QueueService.UpdateQueues:output_type -> api.BatchQueueUpdateResponse + 56, // 72: api.QueueService.DeleteQueue:output_type -> google.protobuf.Empty + 16, // 73: api.QueueService.GetQueue:output_type -> api.Queue + 32, // 74: api.QueueService.GetQueues:output_type -> api.StreamingQueueMessage + 56, // 75: api.QueueService.CordonQueue:output_type -> google.protobuf.Empty + 56, // 76: api.QueueService.UncordonQueue:output_type -> google.protobuf.Empty + 56, // 77: api.QueueService.PreemptOnQueue:output_type -> google.protobuf.Empty + 56, // 78: api.QueueService.CancelOnQueue:output_type -> google.protobuf.Empty + 15, // 79: api.Submit.SubmitJobs:output_type -> api.JobSubmitResponse + 20, // 80: api.Submit.CancelJobs:output_type -> api.CancellationResult + 56, // 81: api.Submit.CancelJobSet:output_type -> google.protobuf.Empty + 13, // 82: api.Submit.ReprioritizeJobs:output_type -> api.JobReprioritizeResponse + 56, // 83: api.Submit.PreemptJobs:output_type -> google.protobuf.Empty + 56, // 84: api.Submit.CreateQueue:output_type -> google.protobuf.Empty + 30, // 85: api.Submit.CreateQueues:output_type -> api.BatchQueueCreateResponse + 56, // 86: api.Submit.UpdateQueue:output_type -> google.protobuf.Empty + 28, // 87: api.Submit.UpdateQueues:output_type -> api.BatchQueueUpdateResponse + 56, // 88: api.Submit.DeleteQueue:output_type -> google.protobuf.Empty + 16, // 89: api.Submit.GetQueue:output_type -> api.Queue + 32, // 90: api.Submit.GetQueues:output_type -> api.StreamingQueueMessage + 57, // 91: api.Submit.Health:output_type -> api.HealthCheckResponse + 68, // [68:92] is the sub-list for method output_type + 44, // [44:68] is the sub-list for method input_type + 44, // [44:44] is the sub-list for extension type_name + 44, // [44:44] is the sub-list for extension extendee + 0, // [0:44] is the sub-list for field type_name +} + +func init() { file_pkg_api_submit_proto_init() } +func file_pkg_api_submit_proto_init() { + if File_pkg_api_submit_proto != nil { + return + } + file_pkg_api_health_proto_init() + file_pkg_api_submit_proto_msgTypes[29].OneofWrappers = []any{ + (*StreamingQueueMessage_Queue)(nil), + (*StreamingQueueMessage_End)(nil), } - return interceptor(ctx, in, info, handler) -} - -var _Submit_serviceDesc = grpc.ServiceDesc{ - ServiceName: "api.Submit", - HandlerType: (*SubmitServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "SubmitJobs", - Handler: _Submit_SubmitJobs_Handler, - }, - { - MethodName: "CancelJobs", - Handler: _Submit_CancelJobs_Handler, - }, - { - MethodName: "CancelJobSet", - Handler: _Submit_CancelJobSet_Handler, - }, - { - MethodName: "ReprioritizeJobs", - Handler: _Submit_ReprioritizeJobs_Handler, - }, - { - MethodName: "PreemptJobs", - Handler: _Submit_PreemptJobs_Handler, - }, - { - MethodName: "CreateQueue", - Handler: _Submit_CreateQueue_Handler, - }, - { - MethodName: "CreateQueues", - Handler: _Submit_CreateQueues_Handler, - }, - { - MethodName: "UpdateQueue", - Handler: _Submit_UpdateQueue_Handler, - }, - { - MethodName: "UpdateQueues", - Handler: _Submit_UpdateQueues_Handler, - }, - { - MethodName: "DeleteQueue", - Handler: _Submit_DeleteQueue_Handler, - }, - { - MethodName: "GetQueue", - Handler: _Submit_GetQueue_Handler, - }, - { - MethodName: "Health", - Handler: _Submit_Health_Handler, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_api_submit_proto_rawDesc), len(file_pkg_api_submit_proto_rawDesc)), + NumEnums: 3, + NumMessages: 48, + NumExtensions: 0, + NumServices: 2, }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "GetQueues", - Handler: _Submit_GetQueues_Handler, - ServerStreams: true, - }, - }, - Metadata: "pkg/api/submit.proto", -} - -func (m *JobSubmitRequestItem) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobSubmitRequestItem) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobSubmitRequestItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Scheduler) > 0 { - i -= len(m.Scheduler) - copy(dAtA[i:], m.Scheduler) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Scheduler))) - i-- - dAtA[i] = 0x5a - } - if len(m.Services) > 0 { - for iNdEx := len(m.Services) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Services[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - } - if len(m.Ingress) > 0 { - for iNdEx := len(m.Ingress) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ingress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - } - if len(m.ClientId) > 0 { - i -= len(m.ClientId) - copy(dAtA[i:], m.ClientId) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.ClientId))) - i-- - dAtA[i] = 0x42 - } - if len(m.PodSpecs) > 0 { - for iNdEx := len(m.PodSpecs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PodSpecs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - if len(m.RequiredNodeLabels) > 0 { - for k := range m.RequiredNodeLabels { - v := m.RequiredNodeLabels[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintSubmit(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSubmit(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSubmit(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x32 - } - } - if len(m.Annotations) > 0 { - for k := range m.Annotations { - v := m.Annotations[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintSubmit(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSubmit(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSubmit(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - if len(m.Labels) > 0 { - for k := range m.Labels { - v := m.Labels[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintSubmit(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSubmit(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSubmit(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x1a - } - if m.PodSpec != nil { - { - size, err := m.PodSpec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Priority != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Priority)))) - i-- - dAtA[i] = 0x9 - } - return len(dAtA) - i, nil + GoTypes: file_pkg_api_submit_proto_goTypes, + DependencyIndexes: file_pkg_api_submit_proto_depIdxs, + EnumInfos: file_pkg_api_submit_proto_enumTypes, + MessageInfos: file_pkg_api_submit_proto_msgTypes, + }.Build() + File_pkg_api_submit_proto = out.File + file_pkg_api_submit_proto_goTypes = nil + file_pkg_api_submit_proto_depIdxs = nil } - -func (m *IngressConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.UseClusterIP { - i-- - if m.UseClusterIP { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if len(m.CertName) > 0 { - i -= len(m.CertName) - copy(dAtA[i:], m.CertName) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.CertName))) - i-- - dAtA[i] = 0x2a - } - if m.TlsEnabled { - i-- - if m.TlsEnabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.Annotations) > 0 { - for k := range m.Annotations { - v := m.Annotations[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintSubmit(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSubmit(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSubmit(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Ports) > 0 { - dAtA3 := make([]byte, len(m.Ports)*10) - var j2 int - for _, num := range m.Ports { - for num >= 1<<7 { - dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j2++ - } - dAtA3[j2] = uint8(num) - j2++ - } - i -= j2 - copy(dAtA[i:], dAtA3[:j2]) - i = encodeVarintSubmit(dAtA, i, uint64(j2)) - i-- - dAtA[i] = 0x12 - } - if m.Type != 0 { - i = encodeVarintSubmit(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ServiceConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - } - if len(m.Ports) > 0 { - dAtA5 := make([]byte, len(m.Ports)*10) - var j4 int - for _, num := range m.Ports { - for num >= 1<<7 { - dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j4++ - } - dAtA5[j4] = uint8(num) - j4++ - } - i -= j4 - copy(dAtA[i:], dAtA5[:j4]) - i = encodeVarintSubmit(dAtA, i, uint64(j4)) - i-- - dAtA[i] = 0x12 - } - if m.Type != 0 { - i = encodeVarintSubmit(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *JobSubmitRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobSubmitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobSubmitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobRequestItems) > 0 { - for iNdEx := len(m.JobRequestItems) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.JobRequestItems[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobPreemptRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobPreemptRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobPreemptRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - } - if len(m.JobIds) > 0 { - for iNdEx := len(m.JobIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.JobIds[iNdEx]) - copy(dAtA[i:], m.JobIds[iNdEx]) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.JobIds[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobCancelRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobCancelRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x2a - } - if len(m.JobIds) > 0 { - for iNdEx := len(m.JobIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.JobIds[iNdEx]) - copy(dAtA[i:], m.JobIds[iNdEx]) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.JobIds[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobSetCancelRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobSetCancelRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobSetCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - } - if m.Filter != nil { - { - size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobSetFilter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobSetFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobSetFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.States) > 0 { - dAtA8 := make([]byte, len(m.States)*10) - var j7 int - for _, num := range m.States { - for num >= 1<<7 { - dAtA8[j7] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j7++ - } - dAtA8[j7] = uint8(num) - j7++ - } - i -= j7 - copy(dAtA[i:], dAtA8[:j7]) - i = encodeVarintSubmit(dAtA, i, uint64(j7)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Job) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Job) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Job) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SchedulingResourceRequirements != nil { - { - size, err := m.SchedulingResourceRequirements.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa - } - if len(m.Scheduler) > 0 { - i -= len(m.Scheduler) - copy(dAtA[i:], m.Scheduler) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Scheduler))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - } - if len(m.CompressedQueueOwnershipUserGroups) > 0 { - i -= len(m.CompressedQueueOwnershipUserGroups) - copy(dAtA[i:], m.CompressedQueueOwnershipUserGroups) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.CompressedQueueOwnershipUserGroups))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - } - if len(m.K8SService) > 0 { - for iNdEx := len(m.K8SService) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.K8SService[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - } - if len(m.K8SIngress) > 0 { - for iNdEx := len(m.K8SIngress) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.K8SIngress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - } - if len(m.Services) > 0 { - for iNdEx := len(m.Services) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Services[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - } - if len(m.QueueOwnershipUserGroups) > 0 { - for iNdEx := len(m.QueueOwnershipUserGroups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.QueueOwnershipUserGroups[iNdEx]) - copy(dAtA[i:], m.QueueOwnershipUserGroups[iNdEx]) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.QueueOwnershipUserGroups[iNdEx]))) - i-- - dAtA[i] = 0x7a - } - } - if len(m.Ingress) > 0 { - for iNdEx := len(m.Ingress) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ingress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - } - if len(m.ClientId) > 0 { - i -= len(m.ClientId) - copy(dAtA[i:], m.ClientId) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.ClientId))) - i-- - dAtA[i] = 0x6a - } - if len(m.PodSpecs) > 0 { - for iNdEx := len(m.PodSpecs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PodSpecs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - } - if len(m.RequiredNodeLabels) > 0 { - for k := range m.RequiredNodeLabels { - v := m.RequiredNodeLabels[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintSubmit(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSubmit(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSubmit(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x5a - } - } - if len(m.Annotations) > 0 { - for k := range m.Annotations { - v := m.Annotations[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintSubmit(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSubmit(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSubmit(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x52 - } - } - if len(m.Labels) > 0 { - for k := range m.Labels { - v := m.Labels[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintSubmit(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSubmit(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSubmit(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x4a - } - } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0x42 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x3a - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.PodSpec != nil { - { - size, err := m.PodSpec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Priority != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Priority)))) - i-- - dAtA[i] = 0x21 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobReprioritizeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobReprioritizeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobReprioritizeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NewPriority != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NewPriority)))) - i-- - dAtA[i] = 0x21 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobIds) > 0 { - for iNdEx := len(m.JobIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.JobIds[iNdEx]) - copy(dAtA[i:], m.JobIds[iNdEx]) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.JobIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *JobReprioritizeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobReprioritizeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobReprioritizeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ReprioritizationResults) > 0 { - for k := range m.ReprioritizationResults { - v := m.ReprioritizationResults[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintSubmit(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSubmit(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSubmit(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *JobSubmitResponseItem) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobSubmitResponseItem) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobSubmitResponseItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x12 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobSubmitResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobSubmitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobSubmitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobResponseItems) > 0 { - for iNdEx := len(m.JobResponseItems) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.JobResponseItems[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Queue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Queue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Queue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Labels) > 0 { - for k := range m.Labels { - v := m.Labels[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintSubmit(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSubmit(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSubmit(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x52 - } - } - if len(m.LabelsDeprecated) > 0 { - for iNdEx := len(m.LabelsDeprecated) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.LabelsDeprecated[iNdEx]) - copy(dAtA[i:], m.LabelsDeprecated[iNdEx]) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.LabelsDeprecated[iNdEx]))) - i-- - dAtA[i] = 0x4a - } - } - if m.Cordoned { - i-- - if m.Cordoned { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if len(m.ResourceLimitsByPriorityClassName) > 0 { - for k := range m.ResourceLimitsByPriorityClassName { - v := m.ResourceLimitsByPriorityClassName[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSubmit(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSubmit(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x3a - } - } - if len(m.Permissions) > 0 { - for iNdEx := len(m.Permissions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Permissions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - if len(m.ResourceLimits) > 0 { - for k := range m.ResourceLimits { - v := m.ResourceLimits[k] - baseI := i - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(v)))) - i-- - dAtA[i] = 0x11 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSubmit(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSubmit(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - if len(m.GroupOwners) > 0 { - for iNdEx := len(m.GroupOwners) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.GroupOwners[iNdEx]) - copy(dAtA[i:], m.GroupOwners[iNdEx]) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.GroupOwners[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.UserOwners) > 0 { - for iNdEx := len(m.UserOwners) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.UserOwners[iNdEx]) - copy(dAtA[i:], m.UserOwners[iNdEx]) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.UserOwners[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if m.PriorityFactor != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.PriorityFactor)))) - i-- - dAtA[i] = 0x11 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Queue_Permissions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Queue_Permissions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Queue_Permissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Verbs) > 0 { - for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Verbs[iNdEx]) - copy(dAtA[i:], m.Verbs[iNdEx]) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Verbs[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Subjects) > 0 { - for iNdEx := len(m.Subjects) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Subjects[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Queue_Permissions_Subject) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Queue_Permissions_Subject) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Queue_Permissions_Subject) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Kind) > 0 { - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PriorityClassResourceLimits) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PriorityClassResourceLimits) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PriorityClassResourceLimits) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MaximumResourceFractionByPool) > 0 { - for k := range m.MaximumResourceFractionByPool { - v := m.MaximumResourceFractionByPool[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSubmit(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSubmit(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.MaximumResourceFraction) > 0 { - for k := range m.MaximumResourceFraction { - v := m.MaximumResourceFraction[k] - baseI := i - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(v)))) - i-- - dAtA[i] = 0x11 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSubmit(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSubmit(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *PriorityClassPoolResourceLimits) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PriorityClassPoolResourceLimits) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PriorityClassPoolResourceLimits) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MaximumResourceFraction) > 0 { - for k := range m.MaximumResourceFraction { - v := m.MaximumResourceFraction[k] - baseI := i - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(v)))) - i-- - dAtA[i] = 0x11 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintSubmit(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintSubmit(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueueList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueueList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueueList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Queues) > 0 { - for iNdEx := len(m.Queues) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Queues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *CancellationResult) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CancellationResult) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CancellationResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CancelledIds) > 0 { - for iNdEx := len(m.CancelledIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.CancelledIds[iNdEx]) - copy(dAtA[i:], m.CancelledIds[iNdEx]) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.CancelledIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueueGetRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueueGetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueueGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueueCordonRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueueCordonRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueueCordonRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueueUncordonRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueueUncordonRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueueUncordonRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *StreamingQueueGetRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StreamingQueueGetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamingQueueGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Num != 0 { - i = encodeVarintSubmit(dAtA, i, uint64(m.Num)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueueDeleteRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueueDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueueDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobSetInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobSetInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobSetInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LeasedJobs != 0 { - i = encodeVarintSubmit(dAtA, i, uint64(m.LeasedJobs)) - i-- - dAtA[i] = 0x18 - } - if m.QueuedJobs != 0 { - i = encodeVarintSubmit(dAtA, i, uint64(m.QueuedJobs)) - i-- - dAtA[i] = 0x10 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueueUpdateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueueUpdateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueueUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x12 - } - if m.Queue != nil { - { - size, err := m.Queue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BatchQueueUpdateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BatchQueueUpdateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchQueueUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.FailedQueues) > 0 { - for iNdEx := len(m.FailedQueues) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.FailedQueues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueueCreateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueueCreateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueueCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x12 - } - if m.Queue != nil { - { - size, err := m.Queue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BatchQueueCreateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BatchQueueCreateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchQueueCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.FailedQueues) > 0 { - for iNdEx := len(m.FailedQueues) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.FailedQueues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *EndMarker) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EndMarker) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EndMarker) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *StreamingQueueMessage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StreamingQueueMessage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamingQueueMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size := m.Event.Size() - i -= size - if _, err := m.Event.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *StreamingQueueMessage_Queue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamingQueueMessage_Queue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Queue != nil { - { - size, err := m.Queue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *StreamingQueueMessage_End) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamingQueueMessage_End) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.End != nil { - { - size, err := m.End.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSubmit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *QueuePreemptRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueuePreemptRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueuePreemptRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PriorityClasses) > 0 { - for iNdEx := len(m.PriorityClasses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PriorityClasses[iNdEx]) - copy(dAtA[i:], m.PriorityClasses[iNdEx]) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.PriorityClasses[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueueCancelRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueueCancelRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueueCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobStates) > 0 { - dAtA19 := make([]byte, len(m.JobStates)*10) - var j18 int - for _, num := range m.JobStates { - for num >= 1<<7 { - dAtA19[j18] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j18++ - } - dAtA19[j18] = uint8(num) - j18++ - } - i -= j18 - copy(dAtA[i:], dAtA19[:j18]) - i = encodeVarintSubmit(dAtA, i, uint64(j18)) - i-- - dAtA[i] = 0x1a - } - if len(m.PriorityClasses) > 0 { - for iNdEx := len(m.PriorityClasses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PriorityClasses[iNdEx]) - copy(dAtA[i:], m.PriorityClasses[iNdEx]) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.PriorityClasses[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSubmit(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintSubmit(dAtA []byte, offset int, v uint64) int { - offset -= sovSubmit(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *JobSubmitRequestItem) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Priority != 0 { - n += 9 - } - if m.PodSpec != nil { - l = m.PodSpec.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - if len(m.Labels) > 0 { - for k, v := range m.Labels { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSubmit(uint64(len(k))) + 1 + len(v) + sovSubmit(uint64(len(v))) - n += mapEntrySize + 1 + sovSubmit(uint64(mapEntrySize)) - } - } - if len(m.Annotations) > 0 { - for k, v := range m.Annotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSubmit(uint64(len(k))) + 1 + len(v) + sovSubmit(uint64(len(v))) - n += mapEntrySize + 1 + sovSubmit(uint64(mapEntrySize)) - } - } - if len(m.RequiredNodeLabels) > 0 { - for k, v := range m.RequiredNodeLabels { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSubmit(uint64(len(k))) + 1 + len(v) + sovSubmit(uint64(len(v))) - n += mapEntrySize + 1 + sovSubmit(uint64(mapEntrySize)) - } - } - if len(m.PodSpecs) > 0 { - for _, e := range m.PodSpecs { - l = e.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - } - l = len(m.ClientId) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - if len(m.Ingress) > 0 { - for _, e := range m.Ingress { - l = e.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - } - if len(m.Services) > 0 { - for _, e := range m.Services { - l = e.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - } - l = len(m.Scheduler) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - return n -} - -func (m *IngressConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovSubmit(uint64(m.Type)) - } - if len(m.Ports) > 0 { - l = 0 - for _, e := range m.Ports { - l += sovSubmit(uint64(e)) - } - n += 1 + sovSubmit(uint64(l)) + l - } - if len(m.Annotations) > 0 { - for k, v := range m.Annotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSubmit(uint64(len(k))) + 1 + len(v) + sovSubmit(uint64(len(v))) - n += mapEntrySize + 1 + sovSubmit(uint64(mapEntrySize)) - } - } - if m.TlsEnabled { - n += 2 - } - l = len(m.CertName) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - if m.UseClusterIP { - n += 2 - } - return n -} - -func (m *ServiceConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovSubmit(uint64(m.Type)) - } - if len(m.Ports) > 0 { - l = 0 - for _, e := range m.Ports { - l += sovSubmit(uint64(e)) - } - n += 1 + sovSubmit(uint64(l)) + l - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - return n -} - -func (m *JobSubmitRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - if len(m.JobRequestItems) > 0 { - for _, e := range m.JobRequestItems { - l = e.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - } - return n -} - -func (m *JobPreemptRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - if len(m.JobIds) > 0 { - for _, s := range m.JobIds { - l = len(s) - n += 1 + l + sovSubmit(uint64(l)) - } - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - return n -} - -func (m *JobCancelRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - if len(m.JobIds) > 0 { - for _, s := range m.JobIds { - l = len(s) - n += 1 + l + sovSubmit(uint64(l)) - } - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - return n -} - -func (m *JobSetCancelRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - if m.Filter != nil { - l = m.Filter.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - return n -} - -func (m *JobSetFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.States) > 0 { - l = 0 - for _, e := range m.States { - l += sovSubmit(uint64(e)) - } - n += 1 + sovSubmit(uint64(l)) + l - } - return n -} - -func (m *Job) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - if m.Priority != 0 { - n += 9 - } - if m.PodSpec != nil { - l = m.PodSpec.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - if len(m.Labels) > 0 { - for k, v := range m.Labels { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSubmit(uint64(len(k))) + 1 + len(v) + sovSubmit(uint64(len(v))) - n += mapEntrySize + 1 + sovSubmit(uint64(mapEntrySize)) - } - } - if len(m.Annotations) > 0 { - for k, v := range m.Annotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSubmit(uint64(len(k))) + 1 + len(v) + sovSubmit(uint64(len(v))) - n += mapEntrySize + 1 + sovSubmit(uint64(mapEntrySize)) - } - } - if len(m.RequiredNodeLabels) > 0 { - for k, v := range m.RequiredNodeLabels { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSubmit(uint64(len(k))) + 1 + len(v) + sovSubmit(uint64(len(v))) - n += mapEntrySize + 1 + sovSubmit(uint64(mapEntrySize)) - } - } - if len(m.PodSpecs) > 0 { - for _, e := range m.PodSpecs { - l = e.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - } - l = len(m.ClientId) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - if len(m.Ingress) > 0 { - for _, e := range m.Ingress { - l = e.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - } - if len(m.QueueOwnershipUserGroups) > 0 { - for _, s := range m.QueueOwnershipUserGroups { - l = len(s) - n += 1 + l + sovSubmit(uint64(l)) - } - } - if len(m.Services) > 0 { - for _, e := range m.Services { - l = e.Size() - n += 2 + l + sovSubmit(uint64(l)) - } - } - if len(m.K8SIngress) > 0 { - for _, e := range m.K8SIngress { - l = e.Size() - n += 2 + l + sovSubmit(uint64(l)) - } - } - if len(m.K8SService) > 0 { - for _, e := range m.K8SService { - l = e.Size() - n += 2 + l + sovSubmit(uint64(l)) - } - } - l = len(m.CompressedQueueOwnershipUserGroups) - if l > 0 { - n += 2 + l + sovSubmit(uint64(l)) - } - l = len(m.Scheduler) - if l > 0 { - n += 2 + l + sovSubmit(uint64(l)) - } - if m.SchedulingResourceRequirements != nil { - l = m.SchedulingResourceRequirements.Size() - n += 2 + l + sovSubmit(uint64(l)) - } - return n -} - -func (m *JobReprioritizeRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.JobIds) > 0 { - for _, s := range m.JobIds { - l = len(s) - n += 1 + l + sovSubmit(uint64(l)) - } - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - if m.NewPriority != 0 { - n += 9 - } - return n -} - -func (m *JobReprioritizeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ReprioritizationResults) > 0 { - for k, v := range m.ReprioritizationResults { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSubmit(uint64(len(k))) + 1 + len(v) + sovSubmit(uint64(len(v))) - n += mapEntrySize + 1 + sovSubmit(uint64(mapEntrySize)) - } - } - return n -} - -func (m *JobSubmitResponseItem) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.Error) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - return n -} - -func (m *JobSubmitResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.JobResponseItems) > 0 { - for _, e := range m.JobResponseItems { - l = e.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - } - return n -} - -func (m *Queue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - if m.PriorityFactor != 0 { - n += 9 - } - if len(m.UserOwners) > 0 { - for _, s := range m.UserOwners { - l = len(s) - n += 1 + l + sovSubmit(uint64(l)) - } - } - if len(m.GroupOwners) > 0 { - for _, s := range m.GroupOwners { - l = len(s) - n += 1 + l + sovSubmit(uint64(l)) - } - } - if len(m.ResourceLimits) > 0 { - for k, v := range m.ResourceLimits { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSubmit(uint64(len(k))) + 1 + 8 - n += mapEntrySize + 1 + sovSubmit(uint64(mapEntrySize)) - } - } - if len(m.Permissions) > 0 { - for _, e := range m.Permissions { - l = e.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - } - if len(m.ResourceLimitsByPriorityClassName) > 0 { - for k, v := range m.ResourceLimitsByPriorityClassName { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovSubmit(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovSubmit(uint64(len(k))) + l - n += mapEntrySize + 1 + sovSubmit(uint64(mapEntrySize)) - } - } - if m.Cordoned { - n += 2 - } - if len(m.LabelsDeprecated) > 0 { - for _, s := range m.LabelsDeprecated { - l = len(s) - n += 1 + l + sovSubmit(uint64(l)) - } - } - if len(m.Labels) > 0 { - for k, v := range m.Labels { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSubmit(uint64(len(k))) + 1 + len(v) + sovSubmit(uint64(len(v))) - n += mapEntrySize + 1 + sovSubmit(uint64(mapEntrySize)) - } - } - return n -} - -func (m *Queue_Permissions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Subjects) > 0 { - for _, e := range m.Subjects { - l = e.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - } - if len(m.Verbs) > 0 { - for _, s := range m.Verbs { - l = len(s) - n += 1 + l + sovSubmit(uint64(l)) - } - } - return n -} - -func (m *Queue_Permissions_Subject) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Kind) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - return n -} - -func (m *PriorityClassResourceLimits) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.MaximumResourceFraction) > 0 { - for k, v := range m.MaximumResourceFraction { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSubmit(uint64(len(k))) + 1 + 8 - n += mapEntrySize + 1 + sovSubmit(uint64(mapEntrySize)) - } - } - if len(m.MaximumResourceFractionByPool) > 0 { - for k, v := range m.MaximumResourceFractionByPool { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovSubmit(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovSubmit(uint64(len(k))) + l - n += mapEntrySize + 1 + sovSubmit(uint64(mapEntrySize)) - } - } - return n -} - -func (m *PriorityClassPoolResourceLimits) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.MaximumResourceFraction) > 0 { - for k, v := range m.MaximumResourceFraction { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovSubmit(uint64(len(k))) + 1 + 8 - n += mapEntrySize + 1 + sovSubmit(uint64(mapEntrySize)) - } - } - return n -} - -func (m *QueueList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Queues) > 0 { - for _, e := range m.Queues { - l = e.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - } - return n -} - -func (m *CancellationResult) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.CancelledIds) > 0 { - for _, s := range m.CancelledIds { - l = len(s) - n += 1 + l + sovSubmit(uint64(l)) - } - } - return n -} - -func (m *QueueGetRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - return n -} - -func (m *QueueCordonRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - return n -} - -func (m *QueueUncordonRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - return n -} - -func (m *StreamingQueueGetRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Num != 0 { - n += 1 + sovSubmit(uint64(m.Num)) - } - return n -} - -func (m *QueueDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - return n -} - -func (m *JobSetInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - if m.QueuedJobs != 0 { - n += 1 + sovSubmit(uint64(m.QueuedJobs)) - } - if m.LeasedJobs != 0 { - n += 1 + sovSubmit(uint64(m.LeasedJobs)) - } - return n -} - -func (m *QueueUpdateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Queue != nil { - l = m.Queue.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.Error) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - return n -} - -func (m *BatchQueueUpdateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.FailedQueues) > 0 { - for _, e := range m.FailedQueues { - l = e.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - } - return n -} - -func (m *QueueCreateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Queue != nil { - l = m.Queue.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - l = len(m.Error) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - return n -} - -func (m *BatchQueueCreateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.FailedQueues) > 0 { - for _, e := range m.FailedQueues { - l = e.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - } - return n -} - -func (m *EndMarker) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *StreamingQueueMessage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Event != nil { - n += m.Event.Size() - } - return n -} - -func (m *StreamingQueueMessage_Queue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Queue != nil { - l = m.Queue.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - return n -} -func (m *StreamingQueueMessage_End) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.End != nil { - l = m.End.Size() - n += 1 + l + sovSubmit(uint64(l)) - } - return n -} -func (m *QueuePreemptRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - if len(m.PriorityClasses) > 0 { - for _, s := range m.PriorityClasses { - l = len(s) - n += 1 + l + sovSubmit(uint64(l)) - } - } - return n -} - -func (m *QueueCancelRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSubmit(uint64(l)) - } - if len(m.PriorityClasses) > 0 { - for _, s := range m.PriorityClasses { - l = len(s) - n += 1 + l + sovSubmit(uint64(l)) - } - } - if len(m.JobStates) > 0 { - l = 0 - for _, e := range m.JobStates { - l += sovSubmit(uint64(e)) - } - n += 1 + sovSubmit(uint64(l)) + l - } - return n -} - -func sovSubmit(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozSubmit(x uint64) (n int) { - return sovSubmit(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *JobSubmitRequestItem) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobSubmitRequestItem: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSubmitRequestItem: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Priority = float64(math.Float64frombits(v)) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodSpec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PodSpec == nil { - m.PodSpec = &v1.PodSpec{} - } - if err := m.PodSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Labels == nil { - m.Labels = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Labels[mapkey] = mapvalue - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Annotations == nil { - m.Annotations = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Annotations[mapkey] = mapvalue - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequiredNodeLabels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RequiredNodeLabels == nil { - m.RequiredNodeLabels = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.RequiredNodeLabels[mapkey] = mapvalue - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodSpecs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodSpecs = append(m.PodSpecs, &v1.PodSpec{}) - if err := m.PodSpecs[len(m.PodSpecs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClientId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ingress = append(m.Ingress, &IngressConfig{}) - if err := m.Ingress[len(m.Ingress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Services", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Services = append(m.Services, &ServiceConfig{}) - if err := m.Services[len(m.Services)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scheduler", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Scheduler = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= IngressType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType == 0 { - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Ports = append(m.Ports, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.Ports) == 0 { - m.Ports = make([]uint32, 0, elementCount) - } - for iNdEx < postIndex { - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Ports = append(m.Ports, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Annotations == nil { - m.Annotations = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Annotations[mapkey] = mapvalue - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TlsEnabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TlsEnabled = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CertName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CertName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UseClusterIP", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.UseClusterIP = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= ServiceType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType == 0 { - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Ports = append(m.Ports, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.Ports) == 0 { - m.Ports = make([]uint32, 0, elementCount) - } - for iNdEx < postIndex { - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Ports = append(m.Ports, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobSubmitRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobSubmitRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSubmitRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRequestItems", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobRequestItems = append(m.JobRequestItems, &JobSubmitRequestItem{}) - if err := m.JobRequestItems[len(m.JobRequestItems)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobPreemptRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobPreemptRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobPreemptRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobIds = append(m.JobIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobCancelRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobCancelRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobCancelRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobIds = append(m.JobIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobSetCancelRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobSetCancelRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSetCancelRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Filter == nil { - m.Filter = &JobSetFilter{} - } - if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobSetFilter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobSetFilter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSetFilter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v JobState - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= JobState(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.States = append(m.States, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.States) == 0 { - m.States = make([]JobState, 0, elementCount) - } - for iNdEx < postIndex { - var v JobState - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= JobState(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.States = append(m.States, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field States", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Job) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Job: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Job: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Priority = float64(math.Float64frombits(v)) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodSpec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PodSpec == nil { - m.PodSpec = &v1.PodSpec{} - } - if err := m.PodSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Labels == nil { - m.Labels = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Labels[mapkey] = mapvalue - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Annotations == nil { - m.Annotations = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Annotations[mapkey] = mapvalue - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequiredNodeLabels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RequiredNodeLabels == nil { - m.RequiredNodeLabels = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.RequiredNodeLabels[mapkey] = mapvalue - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodSpecs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodSpecs = append(m.PodSpecs, &v1.PodSpec{}) - if err := m.PodSpecs[len(m.PodSpecs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClientId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ingress = append(m.Ingress, &IngressConfig{}) - if err := m.Ingress[len(m.Ingress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueueOwnershipUserGroups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.QueueOwnershipUserGroups = append(m.QueueOwnershipUserGroups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Services", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Services = append(m.Services, &ServiceConfig{}) - if err := m.Services[len(m.Services)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field K8SIngress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.K8SIngress = append(m.K8SIngress, &v11.Ingress{}) - if err := m.K8SIngress[len(m.K8SIngress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field K8SService", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.K8SService = append(m.K8SService, &v1.Service{}) - if err := m.K8SService[len(m.K8SService)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CompressedQueueOwnershipUserGroups", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CompressedQueueOwnershipUserGroups = append(m.CompressedQueueOwnershipUserGroups[:0], dAtA[iNdEx:postIndex]...) - if m.CompressedQueueOwnershipUserGroups == nil { - m.CompressedQueueOwnershipUserGroups = []byte{} - } - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scheduler", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Scheduler = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SchedulingResourceRequirements", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SchedulingResourceRequirements == nil { - m.SchedulingResourceRequirements = &v1.ResourceRequirements{} - } - if err := m.SchedulingResourceRequirements.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobReprioritizeRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobReprioritizeRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobReprioritizeRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobIds = append(m.JobIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field NewPriority", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.NewPriority = float64(math.Float64frombits(v)) - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobReprioritizeResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobReprioritizeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobReprioritizeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReprioritizationResults", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ReprioritizationResults == nil { - m.ReprioritizationResults = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ReprioritizationResults[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobSubmitResponseItem) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobSubmitResponseItem: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSubmitResponseItem: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobSubmitResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobSubmitResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSubmitResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobResponseItems", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobResponseItems = append(m.JobResponseItems, &JobSubmitResponseItem{}) - if err := m.JobResponseItems[len(m.JobResponseItems)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Queue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Queue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Queue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field PriorityFactor", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.PriorityFactor = float64(math.Float64frombits(v)) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserOwners", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserOwners = append(m.UserOwners, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupOwners", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupOwners = append(m.GroupOwners, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceLimits", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ResourceLimits == nil { - m.ResourceLimits = make(map[string]float64) - } - var mapkey string - var mapvalue float64 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapvaluetemp uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - mapvaluetemp = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - mapvalue = math.Float64frombits(mapvaluetemp) - } else { - iNdEx = entryPreIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ResourceLimits[mapkey] = mapvalue - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Permissions = append(m.Permissions, &Queue_Permissions{}) - if err := m.Permissions[len(m.Permissions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceLimitsByPriorityClassName", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ResourceLimitsByPriorityClassName == nil { - m.ResourceLimitsByPriorityClassName = make(map[string]*PriorityClassResourceLimits) - } - var mapkey string - var mapvalue *PriorityClassResourceLimits - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthSubmit - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthSubmit - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &PriorityClassResourceLimits{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ResourceLimitsByPriorityClassName[mapkey] = mapvalue - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Cordoned", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Cordoned = bool(v != 0) - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelsDeprecated", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LabelsDeprecated = append(m.LabelsDeprecated, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Labels == nil { - m.Labels = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Labels[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Queue_Permissions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Permissions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Permissions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subjects = append(m.Subjects, &Queue_Permissions_Subject{}) - if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Queue_Permissions_Subject) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Subject: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Subject: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PriorityClassResourceLimits) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PriorityClassResourceLimits: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PriorityClassResourceLimits: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaximumResourceFraction", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaximumResourceFraction == nil { - m.MaximumResourceFraction = make(map[string]float64) - } - var mapkey string - var mapvalue float64 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapvaluetemp uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - mapvaluetemp = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - mapvalue = math.Float64frombits(mapvaluetemp) - } else { - iNdEx = entryPreIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.MaximumResourceFraction[mapkey] = mapvalue - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaximumResourceFractionByPool", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaximumResourceFractionByPool == nil { - m.MaximumResourceFractionByPool = make(map[string]*PriorityClassPoolResourceLimits) - } - var mapkey string - var mapvalue *PriorityClassPoolResourceLimits - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthSubmit - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthSubmit - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &PriorityClassPoolResourceLimits{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.MaximumResourceFractionByPool[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PriorityClassPoolResourceLimits) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PriorityClassPoolResourceLimits: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PriorityClassPoolResourceLimits: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaximumResourceFraction", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaximumResourceFraction == nil { - m.MaximumResourceFraction = make(map[string]float64) - } - var mapkey string - var mapvalue float64 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthSubmit - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthSubmit - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapvaluetemp uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - mapvaluetemp = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - mapvalue = math.Float64frombits(mapvaluetemp) - } else { - iNdEx = entryPreIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.MaximumResourceFraction[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueueList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueueList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueueList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queues = append(m.Queues, &Queue{}) - if err := m.Queues[len(m.Queues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CancellationResult) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CancellationResult: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancellationResult: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelledIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CancelledIds = append(m.CancelledIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueueGetRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueueGetRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueueGetRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueueCordonRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueueCordonRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueueCordonRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueueUncordonRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueueUncordonRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueueUncordonRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StreamingQueueGetRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StreamingQueueGetRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StreamingQueueGetRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType) - } - m.Num = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Num |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueueDeleteRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueueDeleteRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueueDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobSetInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobSetInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSetInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field QueuedJobs", wireType) - } - m.QueuedJobs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.QueuedJobs |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LeasedJobs", wireType) - } - m.LeasedJobs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LeasedJobs |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueueUpdateResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueueUpdateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueueUpdateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Queue == nil { - m.Queue = &Queue{} - } - if err := m.Queue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BatchQueueUpdateResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BatchQueueUpdateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BatchQueueUpdateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FailedQueues", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FailedQueues = append(m.FailedQueues, &QueueUpdateResponse{}) - if err := m.FailedQueues[len(m.FailedQueues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueueCreateResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueueCreateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueueCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Queue == nil { - m.Queue = &Queue{} - } - if err := m.Queue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BatchQueueCreateResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BatchQueueCreateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BatchQueueCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FailedQueues", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FailedQueues = append(m.FailedQueues, &QueueCreateResponse{}) - if err := m.FailedQueues[len(m.FailedQueues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EndMarker) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EndMarker: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EndMarker: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StreamingQueueMessage) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StreamingQueueMessage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StreamingQueueMessage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Queue{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &StreamingQueueMessage_Queue{v} - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &EndMarker{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &StreamingQueueMessage_End{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueuePreemptRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueuePreemptRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueuePreemptRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PriorityClasses", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PriorityClasses = append(m.PriorityClasses, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueueCancelRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueueCancelRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueueCancelRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PriorityClasses", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PriorityClasses = append(m.PriorityClasses, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType == 0 { - var v JobState - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= JobState(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.JobStates = append(m.JobStates, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthSubmit - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthSubmit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.JobStates) == 0 { - m.JobStates = make([]JobState, 0, elementCount) - } - for iNdEx < postIndex { - var v JobState - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSubmit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= JobState(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.JobStates = append(m.JobStates, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field JobStates", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipSubmit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSubmit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipSubmit(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSubmit - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSubmit - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSubmit - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthSubmit - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupSubmit - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthSubmit - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthSubmit = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowSubmit = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupSubmit = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/api/submit_grpc.pb.go b/pkg/api/submit_grpc.pb.go new file mode 100644 index 00000000000..533d0671d59 --- /dev/null +++ b/pkg/api/submit_grpc.pb.go @@ -0,0 +1,1069 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 +// source: pkg/api/submit.proto + +package api + +import ( + context "context" + + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + QueueService_CreateQueue_FullMethodName = "/api.QueueService/CreateQueue" + QueueService_CreateQueues_FullMethodName = "/api.QueueService/CreateQueues" + QueueService_UpdateQueue_FullMethodName = "/api.QueueService/UpdateQueue" + QueueService_UpdateQueues_FullMethodName = "/api.QueueService/UpdateQueues" + QueueService_DeleteQueue_FullMethodName = "/api.QueueService/DeleteQueue" + QueueService_GetQueue_FullMethodName = "/api.QueueService/GetQueue" + QueueService_GetQueues_FullMethodName = "/api.QueueService/GetQueues" + QueueService_CordonQueue_FullMethodName = "/api.QueueService/CordonQueue" + QueueService_UncordonQueue_FullMethodName = "/api.QueueService/UncordonQueue" + QueueService_PreemptOnQueue_FullMethodName = "/api.QueueService/PreemptOnQueue" + QueueService_CancelOnQueue_FullMethodName = "/api.QueueService/CancelOnQueue" +) + +// QueueServiceClient is the client API for QueueService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type QueueServiceClient interface { + CreateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*emptypb.Empty, error) + CreateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueCreateResponse, error) + UpdateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*emptypb.Empty, error) + UpdateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueUpdateResponse, error) + DeleteQueue(ctx context.Context, in *QueueDeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + GetQueue(ctx context.Context, in *QueueGetRequest, opts ...grpc.CallOption) (*Queue, error) + GetQueues(ctx context.Context, in *StreamingQueueGetRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamingQueueMessage], error) + CordonQueue(ctx context.Context, in *QueueCordonRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + UncordonQueue(ctx context.Context, in *QueueUncordonRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + PreemptOnQueue(ctx context.Context, in *QueuePreemptRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + CancelOnQueue(ctx context.Context, in *QueueCancelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) +} + +type queueServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewQueueServiceClient(cc grpc.ClientConnInterface) QueueServiceClient { + return &queueServiceClient{cc} +} + +func (c *queueServiceClient) CreateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, QueueService_CreateQueue_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queueServiceClient) CreateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueCreateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(BatchQueueCreateResponse) + err := c.cc.Invoke(ctx, QueueService_CreateQueues_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queueServiceClient) UpdateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, QueueService_UpdateQueue_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queueServiceClient) UpdateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueUpdateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(BatchQueueUpdateResponse) + err := c.cc.Invoke(ctx, QueueService_UpdateQueues_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queueServiceClient) DeleteQueue(ctx context.Context, in *QueueDeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, QueueService_DeleteQueue_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queueServiceClient) GetQueue(ctx context.Context, in *QueueGetRequest, opts ...grpc.CallOption) (*Queue, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(Queue) + err := c.cc.Invoke(ctx, QueueService_GetQueue_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queueServiceClient) GetQueues(ctx context.Context, in *StreamingQueueGetRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamingQueueMessage], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &QueueService_ServiceDesc.Streams[0], QueueService_GetQueues_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[StreamingQueueGetRequest, StreamingQueueMessage]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type QueueService_GetQueuesClient = grpc.ServerStreamingClient[StreamingQueueMessage] + +func (c *queueServiceClient) CordonQueue(ctx context.Context, in *QueueCordonRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, QueueService_CordonQueue_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queueServiceClient) UncordonQueue(ctx context.Context, in *QueueUncordonRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, QueueService_UncordonQueue_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queueServiceClient) PreemptOnQueue(ctx context.Context, in *QueuePreemptRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, QueueService_PreemptOnQueue_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queueServiceClient) CancelOnQueue(ctx context.Context, in *QueueCancelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, QueueService_CancelOnQueue_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueueServiceServer is the server API for QueueService service. +// All implementations must embed UnimplementedQueueServiceServer +// for forward compatibility. +type QueueServiceServer interface { + CreateQueue(context.Context, *Queue) (*emptypb.Empty, error) + CreateQueues(context.Context, *QueueList) (*BatchQueueCreateResponse, error) + UpdateQueue(context.Context, *Queue) (*emptypb.Empty, error) + UpdateQueues(context.Context, *QueueList) (*BatchQueueUpdateResponse, error) + DeleteQueue(context.Context, *QueueDeleteRequest) (*emptypb.Empty, error) + GetQueue(context.Context, *QueueGetRequest) (*Queue, error) + GetQueues(*StreamingQueueGetRequest, grpc.ServerStreamingServer[StreamingQueueMessage]) error + CordonQueue(context.Context, *QueueCordonRequest) (*emptypb.Empty, error) + UncordonQueue(context.Context, *QueueUncordonRequest) (*emptypb.Empty, error) + PreemptOnQueue(context.Context, *QueuePreemptRequest) (*emptypb.Empty, error) + CancelOnQueue(context.Context, *QueueCancelRequest) (*emptypb.Empty, error) + mustEmbedUnimplementedQueueServiceServer() +} + +// UnimplementedQueueServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedQueueServiceServer struct{} + +func (UnimplementedQueueServiceServer) CreateQueue(context.Context, *Queue) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateQueue not implemented") +} +func (UnimplementedQueueServiceServer) CreateQueues(context.Context, *QueueList) (*BatchQueueCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateQueues not implemented") +} +func (UnimplementedQueueServiceServer) UpdateQueue(context.Context, *Queue) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateQueue not implemented") +} +func (UnimplementedQueueServiceServer) UpdateQueues(context.Context, *QueueList) (*BatchQueueUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateQueues not implemented") +} +func (UnimplementedQueueServiceServer) DeleteQueue(context.Context, *QueueDeleteRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteQueue not implemented") +} +func (UnimplementedQueueServiceServer) GetQueue(context.Context, *QueueGetRequest) (*Queue, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetQueue not implemented") +} +func (UnimplementedQueueServiceServer) GetQueues(*StreamingQueueGetRequest, grpc.ServerStreamingServer[StreamingQueueMessage]) error { + return status.Errorf(codes.Unimplemented, "method GetQueues not implemented") +} +func (UnimplementedQueueServiceServer) CordonQueue(context.Context, *QueueCordonRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method CordonQueue not implemented") +} +func (UnimplementedQueueServiceServer) UncordonQueue(context.Context, *QueueUncordonRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method UncordonQueue not implemented") +} +func (UnimplementedQueueServiceServer) PreemptOnQueue(context.Context, *QueuePreemptRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method PreemptOnQueue not implemented") +} +func (UnimplementedQueueServiceServer) CancelOnQueue(context.Context, *QueueCancelRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelOnQueue not implemented") +} +func (UnimplementedQueueServiceServer) mustEmbedUnimplementedQueueServiceServer() {} +func (UnimplementedQueueServiceServer) testEmbeddedByValue() {} + +// UnsafeQueueServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to QueueServiceServer will +// result in compilation errors. +type UnsafeQueueServiceServer interface { + mustEmbedUnimplementedQueueServiceServer() +} + +func RegisterQueueServiceServer(s grpc.ServiceRegistrar, srv QueueServiceServer) { + // If the following call pancis, it indicates UnimplementedQueueServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&QueueService_ServiceDesc, srv) +} + +func _QueueService_CreateQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Queue) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueueServiceServer).CreateQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: QueueService_CreateQueue_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueueServiceServer).CreateQueue(ctx, req.(*Queue)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueueService_CreateQueues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueueList) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueueServiceServer).CreateQueues(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: QueueService_CreateQueues_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueueServiceServer).CreateQueues(ctx, req.(*QueueList)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueueService_UpdateQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Queue) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueueServiceServer).UpdateQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: QueueService_UpdateQueue_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueueServiceServer).UpdateQueue(ctx, req.(*Queue)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueueService_UpdateQueues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueueList) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueueServiceServer).UpdateQueues(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: QueueService_UpdateQueues_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueueServiceServer).UpdateQueues(ctx, req.(*QueueList)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueueService_DeleteQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueueDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueueServiceServer).DeleteQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: QueueService_DeleteQueue_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueueServiceServer).DeleteQueue(ctx, req.(*QueueDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueueService_GetQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueueGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueueServiceServer).GetQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: QueueService_GetQueue_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueueServiceServer).GetQueue(ctx, req.(*QueueGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueueService_GetQueues_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(StreamingQueueGetRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(QueueServiceServer).GetQueues(m, &grpc.GenericServerStream[StreamingQueueGetRequest, StreamingQueueMessage]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type QueueService_GetQueuesServer = grpc.ServerStreamingServer[StreamingQueueMessage] + +func _QueueService_CordonQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueueCordonRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueueServiceServer).CordonQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: QueueService_CordonQueue_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueueServiceServer).CordonQueue(ctx, req.(*QueueCordonRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueueService_UncordonQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueueUncordonRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueueServiceServer).UncordonQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: QueueService_UncordonQueue_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueueServiceServer).UncordonQueue(ctx, req.(*QueueUncordonRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueueService_PreemptOnQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueuePreemptRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueueServiceServer).PreemptOnQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: QueueService_PreemptOnQueue_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueueServiceServer).PreemptOnQueue(ctx, req.(*QueuePreemptRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueueService_CancelOnQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueueCancelRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueueServiceServer).CancelOnQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: QueueService_CancelOnQueue_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueueServiceServer).CancelOnQueue(ctx, req.(*QueueCancelRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// QueueService_ServiceDesc is the grpc.ServiceDesc for QueueService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var QueueService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "api.QueueService", + HandlerType: (*QueueServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateQueue", + Handler: _QueueService_CreateQueue_Handler, + }, + { + MethodName: "CreateQueues", + Handler: _QueueService_CreateQueues_Handler, + }, + { + MethodName: "UpdateQueue", + Handler: _QueueService_UpdateQueue_Handler, + }, + { + MethodName: "UpdateQueues", + Handler: _QueueService_UpdateQueues_Handler, + }, + { + MethodName: "DeleteQueue", + Handler: _QueueService_DeleteQueue_Handler, + }, + { + MethodName: "GetQueue", + Handler: _QueueService_GetQueue_Handler, + }, + { + MethodName: "CordonQueue", + Handler: _QueueService_CordonQueue_Handler, + }, + { + MethodName: "UncordonQueue", + Handler: _QueueService_UncordonQueue_Handler, + }, + { + MethodName: "PreemptOnQueue", + Handler: _QueueService_PreemptOnQueue_Handler, + }, + { + MethodName: "CancelOnQueue", + Handler: _QueueService_CancelOnQueue_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "GetQueues", + Handler: _QueueService_GetQueues_Handler, + ServerStreams: true, + }, + }, + Metadata: "pkg/api/submit.proto", +} + +const ( + Submit_SubmitJobs_FullMethodName = "/api.Submit/SubmitJobs" + Submit_CancelJobs_FullMethodName = "/api.Submit/CancelJobs" + Submit_CancelJobSet_FullMethodName = "/api.Submit/CancelJobSet" + Submit_ReprioritizeJobs_FullMethodName = "/api.Submit/ReprioritizeJobs" + Submit_PreemptJobs_FullMethodName = "/api.Submit/PreemptJobs" + Submit_CreateQueue_FullMethodName = "/api.Submit/CreateQueue" + Submit_CreateQueues_FullMethodName = "/api.Submit/CreateQueues" + Submit_UpdateQueue_FullMethodName = "/api.Submit/UpdateQueue" + Submit_UpdateQueues_FullMethodName = "/api.Submit/UpdateQueues" + Submit_DeleteQueue_FullMethodName = "/api.Submit/DeleteQueue" + Submit_GetQueue_FullMethodName = "/api.Submit/GetQueue" + Submit_GetQueues_FullMethodName = "/api.Submit/GetQueues" + Submit_Health_FullMethodName = "/api.Submit/Health" +) + +// SubmitClient is the client API for Submit service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type SubmitClient interface { + SubmitJobs(ctx context.Context, in *JobSubmitRequest, opts ...grpc.CallOption) (*JobSubmitResponse, error) + CancelJobs(ctx context.Context, in *JobCancelRequest, opts ...grpc.CallOption) (*CancellationResult, error) + CancelJobSet(ctx context.Context, in *JobSetCancelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + ReprioritizeJobs(ctx context.Context, in *JobReprioritizeRequest, opts ...grpc.CallOption) (*JobReprioritizeResponse, error) + PreemptJobs(ctx context.Context, in *JobPreemptRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + CreateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*emptypb.Empty, error) + CreateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueCreateResponse, error) + UpdateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*emptypb.Empty, error) + UpdateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueUpdateResponse, error) + DeleteQueue(ctx context.Context, in *QueueDeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + GetQueue(ctx context.Context, in *QueueGetRequest, opts ...grpc.CallOption) (*Queue, error) + GetQueues(ctx context.Context, in *StreamingQueueGetRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamingQueueMessage], error) + Health(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error) +} + +type submitClient struct { + cc grpc.ClientConnInterface +} + +func NewSubmitClient(cc grpc.ClientConnInterface) SubmitClient { + return &submitClient{cc} +} + +func (c *submitClient) SubmitJobs(ctx context.Context, in *JobSubmitRequest, opts ...grpc.CallOption) (*JobSubmitResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(JobSubmitResponse) + err := c.cc.Invoke(ctx, Submit_SubmitJobs_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *submitClient) CancelJobs(ctx context.Context, in *JobCancelRequest, opts ...grpc.CallOption) (*CancellationResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CancellationResult) + err := c.cc.Invoke(ctx, Submit_CancelJobs_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *submitClient) CancelJobSet(ctx context.Context, in *JobSetCancelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, Submit_CancelJobSet_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *submitClient) ReprioritizeJobs(ctx context.Context, in *JobReprioritizeRequest, opts ...grpc.CallOption) (*JobReprioritizeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(JobReprioritizeResponse) + err := c.cc.Invoke(ctx, Submit_ReprioritizeJobs_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *submitClient) PreemptJobs(ctx context.Context, in *JobPreemptRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, Submit_PreemptJobs_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *submitClient) CreateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, Submit_CreateQueue_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *submitClient) CreateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueCreateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(BatchQueueCreateResponse) + err := c.cc.Invoke(ctx, Submit_CreateQueues_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *submitClient) UpdateQueue(ctx context.Context, in *Queue, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, Submit_UpdateQueue_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *submitClient) UpdateQueues(ctx context.Context, in *QueueList, opts ...grpc.CallOption) (*BatchQueueUpdateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(BatchQueueUpdateResponse) + err := c.cc.Invoke(ctx, Submit_UpdateQueues_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *submitClient) DeleteQueue(ctx context.Context, in *QueueDeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, Submit_DeleteQueue_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *submitClient) GetQueue(ctx context.Context, in *QueueGetRequest, opts ...grpc.CallOption) (*Queue, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(Queue) + err := c.cc.Invoke(ctx, Submit_GetQueue_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *submitClient) GetQueues(ctx context.Context, in *StreamingQueueGetRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamingQueueMessage], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &Submit_ServiceDesc.Streams[0], Submit_GetQueues_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[StreamingQueueGetRequest, StreamingQueueMessage]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Submit_GetQueuesClient = grpc.ServerStreamingClient[StreamingQueueMessage] + +func (c *submitClient) Health(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(HealthCheckResponse) + err := c.cc.Invoke(ctx, Submit_Health_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SubmitServer is the server API for Submit service. +// All implementations must embed UnimplementedSubmitServer +// for forward compatibility. +type SubmitServer interface { + SubmitJobs(context.Context, *JobSubmitRequest) (*JobSubmitResponse, error) + CancelJobs(context.Context, *JobCancelRequest) (*CancellationResult, error) + CancelJobSet(context.Context, *JobSetCancelRequest) (*emptypb.Empty, error) + ReprioritizeJobs(context.Context, *JobReprioritizeRequest) (*JobReprioritizeResponse, error) + PreemptJobs(context.Context, *JobPreemptRequest) (*emptypb.Empty, error) + CreateQueue(context.Context, *Queue) (*emptypb.Empty, error) + CreateQueues(context.Context, *QueueList) (*BatchQueueCreateResponse, error) + UpdateQueue(context.Context, *Queue) (*emptypb.Empty, error) + UpdateQueues(context.Context, *QueueList) (*BatchQueueUpdateResponse, error) + DeleteQueue(context.Context, *QueueDeleteRequest) (*emptypb.Empty, error) + GetQueue(context.Context, *QueueGetRequest) (*Queue, error) + GetQueues(*StreamingQueueGetRequest, grpc.ServerStreamingServer[StreamingQueueMessage]) error + Health(context.Context, *emptypb.Empty) (*HealthCheckResponse, error) + mustEmbedUnimplementedSubmitServer() +} + +// UnimplementedSubmitServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedSubmitServer struct{} + +func (UnimplementedSubmitServer) SubmitJobs(context.Context, *JobSubmitRequest) (*JobSubmitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SubmitJobs not implemented") +} +func (UnimplementedSubmitServer) CancelJobs(context.Context, *JobCancelRequest) (*CancellationResult, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelJobs not implemented") +} +func (UnimplementedSubmitServer) CancelJobSet(context.Context, *JobSetCancelRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelJobSet not implemented") +} +func (UnimplementedSubmitServer) ReprioritizeJobs(context.Context, *JobReprioritizeRequest) (*JobReprioritizeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReprioritizeJobs not implemented") +} +func (UnimplementedSubmitServer) PreemptJobs(context.Context, *JobPreemptRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method PreemptJobs not implemented") +} +func (UnimplementedSubmitServer) CreateQueue(context.Context, *Queue) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateQueue not implemented") +} +func (UnimplementedSubmitServer) CreateQueues(context.Context, *QueueList) (*BatchQueueCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateQueues not implemented") +} +func (UnimplementedSubmitServer) UpdateQueue(context.Context, *Queue) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateQueue not implemented") +} +func (UnimplementedSubmitServer) UpdateQueues(context.Context, *QueueList) (*BatchQueueUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateQueues not implemented") +} +func (UnimplementedSubmitServer) DeleteQueue(context.Context, *QueueDeleteRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteQueue not implemented") +} +func (UnimplementedSubmitServer) GetQueue(context.Context, *QueueGetRequest) (*Queue, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetQueue not implemented") +} +func (UnimplementedSubmitServer) GetQueues(*StreamingQueueGetRequest, grpc.ServerStreamingServer[StreamingQueueMessage]) error { + return status.Errorf(codes.Unimplemented, "method GetQueues not implemented") +} +func (UnimplementedSubmitServer) Health(context.Context, *emptypb.Empty) (*HealthCheckResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Health not implemented") +} +func (UnimplementedSubmitServer) mustEmbedUnimplementedSubmitServer() {} +func (UnimplementedSubmitServer) testEmbeddedByValue() {} + +// UnsafeSubmitServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SubmitServer will +// result in compilation errors. +type UnsafeSubmitServer interface { + mustEmbedUnimplementedSubmitServer() +} + +func RegisterSubmitServer(s grpc.ServiceRegistrar, srv SubmitServer) { + // If the following call pancis, it indicates UnimplementedSubmitServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Submit_ServiceDesc, srv) +} + +func _Submit_SubmitJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(JobSubmitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubmitServer).SubmitJobs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Submit_SubmitJobs_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubmitServer).SubmitJobs(ctx, req.(*JobSubmitRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Submit_CancelJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(JobCancelRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubmitServer).CancelJobs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Submit_CancelJobs_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubmitServer).CancelJobs(ctx, req.(*JobCancelRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Submit_CancelJobSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(JobSetCancelRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubmitServer).CancelJobSet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Submit_CancelJobSet_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubmitServer).CancelJobSet(ctx, req.(*JobSetCancelRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Submit_ReprioritizeJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(JobReprioritizeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubmitServer).ReprioritizeJobs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Submit_ReprioritizeJobs_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubmitServer).ReprioritizeJobs(ctx, req.(*JobReprioritizeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Submit_PreemptJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(JobPreemptRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubmitServer).PreemptJobs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Submit_PreemptJobs_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubmitServer).PreemptJobs(ctx, req.(*JobPreemptRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Submit_CreateQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Queue) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubmitServer).CreateQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Submit_CreateQueue_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubmitServer).CreateQueue(ctx, req.(*Queue)) + } + return interceptor(ctx, in, info, handler) +} + +func _Submit_CreateQueues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueueList) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubmitServer).CreateQueues(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Submit_CreateQueues_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubmitServer).CreateQueues(ctx, req.(*QueueList)) + } + return interceptor(ctx, in, info, handler) +} + +func _Submit_UpdateQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Queue) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubmitServer).UpdateQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Submit_UpdateQueue_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubmitServer).UpdateQueue(ctx, req.(*Queue)) + } + return interceptor(ctx, in, info, handler) +} + +func _Submit_UpdateQueues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueueList) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubmitServer).UpdateQueues(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Submit_UpdateQueues_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubmitServer).UpdateQueues(ctx, req.(*QueueList)) + } + return interceptor(ctx, in, info, handler) +} + +func _Submit_DeleteQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueueDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubmitServer).DeleteQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Submit_DeleteQueue_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubmitServer).DeleteQueue(ctx, req.(*QueueDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Submit_GetQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueueGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubmitServer).GetQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Submit_GetQueue_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubmitServer).GetQueue(ctx, req.(*QueueGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Submit_GetQueues_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(StreamingQueueGetRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(SubmitServer).GetQueues(m, &grpc.GenericServerStream[StreamingQueueGetRequest, StreamingQueueMessage]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Submit_GetQueuesServer = grpc.ServerStreamingServer[StreamingQueueMessage] + +func _Submit_Health_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SubmitServer).Health(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Submit_Health_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SubmitServer).Health(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +// Submit_ServiceDesc is the grpc.ServiceDesc for Submit service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Submit_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "api.Submit", + HandlerType: (*SubmitServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "SubmitJobs", + Handler: _Submit_SubmitJobs_Handler, + }, + { + MethodName: "CancelJobs", + Handler: _Submit_CancelJobs_Handler, + }, + { + MethodName: "CancelJobSet", + Handler: _Submit_CancelJobSet_Handler, + }, + { + MethodName: "ReprioritizeJobs", + Handler: _Submit_ReprioritizeJobs_Handler, + }, + { + MethodName: "PreemptJobs", + Handler: _Submit_PreemptJobs_Handler, + }, + { + MethodName: "CreateQueue", + Handler: _Submit_CreateQueue_Handler, + }, + { + MethodName: "CreateQueues", + Handler: _Submit_CreateQueues_Handler, + }, + { + MethodName: "UpdateQueue", + Handler: _Submit_UpdateQueue_Handler, + }, + { + MethodName: "UpdateQueues", + Handler: _Submit_UpdateQueues_Handler, + }, + { + MethodName: "DeleteQueue", + Handler: _Submit_DeleteQueue_Handler, + }, + { + MethodName: "GetQueue", + Handler: _Submit_GetQueue_Handler, + }, + { + MethodName: "Health", + Handler: _Submit_Health_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "GetQueues", + Handler: _Submit_GetQueues_Handler, + ServerStreams: true, + }, + }, + Metadata: "pkg/api/submit.proto", +} diff --git a/pkg/api/testspec.pb.go b/pkg/api/testspec.pb.go index 289ec2f8389..abcea479392 100644 --- a/pkg/api/testspec.pb.go +++ b/pkg/api/testspec.pb.go @@ -1,1035 +1,359 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: pkg/api/testspec.proto package api import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" - proto "github.com/gogo/protobuf/proto" - types "github.com/gogo/protobuf/types" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" ) -// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // If the jobs in this spec. should be cancelled. type TestSpec_Cancel int32 const ( - TestSpec_NO TestSpec_Cancel = 0 - TestSpec_BY_ID TestSpec_Cancel = 1 - TestSpec_BY_SET TestSpec_Cancel = 2 - TestSpec_BY_IDS TestSpec_Cancel = 3 + TestSpec_NO TestSpec_Cancel = 0 // Do not cancel jobs. + TestSpec_BY_ID TestSpec_Cancel = 1 // Cancel jobs individually. + TestSpec_BY_SET TestSpec_Cancel = 2 // Cancel all jobs in the job set in bulk. + TestSpec_BY_IDS TestSpec_Cancel = 3 // Cancel all jobs in the job set by multiple ids ) -var TestSpec_Cancel_name = map[int32]string{ - 0: "NO", - 1: "BY_ID", - 2: "BY_SET", - 3: "BY_IDS", -} +// Enum value maps for TestSpec_Cancel. +var ( + TestSpec_Cancel_name = map[int32]string{ + 0: "NO", + 1: "BY_ID", + 2: "BY_SET", + 3: "BY_IDS", + } + TestSpec_Cancel_value = map[string]int32{ + "NO": 0, + "BY_ID": 1, + "BY_SET": 2, + "BY_IDS": 3, + } +) -var TestSpec_Cancel_value = map[string]int32{ - "NO": 0, - "BY_ID": 1, - "BY_SET": 2, - "BY_IDS": 3, +func (x TestSpec_Cancel) Enum() *TestSpec_Cancel { + p := new(TestSpec_Cancel) + *p = x + return p } func (x TestSpec_Cancel) String() string { - return proto.EnumName(TestSpec_Cancel_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TestSpec_Cancel) Descriptor() protoreflect.EnumDescriptor { + return file_pkg_api_testspec_proto_enumTypes[0].Descriptor() +} + +func (TestSpec_Cancel) Type() protoreflect.EnumType { + return &file_pkg_api_testspec_proto_enumTypes[0] +} + +func (x TestSpec_Cancel) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use TestSpec_Cancel.Descriptor instead. func (TestSpec_Cancel) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_38d601305b414287, []int{0, 0} + return file_pkg_api_testspec_proto_rawDescGZIP(), []int{0, 0} } // Defines a test case for the Armada test suite. // Defined as a proto message to enable unmarshalling oneof fields. type TestSpec struct { + state protoimpl.MessageState `protogen:"open.v1"` // Jobs to submit. // The n jobs herein are copied BatchSize times to produce n*BatchSize jobs. // A batch of n*BatchSize such jobs are submitted in each API call. // NumBatches such batches are submitted in total. Jobs []*JobSubmitRequestItem `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"` // Events expected in response to submitting each job. - ExpectedEvents []*EventMessage `protobuf:"bytes,2,rep,name=expected_events,json=expectedEvents,proto3" json:"expectedEvents,omitempty"` + ExpectedEvents []*EventMessage `protobuf:"bytes,2,rep,name=expected_events,json=expectedEvents,proto3" json:"expected_events,omitempty"` // Queue to submit jobs to. Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` // Job set to submit jobs to. - JobSetId string `protobuf:"bytes,4,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"` + JobSetId string `protobuf:"bytes,4,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` // Number of batches of jobs to submit. // If 0, will submit forever. - NumBatches uint32 `protobuf:"varint,5,opt,name=num_batches,json=numBatches,proto3" json:"numBatches,omitempty"` + NumBatches uint32 `protobuf:"varint,5,opt,name=num_batches,json=numBatches,proto3" json:"num_batches,omitempty"` // Number of copies of the provided jobs to submit per batch. - BatchSize uint32 `protobuf:"varint,6,opt,name=batch_size,json=batchSize,proto3" json:"batchSize,omitempty"` + BatchSize uint32 `protobuf:"varint,6,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"` // Time between batches. // If 0, jobs are submitted as quickly as possible. - Interval *types.Duration `protobuf:"bytes,7,opt,name=interval,proto3" json:"interval,omitempty"` + Interval *durationpb.Duration `protobuf:"bytes,7,opt,name=interval,proto3" json:"interval,omitempty"` // Number of seconds to wait for jobs to finish. - Timeout *types.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"` - Cancel TestSpec_Cancel `protobuf:"varint,9,opt,name=cancel,proto3,enum=api.TestSpec_Cancel" json:"cancel,omitempty"` + Timeout *durationpb.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"` + Cancel TestSpec_Cancel `protobuf:"varint,9,opt,name=cancel,proto3,enum=api.TestSpec_Cancel" json:"cancel,omitempty"` // Test name. Defaults to the filename if not provided. Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"` // Randomize clientId if not provided - RandomClientId bool `protobuf:"varint,11,opt,name=random_client_id,json=randomClientId,proto3" json:"randomClientId,omitempty"` + RandomClientId bool `protobuf:"varint,11,opt,name=random_client_id,json=randomClientId,proto3" json:"random_client_id,omitempty"` // Toggle should testsuite scrape Armada Job (pod) logs - GetLogs bool `protobuf:"varint,12,opt,name=get_logs,json=getLogs,proto3" json:"getLogs,omitempty"` + GetLogs bool `protobuf:"varint,12,opt,name=get_logs,json=getLogs,proto3" json:"get_logs,omitempty"` // Value of the environment label set on exported Prometheus metrics. Environment string `protobuf:"bytes,13,opt,name=environment,proto3" json:"environment,omitempty"` // Value of the target label set on exported Prometheus metrics. - Target string `protobuf:"bytes,14,opt,name=target,proto3" json:"target,omitempty"` + Target string `protobuf:"bytes,14,opt,name=target,proto3" json:"target,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *TestSpec) Reset() { *m = TestSpec{} } -func (m *TestSpec) String() string { return proto.CompactTextString(m) } -func (*TestSpec) ProtoMessage() {} -func (*TestSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_38d601305b414287, []int{0} +func (x *TestSpec) Reset() { + *x = TestSpec{} + mi := &file_pkg_api_testspec_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *TestSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *TestSpec) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TestSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TestSpec.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*TestSpec) ProtoMessage() {} + +func (x *TestSpec) ProtoReflect() protoreflect.Message { + mi := &file_pkg_api_testspec_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *TestSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_TestSpec.Merge(m, src) -} -func (m *TestSpec) XXX_Size() int { - return m.Size() -} -func (m *TestSpec) XXX_DiscardUnknown() { - xxx_messageInfo_TestSpec.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_TestSpec proto.InternalMessageInfo +// Deprecated: Use TestSpec.ProtoReflect.Descriptor instead. +func (*TestSpec) Descriptor() ([]byte, []int) { + return file_pkg_api_testspec_proto_rawDescGZIP(), []int{0} +} -func (m *TestSpec) GetJobs() []*JobSubmitRequestItem { - if m != nil { - return m.Jobs +func (x *TestSpec) GetJobs() []*JobSubmitRequestItem { + if x != nil { + return x.Jobs } return nil } -func (m *TestSpec) GetExpectedEvents() []*EventMessage { - if m != nil { - return m.ExpectedEvents +func (x *TestSpec) GetExpectedEvents() []*EventMessage { + if x != nil { + return x.ExpectedEvents } return nil } -func (m *TestSpec) GetQueue() string { - if m != nil { - return m.Queue +func (x *TestSpec) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *TestSpec) GetJobSetId() string { - if m != nil { - return m.JobSetId +func (x *TestSpec) GetJobSetId() string { + if x != nil { + return x.JobSetId } return "" } -func (m *TestSpec) GetNumBatches() uint32 { - if m != nil { - return m.NumBatches +func (x *TestSpec) GetNumBatches() uint32 { + if x != nil { + return x.NumBatches } return 0 } -func (m *TestSpec) GetBatchSize() uint32 { - if m != nil { - return m.BatchSize +func (x *TestSpec) GetBatchSize() uint32 { + if x != nil { + return x.BatchSize } return 0 } -func (m *TestSpec) GetInterval() *types.Duration { - if m != nil { - return m.Interval +func (x *TestSpec) GetInterval() *durationpb.Duration { + if x != nil { + return x.Interval } return nil } -func (m *TestSpec) GetTimeout() *types.Duration { - if m != nil { - return m.Timeout +func (x *TestSpec) GetTimeout() *durationpb.Duration { + if x != nil { + return x.Timeout } return nil } -func (m *TestSpec) GetCancel() TestSpec_Cancel { - if m != nil { - return m.Cancel +func (x *TestSpec) GetCancel() TestSpec_Cancel { + if x != nil { + return x.Cancel } return TestSpec_NO } -func (m *TestSpec) GetName() string { - if m != nil { - return m.Name +func (x *TestSpec) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *TestSpec) GetRandomClientId() bool { - if m != nil { - return m.RandomClientId +func (x *TestSpec) GetRandomClientId() bool { + if x != nil { + return x.RandomClientId } return false } -func (m *TestSpec) GetGetLogs() bool { - if m != nil { - return m.GetLogs +func (x *TestSpec) GetGetLogs() bool { + if x != nil { + return x.GetLogs } return false } -func (m *TestSpec) GetEnvironment() string { - if m != nil { - return m.Environment +func (x *TestSpec) GetEnvironment() string { + if x != nil { + return x.Environment } return "" } -func (m *TestSpec) GetTarget() string { - if m != nil { - return m.Target +func (x *TestSpec) GetTarget() string { + if x != nil { + return x.Target } return "" } -func init() { - proto.RegisterEnum("api.TestSpec_Cancel", TestSpec_Cancel_name, TestSpec_Cancel_value) - proto.RegisterType((*TestSpec)(nil), "api.TestSpec") -} - -func init() { proto.RegisterFile("pkg/api/testspec.proto", fileDescriptor_38d601305b414287) } - -var fileDescriptor_38d601305b414287 = []byte{ - // 652 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xc1, 0x4e, 0xdb, 0x4a, - 0x14, 0x86, 0xe3, 0x04, 0x9c, 0x64, 0x72, 0x09, 0x61, 0x08, 0xdc, 0x01, 0x5d, 0xd9, 0x11, 0x8b, - 0x7b, 0x73, 0x25, 0xe4, 0x54, 0x50, 0x55, 0xaa, 0xba, 0xc2, 0x40, 0xa5, 0xa0, 0xd2, 0x56, 0x84, - 0x05, 0x74, 0x63, 0x8d, 0x9d, 0x53, 0x33, 0x69, 0xec, 0x31, 0xf6, 0x18, 0xb5, 0x3c, 0x45, 0x1f, - 0xa0, 0x4f, 0xd0, 0x27, 0xe9, 0x92, 0x65, 0x57, 0x56, 0x05, 0x3b, 0x3f, 0x45, 0x95, 0xb1, 0xdd, - 0x0e, 0xab, 0xee, 0x32, 0xdf, 0xf9, 0xff, 0x93, 0x99, 0xf3, 0x1f, 0xa3, 0xcd, 0xe8, 0x83, 0x3f, - 0xa2, 0x11, 0x1b, 0x09, 0x48, 0x44, 0x12, 0x81, 0x67, 0x45, 0x31, 0x17, 0x1c, 0x37, 0x68, 0xc4, - 0xb6, 0x0d, 0x9f, 0x73, 0x7f, 0x0e, 0x23, 0x89, 0xdc, 0xf4, 0xfd, 0x68, 0x9a, 0xc6, 0x54, 0x30, - 0x1e, 0x16, 0xa2, 0xed, 0x7e, 0x65, 0x4e, 0x52, 0x37, 0x60, 0xa2, 0xa4, 0xeb, 0x15, 0x85, 0x1b, - 0x08, 0x4b, 0xb8, 0xf3, 0xa5, 0x89, 0x5a, 0xe7, 0x90, 0x88, 0x49, 0x04, 0x1e, 0x3e, 0x40, 0x4b, - 0x33, 0xee, 0x26, 0x44, 0x1b, 0x34, 0x86, 0x9d, 0xbd, 0x2d, 0x8b, 0x46, 0xcc, 0x3a, 0xe1, 0xee, - 0x44, 0x76, 0x39, 0x83, 0xeb, 0x14, 0x12, 0x31, 0x16, 0x10, 0xd8, 0x38, 0xcf, 0xcc, 0xee, 0x42, - 0xba, 0xcb, 0x03, 0x26, 0x20, 0x88, 0xc4, 0xa7, 0x33, 0x69, 0xc5, 0x17, 0x68, 0x15, 0x3e, 0x46, - 0xe0, 0x09, 0x98, 0x3a, 0xf2, 0x7f, 0x12, 0x52, 0x97, 0xdd, 0xd6, 0x64, 0xb7, 0xe3, 0x05, 0x3a, - 0x85, 0x24, 0xa1, 0x3e, 0xd8, 0xff, 0xe4, 0x99, 0x49, 0x2a, 0xb5, 0xac, 0xa8, 0xfd, 0xba, 0x8f, - 0x2b, 0xf8, 0x7f, 0xb4, 0x7c, 0x9d, 0x42, 0x0a, 0xa4, 0x31, 0xd0, 0x86, 0x6d, 0x7b, 0x3d, 0xcf, - 0xcc, 0x55, 0x09, 0x14, 0x4f, 0xa1, 0xc0, 0x4f, 0x11, 0x9a, 0x71, 0xd7, 0x49, 0x40, 0x38, 0x6c, - 0x4a, 0x96, 0xa4, 0x7e, 0x33, 0xcf, 0x4c, 0x3c, 0xe3, 0xee, 0x04, 0xc4, 0x78, 0xaa, 0x58, 0x5a, - 0x15, 0xc3, 0xcf, 0x51, 0x27, 0x4c, 0x03, 0xc7, 0xa5, 0xc2, 0xbb, 0x82, 0x84, 0x2c, 0x0f, 0xb4, - 0xe1, 0x8a, 0x4d, 0xf2, 0xcc, 0xec, 0x87, 0x69, 0x60, 0x17, 0x54, 0x31, 0xa2, 0xdf, 0x14, 0x3f, - 0x43, 0x48, 0xda, 0x9c, 0x84, 0xdd, 0x02, 0xd1, 0xa5, 0xf3, 0xef, 0x3c, 0x33, 0xd7, 0x25, 0x9d, - 0xb0, 0x5b, 0xf5, 0x92, 0xed, 0x5f, 0x10, 0x9f, 0xa2, 0x16, 0x0b, 0x05, 0xc4, 0x37, 0x74, 0x4e, - 0x9a, 0x03, 0x4d, 0x0e, 0xbd, 0xc8, 0xd6, 0xaa, 0xb2, 0xb5, 0x8e, 0xca, 0x6c, 0x8b, 0x17, 0x54, - 0x72, 0xf5, 0x05, 0x15, 0xc3, 0x27, 0xa8, 0x29, 0x58, 0x00, 0x3c, 0x15, 0xa4, 0xf5, 0xa7, 0x6e, - 0x1b, 0x79, 0x66, 0xae, 0x95, 0x6a, 0xa5, 0x59, 0xd5, 0x00, 0xdb, 0x48, 0xf7, 0x68, 0xe8, 0xc1, - 0x9c, 0xb4, 0x07, 0xda, 0xb0, 0xbb, 0xd7, 0x97, 0xf9, 0x55, 0xab, 0x62, 0x1d, 0xca, 0x9a, 0xdd, - 0xcf, 0x33, 0xb3, 0x57, 0xe8, 0x94, 0x26, 0xa5, 0x13, 0xff, 0x8b, 0x96, 0x42, 0x1a, 0x00, 0x41, - 0x32, 0x01, 0xb9, 0x34, 0x8b, 0xb3, 0xba, 0x34, 0x8b, 0x33, 0x7e, 0x89, 0x7a, 0x31, 0x0d, 0xa7, - 0x3c, 0x70, 0xbc, 0x39, 0x83, 0x50, 0xa6, 0xd6, 0x19, 0x68, 0xc3, 0x56, 0xb1, 0x22, 0x45, 0xed, - 0x50, 0x96, 0x1e, 0x65, 0xd7, 0x7d, 0x5c, 0xc1, 0x4f, 0x50, 0xcb, 0x07, 0xe1, 0xcc, 0xb9, 0x9f, - 0x90, 0xbf, 0xa4, 0x5f, 0xbe, 0xd2, 0x07, 0xf1, 0x8a, 0xfb, 0x6a, 0x76, 0xcd, 0x12, 0xe1, 0x17, - 0xa8, 0x03, 0xe1, 0x0d, 0x8b, 0x79, 0x18, 0x40, 0x28, 0xc8, 0x8a, 0xbc, 0xe8, 0x56, 0x9e, 0x99, - 0x1b, 0x0a, 0x56, 0x8c, 0xaa, 0x1a, 0xef, 0x22, 0x5d, 0xd0, 0xd8, 0x07, 0x41, 0xba, 0xd2, 0x27, - 0x87, 0x51, 0x10, 0x75, 0x18, 0x05, 0xd9, 0xd9, 0x47, 0x7a, 0x31, 0x34, 0xac, 0xa3, 0xfa, 0xeb, - 0x37, 0xbd, 0x1a, 0x6e, 0xa3, 0x65, 0xfb, 0xd2, 0x19, 0x1f, 0xf5, 0x34, 0x8c, 0x90, 0x6e, 0x5f, - 0x3a, 0x93, 0xe3, 0xf3, 0x5e, 0xbd, 0xfc, 0x3d, 0x3e, 0x9a, 0xf4, 0x1a, 0xf6, 0xc5, 0xb7, 0x7b, - 0x43, 0xbb, 0xbb, 0x37, 0xb4, 0x1f, 0xf7, 0x86, 0xf6, 0xf9, 0xc1, 0xa8, 0xdd, 0x3d, 0x18, 0xb5, - 0xef, 0x0f, 0x46, 0xed, 0xdd, 0x7f, 0x3e, 0x13, 0x57, 0xa9, 0x6b, 0x79, 0x3c, 0x18, 0xd1, 0x38, - 0xa0, 0x53, 0x1a, 0xc5, 0x7c, 0x06, 0x9e, 0x28, 0x4f, 0xa3, 0xf2, 0x6b, 0xff, 0x5a, 0xef, 0x1f, - 0x48, 0xf0, 0xb6, 0x28, 0x5b, 0x63, 0x6e, 0x1d, 0x44, 0xcc, 0xd5, 0xe5, 0x4a, 0xec, 0xff, 0x0c, - 0x00, 0x00, 0xff, 0xff, 0xa5, 0x42, 0x8d, 0x1f, 0x69, 0x04, 0x00, 0x00, -} - -func (m *TestSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TestSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TestSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Target) > 0 { - i -= len(m.Target) - copy(dAtA[i:], m.Target) - i = encodeVarintTestspec(dAtA, i, uint64(len(m.Target))) - i-- - dAtA[i] = 0x72 - } - if len(m.Environment) > 0 { - i -= len(m.Environment) - copy(dAtA[i:], m.Environment) - i = encodeVarintTestspec(dAtA, i, uint64(len(m.Environment))) - i-- - dAtA[i] = 0x6a - } - if m.GetLogs { - i-- - if m.GetLogs { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x60 - } - if m.RandomClientId { - i-- - if m.RandomClientId { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x58 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintTestspec(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x52 - } - if m.Cancel != 0 { - i = encodeVarintTestspec(dAtA, i, uint64(m.Cancel)) - i-- - dAtA[i] = 0x48 - } - if m.Timeout != nil { - { - size, err := m.Timeout.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTestspec(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if m.Interval != nil { - { - size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTestspec(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.BatchSize != 0 { - i = encodeVarintTestspec(dAtA, i, uint64(m.BatchSize)) - i-- - dAtA[i] = 0x30 - } - if m.NumBatches != 0 { - i = encodeVarintTestspec(dAtA, i, uint64(m.NumBatches)) - i-- - dAtA[i] = 0x28 - } - if len(m.JobSetId) > 0 { - i -= len(m.JobSetId) - copy(dAtA[i:], m.JobSetId) - i = encodeVarintTestspec(dAtA, i, uint64(len(m.JobSetId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintTestspec(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x1a - } - if len(m.ExpectedEvents) > 0 { - for iNdEx := len(m.ExpectedEvents) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ExpectedEvents[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTestspec(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Jobs) > 0 { - for iNdEx := len(m.Jobs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Jobs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTestspec(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintTestspec(dAtA []byte, offset int, v uint64) int { - offset -= sovTestspec(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *TestSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Jobs) > 0 { - for _, e := range m.Jobs { - l = e.Size() - n += 1 + l + sovTestspec(uint64(l)) - } - } - if len(m.ExpectedEvents) > 0 { - for _, e := range m.ExpectedEvents { - l = e.Size() - n += 1 + l + sovTestspec(uint64(l)) - } - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovTestspec(uint64(l)) - } - l = len(m.JobSetId) - if l > 0 { - n += 1 + l + sovTestspec(uint64(l)) - } - if m.NumBatches != 0 { - n += 1 + sovTestspec(uint64(m.NumBatches)) - } - if m.BatchSize != 0 { - n += 1 + sovTestspec(uint64(m.BatchSize)) - } - if m.Interval != nil { - l = m.Interval.Size() - n += 1 + l + sovTestspec(uint64(l)) - } - if m.Timeout != nil { - l = m.Timeout.Size() - n += 1 + l + sovTestspec(uint64(l)) - } - if m.Cancel != 0 { - n += 1 + sovTestspec(uint64(m.Cancel)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovTestspec(uint64(l)) - } - if m.RandomClientId { - n += 2 - } - if m.GetLogs { - n += 2 - } - l = len(m.Environment) - if l > 0 { - n += 1 + l + sovTestspec(uint64(l)) - } - l = len(m.Target) - if l > 0 { - n += 1 + l + sovTestspec(uint64(l)) - } - return n -} - -func sovTestspec(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozTestspec(x uint64) (n int) { - return sovTestspec(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *TestSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTestspec - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TestSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TestSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Jobs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTestspec - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTestspec - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTestspec - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Jobs = append(m.Jobs, &JobSubmitRequestItem{}) - if err := m.Jobs[len(m.Jobs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpectedEvents", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTestspec - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTestspec - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTestspec - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExpectedEvents = append(m.ExpectedEvents, &EventMessage{}) - if err := m.ExpectedEvents[len(m.ExpectedEvents)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTestspec - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTestspec - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTestspec - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTestspec - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTestspec - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTestspec - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumBatches", wireType) - } - m.NumBatches = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTestspec - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumBatches |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BatchSize", wireType) - } - m.BatchSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTestspec - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BatchSize |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTestspec - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTestspec - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTestspec - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Interval == nil { - m.Interval = &types.Duration{} - } - if err := m.Interval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTestspec - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTestspec - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTestspec - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Timeout == nil { - m.Timeout = &types.Duration{} - } - if err := m.Timeout.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Cancel", wireType) - } - m.Cancel = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTestspec - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Cancel |= TestSpec_Cancel(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTestspec - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTestspec - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTestspec - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RandomClientId", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTestspec - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RandomClientId = bool(v != 0) - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GetLogs", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTestspec - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.GetLogs = bool(v != 0) - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Environment", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTestspec - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTestspec - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTestspec - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Environment = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTestspec - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTestspec - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTestspec - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Target = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTestspec(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTestspec - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipTestspec(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTestspec - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTestspec - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTestspec - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthTestspec - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTestspec - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthTestspec - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} +var File_pkg_api_testspec_proto protoreflect.FileDescriptor + +var file_pkg_api_testspec_proto_rawDesc = string([]byte{ + 0x0a, 0x16, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x73, 0x70, + 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x1e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x70, + 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcb, 0x04, 0x0a, 0x08, 0x54, 0x65, 0x73, + 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x2d, 0x0a, 0x04, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x75, 0x62, + 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x04, + 0x6a, 0x6f, 0x62, 0x73, 0x12, 0x3a, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, + 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x52, 0x0e, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, + 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, + 0x65, 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x75, 0x6d, 0x5f, 0x62, 0x61, 0x74, 0x63, + 0x68, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x6e, 0x75, 0x6d, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x73, + 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x62, 0x61, 0x74, 0x63, 0x68, + 0x53, 0x69, 0x7a, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x33, 0x0a, 0x07, 0x74, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, + 0x12, 0x2c, 0x0a, 0x06, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x2e, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x06, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x5f, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x72, 0x61, + 0x6e, 0x64, 0x6f, 0x6d, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, + 0x67, 0x65, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, + 0x67, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, + 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x6e, + 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x22, 0x33, 0x0a, 0x06, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x06, 0x0a, 0x02, 0x4e, + 0x4f, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x59, 0x5f, 0x49, 0x44, 0x10, 0x01, 0x12, 0x0a, + 0x0a, 0x06, 0x42, 0x59, 0x5f, 0x53, 0x45, 0x54, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x59, + 0x5f, 0x49, 0x44, 0x53, 0x10, 0x03, 0x42, 0x40, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, + 0x69, 0xaa, 0x02, 0x14, 0x41, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x49, 0x6f, 0x2e, 0x41, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) var ( - ErrInvalidLengthTestspec = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTestspec = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTestspec = fmt.Errorf("proto: unexpected end of group") + file_pkg_api_testspec_proto_rawDescOnce sync.Once + file_pkg_api_testspec_proto_rawDescData []byte ) + +func file_pkg_api_testspec_proto_rawDescGZIP() []byte { + file_pkg_api_testspec_proto_rawDescOnce.Do(func() { + file_pkg_api_testspec_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_api_testspec_proto_rawDesc), len(file_pkg_api_testspec_proto_rawDesc))) + }) + return file_pkg_api_testspec_proto_rawDescData +} + +var file_pkg_api_testspec_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_pkg_api_testspec_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_pkg_api_testspec_proto_goTypes = []any{ + (TestSpec_Cancel)(0), // 0: api.TestSpec.Cancel + (*TestSpec)(nil), // 1: api.TestSpec + (*JobSubmitRequestItem)(nil), // 2: api.JobSubmitRequestItem + (*EventMessage)(nil), // 3: api.EventMessage + (*durationpb.Duration)(nil), // 4: google.protobuf.Duration +} +var file_pkg_api_testspec_proto_depIdxs = []int32{ + 2, // 0: api.TestSpec.jobs:type_name -> api.JobSubmitRequestItem + 3, // 1: api.TestSpec.expected_events:type_name -> api.EventMessage + 4, // 2: api.TestSpec.interval:type_name -> google.protobuf.Duration + 4, // 3: api.TestSpec.timeout:type_name -> google.protobuf.Duration + 0, // 4: api.TestSpec.cancel:type_name -> api.TestSpec.Cancel + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_pkg_api_testspec_proto_init() } +func file_pkg_api_testspec_proto_init() { + if File_pkg_api_testspec_proto != nil { + return + } + file_pkg_api_submit_proto_init() + file_pkg_api_event_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_api_testspec_proto_rawDesc), len(file_pkg_api_testspec_proto_rawDesc)), + NumEnums: 1, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_pkg_api_testspec_proto_goTypes, + DependencyIndexes: file_pkg_api_testspec_proto_depIdxs, + EnumInfos: file_pkg_api_testspec_proto_enumTypes, + MessageInfos: file_pkg_api_testspec_proto_msgTypes, + }.Build() + File_pkg_api_testspec_proto = out.File + file_pkg_api_testspec_proto_goTypes = nil + file_pkg_api_testspec_proto_depIdxs = nil +} diff --git a/pkg/armadaevents/events.pb.go b/pkg/armadaevents/events.pb.go index 82c14c8bb99..3f9a2432678 100644 --- a/pkg/armadaevents/events.pb.go +++ b/pkg/armadaevents/events.pb.go @@ -1,16 +1,19 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: pkg/armadaevents/events.proto package armadaevents import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" - proto "github.com/gogo/protobuf/proto" - types "github.com/gogo/protobuf/types" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" v11 "k8s.io/api/core/v1" v1 "k8s.io/api/networking/v1" resource "k8s.io/apimachinery/pkg/api/resource" @@ -18,16 +21,12 @@ import ( schedulerobjects "github.com/armadaproject/armada/internal/scheduler/schedulerobjects" ) -// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type JobState int32 @@ -37,24 +36,45 @@ const ( JobState_RUNNING JobState = 2 ) -var JobState_name = map[int32]string{ - 0: "QUEUED", - 1: "PENDING", - 2: "RUNNING", -} +// Enum value maps for JobState. +var ( + JobState_name = map[int32]string{ + 0: "QUEUED", + 1: "PENDING", + 2: "RUNNING", + } + JobState_value = map[string]int32{ + "QUEUED": 0, + "PENDING": 1, + "RUNNING": 2, + } +) -var JobState_value = map[string]int32{ - "QUEUED": 0, - "PENDING": 1, - "RUNNING": 2, +func (x JobState) Enum() *JobState { + p := new(JobState) + *p = x + return p } func (x JobState) String() string { - return proto.EnumName(JobState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (JobState) Descriptor() protoreflect.EnumDescriptor { + return file_pkg_armadaevents_events_proto_enumTypes[0].Descriptor() +} + +func (JobState) Type() protoreflect.EnumType { + return &file_pkg_armadaevents_events_proto_enumTypes[0] +} + +func (x JobState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use JobState.Descriptor instead. func (JobState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{0} + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{0} } // Reason reported by Kubernetes. @@ -67,561 +87,215 @@ const ( KubernetesReason_DeadlineExceeded KubernetesReason = 3 ) -var KubernetesReason_name = map[int32]string{ - 0: "AppError", - 1: "Evicted", - 2: "OOM", - 3: "DeadlineExceeded", -} +// Enum value maps for KubernetesReason. +var ( + KubernetesReason_name = map[int32]string{ + 0: "AppError", + 1: "Evicted", + 2: "OOM", + 3: "DeadlineExceeded", + } + KubernetesReason_value = map[string]int32{ + "AppError": 0, + "Evicted": 1, + "OOM": 2, + "DeadlineExceeded": 3, + } +) -var KubernetesReason_value = map[string]int32{ - "AppError": 0, - "Evicted": 1, - "OOM": 2, - "DeadlineExceeded": 3, +func (x KubernetesReason) Enum() *KubernetesReason { + p := new(KubernetesReason) + *p = x + return p } func (x KubernetesReason) String() string { - return proto.EnumName(KubernetesReason_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (KubernetesReason) Descriptor() protoreflect.EnumDescriptor { + return file_pkg_armadaevents_events_proto_enumTypes[1].Descriptor() +} + +func (KubernetesReason) Type() protoreflect.EnumType { + return &file_pkg_armadaevents_events_proto_enumTypes[1] +} + +func (x KubernetesReason) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use KubernetesReason.Descriptor instead. func (KubernetesReason) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{1} + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{1} } // Message representing a sequence of state transitions. // This is the only message type that should ever be published to the log. type EventSequence struct { + state protoimpl.MessageState `protogen:"open.v1"` // The system is namespaced by queue, and all events are associated with a job set. // Hence, these are included with every message. Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` // Each job set has a unique name. - JobSetName string `protobuf:"bytes,2,opt,name=job_set_name,json=jobSetName,proto3" json:"jobSetName,omitempty"` + JobSetName string `protobuf:"bytes,2,opt,name=job_set_name,json=jobSetName,proto3" json:"job_set_name,omitempty"` // Id of the user submitting the message. Is passed on to Kubernetes. // Leave empty for messages generated by Armada itself. - UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"userId,omitempty"` + UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // List of groups the user is member of. Is passed on to Kubernetes. Groups []string `protobuf:"bytes,4,rep,name=groups,proto3" json:"groups,omitempty"` // For efficiency, we bundle several events (i.e., state transitions) in a single log message. - Events []*EventSequence_Event `protobuf:"bytes,5,rep,name=events,proto3" json:"events,omitempty"` -} - -func (m *EventSequence) Reset() { *m = EventSequence{} } -func (m *EventSequence) String() string { return proto.CompactTextString(m) } -func (*EventSequence) ProtoMessage() {} -func (*EventSequence) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{0} -} -func (m *EventSequence) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventSequence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventSequence.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *EventSequence) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventSequence.Merge(m, src) -} -func (m *EventSequence) XXX_Size() int { - return m.Size() -} -func (m *EventSequence) XXX_DiscardUnknown() { - xxx_messageInfo_EventSequence.DiscardUnknown(m) + Events []*EventSequence_Event `protobuf:"bytes,5,rep,name=events,proto3" json:"events,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var xxx_messageInfo_EventSequence proto.InternalMessageInfo - -func (m *EventSequence) GetQueue() string { - if m != nil { - return m.Queue - } - return "" -} - -func (m *EventSequence) GetJobSetName() string { - if m != nil { - return m.JobSetName - } - return "" -} - -func (m *EventSequence) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *EventSequence) GetGroups() []string { - if m != nil { - return m.Groups - } - return nil +func (x *EventSequence) Reset() { + *x = EventSequence{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *EventSequence) GetEvents() []*EventSequence_Event { - if m != nil { - return m.Events - } - return nil +func (x *EventSequence) String() string { + return protoimpl.X.MessageStringOf(x) } -// List of possible events, i.e., state transitions. -type EventSequence_Event struct { - Created *types.Timestamp `protobuf:"bytes,18,opt,name=created,proto3" json:"created,omitempty"` - // Types that are valid to be assigned to Event: - // *EventSequence_Event_SubmitJob - // *EventSequence_Event_ReprioritiseJob - // *EventSequence_Event_ReprioritiseJobSet - // *EventSequence_Event_ReprioritisedJob - // *EventSequence_Event_CancelJob - // *EventSequence_Event_CancelJobSet - // *EventSequence_Event_CancelledJob - // *EventSequence_Event_JobSucceeded - // *EventSequence_Event_JobErrors - // *EventSequence_Event_JobRunLeased - // *EventSequence_Event_JobRunAssigned - // *EventSequence_Event_JobRunRunning - // *EventSequence_Event_JobRunSucceeded - // *EventSequence_Event_JobRunErrors - // *EventSequence_Event_StandaloneIngressInfo - // *EventSequence_Event_ResourceUtilisation - // *EventSequence_Event_JobRunPreempted - // *EventSequence_Event_PartitionMarker - // *EventSequence_Event_JobRunPreemptionRequested - // *EventSequence_Event_JobRequeued - // *EventSequence_Event_JobPreemptionRequested - // *EventSequence_Event_JobRunCancelled - // *EventSequence_Event_JobValidated - Event isEventSequence_Event_Event `protobuf_oneof:"event"` -} +func (*EventSequence) ProtoMessage() {} -func (m *EventSequence_Event) Reset() { *m = EventSequence_Event{} } -func (m *EventSequence_Event) String() string { return proto.CompactTextString(m) } -func (*EventSequence_Event) ProtoMessage() {} -func (*EventSequence_Event) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{0, 0} -} -func (m *EventSequence_Event) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventSequence_Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventSequence_Event.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *EventSequence) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil - } -} -func (m *EventSequence_Event) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventSequence_Event.Merge(m, src) -} -func (m *EventSequence_Event) XXX_Size() int { - return m.Size() -} -func (m *EventSequence_Event) XXX_DiscardUnknown() { - xxx_messageInfo_EventSequence_Event.DiscardUnknown(m) -} - -var xxx_messageInfo_EventSequence_Event proto.InternalMessageInfo - -type isEventSequence_Event_Event interface { - isEventSequence_Event_Event() - MarshalTo([]byte) (int, error) - Size() int -} - -type EventSequence_Event_SubmitJob struct { - SubmitJob *SubmitJob `protobuf:"bytes,1,opt,name=submitJob,proto3,oneof" json:"submitJob,omitempty"` -} -type EventSequence_Event_ReprioritiseJob struct { - ReprioritiseJob *ReprioritiseJob `protobuf:"bytes,2,opt,name=reprioritiseJob,proto3,oneof" json:"reprioritiseJob,omitempty"` -} -type EventSequence_Event_ReprioritiseJobSet struct { - ReprioritiseJobSet *ReprioritiseJobSet `protobuf:"bytes,3,opt,name=reprioritiseJobSet,proto3,oneof" json:"reprioritiseJobSet,omitempty"` -} -type EventSequence_Event_ReprioritisedJob struct { - ReprioritisedJob *ReprioritisedJob `protobuf:"bytes,4,opt,name=reprioritisedJob,proto3,oneof" json:"reprioritisedJob,omitempty"` -} -type EventSequence_Event_CancelJob struct { - CancelJob *CancelJob `protobuf:"bytes,5,opt,name=cancelJob,proto3,oneof" json:"cancelJob,omitempty"` -} -type EventSequence_Event_CancelJobSet struct { - CancelJobSet *CancelJobSet `protobuf:"bytes,6,opt,name=cancelJobSet,proto3,oneof" json:"cancelJobSet,omitempty"` -} -type EventSequence_Event_CancelledJob struct { - CancelledJob *CancelledJob `protobuf:"bytes,7,opt,name=cancelledJob,proto3,oneof" json:"cancelledJob,omitempty"` -} -type EventSequence_Event_JobSucceeded struct { - JobSucceeded *JobSucceeded `protobuf:"bytes,8,opt,name=jobSucceeded,proto3,oneof" json:"jobSucceeded,omitempty"` -} -type EventSequence_Event_JobErrors struct { - JobErrors *JobErrors `protobuf:"bytes,9,opt,name=jobErrors,proto3,oneof" json:"jobErrors,omitempty"` -} -type EventSequence_Event_JobRunLeased struct { - JobRunLeased *JobRunLeased `protobuf:"bytes,10,opt,name=jobRunLeased,proto3,oneof" json:"jobRunLeased,omitempty"` -} -type EventSequence_Event_JobRunAssigned struct { - JobRunAssigned *JobRunAssigned `protobuf:"bytes,11,opt,name=jobRunAssigned,proto3,oneof" json:"jobRunAssigned,omitempty"` -} -type EventSequence_Event_JobRunRunning struct { - JobRunRunning *JobRunRunning `protobuf:"bytes,12,opt,name=jobRunRunning,proto3,oneof" json:"jobRunRunning,omitempty"` -} -type EventSequence_Event_JobRunSucceeded struct { - JobRunSucceeded *JobRunSucceeded `protobuf:"bytes,13,opt,name=jobRunSucceeded,proto3,oneof" json:"jobRunSucceeded,omitempty"` -} -type EventSequence_Event_JobRunErrors struct { - JobRunErrors *JobRunErrors `protobuf:"bytes,14,opt,name=jobRunErrors,proto3,oneof" json:"jobRunErrors,omitempty"` -} -type EventSequence_Event_StandaloneIngressInfo struct { - StandaloneIngressInfo *StandaloneIngressInfo `protobuf:"bytes,16,opt,name=standaloneIngressInfo,proto3,oneof" json:"standaloneIngressInfo,omitempty"` -} -type EventSequence_Event_ResourceUtilisation struct { - ResourceUtilisation *ResourceUtilisation `protobuf:"bytes,17,opt,name=resourceUtilisation,proto3,oneof" json:"resourceUtilisation,omitempty"` -} -type EventSequence_Event_JobRunPreempted struct { - JobRunPreempted *JobRunPreempted `protobuf:"bytes,19,opt,name=jobRunPreempted,proto3,oneof" json:"jobRunPreempted,omitempty"` -} -type EventSequence_Event_PartitionMarker struct { - PartitionMarker *PartitionMarker `protobuf:"bytes,20,opt,name=partitionMarker,proto3,oneof" json:"partitionMarker,omitempty"` -} -type EventSequence_Event_JobRunPreemptionRequested struct { - JobRunPreemptionRequested *JobRunPreemptionRequested `protobuf:"bytes,21,opt,name=jobRunPreemptionRequested,proto3,oneof" json:"jobRunPreemptionRequested,omitempty"` -} -type EventSequence_Event_JobRequeued struct { - JobRequeued *JobRequeued `protobuf:"bytes,22,opt,name=jobRequeued,proto3,oneof" json:"jobRequeued,omitempty"` -} -type EventSequence_Event_JobPreemptionRequested struct { - JobPreemptionRequested *JobPreemptionRequested `protobuf:"bytes,23,opt,name=jobPreemptionRequested,proto3,oneof" json:"jobPreemptionRequested,omitempty"` -} -type EventSequence_Event_JobRunCancelled struct { - JobRunCancelled *JobRunCancelled `protobuf:"bytes,24,opt,name=jobRunCancelled,proto3,oneof" json:"jobRunCancelled,omitempty"` -} -type EventSequence_Event_JobValidated struct { - JobValidated *JobValidated `protobuf:"bytes,25,opt,name=jobValidated,proto3,oneof" json:"jobValidated,omitempty"` -} - -func (*EventSequence_Event_SubmitJob) isEventSequence_Event_Event() {} -func (*EventSequence_Event_ReprioritiseJob) isEventSequence_Event_Event() {} -func (*EventSequence_Event_ReprioritiseJobSet) isEventSequence_Event_Event() {} -func (*EventSequence_Event_ReprioritisedJob) isEventSequence_Event_Event() {} -func (*EventSequence_Event_CancelJob) isEventSequence_Event_Event() {} -func (*EventSequence_Event_CancelJobSet) isEventSequence_Event_Event() {} -func (*EventSequence_Event_CancelledJob) isEventSequence_Event_Event() {} -func (*EventSequence_Event_JobSucceeded) isEventSequence_Event_Event() {} -func (*EventSequence_Event_JobErrors) isEventSequence_Event_Event() {} -func (*EventSequence_Event_JobRunLeased) isEventSequence_Event_Event() {} -func (*EventSequence_Event_JobRunAssigned) isEventSequence_Event_Event() {} -func (*EventSequence_Event_JobRunRunning) isEventSequence_Event_Event() {} -func (*EventSequence_Event_JobRunSucceeded) isEventSequence_Event_Event() {} -func (*EventSequence_Event_JobRunErrors) isEventSequence_Event_Event() {} -func (*EventSequence_Event_StandaloneIngressInfo) isEventSequence_Event_Event() {} -func (*EventSequence_Event_ResourceUtilisation) isEventSequence_Event_Event() {} -func (*EventSequence_Event_JobRunPreempted) isEventSequence_Event_Event() {} -func (*EventSequence_Event_PartitionMarker) isEventSequence_Event_Event() {} -func (*EventSequence_Event_JobRunPreemptionRequested) isEventSequence_Event_Event() {} -func (*EventSequence_Event_JobRequeued) isEventSequence_Event_Event() {} -func (*EventSequence_Event_JobPreemptionRequested) isEventSequence_Event_Event() {} -func (*EventSequence_Event_JobRunCancelled) isEventSequence_Event_Event() {} -func (*EventSequence_Event_JobValidated) isEventSequence_Event_Event() {} - -func (m *EventSequence_Event) GetEvent() isEventSequence_Event_Event { - if m != nil { - return m.Event - } - return nil -} - -func (m *EventSequence_Event) GetCreated() *types.Timestamp { - if m != nil { - return m.Created - } - return nil -} - -func (m *EventSequence_Event) GetSubmitJob() *SubmitJob { - if x, ok := m.GetEvent().(*EventSequence_Event_SubmitJob); ok { - return x.SubmitJob - } - return nil -} - -func (m *EventSequence_Event) GetReprioritiseJob() *ReprioritiseJob { - if x, ok := m.GetEvent().(*EventSequence_Event_ReprioritiseJob); ok { - return x.ReprioritiseJob - } - return nil -} - -func (m *EventSequence_Event) GetReprioritiseJobSet() *ReprioritiseJobSet { - if x, ok := m.GetEvent().(*EventSequence_Event_ReprioritiseJobSet); ok { - return x.ReprioritiseJobSet - } - return nil -} - -func (m *EventSequence_Event) GetReprioritisedJob() *ReprioritisedJob { - if x, ok := m.GetEvent().(*EventSequence_Event_ReprioritisedJob); ok { - return x.ReprioritisedJob - } - return nil -} - -func (m *EventSequence_Event) GetCancelJob() *CancelJob { - if x, ok := m.GetEvent().(*EventSequence_Event_CancelJob); ok { - return x.CancelJob - } - return nil -} - -func (m *EventSequence_Event) GetCancelJobSet() *CancelJobSet { - if x, ok := m.GetEvent().(*EventSequence_Event_CancelJobSet); ok { - return x.CancelJobSet - } - return nil -} - -func (m *EventSequence_Event) GetCancelledJob() *CancelledJob { - if x, ok := m.GetEvent().(*EventSequence_Event_CancelledJob); ok { - return x.CancelledJob - } - return nil -} - -func (m *EventSequence_Event) GetJobSucceeded() *JobSucceeded { - if x, ok := m.GetEvent().(*EventSequence_Event_JobSucceeded); ok { - return x.JobSucceeded - } - return nil -} - -func (m *EventSequence_Event) GetJobErrors() *JobErrors { - if x, ok := m.GetEvent().(*EventSequence_Event_JobErrors); ok { - return x.JobErrors - } - return nil -} - -func (m *EventSequence_Event) GetJobRunLeased() *JobRunLeased { - if x, ok := m.GetEvent().(*EventSequence_Event_JobRunLeased); ok { - return x.JobRunLeased - } - return nil -} - -func (m *EventSequence_Event) GetJobRunAssigned() *JobRunAssigned { - if x, ok := m.GetEvent().(*EventSequence_Event_JobRunAssigned); ok { - return x.JobRunAssigned - } - return nil -} - -func (m *EventSequence_Event) GetJobRunRunning() *JobRunRunning { - if x, ok := m.GetEvent().(*EventSequence_Event_JobRunRunning); ok { - return x.JobRunRunning - } - return nil -} - -func (m *EventSequence_Event) GetJobRunSucceeded() *JobRunSucceeded { - if x, ok := m.GetEvent().(*EventSequence_Event_JobRunSucceeded); ok { - return x.JobRunSucceeded + return ms } - return nil + return mi.MessageOf(x) } -func (m *EventSequence_Event) GetJobRunErrors() *JobRunErrors { - if x, ok := m.GetEvent().(*EventSequence_Event_JobRunErrors); ok { - return x.JobRunErrors - } - return nil +// Deprecated: Use EventSequence.ProtoReflect.Descriptor instead. +func (*EventSequence) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{0} } -func (m *EventSequence_Event) GetStandaloneIngressInfo() *StandaloneIngressInfo { - if x, ok := m.GetEvent().(*EventSequence_Event_StandaloneIngressInfo); ok { - return x.StandaloneIngressInfo +func (x *EventSequence) GetQueue() string { + if x != nil { + return x.Queue } - return nil + return "" } -func (m *EventSequence_Event) GetResourceUtilisation() *ResourceUtilisation { - if x, ok := m.GetEvent().(*EventSequence_Event_ResourceUtilisation); ok { - return x.ResourceUtilisation +func (x *EventSequence) GetJobSetName() string { + if x != nil { + return x.JobSetName } - return nil + return "" } -func (m *EventSequence_Event) GetJobRunPreempted() *JobRunPreempted { - if x, ok := m.GetEvent().(*EventSequence_Event_JobRunPreempted); ok { - return x.JobRunPreempted +func (x *EventSequence) GetUserId() string { + if x != nil { + return x.UserId } - return nil + return "" } -func (m *EventSequence_Event) GetPartitionMarker() *PartitionMarker { - if x, ok := m.GetEvent().(*EventSequence_Event_PartitionMarker); ok { - return x.PartitionMarker +func (x *EventSequence) GetGroups() []string { + if x != nil { + return x.Groups } return nil } -func (m *EventSequence_Event) GetJobRunPreemptionRequested() *JobRunPreemptionRequested { - if x, ok := m.GetEvent().(*EventSequence_Event_JobRunPreemptionRequested); ok { - return x.JobRunPreemptionRequested +func (x *EventSequence) GetEvents() []*EventSequence_Event { + if x != nil { + return x.Events } return nil } -func (m *EventSequence_Event) GetJobRequeued() *JobRequeued { - if x, ok := m.GetEvent().(*EventSequence_Event_JobRequeued); ok { - return x.JobRequeued - } - return nil +// Resource usage of a particular k8s object created as part of a job. +type ResourceUtilisation struct { + state protoimpl.MessageState `protogen:"open.v1"` + ResourceInfo *KubernetesResourceInfo `protobuf:"bytes,3,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"` + MaxResourcesForPeriod map[string]*resource.Quantity `protobuf:"bytes,4,rep,name=max_resources_for_period,json=maxResourcesForPeriod,proto3" json:"max_resources_for_period,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + TotalCumulativeUsage map[string]*resource.Quantity `protobuf:"bytes,5,rep,name=total_cumulative_usage,json=totalCumulativeUsage,proto3" json:"total_cumulative_usage,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + JobId string `protobuf:"bytes,6,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + RunId string `protobuf:"bytes,7,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` + AvgResourcesForPeriod map[string]*resource.Quantity `protobuf:"bytes,8,rep,name=avg_resources_for_period,json=avgResourcesForPeriod,proto3" json:"avg_resources_for_period,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *EventSequence_Event) GetJobPreemptionRequested() *JobPreemptionRequested { - if x, ok := m.GetEvent().(*EventSequence_Event_JobPreemptionRequested); ok { - return x.JobPreemptionRequested - } - return nil +func (x *ResourceUtilisation) Reset() { + *x = ResourceUtilisation{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *EventSequence_Event) GetJobRunCancelled() *JobRunCancelled { - if x, ok := m.GetEvent().(*EventSequence_Event_JobRunCancelled); ok { - return x.JobRunCancelled - } - return nil +func (x *ResourceUtilisation) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EventSequence_Event) GetJobValidated() *JobValidated { - if x, ok := m.GetEvent().(*EventSequence_Event_JobValidated); ok { - return x.JobValidated - } - return nil -} +func (*ResourceUtilisation) ProtoMessage() {} -// XXX_OneofWrappers is for the internal use of the proto package. -func (*EventSequence_Event) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*EventSequence_Event_SubmitJob)(nil), - (*EventSequence_Event_ReprioritiseJob)(nil), - (*EventSequence_Event_ReprioritiseJobSet)(nil), - (*EventSequence_Event_ReprioritisedJob)(nil), - (*EventSequence_Event_CancelJob)(nil), - (*EventSequence_Event_CancelJobSet)(nil), - (*EventSequence_Event_CancelledJob)(nil), - (*EventSequence_Event_JobSucceeded)(nil), - (*EventSequence_Event_JobErrors)(nil), - (*EventSequence_Event_JobRunLeased)(nil), - (*EventSequence_Event_JobRunAssigned)(nil), - (*EventSequence_Event_JobRunRunning)(nil), - (*EventSequence_Event_JobRunSucceeded)(nil), - (*EventSequence_Event_JobRunErrors)(nil), - (*EventSequence_Event_StandaloneIngressInfo)(nil), - (*EventSequence_Event_ResourceUtilisation)(nil), - (*EventSequence_Event_JobRunPreempted)(nil), - (*EventSequence_Event_PartitionMarker)(nil), - (*EventSequence_Event_JobRunPreemptionRequested)(nil), - (*EventSequence_Event_JobRequeued)(nil), - (*EventSequence_Event_JobPreemptionRequested)(nil), - (*EventSequence_Event_JobRunCancelled)(nil), - (*EventSequence_Event_JobValidated)(nil), +func (x *ResourceUtilisation) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } + return mi.MessageOf(x) } -// Resource usage of a particular k8s object created as part of a job. -type ResourceUtilisation struct { - ResourceInfo *KubernetesResourceInfo `protobuf:"bytes,3,opt,name=resource_info,json=resourceInfo,proto3" json:"resourceInfo,omitempty"` - MaxResourcesForPeriod map[string]*resource.Quantity `protobuf:"bytes,4,rep,name=max_resources_for_period,json=maxResourcesForPeriod,proto3" json:"maxResourcesForPeriod,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - TotalCumulativeUsage map[string]*resource.Quantity `protobuf:"bytes,5,rep,name=total_cumulative_usage,json=totalCumulativeUsage,proto3" json:"totalCumulativeUsage,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - JobId string `protobuf:"bytes,6,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - RunId string `protobuf:"bytes,7,opt,name=run_id,json=runId,proto3" json:"runId,omitempty"` - AvgResourcesForPeriod map[string]*resource.Quantity `protobuf:"bytes,8,rep,name=avg_resources_for_period,json=avgResourcesForPeriod,proto3" json:"avgResourcesForPeriod,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (m *ResourceUtilisation) Reset() { *m = ResourceUtilisation{} } -func (m *ResourceUtilisation) String() string { return proto.CompactTextString(m) } -func (*ResourceUtilisation) ProtoMessage() {} +// Deprecated: Use ResourceUtilisation.ProtoReflect.Descriptor instead. func (*ResourceUtilisation) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{1} -} -func (m *ResourceUtilisation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceUtilisation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResourceUtilisation.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ResourceUtilisation) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceUtilisation.Merge(m, src) -} -func (m *ResourceUtilisation) XXX_Size() int { - return m.Size() -} -func (m *ResourceUtilisation) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceUtilisation.DiscardUnknown(m) + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{1} } -var xxx_messageInfo_ResourceUtilisation proto.InternalMessageInfo - -func (m *ResourceUtilisation) GetResourceInfo() *KubernetesResourceInfo { - if m != nil { - return m.ResourceInfo +func (x *ResourceUtilisation) GetResourceInfo() *KubernetesResourceInfo { + if x != nil { + return x.ResourceInfo } return nil } -func (m *ResourceUtilisation) GetMaxResourcesForPeriod() map[string]*resource.Quantity { - if m != nil { - return m.MaxResourcesForPeriod +func (x *ResourceUtilisation) GetMaxResourcesForPeriod() map[string]*resource.Quantity { + if x != nil { + return x.MaxResourcesForPeriod } return nil } -func (m *ResourceUtilisation) GetTotalCumulativeUsage() map[string]*resource.Quantity { - if m != nil { - return m.TotalCumulativeUsage +func (x *ResourceUtilisation) GetTotalCumulativeUsage() map[string]*resource.Quantity { + if x != nil { + return x.TotalCumulativeUsage } return nil } -func (m *ResourceUtilisation) GetJobId() string { - if m != nil { - return m.JobId +func (x *ResourceUtilisation) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *ResourceUtilisation) GetRunId() string { - if m != nil { - return m.RunId +func (x *ResourceUtilisation) GetRunId() string { + if x != nil { + return x.RunId } return "" } -func (m *ResourceUtilisation) GetAvgResourcesForPeriod() map[string]*resource.Quantity { - if m != nil { - return m.AvgResourcesForPeriod +func (x *ResourceUtilisation) GetAvgResourcesForPeriod() map[string]*resource.Quantity { + if x != nil { + return x.AvgResourcesForPeriod } return nil } @@ -631,9 +305,10 @@ func (m *ResourceUtilisation) GetAvgResourcesForPeriod() map[string]*resource.Qu // When the main object exits, all other objects are cleaned up. // The priority, together with the queue the job is submitted to, determines the order in which jobs are run. type SubmitJob struct { + state protoimpl.MessageState `protogen:"open.v1"` // User-provided id used for server-side deduplication. // I.e., jobs submitted with the same deduplication_id as an existing job are discarded. - DeduplicationId string `protobuf:"bytes,2,opt,name=deduplication_id,json=deduplicationId,proto3" json:"deduplicationId,omitempty"` + DeduplicationId string `protobuf:"bytes,2,opt,name=deduplication_id,json=deduplicationId,proto3" json:"deduplication_id,omitempty"` // Priority of this job. Measured relative to other jobs in the same queue. Priority uint32 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"` // Shared ObjectMeta for all Kubernetes objects in this job. @@ -662,585 +337,581 @@ type SubmitJob struct { // Indicates whether job is a duplicate IsDuplicate bool `protobuf:"varint,12,opt,name=isDuplicate,proto3" json:"isDuplicate,omitempty"` // The job id - JobId string `protobuf:"bytes,14,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` + JobId string `protobuf:"bytes,14,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *SubmitJob) Reset() { *m = SubmitJob{} } -func (m *SubmitJob) String() string { return proto.CompactTextString(m) } -func (*SubmitJob) ProtoMessage() {} -func (*SubmitJob) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{2} -} -func (m *SubmitJob) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SubmitJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SubmitJob.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *SubmitJob) Reset() { + *x = SubmitJob{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *SubmitJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubmitJob.Merge(m, src) -} -func (m *SubmitJob) XXX_Size() int { - return m.Size() + +func (x *SubmitJob) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SubmitJob) XXX_DiscardUnknown() { - xxx_messageInfo_SubmitJob.DiscardUnknown(m) + +func (*SubmitJob) ProtoMessage() {} + +func (x *SubmitJob) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SubmitJob proto.InternalMessageInfo +// Deprecated: Use SubmitJob.ProtoReflect.Descriptor instead. +func (*SubmitJob) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{2} +} -func (m *SubmitJob) GetDeduplicationId() string { - if m != nil { - return m.DeduplicationId +func (x *SubmitJob) GetDeduplicationId() string { + if x != nil { + return x.DeduplicationId } return "" } -func (m *SubmitJob) GetPriority() uint32 { - if m != nil { - return m.Priority +func (x *SubmitJob) GetPriority() uint32 { + if x != nil { + return x.Priority } return 0 } -func (m *SubmitJob) GetObjectMeta() *ObjectMeta { - if m != nil { - return m.ObjectMeta +func (x *SubmitJob) GetObjectMeta() *ObjectMeta { + if x != nil { + return x.ObjectMeta } return nil } -func (m *SubmitJob) GetMainObject() *KubernetesMainObject { - if m != nil { - return m.MainObject +func (x *SubmitJob) GetMainObject() *KubernetesMainObject { + if x != nil { + return x.MainObject } return nil } -func (m *SubmitJob) GetObjects() []*KubernetesObject { - if m != nil { - return m.Objects +func (x *SubmitJob) GetObjects() []*KubernetesObject { + if x != nil { + return x.Objects } return nil } -func (m *SubmitJob) GetLifetime() uint32 { - if m != nil { - return m.Lifetime +func (x *SubmitJob) GetLifetime() uint32 { + if x != nil { + return x.Lifetime } return 0 } -func (m *SubmitJob) GetAtMostOnce() bool { - if m != nil { - return m.AtMostOnce +func (x *SubmitJob) GetAtMostOnce() bool { + if x != nil { + return x.AtMostOnce } return false } -func (m *SubmitJob) GetPreemptible() bool { - if m != nil { - return m.Preemptible +func (x *SubmitJob) GetPreemptible() bool { + if x != nil { + return x.Preemptible } return false } -func (m *SubmitJob) GetConcurrencySafe() bool { - if m != nil { - return m.ConcurrencySafe +func (x *SubmitJob) GetConcurrencySafe() bool { + if x != nil { + return x.ConcurrencySafe } return false } -func (m *SubmitJob) GetScheduler() string { - if m != nil { - return m.Scheduler +func (x *SubmitJob) GetScheduler() string { + if x != nil { + return x.Scheduler } return "" } -func (m *SubmitJob) GetIsDuplicate() bool { - if m != nil { - return m.IsDuplicate +func (x *SubmitJob) GetIsDuplicate() bool { + if x != nil { + return x.IsDuplicate } return false } -func (m *SubmitJob) GetJobId() string { - if m != nil { - return m.JobId +func (x *SubmitJob) GetJobId() string { + if x != nil { + return x.JobId } return "" } // Kubernetes objects that can serve as main objects for an Armada job. type KubernetesMainObject struct { - ObjectMeta *ObjectMeta `protobuf:"bytes,1,opt,name=objectMeta,proto3" json:"objectMeta,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ObjectMeta *ObjectMeta `protobuf:"bytes,1,opt,name=objectMeta,proto3" json:"objectMeta,omitempty"` // Types that are valid to be assigned to Object: + // // *KubernetesMainObject_PodSpec - Object isKubernetesMainObject_Object `protobuf_oneof:"object"` + Object isKubernetesMainObject_Object `protobuf_oneof:"object"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *KubernetesMainObject) Reset() { *m = KubernetesMainObject{} } -func (m *KubernetesMainObject) String() string { return proto.CompactTextString(m) } -func (*KubernetesMainObject) ProtoMessage() {} -func (*KubernetesMainObject) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{3} -} -func (m *KubernetesMainObject) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KubernetesMainObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KubernetesMainObject.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *KubernetesMainObject) XXX_Merge(src proto.Message) { - xxx_messageInfo_KubernetesMainObject.Merge(m, src) +func (x *KubernetesMainObject) Reset() { + *x = KubernetesMainObject{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *KubernetesMainObject) XXX_Size() int { - return m.Size() -} -func (m *KubernetesMainObject) XXX_DiscardUnknown() { - xxx_messageInfo_KubernetesMainObject.DiscardUnknown(m) + +func (x *KubernetesMainObject) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_KubernetesMainObject proto.InternalMessageInfo +func (*KubernetesMainObject) ProtoMessage() {} -type isKubernetesMainObject_Object interface { - isKubernetesMainObject_Object() - MarshalTo([]byte) (int, error) - Size() int +func (x *KubernetesMainObject) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type KubernetesMainObject_PodSpec struct { - PodSpec *PodSpecWithAvoidList `protobuf:"bytes,2,opt,name=pod_spec,json=podSpec,proto3,oneof" json:"podSpec,omitempty"` +// Deprecated: Use KubernetesMainObject.ProtoReflect.Descriptor instead. +func (*KubernetesMainObject) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{3} } -func (*KubernetesMainObject_PodSpec) isKubernetesMainObject_Object() {} - -func (m *KubernetesMainObject) GetObject() isKubernetesMainObject_Object { - if m != nil { - return m.Object +func (x *KubernetesMainObject) GetObjectMeta() *ObjectMeta { + if x != nil { + return x.ObjectMeta } return nil } -func (m *KubernetesMainObject) GetObjectMeta() *ObjectMeta { - if m != nil { - return m.ObjectMeta +func (x *KubernetesMainObject) GetObject() isKubernetesMainObject_Object { + if x != nil { + return x.Object } return nil } -func (m *KubernetesMainObject) GetPodSpec() *PodSpecWithAvoidList { - if x, ok := m.GetObject().(*KubernetesMainObject_PodSpec); ok { - return x.PodSpec +func (x *KubernetesMainObject) GetPodSpec() *PodSpecWithAvoidList { + if x != nil { + if x, ok := x.Object.(*KubernetesMainObject_PodSpec); ok { + return x.PodSpec + } } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*KubernetesMainObject) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*KubernetesMainObject_PodSpec)(nil), - } +type isKubernetesMainObject_Object interface { + isKubernetesMainObject_Object() +} + +type KubernetesMainObject_PodSpec struct { + PodSpec *PodSpecWithAvoidList `protobuf:"bytes,2,opt,name=pod_spec,json=podSpec,proto3,oneof"` } +func (*KubernetesMainObject_PodSpec) isKubernetesMainObject_Object() {} + // Kubernetes objects that can be created as part of an Armada. type KubernetesObject struct { - ObjectMeta *ObjectMeta `protobuf:"bytes,1,opt,name=objectMeta,proto3" json:"objectMeta,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ObjectMeta *ObjectMeta `protobuf:"bytes,1,opt,name=objectMeta,proto3" json:"objectMeta,omitempty"` // Types that are valid to be assigned to Object: + // // *KubernetesObject_PodSpec // *KubernetesObject_Ingress // *KubernetesObject_Service // *KubernetesObject_ConfigMap - Object isKubernetesObject_Object `protobuf_oneof:"object"` + Object isKubernetesObject_Object `protobuf_oneof:"object"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *KubernetesObject) Reset() { *m = KubernetesObject{} } -func (m *KubernetesObject) String() string { return proto.CompactTextString(m) } -func (*KubernetesObject) ProtoMessage() {} -func (*KubernetesObject) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{4} -} -func (m *KubernetesObject) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KubernetesObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KubernetesObject.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *KubernetesObject) Reset() { + *x = KubernetesObject{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *KubernetesObject) XXX_Merge(src proto.Message) { - xxx_messageInfo_KubernetesObject.Merge(m, src) -} -func (m *KubernetesObject) XXX_Size() int { - return m.Size() -} -func (m *KubernetesObject) XXX_DiscardUnknown() { - xxx_messageInfo_KubernetesObject.DiscardUnknown(m) + +func (x *KubernetesObject) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_KubernetesObject proto.InternalMessageInfo +func (*KubernetesObject) ProtoMessage() {} -type isKubernetesObject_Object interface { - isKubernetesObject_Object() - MarshalTo([]byte) (int, error) - Size() int +func (x *KubernetesObject) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type KubernetesObject_PodSpec struct { - PodSpec *PodSpecWithAvoidList `protobuf:"bytes,2,opt,name=pod_spec,json=podSpec,proto3,oneof" json:"podSpec,omitempty"` -} -type KubernetesObject_Ingress struct { - Ingress *v1.IngressSpec `protobuf:"bytes,3,opt,name=ingress,proto3,oneof" json:"ingress,omitempty"` -} -type KubernetesObject_Service struct { - Service *v11.ServiceSpec `protobuf:"bytes,4,opt,name=service,proto3,oneof" json:"service,omitempty"` -} -type KubernetesObject_ConfigMap struct { - ConfigMap *v11.ConfigMap `protobuf:"bytes,5,opt,name=configMap,proto3,oneof" json:"configMap,omitempty"` +// Deprecated: Use KubernetesObject.ProtoReflect.Descriptor instead. +func (*KubernetesObject) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{4} } -func (*KubernetesObject_PodSpec) isKubernetesObject_Object() {} -func (*KubernetesObject_Ingress) isKubernetesObject_Object() {} -func (*KubernetesObject_Service) isKubernetesObject_Object() {} -func (*KubernetesObject_ConfigMap) isKubernetesObject_Object() {} - -func (m *KubernetesObject) GetObject() isKubernetesObject_Object { - if m != nil { - return m.Object +func (x *KubernetesObject) GetObjectMeta() *ObjectMeta { + if x != nil { + return x.ObjectMeta } return nil } -func (m *KubernetesObject) GetObjectMeta() *ObjectMeta { - if m != nil { - return m.ObjectMeta +func (x *KubernetesObject) GetObject() isKubernetesObject_Object { + if x != nil { + return x.Object } return nil } -func (m *KubernetesObject) GetPodSpec() *PodSpecWithAvoidList { - if x, ok := m.GetObject().(*KubernetesObject_PodSpec); ok { - return x.PodSpec +func (x *KubernetesObject) GetPodSpec() *PodSpecWithAvoidList { + if x != nil { + if x, ok := x.Object.(*KubernetesObject_PodSpec); ok { + return x.PodSpec + } } return nil } -func (m *KubernetesObject) GetIngress() *v1.IngressSpec { - if x, ok := m.GetObject().(*KubernetesObject_Ingress); ok { - return x.Ingress +func (x *KubernetesObject) GetIngress() *v1.IngressSpec { + if x != nil { + if x, ok := x.Object.(*KubernetesObject_Ingress); ok { + return x.Ingress + } } return nil } -func (m *KubernetesObject) GetService() *v11.ServiceSpec { - if x, ok := m.GetObject().(*KubernetesObject_Service); ok { - return x.Service +func (x *KubernetesObject) GetService() *v11.ServiceSpec { + if x != nil { + if x, ok := x.Object.(*KubernetesObject_Service); ok { + return x.Service + } } return nil } -func (m *KubernetesObject) GetConfigMap() *v11.ConfigMap { - if x, ok := m.GetObject().(*KubernetesObject_ConfigMap); ok { - return x.ConfigMap +func (x *KubernetesObject) GetConfigMap() *v11.ConfigMap { + if x != nil { + if x, ok := x.Object.(*KubernetesObject_ConfigMap); ok { + return x.ConfigMap + } } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*KubernetesObject) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*KubernetesObject_PodSpec)(nil), - (*KubernetesObject_Ingress)(nil), - (*KubernetesObject_Service)(nil), - (*KubernetesObject_ConfigMap)(nil), - } +type isKubernetesObject_Object interface { + isKubernetesObject_Object() +} + +type KubernetesObject_PodSpec struct { + PodSpec *PodSpecWithAvoidList `protobuf:"bytes,2,opt,name=pod_spec,json=podSpec,proto3,oneof"` } +type KubernetesObject_Ingress struct { + Ingress *v1.IngressSpec `protobuf:"bytes,3,opt,name=ingress,proto3,oneof"` +} + +type KubernetesObject_Service struct { + Service *v11.ServiceSpec `protobuf:"bytes,4,opt,name=service,proto3,oneof"` +} + +type KubernetesObject_ConfigMap struct { + ConfigMap *v11.ConfigMap `protobuf:"bytes,5,opt,name=configMap,proto3,oneof"` +} + +func (*KubernetesObject_PodSpec) isKubernetesObject_Object() {} + +func (*KubernetesObject_Ingress) isKubernetesObject_Object() {} + +func (*KubernetesObject_Service) isKubernetesObject_Object() {} + +func (*KubernetesObject_ConfigMap) isKubernetesObject_Object() {} + // Auxiliary information needed to instantiate the object in Kubernetes. // Inspired by the Kubernetes ObjectMeta object; see: // https://github.com/kubernetes/apimachinery/blob/master/pkg/apis/meta/v1/generated.proto#L641 type ObjectMeta struct { + state protoimpl.MessageState `protogen:"open.v1"` // Unique id of the executor responsible for the Kubernetes cluster that created the object. // Is set by the executor on object creation. - ExecutorId string `protobuf:"bytes,1,opt,name=executor_id,json=executorId,proto3" json:"executorId,omitempty"` + ExecutorId string `protobuf:"bytes,1,opt,name=executor_id,json=executorId,proto3" json:"executor_id,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Unique id assigned to the object by Kubernetes (typically a 128-bit UUID). // Should be left empty on job creation, but should be set, e.g., when in the JobRunRunning message. // Stored as a string because Kubernetes doesn't always use UUIDs; see // https://github.com/kubernetes/apimachinery/blob/master/pkg/types/uid.go#L19 - KubernetesId string `protobuf:"bytes,4,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetesId,omitempty"` - Annotations map[string]string `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + KubernetesId string `protobuf:"bytes,4,opt,name=kubernetes_id,json=kubernetesId,proto3" json:"kubernetes_id,omitempty"` + Annotations map[string]string `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ObjectMeta) Reset() { *m = ObjectMeta{} } -func (m *ObjectMeta) String() string { return proto.CompactTextString(m) } -func (*ObjectMeta) ProtoMessage() {} -func (*ObjectMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{5} -} -func (m *ObjectMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ObjectMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ObjectMeta.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ObjectMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectMeta.Merge(m, src) +func (x *ObjectMeta) Reset() { + *x = ObjectMeta{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ObjectMeta) XXX_Size() int { - return m.Size() + +func (x *ObjectMeta) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ObjectMeta) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectMeta.DiscardUnknown(m) + +func (*ObjectMeta) ProtoMessage() {} + +func (x *ObjectMeta) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ObjectMeta proto.InternalMessageInfo +// Deprecated: Use ObjectMeta.ProtoReflect.Descriptor instead. +func (*ObjectMeta) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{5} +} -func (m *ObjectMeta) GetExecutorId() string { - if m != nil { - return m.ExecutorId +func (x *ObjectMeta) GetExecutorId() string { + if x != nil { + return x.ExecutorId } return "" } -func (m *ObjectMeta) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *ObjectMeta) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *ObjectMeta) GetName() string { - if m != nil { - return m.Name +func (x *ObjectMeta) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *ObjectMeta) GetKubernetesId() string { - if m != nil { - return m.KubernetesId +func (x *ObjectMeta) GetKubernetesId() string { + if x != nil { + return x.KubernetesId } return "" } -func (m *ObjectMeta) GetAnnotations() map[string]string { - if m != nil { - return m.Annotations +func (x *ObjectMeta) GetAnnotations() map[string]string { + if x != nil { + return x.Annotations } return nil } -func (m *ObjectMeta) GetLabels() map[string]string { - if m != nil { - return m.Labels +func (x *ObjectMeta) GetLabels() map[string]string { + if x != nil { + return x.Labels } return nil } // Kubernetes pod spec. with a bundled list of pods to avoid scheduling the pod to. type PodSpecWithAvoidList struct { - PodSpec *v11.PodSpec `protobuf:"bytes,1,opt,name=pod_spec,json=podSpec,proto3" json:"podSpec,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PodSpec *v11.PodSpec `protobuf:"bytes,1,opt,name=pod_spec,json=podSpec,proto3" json:"pod_spec,omitempty"` // List of nodes to avoid scheduling this pod on. // TODO: Could this be done with selectors, taints, etc? - NodeAvoidlist []string `protobuf:"bytes,2,rep,name=node_avoidlist,json=nodeAvoidlist,proto3" json:"nodeAvoidlist,omitempty"` + NodeAvoidlist []string `protobuf:"bytes,2,rep,name=node_avoidlist,json=nodeAvoidlist,proto3" json:"node_avoidlist,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PodSpecWithAvoidList) Reset() { *m = PodSpecWithAvoidList{} } -func (m *PodSpecWithAvoidList) String() string { return proto.CompactTextString(m) } -func (*PodSpecWithAvoidList) ProtoMessage() {} -func (*PodSpecWithAvoidList) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{6} -} -func (m *PodSpecWithAvoidList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodSpecWithAvoidList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PodSpecWithAvoidList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *PodSpecWithAvoidList) Reset() { + *x = PodSpecWithAvoidList{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PodSpecWithAvoidList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodSpecWithAvoidList.Merge(m, src) -} -func (m *PodSpecWithAvoidList) XXX_Size() int { - return m.Size() + +func (x *PodSpecWithAvoidList) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PodSpecWithAvoidList) XXX_DiscardUnknown() { - xxx_messageInfo_PodSpecWithAvoidList.DiscardUnknown(m) + +func (*PodSpecWithAvoidList) ProtoMessage() {} + +func (x *PodSpecWithAvoidList) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PodSpecWithAvoidList proto.InternalMessageInfo +// Deprecated: Use PodSpecWithAvoidList.ProtoReflect.Descriptor instead. +func (*PodSpecWithAvoidList) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{6} +} -func (m *PodSpecWithAvoidList) GetPodSpec() *v11.PodSpec { - if m != nil { - return m.PodSpec +func (x *PodSpecWithAvoidList) GetPodSpec() *v11.PodSpec { + if x != nil { + return x.PodSpec } return nil } -func (m *PodSpecWithAvoidList) GetNodeAvoidlist() []string { - if m != nil { - return m.NodeAvoidlist +func (x *PodSpecWithAvoidList) GetNodeAvoidlist() []string { + if x != nil { + return x.NodeAvoidlist } return nil } // Set the priority of a particular job. type ReprioritiseJob struct { - Priority uint32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` - JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Priority uint32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` + JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ReprioritiseJob) Reset() { *m = ReprioritiseJob{} } -func (m *ReprioritiseJob) String() string { return proto.CompactTextString(m) } -func (*ReprioritiseJob) ProtoMessage() {} -func (*ReprioritiseJob) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{7} -} -func (m *ReprioritiseJob) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReprioritiseJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReprioritiseJob.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *ReprioritiseJob) Reset() { + *x = ReprioritiseJob{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ReprioritiseJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReprioritiseJob.Merge(m, src) -} -func (m *ReprioritiseJob) XXX_Size() int { - return m.Size() + +func (x *ReprioritiseJob) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReprioritiseJob) XXX_DiscardUnknown() { - xxx_messageInfo_ReprioritiseJob.DiscardUnknown(m) + +func (*ReprioritiseJob) ProtoMessage() {} + +func (x *ReprioritiseJob) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReprioritiseJob proto.InternalMessageInfo +// Deprecated: Use ReprioritiseJob.ProtoReflect.Descriptor instead. +func (*ReprioritiseJob) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{7} +} -func (m *ReprioritiseJob) GetPriority() uint32 { - if m != nil { - return m.Priority +func (x *ReprioritiseJob) GetPriority() uint32 { + if x != nil { + return x.Priority } return 0 } -func (m *ReprioritiseJob) GetJobId() string { - if m != nil { - return m.JobId +func (x *ReprioritiseJob) GetJobId() string { + if x != nil { + return x.JobId } return "" } type JobRequeued struct { - SchedulingInfo *schedulerobjects.JobSchedulingInfo `protobuf:"bytes,2,opt,name=scheduling_info,json=schedulingInfo,proto3" json:"schedulingInfo,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SchedulingInfo *schedulerobjects.JobSchedulingInfo `protobuf:"bytes,2,opt,name=scheduling_info,json=schedulingInfo,proto3" json:"scheduling_info,omitempty"` // Used by the scheduler to maintain a consistent state - UpdateSequenceNumber int32 `protobuf:"varint,3,opt,name=update_sequence_number,json=updateSequenceNumber,proto3" json:"updateSequenceNumber,omitempty"` - JobId string `protobuf:"bytes,4,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` + UpdateSequenceNumber int32 `protobuf:"varint,3,opt,name=update_sequence_number,json=updateSequenceNumber,proto3" json:"update_sequence_number,omitempty"` + JobId string `protobuf:"bytes,4,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRequeued) Reset() { *m = JobRequeued{} } -func (m *JobRequeued) String() string { return proto.CompactTextString(m) } -func (*JobRequeued) ProtoMessage() {} -func (*JobRequeued) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{8} -} -func (m *JobRequeued) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobRequeued) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRequeued.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobRequeued) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRequeued.Merge(m, src) +func (x *JobRequeued) Reset() { + *x = JobRequeued{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRequeued) XXX_Size() int { - return m.Size() + +func (x *JobRequeued) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRequeued) XXX_DiscardUnknown() { - xxx_messageInfo_JobRequeued.DiscardUnknown(m) + +func (*JobRequeued) ProtoMessage() {} + +func (x *JobRequeued) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobRequeued proto.InternalMessageInfo +// Deprecated: Use JobRequeued.ProtoReflect.Descriptor instead. +func (*JobRequeued) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{8} +} -func (m *JobRequeued) GetSchedulingInfo() *schedulerobjects.JobSchedulingInfo { - if m != nil { - return m.SchedulingInfo +func (x *JobRequeued) GetSchedulingInfo() *schedulerobjects.JobSchedulingInfo { + if x != nil { + return x.SchedulingInfo } return nil } -func (m *JobRequeued) GetUpdateSequenceNumber() int32 { - if m != nil { - return m.UpdateSequenceNumber +func (x *JobRequeued) GetUpdateSequenceNumber() int32 { + if x != nil { + return x.UpdateSequenceNumber } return 0 } -func (m *JobRequeued) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobRequeued) GetJobId() string { + if x != nil { + return x.JobId } return "" } @@ -1248,45 +919,45 @@ func (m *JobRequeued) GetJobId() string { // Set the priority of all jobs part of a job set. // This sets the priority of all jobs in the job set currently in the queued state. type ReprioritiseJobSet struct { - Priority uint32 `protobuf:"varint,1,opt,name=priority,proto3" json:"priority,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Priority uint32 `protobuf:"varint,1,opt,name=priority,proto3" json:"priority,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ReprioritiseJobSet) Reset() { *m = ReprioritiseJobSet{} } -func (m *ReprioritiseJobSet) String() string { return proto.CompactTextString(m) } -func (*ReprioritiseJobSet) ProtoMessage() {} -func (*ReprioritiseJobSet) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{9} -} -func (m *ReprioritiseJobSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReprioritiseJobSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReprioritiseJobSet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *ReprioritiseJobSet) Reset() { + *x = ReprioritiseJobSet{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ReprioritiseJobSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReprioritiseJobSet.Merge(m, src) -} -func (m *ReprioritiseJobSet) XXX_Size() int { - return m.Size() + +func (x *ReprioritiseJobSet) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReprioritiseJobSet) XXX_DiscardUnknown() { - xxx_messageInfo_ReprioritiseJobSet.DiscardUnknown(m) + +func (*ReprioritiseJobSet) ProtoMessage() {} + +func (x *ReprioritiseJobSet) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReprioritiseJobSet proto.InternalMessageInfo +// Deprecated: Use ReprioritiseJobSet.ProtoReflect.Descriptor instead. +func (*ReprioritiseJobSet) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{9} +} -func (m *ReprioritiseJobSet) GetPriority() uint32 { - if m != nil { - return m.Priority +func (x *ReprioritiseJobSet) GetPriority() uint32 { + if x != nil { + return x.Priority } return 0 } @@ -1294,53 +965,53 @@ func (m *ReprioritiseJobSet) GetPriority() uint32 { // Generated by the scheduler in response to ReprioritiseJob and ReprioritiseJobSet. // One such message is generated per job that was re-prioritised and includes the new priority. type ReprioritisedJob struct { - Priority uint32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` - JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Priority uint32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` + JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ReprioritisedJob) Reset() { *m = ReprioritisedJob{} } -func (m *ReprioritisedJob) String() string { return proto.CompactTextString(m) } -func (*ReprioritisedJob) ProtoMessage() {} -func (*ReprioritisedJob) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{10} -} -func (m *ReprioritisedJob) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReprioritisedJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReprioritisedJob.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ReprioritisedJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReprioritisedJob.Merge(m, src) +func (x *ReprioritisedJob) Reset() { + *x = ReprioritisedJob{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ReprioritisedJob) XXX_Size() int { - return m.Size() + +func (x *ReprioritisedJob) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReprioritisedJob) XXX_DiscardUnknown() { - xxx_messageInfo_ReprioritisedJob.DiscardUnknown(m) + +func (*ReprioritisedJob) ProtoMessage() {} + +func (x *ReprioritisedJob) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReprioritisedJob proto.InternalMessageInfo +// Deprecated: Use ReprioritisedJob.ProtoReflect.Descriptor instead. +func (*ReprioritisedJob) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{10} +} -func (m *ReprioritisedJob) GetPriority() uint32 { - if m != nil { - return m.Priority +func (x *ReprioritisedJob) GetPriority() uint32 { + if x != nil { + return x.Priority } return 0 } -func (m *ReprioritisedJob) GetJobId() string { - if m != nil { - return m.JobId +func (x *ReprioritisedJob) GetJobId() string { + if x != nil { + return x.JobId } return "" } @@ -1349,53 +1020,53 @@ func (m *ReprioritisedJob) GetJobId() string { // This will cancel all runs (preempting it if running) for the job (i.e., move them to the failed state) // and then cancel job itself (i.e., move it to the failed state). type CancelJob struct { - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` - JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *CancelJob) Reset() { *m = CancelJob{} } -func (m *CancelJob) String() string { return proto.CompactTextString(m) } -func (*CancelJob) ProtoMessage() {} -func (*CancelJob) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{11} -} -func (m *CancelJob) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancelJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancelJob.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *CancelJob) Reset() { + *x = CancelJob{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CancelJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelJob.Merge(m, src) -} -func (m *CancelJob) XXX_Size() int { - return m.Size() + +func (x *CancelJob) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CancelJob) XXX_DiscardUnknown() { - xxx_messageInfo_CancelJob.DiscardUnknown(m) + +func (*CancelJob) ProtoMessage() {} + +func (x *CancelJob) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CancelJob proto.InternalMessageInfo +// Deprecated: Use CancelJob.ProtoReflect.Descriptor instead. +func (*CancelJob) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{11} +} -func (m *CancelJob) GetReason() string { - if m != nil { - return m.Reason +func (x *CancelJob) GetReason() string { + if x != nil { + return x.Reason } return "" } -func (m *CancelJob) GetJobId() string { - if m != nil { - return m.JobId +func (x *CancelJob) GetJobId() string { + if x != nil { + return x.JobId } return "" } @@ -1403,45 +1074,45 @@ func (m *CancelJob) GetJobId() string { // Filter to be used when cancelling job sets // This allows users to cancel all jobs in a given state for a specific job set type JobSetFilter struct { - States []JobState `protobuf:"varint,1,rep,packed,name=states,proto3,enum=armadaevents.JobState" json:"states,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + States []JobState `protobuf:"varint,1,rep,packed,name=states,proto3,enum=armadaevents.JobState" json:"states,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobSetFilter) Reset() { *m = JobSetFilter{} } -func (m *JobSetFilter) String() string { return proto.CompactTextString(m) } -func (*JobSetFilter) ProtoMessage() {} -func (*JobSetFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{12} -} -func (m *JobSetFilter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobSetFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobSetFilter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobSetFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobSetFilter.Merge(m, src) +func (x *JobSetFilter) Reset() { + *x = JobSetFilter{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobSetFilter) XXX_Size() int { - return m.Size() + +func (x *JobSetFilter) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobSetFilter) XXX_DiscardUnknown() { - xxx_messageInfo_JobSetFilter.DiscardUnknown(m) + +func (*JobSetFilter) ProtoMessage() {} + +func (x *JobSetFilter) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobSetFilter proto.InternalMessageInfo +// Deprecated: Use JobSetFilter.ProtoReflect.Descriptor instead. +func (*JobSetFilter) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{12} +} -func (m *JobSetFilter) GetStates() []JobState { - if m != nil { - return m.States +func (x *JobSetFilter) GetStates() []JobState { + if x != nil { + return x.States } return nil } @@ -1449,53 +1120,53 @@ func (m *JobSetFilter) GetStates() []JobState { // Request to cancel all jobs in a job set. // Empty set of states means all states type CancelJobSet struct { - States []JobState `protobuf:"varint,1,rep,packed,name=states,proto3,enum=armadaevents.JobState" json:"states,omitempty"` - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + States []JobState `protobuf:"varint,1,rep,packed,name=states,proto3,enum=armadaevents.JobState" json:"states,omitempty"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *CancelJobSet) Reset() { *m = CancelJobSet{} } -func (m *CancelJobSet) String() string { return proto.CompactTextString(m) } -func (*CancelJobSet) ProtoMessage() {} -func (*CancelJobSet) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{13} -} -func (m *CancelJobSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancelJobSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancelJobSet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *CancelJobSet) Reset() { + *x = CancelJobSet{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CancelJobSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelJobSet.Merge(m, src) -} -func (m *CancelJobSet) XXX_Size() int { - return m.Size() + +func (x *CancelJobSet) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CancelJobSet) XXX_DiscardUnknown() { - xxx_messageInfo_CancelJobSet.DiscardUnknown(m) + +func (*CancelJobSet) ProtoMessage() {} + +func (x *CancelJobSet) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CancelJobSet proto.InternalMessageInfo +// Deprecated: Use CancelJobSet.ProtoReflect.Descriptor instead. +func (*CancelJobSet) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{13} +} -func (m *CancelJobSet) GetStates() []JobState { - if m != nil { - return m.States +func (x *CancelJobSet) GetStates() []JobState { + if x != nil { + return x.States } return nil } -func (m *CancelJobSet) GetReason() string { - if m != nil { - return m.Reason +func (x *CancelJobSet) GetReason() string { + if x != nil { + return x.Reason } return "" } @@ -1503,570 +1174,567 @@ func (m *CancelJobSet) GetReason() string { // Generated by the scheduler in response to CancelJob and CancelJobSet. // One such message is generated per job that was cancelled. type CancelledJob struct { - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` - JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - CancelUser string `protobuf:"bytes,4,opt,name=cancel_user,json=cancelUser,proto3" json:"cancelUser,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + CancelUser string `protobuf:"bytes,4,opt,name=cancel_user,json=cancelUser,proto3" json:"cancel_user,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *CancelledJob) Reset() { *m = CancelledJob{} } -func (m *CancelledJob) String() string { return proto.CompactTextString(m) } -func (*CancelledJob) ProtoMessage() {} -func (*CancelledJob) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{14} -} -func (m *CancelledJob) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancelledJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancelledJob.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *CancelledJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelledJob.Merge(m, src) +func (x *CancelledJob) Reset() { + *x = CancelledJob{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CancelledJob) XXX_Size() int { - return m.Size() + +func (x *CancelledJob) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CancelledJob) XXX_DiscardUnknown() { - xxx_messageInfo_CancelledJob.DiscardUnknown(m) + +func (*CancelledJob) ProtoMessage() {} + +func (x *CancelledJob) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CancelledJob proto.InternalMessageInfo +// Deprecated: Use CancelledJob.ProtoReflect.Descriptor instead. +func (*CancelledJob) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{14} +} -func (m *CancelledJob) GetReason() string { - if m != nil { - return m.Reason +func (x *CancelledJob) GetReason() string { + if x != nil { + return x.Reason } return "" } -func (m *CancelledJob) GetJobId() string { - if m != nil { - return m.JobId +func (x *CancelledJob) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *CancelledJob) GetCancelUser() string { - if m != nil { - return m.CancelUser +func (x *CancelledJob) GetCancelUser() string { + if x != nil { + return x.CancelUser } return "" } type JobSucceeded struct { + state protoimpl.MessageState `protogen:"open.v1"` // Runtime information, e.g., which node the job is running on, its IP address etc, // for each resource created for the job run. // TODO: remove this once we have fixed the external api ResourceInfos []*KubernetesResourceInfo `protobuf:"bytes,2,rep,name=resourceInfos,proto3" json:"resourceInfos,omitempty"` - JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` + JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobSucceeded) Reset() { *m = JobSucceeded{} } -func (m *JobSucceeded) String() string { return proto.CompactTextString(m) } -func (*JobSucceeded) ProtoMessage() {} -func (*JobSucceeded) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{15} -} -func (m *JobSucceeded) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobSucceeded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobSucceeded.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobSucceeded) Reset() { + *x = JobSucceeded{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobSucceeded) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobSucceeded.Merge(m, src) -} -func (m *JobSucceeded) XXX_Size() int { - return m.Size() + +func (x *JobSucceeded) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobSucceeded) XXX_DiscardUnknown() { - xxx_messageInfo_JobSucceeded.DiscardUnknown(m) + +func (*JobSucceeded) ProtoMessage() {} + +func (x *JobSucceeded) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobSucceeded proto.InternalMessageInfo +// Deprecated: Use JobSucceeded.ProtoReflect.Descriptor instead. +func (*JobSucceeded) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{15} +} -func (m *JobSucceeded) GetResourceInfos() []*KubernetesResourceInfo { - if m != nil { - return m.ResourceInfos +func (x *JobSucceeded) GetResourceInfos() []*KubernetesResourceInfo { + if x != nil { + return x.ResourceInfos } return nil } -func (m *JobSucceeded) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobSucceeded) GetJobId() string { + if x != nil { + return x.JobId } return "" } // Indicates that a job has been leased to a cluster by the Armada scheduler. type JobRunLeased struct { + state protoimpl.MessageState `protogen:"open.v1"` // Each cluster is represented by an executor. - ExecutorId string `protobuf:"bytes,3,opt,name=executor_id,json=executorId,proto3" json:"executorId,omitempty"` - NodeId string `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"nodeId,omitempty"` + ExecutorId string `protobuf:"bytes,3,opt,name=executor_id,json=executorId,proto3" json:"executor_id,omitempty"` + NodeId string `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // Used by the scheduler to maintain a consistent state - UpdateSequenceNumber int32 `protobuf:"varint,5,opt,name=update_sequence_number,json=updateSequenceNumber,proto3" json:"updateSequenceNumber,omitempty"` + UpdateSequenceNumber int32 `protobuf:"varint,5,opt,name=update_sequence_number,json=updateSequenceNumber,proto3" json:"update_sequence_number,omitempty"` // This bool is here because it is the most ergonomic way of distinguishing // the case where `scheduled_at_priority` was explicitly set to zero from // the case where it was not set at all. - HasScheduledAtPriority bool `protobuf:"varint,6,opt,name=has_scheduled_at_priority,json=hasScheduledAtPriority,proto3" json:"hasScheduledAtPriority,omitempty"` + HasScheduledAtPriority bool `protobuf:"varint,6,opt,name=has_scheduled_at_priority,json=hasScheduledAtPriority,proto3" json:"has_scheduled_at_priority,omitempty"` // Priority class priority that this job was scheduled at. // // This is usually equal to the priority of the job's priority class, except // in the case where the job was scheduled as an away job; this field is // used to distinguish this case from the case where the job was scheduled // as a home job. - ScheduledAtPriority int32 `protobuf:"varint,7,opt,name=scheduled_at_priority,json=scheduledAtPriority,proto3" json:"scheduledAtPriority,omitempty"` + ScheduledAtPriority int32 `protobuf:"varint,7,opt,name=scheduled_at_priority,json=scheduledAtPriority,proto3" json:"scheduled_at_priority,omitempty"` // The scheduler uses this field to modify the pod requirements of a job; // for example, it may add additional tolerations to runs that are scheduled // as away jobs. - PodRequirementsOverlay *schedulerobjects.PodRequirements `protobuf:"bytes,9,opt,name=pod_requirements_overlay,json=podRequirementsOverlay,proto3" json:"podRequirementsOverlay,omitempty"` - JobId string `protobuf:"bytes,10,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - RunId string `protobuf:"bytes,11,opt,name=run_id,json=runId,proto3" json:"runId,omitempty"` + PodRequirementsOverlay *schedulerobjects.PodRequirements `protobuf:"bytes,9,opt,name=pod_requirements_overlay,json=podRequirementsOverlay,proto3" json:"pod_requirements_overlay,omitempty"` + JobId string `protobuf:"bytes,10,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + RunId string `protobuf:"bytes,11,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` // pool is the pool this run was scheduled on to // This would be determined by the pool of the node this run was scheduled on to, at the time of scheduling - Pool string `protobuf:"bytes,12,opt,name=pool,proto3" json:"pool,omitempty"` + Pool string `protobuf:"bytes,12,opt,name=pool,proto3" json:"pool,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunLeased) Reset() { *m = JobRunLeased{} } -func (m *JobRunLeased) String() string { return proto.CompactTextString(m) } -func (*JobRunLeased) ProtoMessage() {} -func (*JobRunLeased) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{16} -} -func (m *JobRunLeased) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobRunLeased) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRunLeased.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobRunLeased) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRunLeased.Merge(m, src) +func (x *JobRunLeased) Reset() { + *x = JobRunLeased{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRunLeased) XXX_Size() int { - return m.Size() + +func (x *JobRunLeased) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRunLeased) XXX_DiscardUnknown() { - xxx_messageInfo_JobRunLeased.DiscardUnknown(m) + +func (*JobRunLeased) ProtoMessage() {} + +func (x *JobRunLeased) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobRunLeased proto.InternalMessageInfo +// Deprecated: Use JobRunLeased.ProtoReflect.Descriptor instead. +func (*JobRunLeased) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{16} +} -func (m *JobRunLeased) GetExecutorId() string { - if m != nil { - return m.ExecutorId +func (x *JobRunLeased) GetExecutorId() string { + if x != nil { + return x.ExecutorId } return "" } -func (m *JobRunLeased) GetNodeId() string { - if m != nil { - return m.NodeId +func (x *JobRunLeased) GetNodeId() string { + if x != nil { + return x.NodeId } return "" } -func (m *JobRunLeased) GetUpdateSequenceNumber() int32 { - if m != nil { - return m.UpdateSequenceNumber +func (x *JobRunLeased) GetUpdateSequenceNumber() int32 { + if x != nil { + return x.UpdateSequenceNumber } return 0 } -func (m *JobRunLeased) GetHasScheduledAtPriority() bool { - if m != nil { - return m.HasScheduledAtPriority +func (x *JobRunLeased) GetHasScheduledAtPriority() bool { + if x != nil { + return x.HasScheduledAtPriority } return false } -func (m *JobRunLeased) GetScheduledAtPriority() int32 { - if m != nil { - return m.ScheduledAtPriority +func (x *JobRunLeased) GetScheduledAtPriority() int32 { + if x != nil { + return x.ScheduledAtPriority } return 0 } -func (m *JobRunLeased) GetPodRequirementsOverlay() *schedulerobjects.PodRequirements { - if m != nil { - return m.PodRequirementsOverlay +func (x *JobRunLeased) GetPodRequirementsOverlay() *schedulerobjects.PodRequirements { + if x != nil { + return x.PodRequirementsOverlay } return nil } -func (m *JobRunLeased) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobRunLeased) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobRunLeased) GetRunId() string { - if m != nil { - return m.RunId +func (x *JobRunLeased) GetRunId() string { + if x != nil { + return x.RunId } return "" } -func (m *JobRunLeased) GetPool() string { - if m != nil { - return m.Pool +func (x *JobRunLeased) GetPool() string { + if x != nil { + return x.Pool } return "" } // Indicates that a job has been assigned to nodes by Kubernetes. type JobRunAssigned struct { + state protoimpl.MessageState `protogen:"open.v1"` // Runtime information, e.g., which node the job is running on, its IP address etc, // for each resource created for the job run. // Included here and in JobRunRunning for compatibility with legacy messages. ResourceInfos []*KubernetesResourceInfo `protobuf:"bytes,3,rep,name=resourceInfos,proto3" json:"resourceInfos,omitempty"` - JobId string `protobuf:"bytes,4,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - RunId string `protobuf:"bytes,5,opt,name=run_id,json=runId,proto3" json:"runId,omitempty"` + JobId string `protobuf:"bytes,4,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + RunId string `protobuf:"bytes,5,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunAssigned) Reset() { *m = JobRunAssigned{} } -func (m *JobRunAssigned) String() string { return proto.CompactTextString(m) } -func (*JobRunAssigned) ProtoMessage() {} -func (*JobRunAssigned) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{17} -} -func (m *JobRunAssigned) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobRunAssigned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRunAssigned.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobRunAssigned) Reset() { + *x = JobRunAssigned{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRunAssigned) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRunAssigned.Merge(m, src) -} -func (m *JobRunAssigned) XXX_Size() int { - return m.Size() + +func (x *JobRunAssigned) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRunAssigned) XXX_DiscardUnknown() { - xxx_messageInfo_JobRunAssigned.DiscardUnknown(m) + +func (*JobRunAssigned) ProtoMessage() {} + +func (x *JobRunAssigned) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobRunAssigned proto.InternalMessageInfo +// Deprecated: Use JobRunAssigned.ProtoReflect.Descriptor instead. +func (*JobRunAssigned) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{17} +} -func (m *JobRunAssigned) GetResourceInfos() []*KubernetesResourceInfo { - if m != nil { - return m.ResourceInfos +func (x *JobRunAssigned) GetResourceInfos() []*KubernetesResourceInfo { + if x != nil { + return x.ResourceInfos } return nil } -func (m *JobRunAssigned) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobRunAssigned) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobRunAssigned) GetRunId() string { - if m != nil { - return m.RunId +func (x *JobRunAssigned) GetRunId() string { + if x != nil { + return x.RunId } return "" } // Indicates that the resources required by the job have been created and that the job is now running. type JobRunRunning struct { + state protoimpl.MessageState `protogen:"open.v1"` // Runtime information, e.g., which node the job is running on, its IP address etc, // for each resource created for the job run. ResourceInfos []*KubernetesResourceInfo `protobuf:"bytes,3,rep,name=resourceInfos,proto3" json:"resourceInfos,omitempty"` - JobId string `protobuf:"bytes,4,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - RunId string `protobuf:"bytes,5,opt,name=run_id,json=runId,proto3" json:"runId,omitempty"` + JobId string `protobuf:"bytes,4,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + RunId string `protobuf:"bytes,5,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunRunning) Reset() { *m = JobRunRunning{} } -func (m *JobRunRunning) String() string { return proto.CompactTextString(m) } -func (*JobRunRunning) ProtoMessage() {} -func (*JobRunRunning) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{18} -} -func (m *JobRunRunning) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobRunRunning) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRunRunning.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobRunRunning) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRunRunning.Merge(m, src) +func (x *JobRunRunning) Reset() { + *x = JobRunRunning{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRunRunning) XXX_Size() int { - return m.Size() + +func (x *JobRunRunning) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRunRunning) XXX_DiscardUnknown() { - xxx_messageInfo_JobRunRunning.DiscardUnknown(m) + +func (*JobRunRunning) ProtoMessage() {} + +func (x *JobRunRunning) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobRunRunning proto.InternalMessageInfo +// Deprecated: Use JobRunRunning.ProtoReflect.Descriptor instead. +func (*JobRunRunning) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{18} +} -func (m *JobRunRunning) GetResourceInfos() []*KubernetesResourceInfo { - if m != nil { - return m.ResourceInfos +func (x *JobRunRunning) GetResourceInfos() []*KubernetesResourceInfo { + if x != nil { + return x.ResourceInfos } return nil } -func (m *JobRunRunning) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobRunRunning) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobRunRunning) GetRunId() string { - if m != nil { - return m.RunId +func (x *JobRunRunning) GetRunId() string { + if x != nil { + return x.RunId } return "" } // Message containing runtime information about some resource created for a job. type KubernetesResourceInfo struct { - ObjectMeta *ObjectMeta `protobuf:"bytes,1,opt,name=objectMeta,proto3" json:"objectMeta,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ObjectMeta *ObjectMeta `protobuf:"bytes,1,opt,name=objectMeta,proto3" json:"objectMeta,omitempty"` // Types that are valid to be assigned to Info: + // // *KubernetesResourceInfo_PodInfo // *KubernetesResourceInfo_IngressInfo - Info isKubernetesResourceInfo_Info `protobuf_oneof:"info"` + Info isKubernetesResourceInfo_Info `protobuf_oneof:"info"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *KubernetesResourceInfo) Reset() { *m = KubernetesResourceInfo{} } -func (m *KubernetesResourceInfo) String() string { return proto.CompactTextString(m) } -func (*KubernetesResourceInfo) ProtoMessage() {} -func (*KubernetesResourceInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{19} -} -func (m *KubernetesResourceInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KubernetesResourceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KubernetesResourceInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *KubernetesResourceInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_KubernetesResourceInfo.Merge(m, src) -} -func (m *KubernetesResourceInfo) XXX_Size() int { - return m.Size() +func (x *KubernetesResourceInfo) Reset() { + *x = KubernetesResourceInfo{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *KubernetesResourceInfo) XXX_DiscardUnknown() { - xxx_messageInfo_KubernetesResourceInfo.DiscardUnknown(m) + +func (x *KubernetesResourceInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_KubernetesResourceInfo proto.InternalMessageInfo +func (*KubernetesResourceInfo) ProtoMessage() {} -type isKubernetesResourceInfo_Info interface { - isKubernetesResourceInfo_Info() - MarshalTo([]byte) (int, error) - Size() int +func (x *KubernetesResourceInfo) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type KubernetesResourceInfo_PodInfo struct { - PodInfo *PodInfo `protobuf:"bytes,2,opt,name=podInfo,proto3,oneof" json:"podInfo,omitempty"` -} -type KubernetesResourceInfo_IngressInfo struct { - IngressInfo *IngressInfo `protobuf:"bytes,3,opt,name=ingressInfo,proto3,oneof" json:"ingressInfo,omitempty"` +// Deprecated: Use KubernetesResourceInfo.ProtoReflect.Descriptor instead. +func (*KubernetesResourceInfo) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{19} } -func (*KubernetesResourceInfo_PodInfo) isKubernetesResourceInfo_Info() {} -func (*KubernetesResourceInfo_IngressInfo) isKubernetesResourceInfo_Info() {} - -func (m *KubernetesResourceInfo) GetInfo() isKubernetesResourceInfo_Info { - if m != nil { - return m.Info +func (x *KubernetesResourceInfo) GetObjectMeta() *ObjectMeta { + if x != nil { + return x.ObjectMeta } return nil } -func (m *KubernetesResourceInfo) GetObjectMeta() *ObjectMeta { - if m != nil { - return m.ObjectMeta +func (x *KubernetesResourceInfo) GetInfo() isKubernetesResourceInfo_Info { + if x != nil { + return x.Info } return nil } -func (m *KubernetesResourceInfo) GetPodInfo() *PodInfo { - if x, ok := m.GetInfo().(*KubernetesResourceInfo_PodInfo); ok { - return x.PodInfo +func (x *KubernetesResourceInfo) GetPodInfo() *PodInfo { + if x != nil { + if x, ok := x.Info.(*KubernetesResourceInfo_PodInfo); ok { + return x.PodInfo + } } return nil } -func (m *KubernetesResourceInfo) GetIngressInfo() *IngressInfo { - if x, ok := m.GetInfo().(*KubernetesResourceInfo_IngressInfo); ok { - return x.IngressInfo +func (x *KubernetesResourceInfo) GetIngressInfo() *IngressInfo { + if x != nil { + if x, ok := x.Info.(*KubernetesResourceInfo_IngressInfo); ok { + return x.IngressInfo + } } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*KubernetesResourceInfo) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*KubernetesResourceInfo_PodInfo)(nil), - (*KubernetesResourceInfo_IngressInfo)(nil), - } +type isKubernetesResourceInfo_Info interface { + isKubernetesResourceInfo_Info() +} + +type KubernetesResourceInfo_PodInfo struct { + PodInfo *PodInfo `protobuf:"bytes,2,opt,name=podInfo,proto3,oneof"` +} + +type KubernetesResourceInfo_IngressInfo struct { + IngressInfo *IngressInfo `protobuf:"bytes,3,opt,name=ingressInfo,proto3,oneof"` } +func (*KubernetesResourceInfo_PodInfo) isKubernetesResourceInfo_Info() {} + +func (*KubernetesResourceInfo_IngressInfo) isKubernetesResourceInfo_Info() {} + // Runtime information of a pod. type PodInfo struct { - NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"nodeName,omitempty"` - PodNumber int32 `protobuf:"varint,2,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + PodNumber int32 `protobuf:"varint,2,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PodInfo) Reset() { *m = PodInfo{} } -func (m *PodInfo) String() string { return proto.CompactTextString(m) } -func (*PodInfo) ProtoMessage() {} -func (*PodInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{20} -} -func (m *PodInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PodInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *PodInfo) Reset() { + *x = PodInfo{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PodInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodInfo.Merge(m, src) -} -func (m *PodInfo) XXX_Size() int { - return m.Size() + +func (x *PodInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PodInfo) XXX_DiscardUnknown() { - xxx_messageInfo_PodInfo.DiscardUnknown(m) + +func (*PodInfo) ProtoMessage() {} + +func (x *PodInfo) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PodInfo proto.InternalMessageInfo +// Deprecated: Use PodInfo.ProtoReflect.Descriptor instead. +func (*PodInfo) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{20} +} -func (m *PodInfo) GetNodeName() string { - if m != nil { - return m.NodeName +func (x *PodInfo) GetNodeName() string { + if x != nil { + return x.NodeName } return "" } -func (m *PodInfo) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *PodInfo) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } // Runtime information of an ingress. type IngressInfo struct { + state protoimpl.MessageState `protogen:"open.v1"` // TODO: Why a node name? - NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"nodeName,omitempty"` + NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` // TODO: Why a map? - IngressAddresses map[int32]string `protobuf:"bytes,2,rep,name=ingress_addresses,json=ingressAddresses,proto3" json:"ingressAddresses,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + IngressAddresses map[int32]string `protobuf:"bytes,2,rep,name=ingress_addresses,json=ingressAddresses,proto3" json:"ingress_addresses,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *IngressInfo) Reset() { *m = IngressInfo{} } -func (m *IngressInfo) String() string { return proto.CompactTextString(m) } -func (*IngressInfo) ProtoMessage() {} -func (*IngressInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{21} -} -func (m *IngressInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IngressInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *IngressInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressInfo.Merge(m, src) +func (x *IngressInfo) Reset() { + *x = IngressInfo{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *IngressInfo) XXX_Size() int { - return m.Size() + +func (x *IngressInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IngressInfo) XXX_DiscardUnknown() { - xxx_messageInfo_IngressInfo.DiscardUnknown(m) + +func (*IngressInfo) ProtoMessage() {} + +func (x *IngressInfo) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_IngressInfo proto.InternalMessageInfo +// Deprecated: Use IngressInfo.ProtoReflect.Descriptor instead. +func (*IngressInfo) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{21} +} -func (m *IngressInfo) GetNodeName() string { - if m != nil { - return m.NodeName +func (x *IngressInfo) GetNodeName() string { + if x != nil { + return x.NodeName } return "" } -func (m *IngressInfo) GetIngressAddresses() map[int32]string { - if m != nil { - return m.IngressAddresses +func (x *IngressInfo) GetIngressAddresses() map[int32]string { + if x != nil { + return x.IngressAddresses } return nil } @@ -2075,167 +1743,167 @@ func (m *IngressInfo) GetIngressAddresses() map[int32]string { // Used for compatibility with legacy messages, which send ingress info as its own message. // Later, this info should be bundled with the JobRunRunning message. type StandaloneIngressInfo struct { + state protoimpl.MessageState `protogen:"open.v1"` // ObjectMeta associated with the ingress. ObjectMeta *ObjectMeta `protobuf:"bytes,3,opt,name=objectMeta,proto3" json:"objectMeta,omitempty"` - IngressAddresses map[int32]string `protobuf:"bytes,4,rep,name=ingress_addresses,json=ingressAddresses,proto3" json:"ingressAddresses,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + IngressAddresses map[int32]string `protobuf:"bytes,4,rep,name=ingress_addresses,json=ingressAddresses,proto3" json:"ingress_addresses,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // The legacy message bundles info associated with the pod. - NodeName string `protobuf:"bytes,5,opt,name=node_name,json=nodeName,proto3" json:"nodeName,omitempty"` - PodNumber int32 `protobuf:"varint,6,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` - PodName string `protobuf:"bytes,7,opt,name=pod_name,json=podName,proto3" json:"podName,omitempty"` - PodNamespace string `protobuf:"bytes,8,opt,name=pod_namespace,json=podNamespace,proto3" json:"podNamespace,omitempty"` - JobId string `protobuf:"bytes,9,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - RunId string `protobuf:"bytes,10,opt,name=run_id,json=runId,proto3" json:"runId,omitempty"` + NodeName string `protobuf:"bytes,5,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + PodNumber int32 `protobuf:"varint,6,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` + PodName string `protobuf:"bytes,7,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` + PodNamespace string `protobuf:"bytes,8,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"` + JobId string `protobuf:"bytes,9,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + RunId string `protobuf:"bytes,10,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *StandaloneIngressInfo) Reset() { *m = StandaloneIngressInfo{} } -func (m *StandaloneIngressInfo) String() string { return proto.CompactTextString(m) } -func (*StandaloneIngressInfo) ProtoMessage() {} -func (*StandaloneIngressInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{22} -} -func (m *StandaloneIngressInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StandaloneIngressInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StandaloneIngressInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *StandaloneIngressInfo) Reset() { + *x = StandaloneIngressInfo{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *StandaloneIngressInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_StandaloneIngressInfo.Merge(m, src) -} -func (m *StandaloneIngressInfo) XXX_Size() int { - return m.Size() + +func (x *StandaloneIngressInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StandaloneIngressInfo) XXX_DiscardUnknown() { - xxx_messageInfo_StandaloneIngressInfo.DiscardUnknown(m) + +func (*StandaloneIngressInfo) ProtoMessage() {} + +func (x *StandaloneIngressInfo) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StandaloneIngressInfo proto.InternalMessageInfo +// Deprecated: Use StandaloneIngressInfo.ProtoReflect.Descriptor instead. +func (*StandaloneIngressInfo) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{22} +} -func (m *StandaloneIngressInfo) GetObjectMeta() *ObjectMeta { - if m != nil { - return m.ObjectMeta +func (x *StandaloneIngressInfo) GetObjectMeta() *ObjectMeta { + if x != nil { + return x.ObjectMeta } return nil } -func (m *StandaloneIngressInfo) GetIngressAddresses() map[int32]string { - if m != nil { - return m.IngressAddresses +func (x *StandaloneIngressInfo) GetIngressAddresses() map[int32]string { + if x != nil { + return x.IngressAddresses } return nil } -func (m *StandaloneIngressInfo) GetNodeName() string { - if m != nil { - return m.NodeName +func (x *StandaloneIngressInfo) GetNodeName() string { + if x != nil { + return x.NodeName } return "" } -func (m *StandaloneIngressInfo) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *StandaloneIngressInfo) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } -func (m *StandaloneIngressInfo) GetPodName() string { - if m != nil { - return m.PodName +func (x *StandaloneIngressInfo) GetPodName() string { + if x != nil { + return x.PodName } return "" } -func (m *StandaloneIngressInfo) GetPodNamespace() string { - if m != nil { - return m.PodNamespace +func (x *StandaloneIngressInfo) GetPodNamespace() string { + if x != nil { + return x.PodNamespace } return "" } -func (m *StandaloneIngressInfo) GetJobId() string { - if m != nil { - return m.JobId +func (x *StandaloneIngressInfo) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *StandaloneIngressInfo) GetRunId() string { - if m != nil { - return m.RunId +func (x *StandaloneIngressInfo) GetRunId() string { + if x != nil { + return x.RunId } return "" } // Indicates that the job finished successfully (i.e., in the expected manner). type JobRunSucceeded struct { + state protoimpl.MessageState `protogen:"open.v1"` // Runtime information, e.g., which node the job is running on, its IP address etc, // for each resource created for the job run. // TODO: remove this once we have fixed the external api ResourceInfos []*KubernetesResourceInfo `protobuf:"bytes,3,rep,name=resourceInfos,proto3" json:"resourceInfos,omitempty"` - JobId string `protobuf:"bytes,4,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - RunId string `protobuf:"bytes,5,opt,name=run_id,json=runId,proto3" json:"runId,omitempty"` + JobId string `protobuf:"bytes,4,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + RunId string `protobuf:"bytes,5,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunSucceeded) Reset() { *m = JobRunSucceeded{} } -func (m *JobRunSucceeded) String() string { return proto.CompactTextString(m) } -func (*JobRunSucceeded) ProtoMessage() {} -func (*JobRunSucceeded) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{23} -} -func (m *JobRunSucceeded) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobRunSucceeded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRunSucceeded.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobRunSucceeded) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRunSucceeded.Merge(m, src) +func (x *JobRunSucceeded) Reset() { + *x = JobRunSucceeded{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRunSucceeded) XXX_Size() int { - return m.Size() + +func (x *JobRunSucceeded) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRunSucceeded) XXX_DiscardUnknown() { - xxx_messageInfo_JobRunSucceeded.DiscardUnknown(m) + +func (*JobRunSucceeded) ProtoMessage() {} + +func (x *JobRunSucceeded) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobRunSucceeded proto.InternalMessageInfo +// Deprecated: Use JobRunSucceeded.ProtoReflect.Descriptor instead. +func (*JobRunSucceeded) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{23} +} -func (m *JobRunSucceeded) GetResourceInfos() []*KubernetesResourceInfo { - if m != nil { - return m.ResourceInfos +func (x *JobRunSucceeded) GetResourceInfos() []*KubernetesResourceInfo { + if x != nil { + return x.ResourceInfos } return nil } -func (m *JobRunSucceeded) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobRunSucceeded) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobRunSucceeded) GetRunId() string { - if m != nil { - return m.RunId +func (x *JobRunSucceeded) GetRunId() string { + if x != nil { + return x.RunId } return "" } @@ -2244,54 +1912,54 @@ func (m *JobRunSucceeded) GetRunId() string { // Contains a flag, which if set to true indicates that the job has failed. // Otherwise, this message represents a set of errors from which the system has recovered. type JobErrors struct { + state protoimpl.MessageState `protogen:"open.v1"` // A set of errors that occurred within some context. - Errors []*Error `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` - JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` + Errors []*Error `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` + JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobErrors) Reset() { *m = JobErrors{} } -func (m *JobErrors) String() string { return proto.CompactTextString(m) } -func (*JobErrors) ProtoMessage() {} -func (*JobErrors) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{24} -} -func (m *JobErrors) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobErrors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobErrors.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobErrors) Reset() { + *x = JobErrors{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobErrors) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobErrors.Merge(m, src) -} -func (m *JobErrors) XXX_Size() int { - return m.Size() + +func (x *JobErrors) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobErrors) XXX_DiscardUnknown() { - xxx_messageInfo_JobErrors.DiscardUnknown(m) + +func (*JobErrors) ProtoMessage() {} + +func (x *JobErrors) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobErrors proto.InternalMessageInfo +// Deprecated: Use JobErrors.ProtoReflect.Descriptor instead. +func (*JobErrors) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{24} +} -func (m *JobErrors) GetErrors() []*Error { - if m != nil { - return m.Errors +func (x *JobErrors) GetErrors() []*Error { + if x != nil { + return x.Errors } return nil } -func (m *JobErrors) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobErrors) GetJobId() string { + if x != nil { + return x.JobId } return "" } @@ -2304,62 +1972,62 @@ func (m *JobErrors) GetJobId() string { // // Services may listen for these messages to obtain realtime information about errors associated with jobs. type JobRunErrors struct { + state protoimpl.MessageState `protogen:"open.v1"` // A set of errors that occurred within some context. - Errors []*Error `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"` - JobId string `protobuf:"bytes,4,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - RunId string `protobuf:"bytes,5,opt,name=run_id,json=runId,proto3" json:"runId,omitempty"` + Errors []*Error `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"` + JobId string `protobuf:"bytes,4,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + RunId string `protobuf:"bytes,5,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunErrors) Reset() { *m = JobRunErrors{} } -func (m *JobRunErrors) String() string { return proto.CompactTextString(m) } -func (*JobRunErrors) ProtoMessage() {} -func (*JobRunErrors) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{25} -} -func (m *JobRunErrors) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobRunErrors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRunErrors.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobRunErrors) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRunErrors.Merge(m, src) +func (x *JobRunErrors) Reset() { + *x = JobRunErrors{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRunErrors) XXX_Size() int { - return m.Size() + +func (x *JobRunErrors) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRunErrors) XXX_DiscardUnknown() { - xxx_messageInfo_JobRunErrors.DiscardUnknown(m) + +func (*JobRunErrors) ProtoMessage() {} + +func (x *JobRunErrors) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobRunErrors proto.InternalMessageInfo +// Deprecated: Use JobRunErrors.ProtoReflect.Descriptor instead. +func (*JobRunErrors) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{25} +} -func (m *JobRunErrors) GetErrors() []*Error { - if m != nil { - return m.Errors +func (x *JobRunErrors) GetErrors() []*Error { + if x != nil { + return x.Errors } return nil } -func (m *JobRunErrors) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobRunErrors) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobRunErrors) GetRunId() string { - if m != nil { - return m.RunId +func (x *JobRunErrors) GetRunId() string { + if x != nil { + return x.RunId } return "" } @@ -2373,11 +2041,13 @@ func (m *JobRunErrors) GetRunId() string { // This message may only be published to the log as part of a JobRunError message. // TODO: Check if the container status contained any useful info for non-failed containers. type Error struct { + state protoimpl.MessageState `protogen:"open.v1"` // If true, this error represents an unrecoverable failure and Armada has given up on this job or job run. Terminal bool `protobuf:"varint,1,opt,name=terminal,proto3" json:"terminal,omitempty"` // Additional information for this particular combination of component and error. May be set to nil. // // Types that are valid to be assigned to Reason: + // // *Error_KubernetesError // *Error_ContainerError // *Error_ExecutorError @@ -2389,496 +2059,518 @@ type Error struct { // *Error_JobRunPreemptedError // *Error_GangJobUnschedulable // *Error_JobRejected - Reason isError_Reason `protobuf_oneof:"reason"` + Reason isError_Reason `protobuf_oneof:"reason"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{26} -} -func (m *Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error.Merge(m, src) +func (x *Error) Reset() { + *x = Error{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *Error) XXX_Size() int { - return m.Size() -} -func (m *Error) XXX_DiscardUnknown() { - xxx_messageInfo_Error.DiscardUnknown(m) + +func (x *Error) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Error proto.InternalMessageInfo +func (*Error) ProtoMessage() {} -type isError_Reason interface { - isError_Reason() - MarshalTo([]byte) (int, error) - Size() int +func (x *Error) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type Error_KubernetesError struct { - KubernetesError *KubernetesError `protobuf:"bytes,2,opt,name=kubernetesError,proto3,oneof" json:"kubernetesError,omitempty"` -} -type Error_ContainerError struct { - ContainerError *ContainerError `protobuf:"bytes,3,opt,name=containerError,proto3,oneof" json:"containerError,omitempty"` -} -type Error_ExecutorError struct { - ExecutorError *ExecutorError `protobuf:"bytes,4,opt,name=executorError,proto3,oneof" json:"executorError,omitempty"` -} -type Error_PodUnschedulable struct { - PodUnschedulable *PodUnschedulable `protobuf:"bytes,5,opt,name=podUnschedulable,proto3,oneof" json:"podUnschedulable,omitempty"` -} -type Error_LeaseExpired struct { - LeaseExpired *LeaseExpired `protobuf:"bytes,6,opt,name=leaseExpired,proto3,oneof" json:"leaseExpired,omitempty"` -} -type Error_MaxRunsExceeded struct { - MaxRunsExceeded *MaxRunsExceeded `protobuf:"bytes,7,opt,name=maxRunsExceeded,proto3,oneof" json:"maxRunsExceeded,omitempty"` -} -type Error_PodError struct { - PodError *PodError `protobuf:"bytes,8,opt,name=podError,proto3,oneof" json:"podError,omitempty"` -} -type Error_PodLeaseReturned struct { - PodLeaseReturned *PodLeaseReturned `protobuf:"bytes,9,opt,name=podLeaseReturned,proto3,oneof" json:"podLeaseReturned,omitempty"` -} -type Error_JobRunPreemptedError struct { - JobRunPreemptedError *JobRunPreemptedError `protobuf:"bytes,11,opt,name=jobRunPreemptedError,proto3,oneof" json:"jobRunPreemptedError,omitempty"` -} -type Error_GangJobUnschedulable struct { - GangJobUnschedulable *GangJobUnschedulable `protobuf:"bytes,12,opt,name=gangJobUnschedulable,proto3,oneof" json:"gangJobUnschedulable,omitempty"` -} -type Error_JobRejected struct { - JobRejected *JobRejected `protobuf:"bytes,13,opt,name=jobRejected,proto3,oneof" json:"jobRejected,omitempty"` +// Deprecated: Use Error.ProtoReflect.Descriptor instead. +func (*Error) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{26} } -func (*Error_KubernetesError) isError_Reason() {} -func (*Error_ContainerError) isError_Reason() {} -func (*Error_ExecutorError) isError_Reason() {} -func (*Error_PodUnschedulable) isError_Reason() {} -func (*Error_LeaseExpired) isError_Reason() {} -func (*Error_MaxRunsExceeded) isError_Reason() {} -func (*Error_PodError) isError_Reason() {} -func (*Error_PodLeaseReturned) isError_Reason() {} -func (*Error_JobRunPreemptedError) isError_Reason() {} -func (*Error_GangJobUnschedulable) isError_Reason() {} -func (*Error_JobRejected) isError_Reason() {} - -func (m *Error) GetReason() isError_Reason { - if m != nil { - return m.Reason +func (x *Error) GetTerminal() bool { + if x != nil { + return x.Terminal } - return nil + return false } -func (m *Error) GetTerminal() bool { - if m != nil { - return m.Terminal +func (x *Error) GetReason() isError_Reason { + if x != nil { + return x.Reason } - return false + return nil } -func (m *Error) GetKubernetesError() *KubernetesError { - if x, ok := m.GetReason().(*Error_KubernetesError); ok { - return x.KubernetesError +func (x *Error) GetKubernetesError() *KubernetesError { + if x != nil { + if x, ok := x.Reason.(*Error_KubernetesError); ok { + return x.KubernetesError + } } return nil } -func (m *Error) GetContainerError() *ContainerError { - if x, ok := m.GetReason().(*Error_ContainerError); ok { - return x.ContainerError +func (x *Error) GetContainerError() *ContainerError { + if x != nil { + if x, ok := x.Reason.(*Error_ContainerError); ok { + return x.ContainerError + } } return nil } -func (m *Error) GetExecutorError() *ExecutorError { - if x, ok := m.GetReason().(*Error_ExecutorError); ok { - return x.ExecutorError +func (x *Error) GetExecutorError() *ExecutorError { + if x != nil { + if x, ok := x.Reason.(*Error_ExecutorError); ok { + return x.ExecutorError + } } return nil } -func (m *Error) GetPodUnschedulable() *PodUnschedulable { - if x, ok := m.GetReason().(*Error_PodUnschedulable); ok { - return x.PodUnschedulable +func (x *Error) GetPodUnschedulable() *PodUnschedulable { + if x != nil { + if x, ok := x.Reason.(*Error_PodUnschedulable); ok { + return x.PodUnschedulable + } } return nil } -func (m *Error) GetLeaseExpired() *LeaseExpired { - if x, ok := m.GetReason().(*Error_LeaseExpired); ok { - return x.LeaseExpired +func (x *Error) GetLeaseExpired() *LeaseExpired { + if x != nil { + if x, ok := x.Reason.(*Error_LeaseExpired); ok { + return x.LeaseExpired + } } return nil } -func (m *Error) GetMaxRunsExceeded() *MaxRunsExceeded { - if x, ok := m.GetReason().(*Error_MaxRunsExceeded); ok { - return x.MaxRunsExceeded +func (x *Error) GetMaxRunsExceeded() *MaxRunsExceeded { + if x != nil { + if x, ok := x.Reason.(*Error_MaxRunsExceeded); ok { + return x.MaxRunsExceeded + } } return nil } -func (m *Error) GetPodError() *PodError { - if x, ok := m.GetReason().(*Error_PodError); ok { - return x.PodError +func (x *Error) GetPodError() *PodError { + if x != nil { + if x, ok := x.Reason.(*Error_PodError); ok { + return x.PodError + } } return nil } -func (m *Error) GetPodLeaseReturned() *PodLeaseReturned { - if x, ok := m.GetReason().(*Error_PodLeaseReturned); ok { - return x.PodLeaseReturned +func (x *Error) GetPodLeaseReturned() *PodLeaseReturned { + if x != nil { + if x, ok := x.Reason.(*Error_PodLeaseReturned); ok { + return x.PodLeaseReturned + } } return nil } -func (m *Error) GetJobRunPreemptedError() *JobRunPreemptedError { - if x, ok := m.GetReason().(*Error_JobRunPreemptedError); ok { - return x.JobRunPreemptedError +func (x *Error) GetJobRunPreemptedError() *JobRunPreemptedError { + if x != nil { + if x, ok := x.Reason.(*Error_JobRunPreemptedError); ok { + return x.JobRunPreemptedError + } } return nil } -func (m *Error) GetGangJobUnschedulable() *GangJobUnschedulable { - if x, ok := m.GetReason().(*Error_GangJobUnschedulable); ok { - return x.GangJobUnschedulable +func (x *Error) GetGangJobUnschedulable() *GangJobUnschedulable { + if x != nil { + if x, ok := x.Reason.(*Error_GangJobUnschedulable); ok { + return x.GangJobUnschedulable + } } return nil } -func (m *Error) GetJobRejected() *JobRejected { - if x, ok := m.GetReason().(*Error_JobRejected); ok { - return x.JobRejected +func (x *Error) GetJobRejected() *JobRejected { + if x != nil { + if x, ok := x.Reason.(*Error_JobRejected); ok { + return x.JobRejected + } } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Error) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Error_KubernetesError)(nil), - (*Error_ContainerError)(nil), - (*Error_ExecutorError)(nil), - (*Error_PodUnschedulable)(nil), - (*Error_LeaseExpired)(nil), - (*Error_MaxRunsExceeded)(nil), - (*Error_PodError)(nil), - (*Error_PodLeaseReturned)(nil), - (*Error_JobRunPreemptedError)(nil), - (*Error_GangJobUnschedulable)(nil), - (*Error_JobRejected)(nil), - } +type isError_Reason interface { + isError_Reason() +} + +type Error_KubernetesError struct { + KubernetesError *KubernetesError `protobuf:"bytes,2,opt,name=kubernetesError,proto3,oneof"` +} + +type Error_ContainerError struct { + ContainerError *ContainerError `protobuf:"bytes,3,opt,name=containerError,proto3,oneof"` +} + +type Error_ExecutorError struct { + ExecutorError *ExecutorError `protobuf:"bytes,4,opt,name=executorError,proto3,oneof"` +} + +type Error_PodUnschedulable struct { + PodUnschedulable *PodUnschedulable `protobuf:"bytes,5,opt,name=podUnschedulable,proto3,oneof"` +} + +type Error_LeaseExpired struct { + LeaseExpired *LeaseExpired `protobuf:"bytes,6,opt,name=leaseExpired,proto3,oneof"` +} + +type Error_MaxRunsExceeded struct { + MaxRunsExceeded *MaxRunsExceeded `protobuf:"bytes,7,opt,name=maxRunsExceeded,proto3,oneof"` } +type Error_PodError struct { + PodError *PodError `protobuf:"bytes,8,opt,name=podError,proto3,oneof"` +} + +type Error_PodLeaseReturned struct { + PodLeaseReturned *PodLeaseReturned `protobuf:"bytes,9,opt,name=podLeaseReturned,proto3,oneof"` +} + +type Error_JobRunPreemptedError struct { + JobRunPreemptedError *JobRunPreemptedError `protobuf:"bytes,11,opt,name=jobRunPreemptedError,proto3,oneof"` +} + +type Error_GangJobUnschedulable struct { + GangJobUnschedulable *GangJobUnschedulable `protobuf:"bytes,12,opt,name=gangJobUnschedulable,proto3,oneof"` +} + +type Error_JobRejected struct { + JobRejected *JobRejected `protobuf:"bytes,13,opt,name=jobRejected,proto3,oneof"` +} + +func (*Error_KubernetesError) isError_Reason() {} + +func (*Error_ContainerError) isError_Reason() {} + +func (*Error_ExecutorError) isError_Reason() {} + +func (*Error_PodUnschedulable) isError_Reason() {} + +func (*Error_LeaseExpired) isError_Reason() {} + +func (*Error_MaxRunsExceeded) isError_Reason() {} + +func (*Error_PodError) isError_Reason() {} + +func (*Error_PodLeaseReturned) isError_Reason() {} + +func (*Error_JobRunPreemptedError) isError_Reason() {} + +func (*Error_GangJobUnschedulable) isError_Reason() {} + +func (*Error_JobRejected) isError_Reason() {} + // Represents an error associated with a particular Kubernetes resource. type KubernetesError struct { + state protoimpl.MessageState `protogen:"open.v1"` // Type of Kubernetes resource (e.g., ingress). - ResourceType string `protobuf:"bytes,1,opt,name=resourceType,proto3" json:"resourceType,omitempty"` + ResourceType string `protobuf:"bytes,1,opt,name=resourceType,proto3" json:"resourceType,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *KubernetesError) Reset() { *m = KubernetesError{} } -func (m *KubernetesError) String() string { return proto.CompactTextString(m) } -func (*KubernetesError) ProtoMessage() {} -func (*KubernetesError) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{27} -} -func (m *KubernetesError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KubernetesError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KubernetesError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *KubernetesError) XXX_Merge(src proto.Message) { - xxx_messageInfo_KubernetesError.Merge(m, src) +func (x *KubernetesError) Reset() { + *x = KubernetesError{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *KubernetesError) XXX_Size() int { - return m.Size() + +func (x *KubernetesError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *KubernetesError) XXX_DiscardUnknown() { - xxx_messageInfo_KubernetesError.DiscardUnknown(m) + +func (*KubernetesError) ProtoMessage() {} + +func (x *KubernetesError) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_KubernetesError proto.InternalMessageInfo +// Deprecated: Use KubernetesError.ProtoReflect.Descriptor instead. +func (*KubernetesError) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{27} +} -func (m *KubernetesError) GetResourceType() string { - if m != nil { - return m.ResourceType +func (x *KubernetesError) GetResourceType() string { + if x != nil { + return x.ResourceType } return "" } // Indicates one or more of the containers in the pod failed. type PodError struct { + state protoimpl.MessageState `protogen:"open.v1"` // This ObjectMeta identifies the Pod. ObjectMeta *ObjectMeta `protobuf:"bytes,1,opt,name=objectMeta,proto3" json:"objectMeta,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - NodeName string `protobuf:"bytes,3,opt,name=node_name,json=nodeName,proto3" json:"nodeName,omitempty"` - PodNumber int32 `protobuf:"varint,4,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` + NodeName string `protobuf:"bytes,3,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + PodNumber int32 `protobuf:"varint,4,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` ContainerErrors []*ContainerError `protobuf:"bytes,5,rep,name=containerErrors,proto3" json:"containerErrors,omitempty"` - KubernetesReason KubernetesReason `protobuf:"varint,6,opt,name=kubernetes_reason,json=kubernetesReason,proto3,enum=armadaevents.KubernetesReason" json:"kubernetesReason,omitempty"` + KubernetesReason KubernetesReason `protobuf:"varint,6,opt,name=kubernetes_reason,json=kubernetesReason,proto3,enum=armadaevents.KubernetesReason" json:"kubernetes_reason,omitempty"` DebugMessage string `protobuf:"bytes,7,opt,name=debugMessage,proto3" json:"debugMessage,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PodError) Reset() { *m = PodError{} } -func (m *PodError) String() string { return proto.CompactTextString(m) } -func (*PodError) ProtoMessage() {} -func (*PodError) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{28} -} -func (m *PodError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PodError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *PodError) Reset() { + *x = PodError{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PodError) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodError.Merge(m, src) -} -func (m *PodError) XXX_Size() int { - return m.Size() + +func (x *PodError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PodError) XXX_DiscardUnknown() { - xxx_messageInfo_PodError.DiscardUnknown(m) + +func (*PodError) ProtoMessage() {} + +func (x *PodError) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PodError proto.InternalMessageInfo +// Deprecated: Use PodError.ProtoReflect.Descriptor instead. +func (*PodError) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{28} +} -func (m *PodError) GetObjectMeta() *ObjectMeta { - if m != nil { - return m.ObjectMeta +func (x *PodError) GetObjectMeta() *ObjectMeta { + if x != nil { + return x.ObjectMeta } return nil } -func (m *PodError) GetMessage() string { - if m != nil { - return m.Message +func (x *PodError) GetMessage() string { + if x != nil { + return x.Message } return "" } -func (m *PodError) GetNodeName() string { - if m != nil { - return m.NodeName +func (x *PodError) GetNodeName() string { + if x != nil { + return x.NodeName } return "" } -func (m *PodError) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *PodError) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } -func (m *PodError) GetContainerErrors() []*ContainerError { - if m != nil { - return m.ContainerErrors +func (x *PodError) GetContainerErrors() []*ContainerError { + if x != nil { + return x.ContainerErrors } return nil } -func (m *PodError) GetKubernetesReason() KubernetesReason { - if m != nil { - return m.KubernetesReason +func (x *PodError) GetKubernetesReason() KubernetesReason { + if x != nil { + return x.KubernetesReason } return KubernetesReason_AppError } -func (m *PodError) GetDebugMessage() string { - if m != nil { - return m.DebugMessage +func (x *PodError) GetDebugMessage() string { + if x != nil { + return x.DebugMessage } return "" } type ContainerError struct { + state protoimpl.MessageState `protogen:"open.v1"` // this ObjectMeta identifies the container ObjectMeta *ObjectMeta `protobuf:"bytes,1,opt,name=objectMeta,proto3" json:"objectMeta,omitempty"` // Exit code of the application running in the container. - ExitCode int32 `protobuf:"varint,2,opt,name=exit_code,json=exitCode,proto3" json:"exitCode,omitempty"` + ExitCode int32 `protobuf:"varint,2,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` // Corresponds to v1.ContainerStateTerminated.Message Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // Corresponds to v1.ContainerStateTerminated.Reason Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` // Reason reported by Kubernetes. - KubernetesReason KubernetesReason `protobuf:"varint,9,opt,name=kubernetes_reason,json=kubernetesReason,proto3,enum=armadaevents.KubernetesReason" json:"kubernetesReason,omitempty"` + KubernetesReason KubernetesReason `protobuf:"varint,9,opt,name=kubernetes_reason,json=kubernetesReason,proto3,enum=armadaevents.KubernetesReason" json:"kubernetes_reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ContainerError) Reset() { *m = ContainerError{} } -func (m *ContainerError) String() string { return proto.CompactTextString(m) } -func (*ContainerError) ProtoMessage() {} -func (*ContainerError) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{29} -} -func (m *ContainerError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContainerError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContainerError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ContainerError) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContainerError.Merge(m, src) +func (x *ContainerError) Reset() { + *x = ContainerError{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ContainerError) XXX_Size() int { - return m.Size() + +func (x *ContainerError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContainerError) XXX_DiscardUnknown() { - xxx_messageInfo_ContainerError.DiscardUnknown(m) + +func (*ContainerError) ProtoMessage() {} + +func (x *ContainerError) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ContainerError proto.InternalMessageInfo +// Deprecated: Use ContainerError.ProtoReflect.Descriptor instead. +func (*ContainerError) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{29} +} -func (m *ContainerError) GetObjectMeta() *ObjectMeta { - if m != nil { - return m.ObjectMeta +func (x *ContainerError) GetObjectMeta() *ObjectMeta { + if x != nil { + return x.ObjectMeta } return nil } -func (m *ContainerError) GetExitCode() int32 { - if m != nil { - return m.ExitCode +func (x *ContainerError) GetExitCode() int32 { + if x != nil { + return x.ExitCode } return 0 } -func (m *ContainerError) GetMessage() string { - if m != nil { - return m.Message +func (x *ContainerError) GetMessage() string { + if x != nil { + return x.Message } return "" } -func (m *ContainerError) GetReason() string { - if m != nil { - return m.Reason +func (x *ContainerError) GetReason() string { + if x != nil { + return x.Reason } return "" } -func (m *ContainerError) GetKubernetesReason() KubernetesReason { - if m != nil { - return m.KubernetesReason +func (x *ContainerError) GetKubernetesReason() KubernetesReason { + if x != nil { + return x.KubernetesReason } return KubernetesReason_AppError } // Indicates that the pod could not be scheduled for some reason. type PodLeaseReturned struct { - ObjectMeta *ObjectMeta `protobuf:"bytes,1,opt,name=objectMeta,proto3" json:"objectMeta,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - PodNumber int32 `protobuf:"varint,3,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` - RunAttempted bool `protobuf:"varint,4,opt,name=run_attempted,json=runAttempted,proto3" json:"runAttempted,omitempty"` - DebugMessage string `protobuf:"bytes,5,opt,name=debugMessage,proto3" json:"debugMessage,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ObjectMeta *ObjectMeta `protobuf:"bytes,1,opt,name=objectMeta,proto3" json:"objectMeta,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + PodNumber int32 `protobuf:"varint,3,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` + RunAttempted bool `protobuf:"varint,4,opt,name=run_attempted,json=runAttempted,proto3" json:"run_attempted,omitempty"` + DebugMessage string `protobuf:"bytes,5,opt,name=debugMessage,proto3" json:"debugMessage,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PodLeaseReturned) Reset() { *m = PodLeaseReturned{} } -func (m *PodLeaseReturned) String() string { return proto.CompactTextString(m) } -func (*PodLeaseReturned) ProtoMessage() {} -func (*PodLeaseReturned) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{30} -} -func (m *PodLeaseReturned) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodLeaseReturned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PodLeaseReturned.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *PodLeaseReturned) Reset() { + *x = PodLeaseReturned{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PodLeaseReturned) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodLeaseReturned.Merge(m, src) -} -func (m *PodLeaseReturned) XXX_Size() int { - return m.Size() + +func (x *PodLeaseReturned) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PodLeaseReturned) XXX_DiscardUnknown() { - xxx_messageInfo_PodLeaseReturned.DiscardUnknown(m) + +func (*PodLeaseReturned) ProtoMessage() {} + +func (x *PodLeaseReturned) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PodLeaseReturned proto.InternalMessageInfo +// Deprecated: Use PodLeaseReturned.ProtoReflect.Descriptor instead. +func (*PodLeaseReturned) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{30} +} -func (m *PodLeaseReturned) GetObjectMeta() *ObjectMeta { - if m != nil { - return m.ObjectMeta +func (x *PodLeaseReturned) GetObjectMeta() *ObjectMeta { + if x != nil { + return x.ObjectMeta } return nil } -func (m *PodLeaseReturned) GetMessage() string { - if m != nil { - return m.Message +func (x *PodLeaseReturned) GetMessage() string { + if x != nil { + return x.Message } return "" } -func (m *PodLeaseReturned) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *PodLeaseReturned) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } -func (m *PodLeaseReturned) GetRunAttempted() bool { - if m != nil { - return m.RunAttempted +func (x *PodLeaseReturned) GetRunAttempted() bool { + if x != nil { + return x.RunAttempted } return false } -func (m *PodLeaseReturned) GetDebugMessage() string { - if m != nil { - return m.DebugMessage +func (x *PodLeaseReturned) GetDebugMessage() string { + if x != nil { + return x.DebugMessage } return "" } @@ -2886,662 +2578,662 @@ func (m *PodLeaseReturned) GetDebugMessage() string { // Indicates that the lease on the job that the pod was part of could not be renewed. // If this happens, the executor deletes the pod and generates a JobRunError with this message as the reason. type PodTerminated struct { + state protoimpl.MessageState `protogen:"open.v1"` // This ObjectMeta identifies the Pod. - ObjectMeta *ObjectMeta `protobuf:"bytes,1,opt,name=objectMeta,proto3" json:"objectMeta,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - NodeName string `protobuf:"bytes,3,opt,name=node_name,json=nodeName,proto3" json:"nodeName,omitempty"` - PodNumber int32 `protobuf:"varint,4,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` + ObjectMeta *ObjectMeta `protobuf:"bytes,1,opt,name=objectMeta,proto3" json:"objectMeta,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + NodeName string `protobuf:"bytes,3,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + PodNumber int32 `protobuf:"varint,4,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PodTerminated) Reset() { *m = PodTerminated{} } -func (m *PodTerminated) String() string { return proto.CompactTextString(m) } -func (*PodTerminated) ProtoMessage() {} -func (*PodTerminated) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{31} -} -func (m *PodTerminated) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodTerminated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PodTerminated.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *PodTerminated) Reset() { + *x = PodTerminated{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PodTerminated) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodTerminated.Merge(m, src) -} -func (m *PodTerminated) XXX_Size() int { - return m.Size() + +func (x *PodTerminated) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PodTerminated) XXX_DiscardUnknown() { - xxx_messageInfo_PodTerminated.DiscardUnknown(m) + +func (*PodTerminated) ProtoMessage() {} + +func (x *PodTerminated) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PodTerminated proto.InternalMessageInfo +// Deprecated: Use PodTerminated.ProtoReflect.Descriptor instead. +func (*PodTerminated) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{31} +} -func (m *PodTerminated) GetObjectMeta() *ObjectMeta { - if m != nil { - return m.ObjectMeta +func (x *PodTerminated) GetObjectMeta() *ObjectMeta { + if x != nil { + return x.ObjectMeta } return nil } -func (m *PodTerminated) GetMessage() string { - if m != nil { - return m.Message +func (x *PodTerminated) GetMessage() string { + if x != nil { + return x.Message } return "" } -func (m *PodTerminated) GetNodeName() string { - if m != nil { - return m.NodeName +func (x *PodTerminated) GetNodeName() string { + if x != nil { + return x.NodeName } return "" } -func (m *PodTerminated) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *PodTerminated) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } type ExecutorError struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ExecutorError) Reset() { *m = ExecutorError{} } -func (m *ExecutorError) String() string { return proto.CompactTextString(m) } -func (*ExecutorError) ProtoMessage() {} -func (*ExecutorError) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{32} -} -func (m *ExecutorError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExecutorError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExecutorError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ExecutorError) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutorError.Merge(m, src) +func (x *ExecutorError) Reset() { + *x = ExecutorError{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ExecutorError) XXX_Size() int { - return m.Size() + +func (x *ExecutorError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExecutorError) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutorError.DiscardUnknown(m) + +func (*ExecutorError) ProtoMessage() {} + +func (x *ExecutorError) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[32] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ExecutorError proto.InternalMessageInfo +// Deprecated: Use ExecutorError.ProtoReflect.Descriptor instead. +func (*ExecutorError) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{32} +} type PodUnschedulable struct { + state protoimpl.MessageState `protogen:"open.v1"` // this ObjectMeta identifies the Pod - ObjectMeta *ObjectMeta `protobuf:"bytes,1,opt,name=objectMeta,proto3" json:"objectMeta,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - NodeName string `protobuf:"bytes,3,opt,name=node_name,json=nodeName,proto3" json:"nodeName,omitempty"` - PodNumber int32 `protobuf:"varint,4,opt,name=pod_number,json=podNumber,proto3" json:"podNumber,omitempty"` + ObjectMeta *ObjectMeta `protobuf:"bytes,1,opt,name=objectMeta,proto3" json:"objectMeta,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + NodeName string `protobuf:"bytes,3,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + PodNumber int32 `protobuf:"varint,4,opt,name=pod_number,json=podNumber,proto3" json:"pod_number,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PodUnschedulable) Reset() { *m = PodUnschedulable{} } -func (m *PodUnschedulable) String() string { return proto.CompactTextString(m) } -func (*PodUnschedulable) ProtoMessage() {} -func (*PodUnschedulable) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{33} -} -func (m *PodUnschedulable) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodUnschedulable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PodUnschedulable.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *PodUnschedulable) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodUnschedulable.Merge(m, src) +func (x *PodUnschedulable) Reset() { + *x = PodUnschedulable{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PodUnschedulable) XXX_Size() int { - return m.Size() + +func (x *PodUnschedulable) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PodUnschedulable) XXX_DiscardUnknown() { - xxx_messageInfo_PodUnschedulable.DiscardUnknown(m) + +func (*PodUnschedulable) ProtoMessage() {} + +func (x *PodUnschedulable) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[33] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PodUnschedulable proto.InternalMessageInfo +// Deprecated: Use PodUnschedulable.ProtoReflect.Descriptor instead. +func (*PodUnschedulable) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{33} +} -func (m *PodUnschedulable) GetObjectMeta() *ObjectMeta { - if m != nil { - return m.ObjectMeta +func (x *PodUnschedulable) GetObjectMeta() *ObjectMeta { + if x != nil { + return x.ObjectMeta } return nil } -func (m *PodUnschedulable) GetMessage() string { - if m != nil { - return m.Message +func (x *PodUnschedulable) GetMessage() string { + if x != nil { + return x.Message } return "" } -func (m *PodUnschedulable) GetNodeName() string { - if m != nil { - return m.NodeName +func (x *PodUnschedulable) GetNodeName() string { + if x != nil { + return x.NodeName } return "" } -func (m *PodUnschedulable) GetPodNumber() int32 { - if m != nil { - return m.PodNumber +func (x *PodUnschedulable) GetPodNumber() int32 { + if x != nil { + return x.PodNumber } return 0 } type LeaseExpired struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *LeaseExpired) Reset() { *m = LeaseExpired{} } -func (m *LeaseExpired) String() string { return proto.CompactTextString(m) } -func (*LeaseExpired) ProtoMessage() {} -func (*LeaseExpired) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{34} -} -func (m *LeaseExpired) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LeaseExpired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LeaseExpired.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *LeaseExpired) Reset() { + *x = LeaseExpired{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LeaseExpired) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LeaseExpired) ProtoMessage() {} + +func (x *LeaseExpired) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[34] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *LeaseExpired) XXX_Merge(src proto.Message) { - xxx_messageInfo_LeaseExpired.Merge(m, src) -} -func (m *LeaseExpired) XXX_Size() int { - return m.Size() + +// Deprecated: Use LeaseExpired.ProtoReflect.Descriptor instead. +func (*LeaseExpired) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{34} } -func (m *LeaseExpired) XXX_DiscardUnknown() { - xxx_messageInfo_LeaseExpired.DiscardUnknown(m) + +type MaxRunsExceeded struct { + state protoimpl.MessageState `protogen:"open.v1"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var xxx_messageInfo_LeaseExpired proto.InternalMessageInfo +func (x *MaxRunsExceeded) Reset() { + *x = MaxRunsExceeded{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -type MaxRunsExceeded struct { - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` +func (x *MaxRunsExceeded) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MaxRunsExceeded) Reset() { *m = MaxRunsExceeded{} } -func (m *MaxRunsExceeded) String() string { return proto.CompactTextString(m) } -func (*MaxRunsExceeded) ProtoMessage() {} -func (*MaxRunsExceeded) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{35} -} -func (m *MaxRunsExceeded) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MaxRunsExceeded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MaxRunsExceeded.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*MaxRunsExceeded) ProtoMessage() {} + +func (x *MaxRunsExceeded) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[35] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MaxRunsExceeded) XXX_Merge(src proto.Message) { - xxx_messageInfo_MaxRunsExceeded.Merge(m, src) -} -func (m *MaxRunsExceeded) XXX_Size() int { - return m.Size() -} -func (m *MaxRunsExceeded) XXX_DiscardUnknown() { - xxx_messageInfo_MaxRunsExceeded.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MaxRunsExceeded proto.InternalMessageInfo +// Deprecated: Use MaxRunsExceeded.ProtoReflect.Descriptor instead. +func (*MaxRunsExceeded) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{35} +} -func (m *MaxRunsExceeded) GetMessage() string { - if m != nil { - return m.Message +func (x *MaxRunsExceeded) GetMessage() string { + if x != nil { + return x.Message } return "" } type JobRunPreemptedError struct { - Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunPreemptedError) Reset() { *m = JobRunPreemptedError{} } -func (m *JobRunPreemptedError) String() string { return proto.CompactTextString(m) } -func (*JobRunPreemptedError) ProtoMessage() {} -func (*JobRunPreemptedError) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{36} -} -func (m *JobRunPreemptedError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobRunPreemptedError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRunPreemptedError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobRunPreemptedError) Reset() { + *x = JobRunPreemptedError{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRunPreemptedError) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRunPreemptedError.Merge(m, src) -} -func (m *JobRunPreemptedError) XXX_Size() int { - return m.Size() + +func (x *JobRunPreemptedError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRunPreemptedError) XXX_DiscardUnknown() { - xxx_messageInfo_JobRunPreemptedError.DiscardUnknown(m) + +func (*JobRunPreemptedError) ProtoMessage() {} + +func (x *JobRunPreemptedError) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[36] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobRunPreemptedError proto.InternalMessageInfo +// Deprecated: Use JobRunPreemptedError.ProtoReflect.Descriptor instead. +func (*JobRunPreemptedError) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{36} +} -func (m *JobRunPreemptedError) GetReason() string { - if m != nil { - return m.Reason +func (x *JobRunPreemptedError) GetReason() string { + if x != nil { + return x.Reason } return "" } type GangJobUnschedulable struct { - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *GangJobUnschedulable) Reset() { *m = GangJobUnschedulable{} } -func (m *GangJobUnschedulable) String() string { return proto.CompactTextString(m) } -func (*GangJobUnschedulable) ProtoMessage() {} -func (*GangJobUnschedulable) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{37} -} -func (m *GangJobUnschedulable) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GangJobUnschedulable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GangJobUnschedulable.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GangJobUnschedulable) XXX_Merge(src proto.Message) { - xxx_messageInfo_GangJobUnschedulable.Merge(m, src) +func (x *GangJobUnschedulable) Reset() { + *x = GangJobUnschedulable{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *GangJobUnschedulable) XXX_Size() int { - return m.Size() + +func (x *GangJobUnschedulable) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GangJobUnschedulable) XXX_DiscardUnknown() { - xxx_messageInfo_GangJobUnschedulable.DiscardUnknown(m) + +func (*GangJobUnschedulable) ProtoMessage() {} + +func (x *GangJobUnschedulable) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[37] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GangJobUnschedulable proto.InternalMessageInfo +// Deprecated: Use GangJobUnschedulable.ProtoReflect.Descriptor instead. +func (*GangJobUnschedulable) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{37} +} -func (m *GangJobUnschedulable) GetMessage() string { - if m != nil { - return m.Message +func (x *GangJobUnschedulable) GetMessage() string { + if x != nil { + return x.Message } return "" } type JobRejected struct { - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRejected) Reset() { *m = JobRejected{} } -func (m *JobRejected) String() string { return proto.CompactTextString(m) } -func (*JobRejected) ProtoMessage() {} -func (*JobRejected) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{38} -} -func (m *JobRejected) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobRejected) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRejected.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobRejected) Reset() { + *x = JobRejected{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRejected) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRejected.Merge(m, src) -} -func (m *JobRejected) XXX_Size() int { - return m.Size() + +func (x *JobRejected) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRejected) XXX_DiscardUnknown() { - xxx_messageInfo_JobRejected.DiscardUnknown(m) + +func (*JobRejected) ProtoMessage() {} + +func (x *JobRejected) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[38] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobRejected proto.InternalMessageInfo +// Deprecated: Use JobRejected.ProtoReflect.Descriptor instead. +func (*JobRejected) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{38} +} -func (m *JobRejected) GetMessage() string { - if m != nil { - return m.Message +func (x *JobRejected) GetMessage() string { + if x != nil { + return x.Message } return "" } // Message to indicate that a JobRun has been preempted. type JobRunPreempted struct { - PreemptedJobId string `protobuf:"bytes,5,opt,name=preempted_job_id,json=preemptedJobId,proto3" json:"preemptedJobId,omitempty"` - PreemptedRunId string `protobuf:"bytes,6,opt,name=preempted_run_id,json=preemptedRunId,proto3" json:"preemptedRunId,omitempty"` - Reason string `protobuf:"bytes,7,opt,name=reason,proto3" json:"reason,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PreemptedJobId string `protobuf:"bytes,5,opt,name=preempted_job_id,json=preemptedJobId,proto3" json:"preempted_job_id,omitempty"` + PreemptedRunId string `protobuf:"bytes,6,opt,name=preempted_run_id,json=preemptedRunId,proto3" json:"preempted_run_id,omitempty"` + Reason string `protobuf:"bytes,7,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunPreempted) Reset() { *m = JobRunPreempted{} } -func (m *JobRunPreempted) String() string { return proto.CompactTextString(m) } -func (*JobRunPreempted) ProtoMessage() {} -func (*JobRunPreempted) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{39} -} -func (m *JobRunPreempted) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobRunPreempted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRunPreempted.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobRunPreempted) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRunPreempted.Merge(m, src) +func (x *JobRunPreempted) Reset() { + *x = JobRunPreempted{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRunPreempted) XXX_Size() int { - return m.Size() + +func (x *JobRunPreempted) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRunPreempted) XXX_DiscardUnknown() { - xxx_messageInfo_JobRunPreempted.DiscardUnknown(m) + +func (*JobRunPreempted) ProtoMessage() {} + +func (x *JobRunPreempted) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[39] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobRunPreempted proto.InternalMessageInfo +// Deprecated: Use JobRunPreempted.ProtoReflect.Descriptor instead. +func (*JobRunPreempted) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{39} +} -func (m *JobRunPreempted) GetPreemptedJobId() string { - if m != nil { - return m.PreemptedJobId +func (x *JobRunPreempted) GetPreemptedJobId() string { + if x != nil { + return x.PreemptedJobId } return "" } -func (m *JobRunPreempted) GetPreemptedRunId() string { - if m != nil { - return m.PreemptedRunId +func (x *JobRunPreempted) GetPreemptedRunId() string { + if x != nil { + return x.PreemptedRunId } return "" } -func (m *JobRunPreempted) GetReason() string { - if m != nil { - return m.Reason +func (x *JobRunPreempted) GetReason() string { + if x != nil { + return x.Reason } return "" } // Message used internally by Armada to see if messages can be propagated through a pulsar partition type PartitionMarker struct { + state protoimpl.MessageState `protogen:"open.v1"` // Group id identifies the group of partition markers, one per partition - GroupId string `protobuf:"bytes,3,opt,name=group_id,json=groupId,proto3" json:"groupId,omitempty"` + GroupId string `protobuf:"bytes,3,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // The pulsar partition on which this message was sent - Partition uint32 `protobuf:"varint,2,opt,name=partition,proto3" json:"partition,omitempty"` + Partition uint32 `protobuf:"varint,2,opt,name=partition,proto3" json:"partition,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PartitionMarker) Reset() { *m = PartitionMarker{} } -func (m *PartitionMarker) String() string { return proto.CompactTextString(m) } -func (*PartitionMarker) ProtoMessage() {} -func (*PartitionMarker) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{40} -} -func (m *PartitionMarker) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PartitionMarker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PartitionMarker.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *PartitionMarker) Reset() { + *x = PartitionMarker{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PartitionMarker) XXX_Merge(src proto.Message) { - xxx_messageInfo_PartitionMarker.Merge(m, src) -} -func (m *PartitionMarker) XXX_Size() int { - return m.Size() + +func (x *PartitionMarker) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PartitionMarker) XXX_DiscardUnknown() { - xxx_messageInfo_PartitionMarker.DiscardUnknown(m) + +func (*PartitionMarker) ProtoMessage() {} + +func (x *PartitionMarker) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[40] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PartitionMarker proto.InternalMessageInfo +// Deprecated: Use PartitionMarker.ProtoReflect.Descriptor instead. +func (*PartitionMarker) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{40} +} -func (m *PartitionMarker) GetGroupId() string { - if m != nil { - return m.GroupId +func (x *PartitionMarker) GetGroupId() string { + if x != nil { + return x.GroupId } return "" } -func (m *PartitionMarker) GetPartition() uint32 { - if m != nil { - return m.Partition +func (x *PartitionMarker) GetPartition() uint32 { + if x != nil { + return x.Partition } return 0 } // Indicates that the scheduler has requested for the job run to be pre-empted. type JobRunPreemptionRequested struct { - JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - RunId string `protobuf:"bytes,4,opt,name=run_id,json=runId,proto3" json:"runId,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + RunId string `protobuf:"bytes,4,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunPreemptionRequested) Reset() { *m = JobRunPreemptionRequested{} } -func (m *JobRunPreemptionRequested) String() string { return proto.CompactTextString(m) } -func (*JobRunPreemptionRequested) ProtoMessage() {} -func (*JobRunPreemptionRequested) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{41} -} -func (m *JobRunPreemptionRequested) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobRunPreemptionRequested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRunPreemptionRequested.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobRunPreemptionRequested) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRunPreemptionRequested.Merge(m, src) +func (x *JobRunPreemptionRequested) Reset() { + *x = JobRunPreemptionRequested{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRunPreemptionRequested) XXX_Size() int { - return m.Size() + +func (x *JobRunPreemptionRequested) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRunPreemptionRequested) XXX_DiscardUnknown() { - xxx_messageInfo_JobRunPreemptionRequested.DiscardUnknown(m) + +func (*JobRunPreemptionRequested) ProtoMessage() {} + +func (x *JobRunPreemptionRequested) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[41] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobRunPreemptionRequested proto.InternalMessageInfo +// Deprecated: Use JobRunPreemptionRequested.ProtoReflect.Descriptor instead. +func (*JobRunPreemptionRequested) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{41} +} -func (m *JobRunPreemptionRequested) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobRunPreemptionRequested) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobRunPreemptionRequested) GetRunId() string { - if m != nil { - return m.RunId +func (x *JobRunPreemptionRequested) GetRunId() string { + if x != nil { + return x.RunId } return "" } // Indicates that a user has requested for the job to be pre-empted. type JobPreemptionRequested struct { - JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobPreemptionRequested) Reset() { *m = JobPreemptionRequested{} } -func (m *JobPreemptionRequested) String() string { return proto.CompactTextString(m) } -func (*JobPreemptionRequested) ProtoMessage() {} -func (*JobPreemptionRequested) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{42} -} -func (m *JobPreemptionRequested) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobPreemptionRequested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobPreemptionRequested.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobPreemptionRequested) Reset() { + *x = JobPreemptionRequested{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobPreemptionRequested) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobPreemptionRequested.Merge(m, src) -} -func (m *JobPreemptionRequested) XXX_Size() int { - return m.Size() + +func (x *JobPreemptionRequested) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobPreemptionRequested) XXX_DiscardUnknown() { - xxx_messageInfo_JobPreemptionRequested.DiscardUnknown(m) + +func (*JobPreemptionRequested) ProtoMessage() {} + +func (x *JobPreemptionRequested) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[42] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobPreemptionRequested proto.InternalMessageInfo +// Deprecated: Use JobPreemptionRequested.ProtoReflect.Descriptor instead. +func (*JobPreemptionRequested) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{42} +} -func (m *JobPreemptionRequested) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobPreemptionRequested) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobPreemptionRequested) GetReason() string { - if m != nil { - return m.Reason +func (x *JobPreemptionRequested) GetReason() string { + if x != nil { + return x.Reason } return "" } // Indicates that the scheduler is happy with the job type JobValidated struct { - Pools []string `protobuf:"bytes,2,rep,name=pools,proto3" json:"pools,omitempty"` - JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Pools []string `protobuf:"bytes,2,rep,name=pools,proto3" json:"pools,omitempty"` + JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobValidated) Reset() { *m = JobValidated{} } -func (m *JobValidated) String() string { return proto.CompactTextString(m) } -func (*JobValidated) ProtoMessage() {} -func (*JobValidated) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{43} -} -func (m *JobValidated) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobValidated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobValidated.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *JobValidated) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobValidated.Merge(m, src) +func (x *JobValidated) Reset() { + *x = JobValidated{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobValidated) XXX_Size() int { - return m.Size() + +func (x *JobValidated) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobValidated) XXX_DiscardUnknown() { - xxx_messageInfo_JobValidated.DiscardUnknown(m) + +func (*JobValidated) ProtoMessage() {} + +func (x *JobValidated) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[43] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobValidated proto.InternalMessageInfo +// Deprecated: Use JobValidated.ProtoReflect.Descriptor instead. +func (*JobValidated) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{43} +} -func (m *JobValidated) GetPools() []string { - if m != nil { - return m.Pools +func (x *JobValidated) GetPools() []string { + if x != nil { + return x.Pools } return nil } -func (m *JobValidated) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobValidated) GetJobId() string { + if x != nil { + return x.JobId } return "" } @@ -3549,13551 +3241,1381 @@ func (m *JobValidated) GetJobId() string { // Generated by the scheduler when a job is cancelled, all active job runs are also cancelled // One such message is generated per job run that was cancelled. type JobRunCancelled struct { - JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"` - RunId string `protobuf:"bytes,4,opt,name=run_id,json=runId,proto3" json:"runId,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + RunId string `protobuf:"bytes,4,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunCancelled) Reset() { *m = JobRunCancelled{} } -func (m *JobRunCancelled) String() string { return proto.CompactTextString(m) } -func (*JobRunCancelled) ProtoMessage() {} -func (*JobRunCancelled) Descriptor() ([]byte, []int) { - return fileDescriptor_6aab92ca59e015f8, []int{44} -} -func (m *JobRunCancelled) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobRunCancelled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRunCancelled.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *JobRunCancelled) Reset() { + *x = JobRunCancelled{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRunCancelled) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRunCancelled.Merge(m, src) -} -func (m *JobRunCancelled) XXX_Size() int { - return m.Size() + +func (x *JobRunCancelled) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRunCancelled) XXX_DiscardUnknown() { - xxx_messageInfo_JobRunCancelled.DiscardUnknown(m) + +func (*JobRunCancelled) ProtoMessage() {} + +func (x *JobRunCancelled) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[44] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_JobRunCancelled proto.InternalMessageInfo +// Deprecated: Use JobRunCancelled.ProtoReflect.Descriptor instead. +func (*JobRunCancelled) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{44} +} -func (m *JobRunCancelled) GetJobId() string { - if m != nil { - return m.JobId +func (x *JobRunCancelled) GetJobId() string { + if x != nil { + return x.JobId } return "" } -func (m *JobRunCancelled) GetRunId() string { - if m != nil { - return m.RunId +func (x *JobRunCancelled) GetRunId() string { + if x != nil { + return x.RunId } return "" } -func init() { - proto.RegisterEnum("armadaevents.JobState", JobState_name, JobState_value) - proto.RegisterEnum("armadaevents.KubernetesReason", KubernetesReason_name, KubernetesReason_value) - proto.RegisterType((*EventSequence)(nil), "armadaevents.EventSequence") - proto.RegisterType((*EventSequence_Event)(nil), "armadaevents.EventSequence.Event") - proto.RegisterType((*ResourceUtilisation)(nil), "armadaevents.ResourceUtilisation") - proto.RegisterMapType((map[string]*resource.Quantity)(nil), "armadaevents.ResourceUtilisation.AvgResourcesForPeriodEntry") - proto.RegisterMapType((map[string]*resource.Quantity)(nil), "armadaevents.ResourceUtilisation.MaxResourcesForPeriodEntry") - proto.RegisterMapType((map[string]*resource.Quantity)(nil), "armadaevents.ResourceUtilisation.TotalCumulativeUsageEntry") - proto.RegisterType((*SubmitJob)(nil), "armadaevents.SubmitJob") - proto.RegisterType((*KubernetesMainObject)(nil), "armadaevents.KubernetesMainObject") - proto.RegisterType((*KubernetesObject)(nil), "armadaevents.KubernetesObject") - proto.RegisterType((*ObjectMeta)(nil), "armadaevents.ObjectMeta") - proto.RegisterMapType((map[string]string)(nil), "armadaevents.ObjectMeta.AnnotationsEntry") - proto.RegisterMapType((map[string]string)(nil), "armadaevents.ObjectMeta.LabelsEntry") - proto.RegisterType((*PodSpecWithAvoidList)(nil), "armadaevents.PodSpecWithAvoidList") - proto.RegisterType((*ReprioritiseJob)(nil), "armadaevents.ReprioritiseJob") - proto.RegisterType((*JobRequeued)(nil), "armadaevents.JobRequeued") - proto.RegisterType((*ReprioritiseJobSet)(nil), "armadaevents.ReprioritiseJobSet") - proto.RegisterType((*ReprioritisedJob)(nil), "armadaevents.ReprioritisedJob") - proto.RegisterType((*CancelJob)(nil), "armadaevents.CancelJob") - proto.RegisterType((*JobSetFilter)(nil), "armadaevents.JobSetFilter") - proto.RegisterType((*CancelJobSet)(nil), "armadaevents.CancelJobSet") - proto.RegisterType((*CancelledJob)(nil), "armadaevents.CancelledJob") - proto.RegisterType((*JobSucceeded)(nil), "armadaevents.JobSucceeded") - proto.RegisterType((*JobRunLeased)(nil), "armadaevents.JobRunLeased") - proto.RegisterType((*JobRunAssigned)(nil), "armadaevents.JobRunAssigned") - proto.RegisterType((*JobRunRunning)(nil), "armadaevents.JobRunRunning") - proto.RegisterType((*KubernetesResourceInfo)(nil), "armadaevents.KubernetesResourceInfo") - proto.RegisterType((*PodInfo)(nil), "armadaevents.PodInfo") - proto.RegisterType((*IngressInfo)(nil), "armadaevents.IngressInfo") - proto.RegisterMapType((map[int32]string)(nil), "armadaevents.IngressInfo.IngressAddressesEntry") - proto.RegisterType((*StandaloneIngressInfo)(nil), "armadaevents.StandaloneIngressInfo") - proto.RegisterMapType((map[int32]string)(nil), "armadaevents.StandaloneIngressInfo.IngressAddressesEntry") - proto.RegisterType((*JobRunSucceeded)(nil), "armadaevents.JobRunSucceeded") - proto.RegisterType((*JobErrors)(nil), "armadaevents.JobErrors") - proto.RegisterType((*JobRunErrors)(nil), "armadaevents.JobRunErrors") - proto.RegisterType((*Error)(nil), "armadaevents.Error") - proto.RegisterType((*KubernetesError)(nil), "armadaevents.KubernetesError") - proto.RegisterType((*PodError)(nil), "armadaevents.PodError") - proto.RegisterType((*ContainerError)(nil), "armadaevents.ContainerError") - proto.RegisterType((*PodLeaseReturned)(nil), "armadaevents.PodLeaseReturned") - proto.RegisterType((*PodTerminated)(nil), "armadaevents.PodTerminated") - proto.RegisterType((*ExecutorError)(nil), "armadaevents.ExecutorError") - proto.RegisterType((*PodUnschedulable)(nil), "armadaevents.PodUnschedulable") - proto.RegisterType((*LeaseExpired)(nil), "armadaevents.LeaseExpired") - proto.RegisterType((*MaxRunsExceeded)(nil), "armadaevents.MaxRunsExceeded") - proto.RegisterType((*JobRunPreemptedError)(nil), "armadaevents.JobRunPreemptedError") - proto.RegisterType((*GangJobUnschedulable)(nil), "armadaevents.GangJobUnschedulable") - proto.RegisterType((*JobRejected)(nil), "armadaevents.JobRejected") - proto.RegisterType((*JobRunPreempted)(nil), "armadaevents.JobRunPreempted") - proto.RegisterType((*PartitionMarker)(nil), "armadaevents.PartitionMarker") - proto.RegisterType((*JobRunPreemptionRequested)(nil), "armadaevents.JobRunPreemptionRequested") - proto.RegisterType((*JobPreemptionRequested)(nil), "armadaevents.JobPreemptionRequested") - proto.RegisterType((*JobValidated)(nil), "armadaevents.JobValidated") - proto.RegisterType((*JobRunCancelled)(nil), "armadaevents.JobRunCancelled") -} - -func init() { proto.RegisterFile("pkg/armadaevents/events.proto", fileDescriptor_6aab92ca59e015f8) } - -var fileDescriptor_6aab92ca59e015f8 = []byte{ - // 3668 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x3b, 0x4d, 0x6f, 0x1b, 0x47, - 0x96, 0x6e, 0x7e, 0xf3, 0x51, 0x1f, 0x74, 0xe9, 0xc3, 0xb4, 0x12, 0x8b, 0x32, 0x9d, 0x4d, 0xec, - 0x20, 0xa1, 0x1c, 0x67, 0xb3, 0xc8, 0xc7, 0x22, 0x81, 0x68, 0x2b, 0xb6, 0x15, 0xcb, 0x56, 0x28, - 0x2b, 0xeb, 0x5d, 0x04, 0x60, 0x9a, 0xec, 0x12, 0xd5, 0x16, 0xd9, 0xdd, 0xe9, 0x0f, 0x45, 0x02, - 0x02, 0x6c, 0xb2, 0xc8, 0xee, 0x39, 0x97, 0x05, 0x16, 0xb9, 0x6c, 0x2e, 0x7b, 0xd8, 0x05, 0xf6, - 0xb2, 0xc0, 0xce, 0x75, 0xae, 0x73, 0x18, 0x0c, 0x72, 0x19, 0x60, 0x0e, 0x13, 0x62, 0x90, 0x60, - 0x2e, 0x3c, 0xcc, 0x6f, 0x18, 0xd4, 0x47, 0x77, 0x57, 0x35, 0x8b, 0x16, 0xe5, 0x58, 0x86, 0x27, - 0x73, 0x92, 0xfa, 0x7d, 0x56, 0xbf, 0xf7, 0xea, 0xf5, 0x7b, 0xaf, 0x8a, 0x70, 0xc1, 0xd9, 0xef, - 0xae, 0xea, 0x6e, 0x5f, 0x37, 0x74, 0x7c, 0x80, 0x2d, 0xdf, 0x5b, 0x65, 0x7f, 0xea, 0x8e, 0x6b, - 0xfb, 0x36, 0x9a, 0x12, 0x51, 0x4b, 0xb5, 0xfd, 0x37, 0xbd, 0xba, 0x69, 0xaf, 0xea, 0x8e, 0xb9, - 0xda, 0xb1, 0x5d, 0xbc, 0x7a, 0xf0, 0xda, 0x6a, 0x17, 0x5b, 0xd8, 0xd5, 0x7d, 0x6c, 0x30, 0x8e, - 0xa5, 0xcb, 0x02, 0x8d, 0x85, 0xfd, 0xcf, 0x6c, 0x77, 0xdf, 0xb4, 0xba, 0x2a, 0xca, 0x6a, 0xd7, - 0xb6, 0xbb, 0x3d, 0xbc, 0x4a, 0x9f, 0xda, 0xc1, 0xee, 0xaa, 0x6f, 0xf6, 0xb1, 0xe7, 0xeb, 0x7d, - 0x87, 0x13, 0xfc, 0x6d, 0x2c, 0xaa, 0xaf, 0x77, 0xf6, 0x4c, 0x0b, 0xbb, 0x47, 0xab, 0x74, 0xbd, - 0x8e, 0xb9, 0xea, 0x62, 0xcf, 0x0e, 0xdc, 0x0e, 0x1e, 0x11, 0xfb, 0xb6, 0x69, 0xf9, 0xd8, 0xb5, - 0xf4, 0xde, 0xaa, 0xd7, 0xd9, 0xc3, 0x46, 0xd0, 0xc3, 0x6e, 0xfc, 0x9f, 0xdd, 0x7e, 0x88, 0x3b, - 0xbe, 0x37, 0x02, 0x60, 0xbc, 0xb5, 0xef, 0x17, 0x60, 0x7a, 0x9d, 0xbc, 0xeb, 0x36, 0xfe, 0x34, - 0xc0, 0x56, 0x07, 0xa3, 0x2b, 0x90, 0xfd, 0x34, 0xc0, 0x01, 0xae, 0x68, 0x2b, 0xda, 0xe5, 0x62, - 0x63, 0x6e, 0x38, 0xa8, 0xce, 0x52, 0xc0, 0x2b, 0x76, 0xdf, 0xf4, 0x71, 0xdf, 0xf1, 0x8f, 0x9a, - 0x8c, 0x02, 0xbd, 0x0d, 0x53, 0x0f, 0xed, 0x76, 0xcb, 0xc3, 0x7e, 0xcb, 0xd2, 0xfb, 0xb8, 0x92, - 0xa2, 0x1c, 0x95, 0xe1, 0xa0, 0x3a, 0xff, 0xd0, 0x6e, 0x6f, 0x63, 0xff, 0xae, 0xde, 0x17, 0xd9, - 0x20, 0x86, 0xa2, 0x57, 0x21, 0x1f, 0x78, 0xd8, 0x6d, 0x99, 0x46, 0x25, 0x4d, 0xd9, 0xe6, 0x87, - 0x83, 0x6a, 0x99, 0x80, 0x6e, 0x1b, 0x02, 0x4b, 0x8e, 0x41, 0xd0, 0x2b, 0x90, 0xeb, 0xba, 0x76, - 0xe0, 0x78, 0x95, 0xcc, 0x4a, 0x3a, 0xa4, 0x66, 0x10, 0x91, 0x9a, 0x41, 0xd0, 0x3d, 0xc8, 0x31, - 0x07, 0x56, 0xb2, 0x2b, 0xe9, 0xcb, 0xa5, 0x6b, 0x17, 0xeb, 0xa2, 0x57, 0xeb, 0xd2, 0x0b, 0xb3, - 0x27, 0x26, 0x90, 0xe1, 0x45, 0x81, 0x3c, 0x0e, 0x7e, 0x31, 0x07, 0x59, 0x4a, 0x87, 0x3e, 0x80, - 0x7c, 0xc7, 0xc5, 0xc4, 0xfa, 0x15, 0xb4, 0xa2, 0x5d, 0x2e, 0x5d, 0x5b, 0xaa, 0x33, 0xaf, 0xd6, - 0x43, 0xaf, 0xd6, 0xef, 0x87, 0x5e, 0x6d, 0x2c, 0x0c, 0x07, 0xd5, 0xb3, 0x9c, 0x5c, 0x90, 0x1a, - 0x4a, 0x40, 0x5b, 0x50, 0xf4, 0x82, 0x76, 0xdf, 0xf4, 0x37, 0xec, 0x36, 0xb5, 0x77, 0xe9, 0xda, - 0x39, 0x79, 0xa9, 0xdb, 0x21, 0xba, 0x71, 0x6e, 0x38, 0xa8, 0xce, 0x45, 0xd4, 0xb1, 0xb4, 0x5b, - 0x67, 0x9a, 0xb1, 0x10, 0xb4, 0x07, 0xb3, 0x2e, 0x76, 0x5c, 0xd3, 0x76, 0x4d, 0xdf, 0xf4, 0x30, - 0x91, 0x9b, 0xa2, 0x72, 0x2f, 0xc8, 0x72, 0x9b, 0x32, 0x51, 0xe3, 0xc2, 0x70, 0x50, 0x3d, 0x9f, - 0xe0, 0x94, 0x74, 0x24, 0xc5, 0x22, 0x1f, 0x50, 0x02, 0xb4, 0x8d, 0x7d, 0xea, 0xcb, 0xd2, 0xb5, - 0x95, 0x47, 0x2a, 0xdb, 0xc6, 0x7e, 0x63, 0x65, 0x38, 0xa8, 0x3e, 0x3f, 0xca, 0x2f, 0xa9, 0x54, - 0xc8, 0x47, 0x3d, 0x28, 0x8b, 0x50, 0x83, 0xbc, 0x60, 0x86, 0xea, 0x5c, 0x1e, 0xaf, 0x93, 0x50, - 0x35, 0x96, 0x87, 0x83, 0xea, 0x52, 0x92, 0x57, 0xd2, 0x37, 0x22, 0x99, 0xf8, 0xa7, 0xa3, 0x5b, - 0x1d, 0xdc, 0x23, 0x6a, 0xb2, 0x2a, 0xff, 0x5c, 0x0f, 0xd1, 0xcc, 0x3f, 0x11, 0xb5, 0xec, 0x9f, - 0x08, 0x8c, 0x3e, 0x86, 0xa9, 0xe8, 0x81, 0xd8, 0x2b, 0xc7, 0x63, 0x48, 0x2d, 0x94, 0x58, 0x6a, - 0x69, 0x38, 0xa8, 0x2e, 0x8a, 0x3c, 0x92, 0x68, 0x49, 0x5a, 0x2c, 0xbd, 0xc7, 0x2c, 0x93, 0x1f, - 0x2f, 0x9d, 0x51, 0x88, 0xd2, 0x7b, 0xa3, 0x16, 0x91, 0xa4, 0x11, 0xe9, 0x64, 0x03, 0x07, 0x9d, - 0x0e, 0xc6, 0x06, 0x36, 0x2a, 0x05, 0x95, 0xf4, 0x0d, 0x81, 0x82, 0x49, 0x17, 0x79, 0x64, 0xe9, - 0x22, 0x86, 0xd8, 0xfa, 0xa1, 0xdd, 0x5e, 0x77, 0x5d, 0xdb, 0xf5, 0x2a, 0x45, 0x95, 0xad, 0x37, - 0x42, 0x34, 0xb3, 0x75, 0x44, 0x2d, 0xdb, 0x3a, 0x02, 0xf3, 0xf5, 0x36, 0x03, 0xeb, 0x0e, 0xd6, - 0x3d, 0x6c, 0x54, 0x60, 0xcc, 0x7a, 0x23, 0x8a, 0x68, 0xbd, 0x11, 0x64, 0x64, 0xbd, 0x11, 0x06, - 0x19, 0x30, 0xc3, 0x9e, 0xd7, 0x3c, 0xcf, 0xec, 0x5a, 0xd8, 0xa8, 0x94, 0xa8, 0xfc, 0xe7, 0x55, - 0xf2, 0x43, 0x9a, 0xc6, 0xf3, 0xc3, 0x41, 0xb5, 0x22, 0xf3, 0x49, 0x3a, 0x12, 0x32, 0xd1, 0x27, - 0x30, 0xcd, 0x20, 0xcd, 0xc0, 0xb2, 0x4c, 0xab, 0x5b, 0x99, 0xa2, 0x4a, 0x9e, 0x53, 0x29, 0xe1, - 0x24, 0x8d, 0xe7, 0x86, 0x83, 0xea, 0x39, 0x89, 0x4b, 0x52, 0x21, 0x0b, 0x24, 0x19, 0x83, 0x01, - 0x62, 0xc7, 0x4e, 0xab, 0x32, 0xc6, 0x86, 0x4c, 0xc4, 0x32, 0x46, 0x82, 0x53, 0xce, 0x18, 0x09, - 0x64, 0xec, 0x0f, 0xee, 0xe4, 0x99, 0xf1, 0xfe, 0xe0, 0x7e, 0x16, 0xfc, 0xa1, 0x70, 0xb5, 0x24, - 0x0d, 0x7d, 0xa1, 0xc1, 0x82, 0xe7, 0xeb, 0x96, 0xa1, 0xf7, 0x6c, 0x0b, 0xdf, 0xb6, 0xba, 0x2e, - 0xf6, 0xbc, 0xdb, 0xd6, 0xae, 0x5d, 0x29, 0x53, 0x3d, 0x97, 0x12, 0x89, 0x55, 0x45, 0xda, 0xb8, - 0x34, 0x1c, 0x54, 0xab, 0x4a, 0x29, 0x92, 0x66, 0xb5, 0x22, 0x74, 0x08, 0x73, 0xe1, 0x47, 0x7a, - 0xc7, 0x37, 0x7b, 0xa6, 0xa7, 0xfb, 0xa6, 0x6d, 0x55, 0xce, 0x52, 0xfd, 0x17, 0x93, 0xf9, 0x69, - 0x84, 0xb0, 0x71, 0x71, 0x38, 0xa8, 0x5e, 0x50, 0x48, 0x90, 0x74, 0xab, 0x54, 0xc4, 0x4e, 0xdc, - 0x72, 0x31, 0x21, 0xc4, 0x46, 0x65, 0x6e, 0xbc, 0x13, 0x23, 0x22, 0xd1, 0x89, 0x11, 0x50, 0xe5, - 0xc4, 0x08, 0x49, 0x34, 0x39, 0xba, 0xeb, 0x9b, 0x44, 0xed, 0xa6, 0xee, 0xee, 0x63, 0xb7, 0x32, - 0xaf, 0xd2, 0xb4, 0x25, 0x13, 0x31, 0x4d, 0x09, 0x4e, 0x59, 0x53, 0x02, 0x89, 0xbe, 0xd6, 0x40, - 0x5e, 0x9a, 0x69, 0x5b, 0x4d, 0xf2, 0xd1, 0xf6, 0xc8, 0xeb, 0x2d, 0x50, 0xa5, 0x2f, 0x3d, 0xe2, - 0xf5, 0x44, 0xf2, 0xc6, 0x4b, 0xc3, 0x41, 0xf5, 0xd2, 0x58, 0x69, 0xd2, 0x42, 0xc6, 0x2b, 0x45, - 0x0f, 0xa0, 0x44, 0x90, 0x98, 0x96, 0x3f, 0x46, 0x65, 0x91, 0xae, 0xe1, 0xfc, 0xe8, 0x1a, 0x38, - 0x41, 0xe3, 0xfc, 0x70, 0x50, 0x5d, 0x10, 0x38, 0x24, 0x3d, 0xa2, 0x28, 0xf4, 0x95, 0x06, 0x24, - 0xd0, 0x55, 0x6f, 0x7a, 0x8e, 0x6a, 0x79, 0x61, 0x44, 0x8b, 0xea, 0x35, 0x5f, 0x18, 0x0e, 0xaa, - 0x2b, 0x6a, 0x39, 0x92, 0xee, 0x31, 0xba, 0xe2, 0x38, 0x8a, 0x3e, 0x12, 0x95, 0xca, 0xf8, 0x38, - 0x8a, 0x88, 0xc4, 0x38, 0x8a, 0x80, 0xaa, 0x38, 0x8a, 0x90, 0x3c, 0x19, 0x7c, 0xa4, 0xf7, 0x4c, - 0x83, 0x16, 0x53, 0xe7, 0xc7, 0x24, 0x83, 0x88, 0x22, 0x4a, 0x06, 0x11, 0x64, 0x24, 0x19, 0xc4, - 0xb4, 0x79, 0xc8, 0x52, 0x11, 0xb5, 0x6f, 0x8a, 0x30, 0xa7, 0xd8, 0x6a, 0x08, 0xc3, 0x74, 0xb8, - 0x8f, 0x5a, 0x26, 0x49, 0x12, 0x69, 0x95, 0x95, 0x3f, 0x08, 0xda, 0xd8, 0xb5, 0xb0, 0x8f, 0xbd, - 0x50, 0x06, 0xcd, 0x12, 0x74, 0x25, 0xae, 0x00, 0x11, 0x6a, 0xbb, 0x29, 0x11, 0x8e, 0xbe, 0xd1, - 0xa0, 0xd2, 0xd7, 0x0f, 0x5b, 0x21, 0xd0, 0x6b, 0xed, 0xda, 0x6e, 0xcb, 0xc1, 0xae, 0x69, 0x1b, - 0xb4, 0x92, 0x2d, 0x5d, 0xfb, 0xfb, 0x63, 0xf3, 0x42, 0x7d, 0x53, 0x3f, 0x0c, 0xc1, 0xde, 0xfb, - 0xb6, 0xbb, 0x45, 0xd9, 0xd7, 0x2d, 0xdf, 0x3d, 0x62, 0x09, 0xab, 0xaf, 0xc2, 0x0b, 0x6b, 0x5a, - 0x50, 0x12, 0xa0, 0x7f, 0xd7, 0x60, 0xd1, 0xb7, 0x7d, 0xbd, 0xd7, 0xea, 0x04, 0xfd, 0xa0, 0xa7, - 0xfb, 0xe6, 0x01, 0x6e, 0x05, 0x9e, 0xde, 0xc5, 0xbc, 0x6c, 0x7e, 0xe7, 0xf8, 0xa5, 0xdd, 0x27, - 0xfc, 0xd7, 0x23, 0xf6, 0x1d, 0xc2, 0xcd, 0x56, 0x56, 0x1b, 0x0e, 0xaa, 0xcb, 0xbe, 0x02, 0x2d, - 0x2c, 0x6c, 0x5e, 0x85, 0x47, 0x2f, 0x43, 0x8e, 0xb4, 0x15, 0xa6, 0x41, 0xab, 0x23, 0xde, 0x82, - 0x3c, 0xb4, 0xdb, 0x52, 0x63, 0x90, 0xa5, 0x00, 0x42, 0xeb, 0x06, 0x16, 0xa1, 0xcd, 0xc7, 0xb4, - 0x6e, 0x60, 0xc9, 0xb4, 0x14, 0x40, 0x9d, 0xa1, 0x1f, 0x74, 0xd5, 0xce, 0x28, 0x4c, 0xea, 0x8c, - 0xb5, 0x83, 0xee, 0x23, 0x9d, 0xa1, 0xab, 0xf0, 0xa2, 0x33, 0x94, 0x04, 0x4b, 0xdf, 0x6a, 0xb0, - 0x34, 0xde, 0xcf, 0xe8, 0x12, 0xa4, 0xf7, 0xf1, 0x11, 0xef, 0xc9, 0xce, 0x0e, 0x07, 0xd5, 0xe9, - 0x7d, 0x7c, 0x24, 0x48, 0x25, 0x58, 0xf4, 0x8f, 0x90, 0x3d, 0xd0, 0x7b, 0x01, 0xe6, 0x25, 0x7f, - 0xbd, 0xce, 0xda, 0xc9, 0xba, 0xd8, 0x4e, 0xd6, 0x9d, 0xfd, 0x2e, 0x01, 0xd4, 0x43, 0x2b, 0xd4, - 0x3f, 0x0c, 0x74, 0xcb, 0x37, 0xfd, 0x23, 0x66, 0x3b, 0x2a, 0x40, 0xb4, 0x1d, 0x05, 0xbc, 0x9d, - 0x7a, 0x53, 0x5b, 0xfa, 0x4f, 0x0d, 0xce, 0x8f, 0xf5, 0xf7, 0x33, 0xb1, 0x42, 0x62, 0xc4, 0xf1, - 0xfe, 0x79, 0x16, 0x96, 0xb8, 0x91, 0x29, 0x68, 0xe5, 0xd4, 0x46, 0xa6, 0x90, 0x2a, 0xa7, 0x6b, - 0xff, 0x97, 0x83, 0x62, 0xd4, 0xe0, 0xa1, 0x5b, 0x50, 0x36, 0xb0, 0x11, 0x38, 0x3d, 0xb3, 0x43, - 0x23, 0x8d, 0x04, 0x35, 0xeb, 0xa8, 0x69, 0x76, 0x95, 0x70, 0x52, 0x78, 0xcf, 0x26, 0x50, 0xe8, - 0x1a, 0x14, 0x78, 0x23, 0x73, 0x44, 0xf3, 0xda, 0x74, 0x63, 0x71, 0x38, 0xa8, 0xa2, 0x10, 0x26, - 0xb0, 0x46, 0x74, 0xa8, 0x09, 0xc0, 0x26, 0x03, 0x9b, 0xd8, 0xd7, 0x79, 0x4b, 0x55, 0x91, 0x77, - 0xc3, 0xbd, 0x08, 0xcf, 0x7a, 0xfc, 0x98, 0x5e, 0xec, 0xf1, 0x63, 0x28, 0xfa, 0x18, 0xa0, 0xaf, - 0x9b, 0x16, 0xe3, 0xe3, 0xfd, 0x53, 0x6d, 0x5c, 0x86, 0xdd, 0x8c, 0x28, 0x99, 0xf4, 0x98, 0x53, - 0x94, 0x1e, 0x43, 0xd1, 0x3d, 0xc8, 0xf3, 0x59, 0x46, 0x25, 0x47, 0x37, 0xef, 0xf2, 0x38, 0xd1, - 0x5c, 0x2c, 0xed, 0xc6, 0x39, 0x8b, 0xd8, 0x8d, 0x73, 0x10, 0x31, 0x5b, 0xcf, 0xdc, 0xc5, 0xbe, - 0xd9, 0xc7, 0x34, 0x9b, 0x70, 0xb3, 0x85, 0x30, 0xd1, 0x6c, 0x21, 0x0c, 0xbd, 0x09, 0xa0, 0xfb, - 0x9b, 0xb6, 0xe7, 0xdf, 0xb3, 0x3a, 0x98, 0x76, 0x44, 0x05, 0xb6, 0xfc, 0x18, 0x2a, 0x2e, 0x3f, - 0x86, 0xa2, 0x77, 0xa0, 0xe4, 0xf0, 0x2f, 0x70, 0xbb, 0x87, 0x69, 0xc7, 0x53, 0x60, 0x05, 0x83, - 0x00, 0x16, 0x78, 0x45, 0x6a, 0x74, 0x13, 0x66, 0x3b, 0xb6, 0xd5, 0x09, 0x5c, 0x17, 0x5b, 0x9d, - 0xa3, 0x6d, 0x7d, 0x17, 0xd3, 0xee, 0xa6, 0xc0, 0x42, 0x25, 0x81, 0x12, 0x43, 0x25, 0x81, 0x42, - 0x6f, 0x40, 0x31, 0x9a, 0x0c, 0xd1, 0x06, 0xa6, 0xc8, 0x07, 0x0d, 0x21, 0x50, 0x60, 0x8e, 0x29, - 0xc9, 0xe2, 0x4d, 0xef, 0x06, 0x0f, 0x3a, 0x4c, 0x9b, 0x12, 0xbe, 0x78, 0x01, 0x2c, 0x2e, 0x5e, - 0x00, 0x0b, 0xf9, 0x7d, 0xe6, 0xb8, 0xfc, 0x1e, 0x6d, 0x97, 0xe9, 0xf2, 0xcc, 0x46, 0xa6, 0x30, - 0x5b, 0x2e, 0xd7, 0x7e, 0xad, 0xc1, 0xbc, 0x2a, 0x6a, 0x12, 0x11, 0xac, 0x3d, 0x91, 0x08, 0xfe, - 0x08, 0x0a, 0x8e, 0x6d, 0xb4, 0x3c, 0x07, 0x77, 0x78, 0x3e, 0x48, 0xc4, 0xef, 0x96, 0x6d, 0x6c, - 0x3b, 0xb8, 0xf3, 0x0f, 0xa6, 0xbf, 0xb7, 0x76, 0x60, 0x9b, 0xc6, 0x1d, 0xd3, 0xe3, 0x81, 0xe6, - 0x30, 0x8c, 0x54, 0xa4, 0xe4, 0x39, 0xb0, 0x51, 0x80, 0x1c, 0xd3, 0x52, 0xfb, 0x4d, 0x1a, 0xca, - 0xc9, 0x48, 0xfd, 0x4b, 0x7a, 0x15, 0xf4, 0x00, 0xf2, 0x26, 0xeb, 0x81, 0x78, 0x0d, 0xf5, 0x37, - 0x42, 0xc6, 0xac, 0xc7, 0x03, 0xd1, 0xfa, 0xc1, 0x6b, 0x75, 0xde, 0x2c, 0x51, 0x13, 0x50, 0xc9, - 0x9c, 0x53, 0x96, 0xcc, 0x81, 0xa8, 0x09, 0x79, 0x0f, 0xbb, 0x07, 0x66, 0x07, 0xf3, 0x7c, 0x54, - 0x15, 0x25, 0x77, 0x6c, 0x17, 0x13, 0x99, 0xdb, 0x8c, 0x24, 0x96, 0xc9, 0x79, 0x64, 0x99, 0x1c, - 0x88, 0x3e, 0x82, 0x62, 0xc7, 0xb6, 0x76, 0xcd, 0xee, 0xa6, 0xee, 0xf0, 0x8c, 0x74, 0x41, 0x25, - 0xf5, 0x7a, 0x48, 0xc4, 0xe7, 0x3a, 0xe1, 0x63, 0x62, 0xae, 0x13, 0x51, 0xc5, 0x0e, 0xfd, 0x53, - 0x06, 0x20, 0x76, 0x0e, 0x7a, 0x0b, 0x4a, 0xf8, 0x10, 0x77, 0x02, 0xdf, 0xa6, 0xb3, 0x4e, 0x2d, - 0x1e, 0x91, 0x86, 0x60, 0x29, 0xec, 0x21, 0x86, 0x92, 0xbd, 0x69, 0xe9, 0x7d, 0xec, 0x39, 0x7a, - 0x27, 0x9c, 0xad, 0xd2, 0xc5, 0x44, 0x40, 0x71, 0x6f, 0x46, 0x40, 0xf4, 0x22, 0x64, 0xe8, 0x34, - 0x96, 0x8d, 0x55, 0xd1, 0x70, 0x50, 0x9d, 0xb1, 0xe4, 0x39, 0x2c, 0xc5, 0xa3, 0xf7, 0x60, 0x7a, - 0x3f, 0x0a, 0x3c, 0xb2, 0xb6, 0x0c, 0x65, 0xa0, 0xc5, 0x6d, 0x8c, 0x90, 0x56, 0x37, 0x25, 0xc2, - 0xd1, 0x2e, 0x94, 0x74, 0xcb, 0xb2, 0x7d, 0xfa, 0xd9, 0x09, 0x47, 0xad, 0x57, 0xc6, 0x85, 0x69, - 0x7d, 0x2d, 0xa6, 0x65, 0xe5, 0x12, 0xcd, 0x17, 0x82, 0x04, 0x31, 0x5f, 0x08, 0x60, 0xd4, 0x84, - 0x5c, 0x4f, 0x6f, 0xe3, 0x5e, 0x98, 0xe7, 0x5f, 0x18, 0xab, 0xe2, 0x0e, 0x25, 0x63, 0xd2, 0xe9, - 0x40, 0x97, 0xf1, 0x89, 0x03, 0x5d, 0x06, 0x59, 0xda, 0x85, 0x72, 0x72, 0x3d, 0x93, 0x95, 0x07, - 0x57, 0xc4, 0xf2, 0xa0, 0x78, 0x6c, 0x45, 0xa2, 0x43, 0x49, 0x58, 0xd4, 0x69, 0xa8, 0xa8, 0xfd, - 0xb7, 0x06, 0xf3, 0xaa, 0xbd, 0x8b, 0x36, 0x85, 0x1d, 0xaf, 0xf1, 0xb1, 0x91, 0x22, 0xd4, 0x39, - 0xef, 0x98, 0xad, 0x1e, 0x6f, 0xf4, 0x06, 0xcc, 0x58, 0xb6, 0x81, 0x5b, 0x3a, 0x51, 0xd0, 0x33, - 0x3d, 0xbf, 0x92, 0xa2, 0xa3, 0x78, 0x3a, 0x6e, 0x22, 0x98, 0xb5, 0x10, 0x21, 0x70, 0x4f, 0x4b, - 0x88, 0xda, 0x67, 0x30, 0x9b, 0x18, 0x06, 0x4b, 0xc5, 0x4a, 0x6a, 0xc2, 0x62, 0x25, 0xfe, 0x82, - 0xa4, 0x27, 0xfb, 0x82, 0xd4, 0xfe, 0x35, 0x05, 0x25, 0xa1, 0x33, 0x47, 0x0f, 0x61, 0x96, 0x7f, - 0xcd, 0x4c, 0xab, 0xcb, 0x3a, 0xc0, 0x14, 0x1f, 0x13, 0x8d, 0x9c, 0x94, 0x6c, 0xd8, 0xed, 0xed, - 0x88, 0x96, 0x36, 0x80, 0x74, 0x8a, 0xe7, 0x49, 0x30, 0x41, 0xf1, 0x8c, 0x8c, 0x41, 0x0f, 0x60, - 0x31, 0x70, 0x48, 0x5f, 0xda, 0xf2, 0xf8, 0x99, 0x43, 0xcb, 0x0a, 0xfa, 0x6d, 0xec, 0xd2, 0xd5, - 0x67, 0x59, 0xa7, 0xc4, 0x28, 0xc2, 0x43, 0x89, 0xbb, 0x14, 0x2f, 0x76, 0x4a, 0x2a, 0xbc, 0x60, - 0x87, 0xcc, 0x84, 0x76, 0xb8, 0x05, 0x68, 0x74, 0x1a, 0x2f, 0xf9, 0x40, 0x9b, 0xcc, 0x07, 0xb5, - 0x43, 0x28, 0x27, 0x67, 0xec, 0x4f, 0xc9, 0x97, 0xfb, 0x50, 0x8c, 0x26, 0xe4, 0xe8, 0x15, 0xc8, - 0xb9, 0x58, 0xf7, 0x6c, 0x8b, 0xef, 0x16, 0xba, 0xed, 0x19, 0x44, 0xdc, 0xf6, 0x0c, 0xf2, 0x18, - 0xca, 0xee, 0xc3, 0x14, 0x33, 0xd2, 0xfb, 0x66, 0xcf, 0xc7, 0x2e, 0xba, 0x01, 0x39, 0xcf, 0xd7, - 0x7d, 0xec, 0x55, 0xb4, 0x95, 0xf4, 0xe5, 0x99, 0x6b, 0x8b, 0xa3, 0xe3, 0x6f, 0x82, 0x66, 0xeb, - 0x60, 0x94, 0xe2, 0x3a, 0x18, 0xa4, 0xf6, 0x2f, 0x1a, 0x4c, 0x89, 0x53, 0xfe, 0x27, 0x23, 0xf6, - 0x64, 0xc6, 0x20, 0x89, 0x63, 0x4a, 0x3c, 0x0c, 0x38, 0x3d, 0x5b, 0x92, 0xaf, 0x20, 0x3b, 0x4a, - 0x68, 0x05, 0x1e, 0x76, 0x79, 0xb4, 0xd2, 0xaf, 0x20, 0x03, 0xef, 0x78, 0x52, 0xb4, 0x43, 0x0c, - 0xe5, 0x6e, 0x20, 0x6b, 0x15, 0x8f, 0x16, 0x50, 0x37, 0x1e, 0xe0, 0x90, 0x4d, 0xe6, 0xd1, 0x64, - 0x34, 0xe9, 0x00, 0x87, 0xa6, 0x2c, 0x89, 0x5d, 0x4c, 0x59, 0x12, 0xe2, 0x31, 0x42, 0xe6, 0xdb, - 0x2c, 0x5d, 0x6b, 0x7c, 0x54, 0x90, 0xa8, 0x01, 0xd2, 0x27, 0xa8, 0x01, 0x5e, 0x85, 0x3c, 0x4d, - 0xba, 0xd1, 0x16, 0xa7, 0x3e, 0x21, 0x20, 0xf9, 0x98, 0x94, 0x41, 0x1e, 0x91, 0x6a, 0xb2, 0x3f, - 0x31, 0xd5, 0xb4, 0xe0, 0xfc, 0x9e, 0xee, 0xb5, 0xc2, 0xe4, 0x68, 0xb4, 0x74, 0xbf, 0x15, 0xed, - 0xf5, 0x1c, 0xad, 0xff, 0xe9, 0xf0, 0x71, 0x4f, 0xf7, 0xb6, 0x43, 0x9a, 0x35, 0x7f, 0x6b, 0x74, - 0xe7, 0x2f, 0xaa, 0x29, 0xd0, 0x0e, 0x2c, 0xa8, 0x85, 0xe7, 0xe9, 0xca, 0xe9, 0x6c, 0xdc, 0x7b, - 0xa4, 0xe4, 0x39, 0x05, 0x1a, 0x7d, 0xa9, 0x41, 0x85, 0x7c, 0x05, 0x5d, 0xfc, 0x69, 0x60, 0xba, - 0xb8, 0x4f, 0xc2, 0xa2, 0x65, 0x1f, 0x60, 0xb7, 0xa7, 0x1f, 0xf1, 0x63, 0xa6, 0x8b, 0xa3, 0x29, - 0x7f, 0xcb, 0x36, 0x9a, 0x02, 0x03, 0x7b, 0x35, 0x47, 0x06, 0xde, 0x63, 0x42, 0xc4, 0x57, 0x53, - 0x53, 0x08, 0x21, 0x04, 0x27, 0x18, 0x68, 0x95, 0x8e, 0x1d, 0x68, 0xbd, 0x08, 0x19, 0xc7, 0xb6, - 0x7b, 0xb4, 0xfd, 0xe2, 0x95, 0x1e, 0x79, 0x16, 0x2b, 0x3d, 0xf2, 0x2c, 0xce, 0x1c, 0x36, 0x32, - 0x85, 0x42, 0xb9, 0x58, 0xfb, 0x5e, 0x83, 0x19, 0xf9, 0x64, 0x6a, 0x74, 0x43, 0xa5, 0x4f, 0x7d, - 0x43, 0x65, 0x4e, 0x60, 0x8d, 0xec, 0x71, 0xd6, 0x90, 0x26, 0x2b, 0xbf, 0xd7, 0x60, 0x5a, 0x3a, - 0x14, 0xfb, 0x79, 0xbd, 0xde, 0x7f, 0xa4, 0x60, 0x51, 0xbd, 0xd4, 0x53, 0x69, 0x1d, 0x6f, 0x01, - 0x29, 0x02, 0x6f, 0xc7, 0x45, 0xd2, 0xc2, 0x48, 0xe7, 0x48, 0xcd, 0x14, 0x56, 0x90, 0x23, 0xe7, - 0x65, 0x21, 0x3b, 0x7a, 0x00, 0x25, 0x53, 0x38, 0x99, 0x4b, 0xab, 0x0e, 0x50, 0xc4, 0xf3, 0x38, - 0x36, 0x52, 0x18, 0x73, 0x0a, 0x27, 0x8a, 0x6a, 0xe4, 0x20, 0x43, 0xaa, 0xb8, 0xda, 0x01, 0xe4, - 0xf9, 0x72, 0xd0, 0xeb, 0x50, 0xa4, 0xb9, 0x93, 0x76, 0x43, 0xac, 0xe4, 0xa6, 0xe5, 0x08, 0x01, - 0x26, 0x6e, 0xa6, 0x14, 0x42, 0x18, 0xfa, 0x3b, 0x00, 0x92, 0x2e, 0x78, 0xd6, 0x4c, 0xd1, 0xdc, - 0x43, 0xbb, 0x2e, 0xc7, 0x36, 0x46, 0x52, 0x65, 0x31, 0x02, 0xd6, 0xfe, 0x37, 0x05, 0x25, 0xf1, - 0x2c, 0xf0, 0xb1, 0x94, 0x7f, 0x0e, 0x61, 0x47, 0xdc, 0xd2, 0x0d, 0x83, 0xfc, 0xc5, 0xe1, 0x87, - 0x6d, 0x75, 0xac, 0x91, 0xc2, 0xff, 0xd7, 0x42, 0x0e, 0xd6, 0xff, 0xd0, 0xfb, 0x0e, 0x66, 0x02, - 0x25, 0x68, 0x2d, 0x27, 0x71, 0x4b, 0xfb, 0xb0, 0xa0, 0x14, 0x25, 0x76, 0x2d, 0xd9, 0x27, 0xd5, - 0xb5, 0xfc, 0x57, 0x16, 0x16, 0x94, 0x67, 0xb0, 0x89, 0x08, 0x4e, 0x3f, 0x91, 0x08, 0xfe, 0x37, - 0x4d, 0x65, 0x59, 0x76, 0x00, 0xf3, 0xd6, 0x04, 0x07, 0xc3, 0x4f, 0xca, 0xc6, 0x72, 0x58, 0x64, - 0x1f, 0x2b, 0x26, 0x73, 0x93, 0xc6, 0x24, 0xba, 0xca, 0x1a, 0x40, 0xaa, 0x8b, 0x1d, 0x8f, 0x84, - 0x3b, 0x34, 0xa1, 0x2a, 0xcf, 0x41, 0xe8, 0x3d, 0x98, 0x0e, 0x39, 0xd8, 0xd8, 0xa1, 0x10, 0xcf, - 0x04, 0x38, 0x4d, 0x72, 0xf2, 0x30, 0x25, 0xc2, 0x85, 0xec, 0x57, 0x3c, 0x41, 0xf6, 0x83, 0xe3, - 0xb2, 0xdf, 0x53, 0x8d, 0x4d, 0x29, 0xd5, 0x0e, 0x34, 0x98, 0x4d, 0x5c, 0x7d, 0xf8, 0x79, 0x7d, - 0x4b, 0xbe, 0xd0, 0xa0, 0x18, 0xdd, 0xac, 0x41, 0x6b, 0x90, 0xc3, 0xec, 0x76, 0x06, 0x4b, 0x3b, - 0x73, 0x89, 0x9b, 0x73, 0x04, 0xc7, 0xef, 0xca, 0x25, 0x2e, 0x64, 0x34, 0x39, 0xe3, 0x63, 0x14, - 0xcc, 0xff, 0xaf, 0x85, 0x05, 0xf3, 0xc8, 0x2a, 0xd2, 0x3f, 0x7d, 0x15, 0xa7, 0x67, 0xba, 0x5f, - 0x16, 0x21, 0x4b, 0xd7, 0x42, 0x1a, 0x5f, 0x1f, 0xbb, 0x7d, 0xd3, 0xd2, 0x7b, 0x34, 0x14, 0x0b, - 0x6c, 0x57, 0x87, 0x30, 0x71, 0x57, 0x87, 0x30, 0xb4, 0x07, 0xb3, 0xf1, 0x38, 0x8d, 0x8a, 0x51, - 0x5f, 0xd5, 0xfb, 0x40, 0x26, 0x62, 0x23, 0xfe, 0x04, 0xa7, 0x7c, 0xd6, 0x9e, 0x40, 0x22, 0x03, - 0x66, 0x3a, 0xb6, 0xe5, 0xeb, 0xa6, 0x85, 0x5d, 0xa6, 0x28, 0xad, 0xba, 0xaa, 0x74, 0x5d, 0xa2, - 0x61, 0x43, 0x0e, 0x99, 0x4f, 0xbe, 0xaa, 0x24, 0xe3, 0xd0, 0x27, 0x30, 0x1d, 0x36, 0x2e, 0x4c, - 0x49, 0x46, 0x75, 0x55, 0x69, 0x5d, 0x24, 0x61, 0x9b, 0x41, 0xe2, 0x92, 0xaf, 0x2a, 0x49, 0x28, - 0xd4, 0x83, 0xb2, 0x63, 0x1b, 0x3b, 0x16, 0x2f, 0xd7, 0xf5, 0x76, 0x0f, 0xf3, 0x19, 0xee, 0xf2, - 0x48, 0x41, 0x22, 0x51, 0xb1, 0x44, 0x9d, 0xe4, 0x95, 0x2f, 0xff, 0x25, 0xb1, 0xe8, 0x63, 0x98, - 0xea, 0x91, 0xfe, 0x6d, 0xfd, 0xd0, 0x31, 0x5d, 0x6c, 0xa8, 0xaf, 0xea, 0xdd, 0x11, 0x28, 0x58, - 0x9a, 0x14, 0x79, 0xe4, 0x1b, 0x0a, 0x22, 0x86, 0x78, 0xbf, 0xaf, 0x1f, 0x36, 0x03, 0xcb, 0x5b, - 0x3f, 0xe4, 0xd7, 0xae, 0xf2, 0x2a, 0xef, 0x6f, 0xca, 0x44, 0xcc, 0xfb, 0x09, 0x4e, 0xd9, 0xfb, - 0x09, 0x24, 0xba, 0x43, 0xbf, 0x02, 0xcc, 0x25, 0xec, 0xca, 0xde, 0xe2, 0x88, 0xb5, 0x98, 0x37, - 0xd8, 0xb0, 0x86, 0x3f, 0x49, 0x42, 0x23, 0x09, 0xdc, 0x07, 0xf4, 0xb5, 0x9b, 0xd8, 0x0f, 0x5c, - 0x0b, 0x1b, 0xbc, 0x8d, 0x1a, 0xf5, 0x81, 0x44, 0x15, 0xf9, 0x40, 0x82, 0x8e, 0xf8, 0x40, 0xc2, - 0xa2, 0xcf, 0x61, 0x3e, 0x71, 0x01, 0x89, 0xbd, 0x47, 0x49, 0x75, 0x80, 0xb1, 0xa1, 0xa0, 0x64, - 0x1d, 0xaf, 0x4a, 0x86, 0xa4, 0x59, 0xa9, 0x85, 0x68, 0xef, 0xea, 0x56, 0x77, 0xc3, 0x6e, 0xcb, - 0x31, 0x37, 0xa5, 0xd2, 0x7e, 0x53, 0x41, 0xc9, 0xb4, 0xab, 0x64, 0xc8, 0xda, 0x55, 0x14, 0xd1, - 0x65, 0x23, 0x52, 0xc4, 0x44, 0x97, 0xf2, 0x54, 0x97, 0x8d, 0x18, 0x81, 0x70, 0xd9, 0x88, 0x01, - 0x14, 0x97, 0x8d, 0x38, 0x65, 0x21, 0x9c, 0xf3, 0xd4, 0x3e, 0x84, 0xd9, 0x44, 0x7a, 0x41, 0xef, - 0x42, 0x74, 0x85, 0xe5, 0xfe, 0x91, 0x13, 0xd6, 0xae, 0xd2, 0x95, 0x17, 0x02, 0x57, 0x5d, 0x79, - 0x21, 0xf0, 0xda, 0xd7, 0x19, 0x28, 0x84, 0x11, 0x75, 0x2a, 0xdd, 0xc8, 0x2a, 0xe4, 0xfb, 0xd8, - 0xa3, 0xd7, 0x54, 0x52, 0x71, 0x51, 0xc3, 0x41, 0x62, 0x51, 0xc3, 0x41, 0x72, 0xcd, 0x95, 0x7e, - 0xac, 0x9a, 0x2b, 0x33, 0x71, 0xcd, 0x85, 0xe9, 0xc9, 0xac, 0x90, 0x17, 0xc3, 0x83, 0x91, 0x47, - 0x27, 0xdb, 0xf0, 0xdc, 0x56, 0x64, 0x4c, 0x9c, 0xdb, 0x8a, 0x28, 0xb4, 0x0f, 0x67, 0x85, 0xc3, - 0x1b, 0x3e, 0xb5, 0x23, 0x19, 0x6a, 0x66, 0xfc, 0x31, 0x78, 0x93, 0x52, 0xb1, 0x7d, 0xb8, 0x9f, - 0x80, 0x8a, 0x45, 0x6b, 0x12, 0x47, 0x42, 0xc2, 0xc0, 0xed, 0xa0, 0xbb, 0xc9, 0xcd, 0x9e, 0x8f, - 0x43, 0x42, 0x84, 0x8b, 0x21, 0x21, 0xc2, 0x6b, 0x7f, 0x4c, 0xc1, 0x8c, 0xfc, 0xbe, 0xa7, 0x12, - 0x18, 0xaf, 0x43, 0x11, 0x1f, 0x9a, 0x7e, 0xab, 0x63, 0x1b, 0x98, 0x77, 0x6e, 0xd4, 0xcf, 0x04, - 0x78, 0xdd, 0x36, 0x24, 0x3f, 0x87, 0x30, 0x31, 0x9a, 0xd2, 0x13, 0x45, 0x53, 0x3c, 0x24, 0xcd, - 0x4c, 0x30, 0x24, 0x55, 0xfa, 0xa9, 0x78, 0x3a, 0x7e, 0xaa, 0x7d, 0x97, 0x82, 0x72, 0x32, 0xed, - 0x3e, 0x1b, 0x5b, 0x50, 0xde, 0x4d, 0xe9, 0x89, 0x77, 0xd3, 0x7b, 0x30, 0x4d, 0x2a, 0x33, 0xdd, - 0xf7, 0xf9, 0xad, 0xd6, 0x0c, 0x2d, 0xae, 0x58, 0x36, 0x0a, 0xac, 0xb5, 0x10, 0x2e, 0x65, 0x23, - 0x01, 0x3e, 0x12, 0xba, 0xd9, 0x13, 0x86, 0xee, 0x97, 0x29, 0x98, 0xde, 0xb2, 0x8d, 0xfb, 0xac, - 0x68, 0xf3, 0x9f, 0x15, 0x7b, 0x3e, 0xcd, 0x94, 0x56, 0x9b, 0x85, 0x69, 0xa9, 0x6a, 0xab, 0x7d, - 0xc5, 0xe2, 0x4c, 0xfe, 0x5c, 0xfd, 0xf5, 0xd9, 0x65, 0x06, 0xa6, 0xc4, 0xf2, 0xaf, 0xd6, 0x80, - 0xd9, 0x44, 0xb5, 0x26, 0xbe, 0x80, 0x36, 0xc9, 0x0b, 0xd4, 0x6e, 0xc0, 0xbc, 0xaa, 0x8c, 0x11, - 0xb2, 0x8e, 0x36, 0xc1, 0xc9, 0xce, 0x4d, 0x98, 0x57, 0x95, 0x23, 0x27, 0x5f, 0xce, 0xbb, 0xfc, - 0xd4, 0x94, 0x15, 0x0e, 0x27, 0xe7, 0xff, 0x6d, 0xd4, 0x3d, 0xc7, 0x37, 0xc8, 0xdf, 0x87, 0xb2, - 0x13, 0x3e, 0xb4, 0x78, 0x8f, 0xc6, 0xb6, 0x25, 0xed, 0x38, 0x22, 0xdc, 0x46, 0xa2, 0x59, 0x9b, - 0x91, 0x31, 0xb2, 0x1c, 0xde, 0xbf, 0xe5, 0x14, 0x72, 0x9a, 0x89, 0x46, 0x6e, 0x46, 0xc6, 0x08, - 0xa6, 0xcd, 0x1f, 0x6f, 0x5a, 0xda, 0xff, 0x65, 0x49, 0xd3, 0x3c, 0x9b, 0xb8, 0xe1, 0x8e, 0xae, - 0x42, 0x81, 0xfe, 0xfc, 0x2c, 0xee, 0x7c, 0xa9, 0x75, 0x28, 0x4c, 0x5a, 0x40, 0x9e, 0x83, 0xd0, - 0x1b, 0x50, 0x8c, 0x2e, 0xbd, 0xf3, 0xf3, 0x52, 0x16, 0x77, 0x21, 0x50, 0x8a, 0xbb, 0x10, 0xc8, - 0x9b, 0xe6, 0x7f, 0x86, 0xf3, 0x63, 0xaf, 0xbb, 0x9f, 0xe8, 0x6c, 0x2e, 0xee, 0x7e, 0x33, 0x27, - 0xea, 0x7e, 0x0f, 0x61, 0x51, 0x7d, 0x0b, 0x5d, 0xd0, 0x9e, 0x3a, 0x56, 0x7b, 0x6c, 0xfd, 0xf4, - 0x84, 0xd6, 0x4f, 0xd5, 0xf6, 0xe9, 0xb8, 0x20, 0xba, 0xed, 0x8d, 0xae, 0x40, 0xd6, 0xb1, 0xed, - 0x9e, 0xc7, 0x2f, 0x24, 0x50, 0x75, 0x14, 0x20, 0xaa, 0xa3, 0x80, 0xc7, 0x18, 0x4e, 0x04, 0x61, - 0x04, 0xc7, 0x77, 0xd7, 0x9f, 0x82, 0x75, 0x5f, 0xbe, 0x0a, 0x85, 0xf0, 0xd0, 0x17, 0x01, 0xe4, - 0x3e, 0xdc, 0x59, 0xdf, 0x59, 0xbf, 0x51, 0x3e, 0x83, 0x4a, 0x90, 0xdf, 0x5a, 0xbf, 0x7b, 0xe3, - 0xf6, 0xdd, 0x9b, 0x65, 0x8d, 0x3c, 0x34, 0x77, 0xee, 0xde, 0x25, 0x0f, 0xa9, 0x97, 0xef, 0x88, - 0x17, 0xc9, 0x78, 0xe5, 0x36, 0x05, 0x85, 0x35, 0xc7, 0xa1, 0x29, 0x84, 0xf1, 0xae, 0x1f, 0x98, - 0x64, 0x27, 0x97, 0x35, 0x94, 0x87, 0xf4, 0xbd, 0x7b, 0x9b, 0xe5, 0x14, 0x9a, 0x87, 0xf2, 0x0d, - 0xac, 0x1b, 0x3d, 0xd3, 0xc2, 0x61, 0xde, 0x2a, 0xa7, 0x1b, 0x0f, 0x7f, 0xf5, 0xc3, 0xb2, 0xf6, - 0xdd, 0x0f, 0xcb, 0xda, 0x1f, 0x7e, 0x58, 0xd6, 0xbe, 0xfe, 0x71, 0xf9, 0xcc, 0x77, 0x3f, 0x2e, - 0x9f, 0xf9, 0xdd, 0x8f, 0xcb, 0x67, 0xfe, 0xe9, 0x6a, 0xd7, 0xf4, 0xf7, 0x82, 0x76, 0xbd, 0x63, - 0xf7, 0xf9, 0xef, 0x68, 0x1d, 0xd7, 0x26, 0x09, 0x82, 0x3f, 0xad, 0x26, 0x7f, 0x60, 0xfb, 0x3f, - 0xa9, 0x0b, 0x6b, 0xf4, 0x71, 0x8b, 0xd1, 0xd5, 0x6f, 0xdb, 0x75, 0x06, 0xa0, 0x3f, 0xa9, 0xf4, - 0xda, 0x39, 0xfa, 0xd3, 0xc9, 0xd7, 0xff, 0x1c, 0x00, 0x00, 0xff, 0xff, 0x6d, 0x29, 0x28, 0x70, - 0x9b, 0x3b, 0x00, 0x00, -} - -func (m *EventSequence) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventSequence) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Events) > 0 { - for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.Groups) > 0 { - for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Groups[iNdEx]) - copy(dAtA[i:], m.Groups[iNdEx]) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Groups[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.UserId) > 0 { - i -= len(m.UserId) - copy(dAtA[i:], m.UserId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.UserId))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobSetName) > 0 { - i -= len(m.JobSetName) - copy(dAtA[i:], m.JobSetName) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobSetName))) - i-- - dAtA[i] = 0x12 - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// List of possible events, i.e., state transitions. +type EventSequence_Event struct { + state protoimpl.MessageState `protogen:"open.v1"` + Created *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=created,proto3" json:"created,omitempty"` + // Types that are valid to be assigned to Event: + // + // *EventSequence_Event_SubmitJob + // *EventSequence_Event_ReprioritiseJob + // *EventSequence_Event_ReprioritiseJobSet + // *EventSequence_Event_ReprioritisedJob + // *EventSequence_Event_CancelJob + // *EventSequence_Event_CancelJobSet + // *EventSequence_Event_CancelledJob + // *EventSequence_Event_JobSucceeded + // *EventSequence_Event_JobErrors + // *EventSequence_Event_JobRunLeased + // *EventSequence_Event_JobRunAssigned + // *EventSequence_Event_JobRunRunning + // *EventSequence_Event_JobRunSucceeded + // *EventSequence_Event_JobRunErrors + // *EventSequence_Event_StandaloneIngressInfo + // *EventSequence_Event_ResourceUtilisation + // *EventSequence_Event_JobRunPreempted + // *EventSequence_Event_PartitionMarker + // *EventSequence_Event_JobRunPreemptionRequested + // *EventSequence_Event_JobRequeued + // *EventSequence_Event_JobPreemptionRequested + // *EventSequence_Event_JobRunCancelled + // *EventSequence_Event_JobValidated + Event isEventSequence_Event_Event `protobuf_oneof:"event"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *EventSequence_Event) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventSequence_Event) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size := m.Event.Size() - i -= size - if _, err := m.Event.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - return len(dAtA) - i, nil +func (x *EventSequence_Event) Reset() { + *x = EventSequence_Event{} + mi := &file_pkg_armadaevents_events_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *EventSequence_Event_SubmitJob) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *EventSequence_Event) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EventSequence_Event_SubmitJob) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.SubmitJob != nil { - { - size, err := m.SubmitJob.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_ReprioritiseJob) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_ReprioritiseJob) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ReprioritiseJob != nil { - { - size, err := m.ReprioritiseJob.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) +func (*EventSequence_Event) ProtoMessage() {} + +func (x *EventSequence_Event) ProtoReflect() protoreflect.Message { + mi := &file_pkg_armadaevents_events_proto_msgTypes[45] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x12 + return ms } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_ReprioritiseJobSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_ReprioritiseJobSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ReprioritiseJobSet != nil { - { - size, err := m.ReprioritiseJobSet.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + return mi.MessageOf(x) +} + +// Deprecated: Use EventSequence_Event.ProtoReflect.Descriptor instead. +func (*EventSequence_Event) Descriptor() ([]byte, []int) { + return file_pkg_armadaevents_events_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *EventSequence_Event) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_ReprioritisedJob) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_ReprioritisedJob) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ReprioritisedJob != nil { - { - size, err := m.ReprioritisedJob.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + return nil +} + +func (x *EventSequence_Event) GetEvent() isEventSequence_Event_Event { + if x != nil { + return x.Event } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_CancelJob) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_CancelJob) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.CancelJob != nil { - { - size, err := m.CancelJob.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetSubmitJob() *SubmitJob { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_SubmitJob); ok { + return x.SubmitJob } - i-- - dAtA[i] = 0x2a } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_CancelJobSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_CancelJobSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.CancelJobSet != nil { - { - size, err := m.CancelJobSet.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetReprioritiseJob() *ReprioritiseJob { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_ReprioritiseJob); ok { + return x.ReprioritiseJob } - i-- - dAtA[i] = 0x32 } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_CancelledJob) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_CancelledJob) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.CancelledJob != nil { - { - size, err := m.CancelledJob.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetReprioritiseJobSet() *ReprioritiseJobSet { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_ReprioritiseJobSet); ok { + return x.ReprioritiseJobSet } - i-- - dAtA[i] = 0x3a } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_JobSucceeded) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_JobSucceeded) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.JobSucceeded != nil { - { - size, err := m.JobSucceeded.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetReprioritisedJob() *ReprioritisedJob { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_ReprioritisedJob); ok { + return x.ReprioritisedJob } - i-- - dAtA[i] = 0x42 } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_JobErrors) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_JobErrors) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.JobErrors != nil { - { - size, err := m.JobErrors.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetCancelJob() *CancelJob { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_CancelJob); ok { + return x.CancelJob } - i-- - dAtA[i] = 0x4a } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_JobRunLeased) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_JobRunLeased) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.JobRunLeased != nil { - { - size, err := m.JobRunLeased.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetCancelJobSet() *CancelJobSet { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_CancelJobSet); ok { + return x.CancelJobSet } - i-- - dAtA[i] = 0x52 } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_JobRunAssigned) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_JobRunAssigned) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.JobRunAssigned != nil { - { - size, err := m.JobRunAssigned.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetCancelledJob() *CancelledJob { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_CancelledJob); ok { + return x.CancelledJob } - i-- - dAtA[i] = 0x5a } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_JobRunRunning) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_JobRunRunning) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.JobRunRunning != nil { - { - size, err := m.JobRunRunning.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetJobSucceeded() *JobSucceeded { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_JobSucceeded); ok { + return x.JobSucceeded } - i-- - dAtA[i] = 0x62 } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_JobRunSucceeded) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_JobRunSucceeded) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.JobRunSucceeded != nil { - { - size, err := m.JobRunSucceeded.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetJobErrors() *JobErrors { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_JobErrors); ok { + return x.JobErrors } - i-- - dAtA[i] = 0x6a } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_JobRunErrors) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_JobRunErrors) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.JobRunErrors != nil { - { - size, err := m.JobRunErrors.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetJobRunLeased() *JobRunLeased { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_JobRunLeased); ok { + return x.JobRunLeased } - i-- - dAtA[i] = 0x72 } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_StandaloneIngressInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_StandaloneIngressInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.StandaloneIngressInfo != nil { - { - size, err := m.StandaloneIngressInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetJobRunAssigned() *JobRunAssigned { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_JobRunAssigned); ok { + return x.JobRunAssigned } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_ResourceUtilisation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_ResourceUtilisation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ResourceUtilisation != nil { - { - size, err := m.ResourceUtilisation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetJobRunRunning() *JobRunRunning { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_JobRunRunning); ok { + return x.JobRunRunning } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_JobRunPreempted) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_JobRunPreempted) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.JobRunPreempted != nil { - { - size, err := m.JobRunPreempted.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetJobRunSucceeded() *JobRunSucceeded { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_JobRunSucceeded); ok { + return x.JobRunSucceeded } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_PartitionMarker) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_PartitionMarker) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.PartitionMarker != nil { - { - size, err := m.PartitionMarker.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetJobRunErrors() *JobRunErrors { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_JobRunErrors); ok { + return x.JobRunErrors } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_JobRunPreemptionRequested) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_JobRunPreemptionRequested) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.JobRunPreemptionRequested != nil { - { - size, err := m.JobRunPreemptionRequested.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetStandaloneIngressInfo() *StandaloneIngressInfo { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_StandaloneIngressInfo); ok { + return x.StandaloneIngressInfo } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_JobRequeued) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_JobRequeued) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.JobRequeued != nil { - { - size, err := m.JobRequeued.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetResourceUtilisation() *ResourceUtilisation { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_ResourceUtilisation); ok { + return x.ResourceUtilisation } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_JobPreemptionRequested) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_JobPreemptionRequested) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.JobPreemptionRequested != nil { - { - size, err := m.JobPreemptionRequested.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetJobRunPreempted() *JobRunPreempted { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_JobRunPreempted); ok { + return x.JobRunPreempted } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_JobRunCancelled) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_JobRunCancelled) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.JobRunCancelled != nil { - { - size, err := m.JobRunCancelled.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetPartitionMarker() *PartitionMarker { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_PartitionMarker); ok { + return x.PartitionMarker } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc2 } - return len(dAtA) - i, nil -} -func (m *EventSequence_Event_JobValidated) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSequence_Event_JobValidated) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.JobValidated != nil { - { - size, err := m.JobValidated.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetJobRunPreemptionRequested() *JobRunPreemptionRequested { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_JobRunPreemptionRequested); ok { + return x.JobRunPreemptionRequested } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xca } - return len(dAtA) - i, nil -} -func (m *ResourceUtilisation) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceUtilisation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceUtilisation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AvgResourcesForPeriod) > 0 { - for k := range m.AvgResourcesForPeriod { - v := m.AvgResourcesForPeriod[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintEvents(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintEvents(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x42 + return nil +} + +func (x *EventSequence_Event) GetJobRequeued() *JobRequeued { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_JobRequeued); ok { + return x.JobRequeued } } - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0x3a - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x32 - } - if len(m.TotalCumulativeUsage) > 0 { - for k := range m.TotalCumulativeUsage { - v := m.TotalCumulativeUsage[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintEvents(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintEvents(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a + return nil +} + +func (x *EventSequence_Event) GetJobPreemptionRequested() *JobPreemptionRequested { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_JobPreemptionRequested); ok { + return x.JobPreemptionRequested } } - if len(m.MaxResourcesForPeriod) > 0 { - for k := range m.MaxResourcesForPeriod { - v := m.MaxResourcesForPeriod[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintEvents(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintEvents(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 + return nil +} + +func (x *EventSequence_Event) GetJobRunCancelled() *JobRunCancelled { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_JobRunCancelled); ok { + return x.JobRunCancelled } } - if m.ResourceInfo != nil { - { - size, err := m.ResourceInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) + return nil +} + +func (x *EventSequence_Event) GetJobValidated() *JobValidated { + if x != nil { + if x, ok := x.Event.(*EventSequence_Event_JobValidated); ok { + return x.JobValidated } - i-- - dAtA[i] = 0x1a } - return len(dAtA) - i, nil + return nil } -func (m *SubmitJob) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubmitJob) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SubmitJob) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x72 - } - if m.IsDuplicate { - i-- - if m.IsDuplicate { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x60 - } - if len(m.Scheduler) > 0 { - i -= len(m.Scheduler) - copy(dAtA[i:], m.Scheduler) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Scheduler))) - i-- - dAtA[i] = 0x5a - } - if m.ConcurrencySafe { - i-- - if m.ConcurrencySafe { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x50 - } - if m.Preemptible { - i-- - if m.Preemptible { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if m.AtMostOnce { - i-- - if m.AtMostOnce { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if m.Lifetime != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.Lifetime)) - i-- - dAtA[i] = 0x38 - } - if len(m.Objects) > 0 { - for iNdEx := len(m.Objects) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Objects[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - if m.MainObject != nil { - { - size, err := m.MainObject.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.ObjectMeta != nil { - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Priority != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.Priority)) - i-- - dAtA[i] = 0x18 - } - if len(m.DeduplicationId) > 0 { - i -= len(m.DeduplicationId) - copy(dAtA[i:], m.DeduplicationId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.DeduplicationId))) - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} - -func (m *KubernetesMainObject) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *KubernetesMainObject) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KubernetesMainObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Object != nil { - { - size := m.Object.Size() - i -= size - if _, err := m.Object.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.ObjectMeta != nil { - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *KubernetesMainObject_PodSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KubernetesMainObject_PodSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.PodSpec != nil { - { - size, err := m.PodSpec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *KubernetesObject) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *KubernetesObject) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KubernetesObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Object != nil { - { - size := m.Object.Size() - i -= size - if _, err := m.Object.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.ObjectMeta != nil { - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *KubernetesObject_PodSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KubernetesObject_PodSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.PodSpec != nil { - { - size, err := m.PodSpec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *KubernetesObject_Ingress) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KubernetesObject_Ingress) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Ingress != nil { - { - size, err := m.Ingress.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} -func (m *KubernetesObject_Service) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KubernetesObject_Service) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Service != nil { - { - size, err := m.Service.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - return len(dAtA) - i, nil -} -func (m *KubernetesObject_ConfigMap) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KubernetesObject_ConfigMap) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ConfigMap != nil { - { - size, err := m.ConfigMap.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *ObjectMeta) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ObjectMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ObjectMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Labels) > 0 { - for k := range m.Labels { - v := m.Labels[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintEvents(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintEvents(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintEvents(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x32 - } - } - if len(m.Annotations) > 0 { - for k := range m.Annotations { - v := m.Annotations[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintEvents(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintEvents(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintEvents(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - if len(m.KubernetesId) > 0 { - i -= len(m.KubernetesId) - copy(dAtA[i:], m.KubernetesId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.KubernetesId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.ExecutorId) > 0 { - i -= len(m.ExecutorId) - copy(dAtA[i:], m.ExecutorId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.ExecutorId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PodSpecWithAvoidList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSpecWithAvoidList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodSpecWithAvoidList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NodeAvoidlist) > 0 { - for iNdEx := len(m.NodeAvoidlist) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.NodeAvoidlist[iNdEx]) - copy(dAtA[i:], m.NodeAvoidlist[iNdEx]) - i = encodeVarintEvents(dAtA, i, uint64(len(m.NodeAvoidlist[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if m.PodSpec != nil { - { - size, err := m.PodSpec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ReprioritiseJob) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type isEventSequence_Event_Event interface { + isEventSequence_Event_Event() } -func (m *ReprioritiseJob) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type EventSequence_Event_SubmitJob struct { + SubmitJob *SubmitJob `protobuf:"bytes,1,opt,name=submitJob,proto3,oneof"` } -func (m *ReprioritiseJob) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x1a - } - if m.Priority != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.Priority)) - i-- - dAtA[i] = 0x10 - } - return len(dAtA) - i, nil +type EventSequence_Event_ReprioritiseJob struct { + ReprioritiseJob *ReprioritiseJob `protobuf:"bytes,2,opt,name=reprioritiseJob,proto3,oneof"` } -func (m *JobRequeued) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type EventSequence_Event_ReprioritiseJobSet struct { + ReprioritiseJobSet *ReprioritiseJobSet `protobuf:"bytes,3,opt,name=reprioritiseJobSet,proto3,oneof"` } -func (m *JobRequeued) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type EventSequence_Event_ReprioritisedJob struct { + ReprioritisedJob *ReprioritisedJob `protobuf:"bytes,4,opt,name=reprioritisedJob,proto3,oneof"` } -func (m *JobRequeued) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x22 - } - if m.UpdateSequenceNumber != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.UpdateSequenceNumber)) - i-- - dAtA[i] = 0x18 - } - if m.SchedulingInfo != nil { - { - size, err := m.SchedulingInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil +type EventSequence_Event_CancelJob struct { + CancelJob *CancelJob `protobuf:"bytes,5,opt,name=cancelJob,proto3,oneof"` } -func (m *ReprioritiseJobSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type EventSequence_Event_CancelJobSet struct { + CancelJobSet *CancelJobSet `protobuf:"bytes,6,opt,name=cancelJobSet,proto3,oneof"` } -func (m *ReprioritiseJobSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type EventSequence_Event_CancelledJob struct { + CancelledJob *CancelledJob `protobuf:"bytes,7,opt,name=cancelledJob,proto3,oneof"` } -func (m *ReprioritiseJobSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Priority != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.Priority)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil +type EventSequence_Event_JobSucceeded struct { + JobSucceeded *JobSucceeded `protobuf:"bytes,8,opt,name=jobSucceeded,proto3,oneof"` } -func (m *ReprioritisedJob) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type EventSequence_Event_JobErrors struct { + JobErrors *JobErrors `protobuf:"bytes,9,opt,name=jobErrors,proto3,oneof"` } -func (m *ReprioritisedJob) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type EventSequence_Event_JobRunLeased struct { + JobRunLeased *JobRunLeased `protobuf:"bytes,10,opt,name=jobRunLeased,proto3,oneof"` } -func (m *ReprioritisedJob) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x1a - } - if m.Priority != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.Priority)) - i-- - dAtA[i] = 0x10 - } - return len(dAtA) - i, nil +type EventSequence_Event_JobRunAssigned struct { + JobRunAssigned *JobRunAssigned `protobuf:"bytes,11,opt,name=jobRunAssigned,proto3,oneof"` } -func (m *CancelJob) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type EventSequence_Event_JobRunRunning struct { + JobRunRunning *JobRunRunning `protobuf:"bytes,12,opt,name=jobRunRunning,proto3,oneof"` } -func (m *CancelJob) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type EventSequence_Event_JobRunSucceeded struct { + JobRunSucceeded *JobRunSucceeded `protobuf:"bytes,13,opt,name=jobRunSucceeded,proto3,oneof"` } -func (m *CancelJob) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x1a - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil +type EventSequence_Event_JobRunErrors struct { + JobRunErrors *JobRunErrors `protobuf:"bytes,14,opt,name=jobRunErrors,proto3,oneof"` } -func (m *JobSetFilter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobSetFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobSetFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.States) > 0 { - dAtA41 := make([]byte, len(m.States)*10) - var j40 int - for _, num := range m.States { - for num >= 1<<7 { - dAtA41[j40] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j40++ - } - dAtA41[j40] = uint8(num) - j40++ - } - i -= j40 - copy(dAtA[i:], dAtA41[:j40]) - i = encodeVarintEvents(dAtA, i, uint64(j40)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type EventSequence_Event_StandaloneIngressInfo struct { + StandaloneIngressInfo *StandaloneIngressInfo `protobuf:"bytes,16,opt,name=standaloneIngressInfo,proto3,oneof"` } -func (m *CancelJobSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type EventSequence_Event_ResourceUtilisation struct { + ResourceUtilisation *ResourceUtilisation `protobuf:"bytes,17,opt,name=resourceUtilisation,proto3,oneof"` } -func (m *CancelJobSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type EventSequence_Event_JobRunPreempted struct { + JobRunPreempted *JobRunPreempted `protobuf:"bytes,19,opt,name=jobRunPreempted,proto3,oneof"` } -func (m *CancelJobSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x12 - } - if len(m.States) > 0 { - dAtA43 := make([]byte, len(m.States)*10) - var j42 int - for _, num := range m.States { - for num >= 1<<7 { - dAtA43[j42] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j42++ - } - dAtA43[j42] = uint8(num) - j42++ - } - i -= j42 - copy(dAtA[i:], dAtA43[:j42]) - i = encodeVarintEvents(dAtA, i, uint64(j42)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type EventSequence_Event_PartitionMarker struct { + PartitionMarker *PartitionMarker `protobuf:"bytes,20,opt,name=partitionMarker,proto3,oneof"` } -func (m *CancelledJob) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type EventSequence_Event_JobRunPreemptionRequested struct { + JobRunPreemptionRequested *JobRunPreemptionRequested `protobuf:"bytes,21,opt,name=jobRunPreemptionRequested,proto3,oneof"` } -func (m *CancelledJob) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type EventSequence_Event_JobRequeued struct { + JobRequeued *JobRequeued `protobuf:"bytes,22,opt,name=jobRequeued,proto3,oneof"` } -func (m *CancelledJob) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CancelUser) > 0 { - i -= len(m.CancelUser) - copy(dAtA[i:], m.CancelUser) - i = encodeVarintEvents(dAtA, i, uint64(len(m.CancelUser))) - i-- - dAtA[i] = 0x22 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x1a - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil +type EventSequence_Event_JobPreemptionRequested struct { + JobPreemptionRequested *JobPreemptionRequested `protobuf:"bytes,23,opt,name=jobPreemptionRequested,proto3,oneof"` } -func (m *JobSucceeded) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type EventSequence_Event_JobRunCancelled struct { + JobRunCancelled *JobRunCancelled `protobuf:"bytes,24,opt,name=jobRunCancelled,proto3,oneof"` } -func (m *JobSucceeded) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type EventSequence_Event_JobValidated struct { + JobValidated *JobValidated `protobuf:"bytes,25,opt,name=jobValidated,proto3,oneof"` } -func (m *JobSucceeded) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x1a - } - if len(m.ResourceInfos) > 0 { - for iNdEx := len(m.ResourceInfos) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ResourceInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - return len(dAtA) - i, nil -} +func (*EventSequence_Event_SubmitJob) isEventSequence_Event_Event() {} -func (m *JobRunLeased) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +func (*EventSequence_Event_ReprioritiseJob) isEventSequence_Event_Event() {} -func (m *JobRunLeased) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*EventSequence_Event_ReprioritiseJobSet) isEventSequence_Event_Event() {} -func (m *JobRunLeased) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Pool) > 0 { - i -= len(m.Pool) - copy(dAtA[i:], m.Pool) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Pool))) - i-- - dAtA[i] = 0x62 - } - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0x5a - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x52 - } - if m.PodRequirementsOverlay != nil { - { - size, err := m.PodRequirementsOverlay.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.ScheduledAtPriority != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.ScheduledAtPriority)) - i-- - dAtA[i] = 0x38 - } - if m.HasScheduledAtPriority { - i-- - if m.HasScheduledAtPriority { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.UpdateSequenceNumber != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.UpdateSequenceNumber)) - i-- - dAtA[i] = 0x28 - } - if len(m.NodeId) > 0 { - i -= len(m.NodeId) - copy(dAtA[i:], m.NodeId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.NodeId))) - i-- - dAtA[i] = 0x22 - } - if len(m.ExecutorId) > 0 { - i -= len(m.ExecutorId) - copy(dAtA[i:], m.ExecutorId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.ExecutorId))) - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} +func (*EventSequence_Event_ReprioritisedJob) isEventSequence_Event_Event() {} -func (m *JobRunAssigned) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +func (*EventSequence_Event_CancelJob) isEventSequence_Event_Event() {} -func (m *JobRunAssigned) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*EventSequence_Event_CancelJobSet) isEventSequence_Event_Event() {} -func (m *JobRunAssigned) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0x2a - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x22 - } - if len(m.ResourceInfos) > 0 { - for iNdEx := len(m.ResourceInfos) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ResourceInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - return len(dAtA) - i, nil -} +func (*EventSequence_Event_CancelledJob) isEventSequence_Event_Event() {} -func (m *JobRunRunning) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +func (*EventSequence_Event_JobSucceeded) isEventSequence_Event_Event() {} -func (m *JobRunRunning) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*EventSequence_Event_JobErrors) isEventSequence_Event_Event() {} -func (m *JobRunRunning) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0x2a - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x22 - } - if len(m.ResourceInfos) > 0 { - for iNdEx := len(m.ResourceInfos) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ResourceInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - return len(dAtA) - i, nil -} +func (*EventSequence_Event_JobRunLeased) isEventSequence_Event_Event() {} -func (m *KubernetesResourceInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *KubernetesResourceInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KubernetesResourceInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Info != nil { - { - size := m.Info.Size() - i -= size - if _, err := m.Info.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.ObjectMeta != nil { - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +func (*EventSequence_Event_JobRunAssigned) isEventSequence_Event_Event() {} -func (m *KubernetesResourceInfo_PodInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*EventSequence_Event_JobRunRunning) isEventSequence_Event_Event() {} -func (m *KubernetesResourceInfo_PodInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.PodInfo != nil { - { - size, err := m.PodInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *KubernetesResourceInfo_IngressInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KubernetesResourceInfo_IngressInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.IngressInfo != nil { - { - size, err := m.IngressInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} -func (m *PodInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +func (*EventSequence_Event_JobRunSucceeded) isEventSequence_Event_Event() {} -func (m *PodInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*EventSequence_Event_JobRunErrors) isEventSequence_Event_Event() {} -func (m *PodInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PodNumber != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x10 - } - if len(m.NodeName) > 0 { - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintEvents(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +func (*EventSequence_Event_StandaloneIngressInfo) isEventSequence_Event_Event() {} -func (m *IngressInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.IngressAddresses) > 0 { - for k := range m.IngressAddresses { - v := m.IngressAddresses[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintEvents(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i = encodeVarintEvents(dAtA, i, uint64(k)) - i-- - dAtA[i] = 0x8 - i = encodeVarintEvents(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.NodeName) > 0 { - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintEvents(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +func (*EventSequence_Event_ResourceUtilisation) isEventSequence_Event_Event() {} -func (m *StandaloneIngressInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +func (*EventSequence_Event_JobRunPreempted) isEventSequence_Event_Event() {} -func (m *StandaloneIngressInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*EventSequence_Event_PartitionMarker) isEventSequence_Event_Event() {} -func (m *StandaloneIngressInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0x52 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x4a - } - if len(m.PodNamespace) > 0 { - i -= len(m.PodNamespace) - copy(dAtA[i:], m.PodNamespace) - i = encodeVarintEvents(dAtA, i, uint64(len(m.PodNamespace))) - i-- - dAtA[i] = 0x42 - } - if len(m.PodName) > 0 { - i -= len(m.PodName) - copy(dAtA[i:], m.PodName) - i = encodeVarintEvents(dAtA, i, uint64(len(m.PodName))) - i-- - dAtA[i] = 0x3a - } - if m.PodNumber != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x30 - } - if len(m.NodeName) > 0 { - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintEvents(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0x2a - } - if len(m.IngressAddresses) > 0 { - for k := range m.IngressAddresses { - v := m.IngressAddresses[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintEvents(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i = encodeVarintEvents(dAtA, i, uint64(k)) - i-- - dAtA[i] = 0x8 - i = encodeVarintEvents(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - } - } - if m.ObjectMeta != nil { - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} +func (*EventSequence_Event_JobRunPreemptionRequested) isEventSequence_Event_Event() {} -func (m *JobRunSucceeded) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +func (*EventSequence_Event_JobRequeued) isEventSequence_Event_Event() {} + +func (*EventSequence_Event_JobPreemptionRequested) isEventSequence_Event_Event() {} + +func (*EventSequence_Event_JobRunCancelled) isEventSequence_Event_Event() {} + +func (*EventSequence_Event_JobValidated) isEventSequence_Event_Event() {} + +var File_pkg_armadaevents_events_proto protoreflect.FileDescriptor + +var file_pkg_armadaevents_events_proto_rawDesc = string([]byte{ + 0x0a, 0x1d, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0c, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x22, 0x6b, + 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, + 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x28, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x34, 0x6b, 0x38, + 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x72, + 0x79, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x3a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x95, + 0x0f, 0x0a, 0x0d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, + 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6a, 0x6f, + 0x62, 0x53, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x39, 0x0a, 0x06, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x72, 0x6d, 0x61, + 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65, + 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x1a, 0xdf, 0x0d, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x34, + 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x12, 0x37, 0x0a, 0x09, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, + 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, 0x62, + 0x48, 0x00, 0x52, 0x09, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x49, 0x0a, + 0x0f, 0x72, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x73, 0x65, 0x4a, 0x6f, 0x62, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, + 0x73, 0x65, 0x4a, 0x6f, 0x62, 0x48, 0x00, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, + 0x69, 0x74, 0x69, 0x73, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x52, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x72, + 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x73, 0x65, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x73, 0x65, + 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x48, 0x00, 0x52, 0x12, 0x72, 0x65, 0x70, 0x72, 0x69, 0x6f, + 0x72, 0x69, 0x74, 0x69, 0x73, 0x65, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x12, 0x4c, 0x0a, 0x10, + 0x72, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x73, 0x65, 0x64, 0x4a, 0x6f, 0x62, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, + 0x73, 0x65, 0x64, 0x4a, 0x6f, 0x62, 0x48, 0x00, 0x52, 0x10, 0x72, 0x65, 0x70, 0x72, 0x69, 0x6f, + 0x72, 0x69, 0x74, 0x69, 0x73, 0x65, 0x64, 0x4a, 0x6f, 0x62, 0x12, 0x37, 0x0a, 0x09, 0x63, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x4a, 0x6f, 0x62, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x4a, 0x6f, 0x62, 0x48, 0x00, 0x52, 0x09, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x4a, 0x6f, 0x62, 0x12, 0x40, 0x0a, 0x0c, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4a, 0x6f, 0x62, + 0x53, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x72, 0x6d, 0x61, + 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4a, + 0x6f, 0x62, 0x53, 0x65, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4a, + 0x6f, 0x62, 0x53, 0x65, 0x74, 0x12, 0x40, 0x0a, 0x0c, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, + 0x65, 0x64, 0x4a, 0x6f, 0x62, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x72, + 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x6c, 0x65, 0x64, 0x4a, 0x6f, 0x62, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x6c, 0x65, 0x64, 0x4a, 0x6f, 0x62, 0x12, 0x40, 0x0a, 0x0c, 0x6a, 0x6f, 0x62, 0x53, 0x75, + 0x63, 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, + 0x53, 0x75, 0x63, 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0c, 0x6a, 0x6f, 0x62, + 0x53, 0x75, 0x63, 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x12, 0x37, 0x0a, 0x09, 0x6a, 0x6f, 0x62, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, + 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x73, 0x48, 0x00, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0c, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x4c, 0x65, 0x61, 0x73, + 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, + 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x4c, 0x65, + 0x61, 0x73, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0c, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x4c, 0x65, + 0x61, 0x73, 0x65, 0x64, 0x12, 0x46, 0x0a, 0x0e, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x41, 0x73, + 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, + 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, + 0x75, 0x6e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0e, 0x6a, 0x6f, + 0x62, 0x52, 0x75, 0x6e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x12, 0x43, 0x0a, 0x0d, + 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, + 0x48, 0x00, 0x52, 0x0d, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, + 0x67, 0x12, 0x49, 0x0a, 0x0f, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, + 0x65, 0x64, 0x65, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x72, 0x6d, + 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, + 0x53, 0x75, 0x63, 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x6a, 0x6f, 0x62, + 0x52, 0x75, 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x12, 0x40, 0x0a, 0x0c, + 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x0e, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x48, 0x00, + 0x52, 0x0c, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x5b, + 0x0a, 0x15, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x6c, 0x6f, 0x6e, 0x65, 0x49, 0x6e, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, + 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, + 0x6e, 0x64, 0x61, 0x6c, 0x6f, 0x6e, 0x65, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, + 0x66, 0x6f, 0x48, 0x00, 0x52, 0x15, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x6c, 0x6f, 0x6e, 0x65, + 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x55, 0x0a, 0x13, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x73, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, + 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x55, 0x74, 0x69, 0x6c, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x13, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x73, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x0f, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x50, 0x72, 0x65, 0x65, + 0x6d, 0x70, 0x74, 0x65, 0x64, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x72, + 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, + 0x6e, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x6a, 0x6f, + 0x62, 0x52, 0x75, 0x6e, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x12, 0x49, 0x0a, + 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, + 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x61, 0x72, 0x6b, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x12, 0x67, 0x0a, 0x19, 0x6a, 0x6f, 0x62, 0x52, + 0x75, 0x6e, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x61, 0x72, + 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, + 0x6e, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x19, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x50, 0x72, + 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, + 0x64, 0x12, 0x3d, 0x0a, 0x0b, 0x6a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, + 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x75, 0x65, + 0x64, 0x48, 0x00, 0x52, 0x0b, 0x6a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, + 0x12, 0x5e, 0x0a, 0x16, 0x6a, 0x6f, 0x62, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x24, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x16, 0x6a, 0x6f, 0x62, 0x50, 0x72, 0x65, + 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, + 0x12, 0x49, 0x0a, 0x0f, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x6c, 0x65, 0x64, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x72, 0x6d, 0x61, + 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x43, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x6a, 0x6f, 0x62, 0x52, + 0x75, 0x6e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x40, 0x0a, 0x0c, 0x6a, + 0x6f, 0x62, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x19, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, + 0x2e, 0x4a, 0x6f, 0x62, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, + 0x0c, 0x6a, 0x6f, 0x62, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a, + 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0xe8, 0x06, 0x0a, 0x13, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, + 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x75, 0x0a, 0x18, 0x6d, 0x61, 0x78, + 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x70, + 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x61, 0x72, + 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, + 0x61, 0x78, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x50, 0x65, + 0x72, 0x69, 0x6f, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x15, 0x6d, 0x61, 0x78, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, + 0x12, 0x71, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x75, 0x6d, 0x75, 0x6c, 0x61, + 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x3b, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x73, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x75, 0x6d, 0x75, 0x6c, 0x61, 0x74, + 0x69, 0x76, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x14, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x75, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x55, 0x73, + 0x61, 0x67, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, + 0x64, 0x12, 0x75, 0x0a, 0x18, 0x61, 0x76, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x08, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, + 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x76, 0x67, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x15, 0x61, 0x76, 0x67, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x46, + 0x6f, 0x72, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x1a, 0x78, 0x0a, 0x1a, 0x4d, 0x61, 0x78, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x50, 0x65, 0x72, 0x69, 0x6f, + 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, + 0x2e, 0x61, 0x70, 0x69, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6b, + 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x51, + 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x1a, 0x77, 0x0a, 0x19, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x75, 0x6d, 0x75, 0x6c, + 0x61, 0x74, 0x69, 0x76, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x44, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2e, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x6d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x78, 0x0a, 0x1a, 0x41, + 0x76, 0x67, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x50, 0x65, + 0x72, 0x69, 0x6f, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6b, 0x38, 0x73, + 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x72, 0x79, + 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, + 0x03, 0x22, 0xfb, 0x03, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, 0x62, 0x12, + 0x29, 0x0a, 0x10, 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x64, 0x75, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, + 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x72, + 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x38, 0x0a, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x4d, 0x65, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x72, 0x6d, + 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, + 0x12, 0x42, 0x0a, 0x0a, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x4d, 0x61, + 0x69, 0x6e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x0a, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, + 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x1a, + 0x0a, 0x08, 0x6c, 0x69, 0x66, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x08, 0x6c, 0x69, 0x66, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x74, + 0x4d, 0x6f, 0x73, 0x74, 0x4f, 0x6e, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, + 0x61, 0x74, 0x4d, 0x6f, 0x73, 0x74, 0x4f, 0x6e, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72, + 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0b, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x28, 0x0a, 0x0f, + 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x53, 0x61, 0x66, 0x65, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, + 0x63, 0x79, 0x53, 0x61, 0x66, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x73, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x44, 0x75, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x4a, 0x04, 0x08, + 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x0d, 0x10, 0x0e, 0x4a, 0x04, 0x08, 0x0f, 0x10, 0x10, 0x22, + 0x9b, 0x01, 0x0a, 0x14, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x4d, 0x61, + 0x69, 0x6e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x6f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, + 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, + 0x74, 0x61, 0x12, 0x3f, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x50, 0x6f, 0x64, 0x53, 0x70, 0x65, 0x63, 0x57, 0x69, 0x74, 0x68, 0x41, + 0x76, 0x6f, 0x69, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x53, + 0x70, 0x65, 0x63, 0x42, 0x08, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0xd6, 0x02, + 0x0a, 0x10, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, + 0x52, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x3f, 0x0a, 0x08, + 0x70, 0x6f, 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, + 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x50, 0x6f, + 0x64, 0x53, 0x70, 0x65, 0x63, 0x57, 0x69, 0x74, 0x68, 0x41, 0x76, 0x6f, 0x69, 0x64, 0x4c, 0x69, + 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x53, 0x70, 0x65, 0x63, 0x12, 0x41, 0x0a, + 0x07, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, + 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x53, 0x70, 0x65, 0x63, 0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x3b, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x70, + 0x65, 0x63, 0x48, 0x00, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3d, 0x0a, + 0x09, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4d, 0x61, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4d, 0x61, 0x70, 0x48, + 0x00, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4d, 0x61, 0x70, 0x42, 0x08, 0x0a, 0x06, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x8a, 0x03, 0x0a, 0x0a, 0x4f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6b, 0x75, 0x62, 0x65, + 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x49, 0x64, 0x12, 0x4b, 0x0a, + 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, + 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3c, 0x0a, 0x06, 0x6c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x72, 0x6d, + 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x4d, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0x75, 0x0a, 0x14, 0x50, 0x6f, 0x64, 0x53, 0x70, 0x65, 0x63, 0x57, 0x69, + 0x74, 0x68, 0x41, 0x76, 0x6f, 0x69, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x08, 0x70, + 0x6f, 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x64, 0x53, 0x70, 0x65, 0x63, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x53, + 0x70, 0x65, 0x63, 0x12, 0x25, 0x0a, 0x0e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x61, 0x76, 0x6f, 0x69, + 0x64, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x6f, 0x64, + 0x65, 0x41, 0x76, 0x6f, 0x69, 0x64, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x4a, 0x0a, 0x0f, 0x52, 0x65, + 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x73, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x1a, 0x0a, + 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, + 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0xae, 0x01, 0x0a, 0x0b, 0x4a, 0x6f, 0x62, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x12, 0x4c, 0x0a, 0x0f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x23, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x34, 0x0a, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x73, + 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x71, 0x75, + 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, + 0x62, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, + 0x64, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0x30, 0x0a, 0x12, 0x52, 0x65, 0x70, 0x72, 0x69, + 0x6f, 0x72, 0x69, 0x74, 0x69, 0x73, 0x65, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x12, 0x1a, 0x0a, + 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x4b, 0x0a, 0x10, 0x52, 0x65, 0x70, + 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x73, 0x65, 0x64, 0x4a, 0x6f, 0x62, 0x12, 0x1a, 0x0a, + 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, + 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0x40, 0x0a, 0x09, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x4a, 0x6f, 0x62, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x06, 0x6a, + 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, + 0x49, 0x64, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0x3e, 0x0a, 0x0c, 0x4a, 0x6f, 0x62, 0x53, + 0x65, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, + 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x22, 0x56, 0x0a, 0x0c, 0x43, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, + 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x22, 0x64, 0x0a, 0x0c, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x4a, 0x6f, 0x62, + 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, + 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, + 0x1f, 0x0a, 0x0b, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x55, 0x73, 0x65, 0x72, + 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0x77, 0x0a, 0x0c, 0x4a, 0x6f, 0x62, 0x53, 0x75, 0x63, + 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x12, 0x4a, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4b, 0x75, 0x62, + 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, + 0x6f, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, + 0x9e, 0x03, 0x0a, 0x0c, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x64, + 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x49, + 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x16, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x12, 0x39, 0x0a, 0x19, 0x68, 0x61, 0x73, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x64, 0x5f, 0x61, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x16, 0x68, 0x61, 0x73, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x64, 0x41, 0x74, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x32, 0x0a, 0x15, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x64, 0x41, 0x74, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, + 0x5b, 0x0a, 0x18, 0x70, 0x6f, 0x64, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x6c, 0x61, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x6f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x2e, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x16, 0x70, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x4f, 0x76, 0x65, 0x72, 0x6c, 0x61, 0x79, 0x12, 0x15, 0x0a, 0x06, + 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, + 0x62, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, + 0x6f, 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x4a, 0x04, + 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, 0x08, 0x08, 0x10, 0x09, + 0x22, 0x96, 0x01, 0x0a, 0x0e, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x41, 0x73, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x64, 0x12, 0x4a, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, + 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x72, 0x6d, + 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, + 0x65, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, + 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x4a, 0x04, 0x08, + 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x95, 0x01, 0x0a, 0x0d, 0x4a, 0x6f, + 0x62, 0x52, 0x75, 0x6e, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x4a, 0x0a, 0x0d, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x15, + 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x72, 0x75, 0x6e, 0x49, 0x64, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, + 0x03, 0x22, 0xcc, 0x01, 0x0a, 0x16, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x38, 0x0a, 0x0a, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x6f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x31, 0x0a, 0x07, 0x70, 0x6f, 0x64, 0x49, 0x6e, 0x66, + 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x50, 0x6f, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, + 0x52, 0x07, 0x70, 0x6f, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3d, 0x0a, 0x0b, 0x69, 0x6e, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x49, 0x6e, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x0b, 0x69, 0x6e, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x06, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, + 0x22, 0x45, 0x0a, 0x07, 0x50, 0x6f, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x6e, + 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x64, 0x5f, + 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, + 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xcd, 0x01, 0x0a, 0x0b, 0x49, 0x6e, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x5c, 0x0a, 0x11, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2f, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x49, + 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x49, 0x6e, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x10, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x65, 0x73, 0x1a, 0x43, 0x0a, 0x15, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb4, 0x03, 0x0a, 0x15, 0x53, 0x74, 0x61, 0x6e, + 0x64, 0x61, 0x6c, 0x6f, 0x6e, 0x65, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, + 0x6f, 0x12, 0x38, 0x0a, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x52, + 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x66, 0x0a, 0x11, 0x69, + 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x6c, 0x6f, 0x6e, 0x65, + 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x49, 0x6e, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x10, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, + 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x6f, + 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, + 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x1a, 0x43, 0x0a, + 0x15, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x97, + 0x01, 0x0a, 0x0f, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x65, 0x64, + 0x65, 0x64, 0x12, 0x4a, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, + 0x66, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x72, 0x6d, 0x61, + 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, + 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x15, + 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x4a, 0x04, 0x08, 0x01, + 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x55, 0x0a, 0x09, 0x4a, 0x6f, 0x62, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, + 0x75, 0x0a, 0x0c, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, + 0x2b, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x13, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x15, 0x0a, 0x06, + 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, + 0x62, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, + 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0xd7, 0x06, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x08, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x12, 0x49, 0x0a, 0x0f, + 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x0f, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, + 0x65, 0x73, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x46, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x43, + 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, + 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, + 0x43, 0x0a, 0x0d, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x45, 0x72, + 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x0d, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x12, 0x4c, 0x0a, 0x10, 0x70, 0x6f, 0x64, 0x55, 0x6e, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x50, 0x6f, + 0x64, 0x55, 0x6e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x48, 0x00, + 0x52, 0x10, 0x70, 0x6f, 0x64, 0x55, 0x6e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x61, 0x62, + 0x6c, 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x69, 0x72, + 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, + 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, + 0x69, 0x72, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, + 0x69, 0x72, 0x65, 0x64, 0x12, 0x49, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x52, 0x75, 0x6e, 0x73, 0x45, + 0x78, 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4d, 0x61, 0x78, + 0x52, 0x75, 0x6e, 0x73, 0x45, 0x78, 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, + 0x6d, 0x61, 0x78, 0x52, 0x75, 0x6e, 0x73, 0x45, 0x78, 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x12, + 0x34, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, + 0x2e, 0x50, 0x6f, 0x64, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x08, 0x70, 0x6f, 0x64, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x4c, 0x0a, 0x10, 0x70, 0x6f, 0x64, 0x4c, 0x65, 0x61, 0x73, + 0x65, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x50, + 0x6f, 0x64, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x48, + 0x00, 0x52, 0x10, 0x70, 0x6f, 0x64, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x65, 0x64, 0x12, 0x58, 0x0a, 0x14, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x50, 0x72, 0x65, + 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, + 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x14, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x50, + 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x58, 0x0a, + 0x14, 0x67, 0x61, 0x6e, 0x67, 0x4a, 0x6f, 0x62, 0x55, 0x6e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x72, + 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x47, 0x61, 0x6e, 0x67, 0x4a, + 0x6f, 0x62, 0x55, 0x6e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x48, + 0x00, 0x52, 0x14, 0x67, 0x61, 0x6e, 0x67, 0x4a, 0x6f, 0x62, 0x55, 0x6e, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x3d, 0x0a, 0x0b, 0x6a, 0x6f, 0x62, 0x52, 0x65, + 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, + 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, + 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0b, 0x6a, 0x6f, 0x62, 0x52, 0x65, + 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x22, 0x35, 0x0a, 0x0f, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x45, 0x72, + 0x72, 0x6f, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0xd3, 0x02, 0x0a, 0x08, 0x50, 0x6f, 0x64, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x12, 0x38, 0x0a, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, + 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, + 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, + 0x74, 0x61, 0x52, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, + 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x64, 0x4e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x12, 0x46, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, + 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x0f, 0x63, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x4b, 0x0a, 0x11, + 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, + 0x73, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x10, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, + 0x74, 0x65, 0x73, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x62, + 0x75, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x64, 0x65, 0x62, 0x75, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xe6, 0x01, + 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x12, 0x38, 0x0a, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x78, + 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, + 0x78, 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x11, 0x6b, 0x75, 0x62, + 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x52, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x10, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, + 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0xce, 0x01, 0x0a, 0x10, 0x50, 0x6f, 0x64, 0x4c, 0x65, + 0x61, 0x73, 0x65, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x0a, 0x6f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x18, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, + 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x23, + 0x0a, 0x0d, 0x72, 0x75, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x75, 0x6e, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, + 0x74, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x62, 0x75, 0x67, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65, 0x62, 0x75, 0x67, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x9f, 0x01, 0x0a, 0x0d, 0x50, 0x6f, 0x64, 0x54, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x0a, 0x6f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, + 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, + 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, + 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, + 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, + 0x70, 0x6f, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x0f, 0x0a, 0x0d, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x6f, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xa2, 0x01, 0x0a, 0x10, 0x50, + 0x6f, 0x64, 0x55, 0x6e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, + 0x38, 0x0a, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x6f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x6f, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, + 0x0e, 0x0a, 0x0c, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x22, + 0x2b, 0x0a, 0x0f, 0x4d, 0x61, 0x78, 0x52, 0x75, 0x6e, 0x73, 0x45, 0x78, 0x63, 0x65, 0x65, 0x64, + 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x2e, 0x0a, 0x14, + 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x30, 0x0a, 0x14, + 0x47, 0x61, 0x6e, 0x67, 0x4a, 0x6f, 0x62, 0x55, 0x6e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x61, 0x62, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x27, + 0x0a, 0x0b, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x83, 0x01, 0x0a, 0x0f, 0x4a, 0x6f, 0x62, 0x52, + 0x75, 0x6e, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x70, + 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, + 0x4a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, + 0x65, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, + 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x05, 0x22, 0x50, 0x0a, + 0x0f, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, + 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x70, + 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, + 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, + 0x55, 0x0a, 0x19, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x15, 0x0a, 0x06, + 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, + 0x62, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, + 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x4d, 0x0a, 0x16, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x65, + 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, + 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x4a, + 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0x41, 0x0a, 0x0c, 0x4a, 0x6f, 0x62, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x6a, + 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, + 0x49, 0x64, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0x4b, 0x0a, 0x0f, 0x4a, 0x6f, 0x62, 0x52, + 0x75, 0x6e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6a, + 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, + 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, + 0x04, 0x08, 0x02, 0x10, 0x03, 0x2a, 0x30, 0x0a, 0x08, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x51, 0x55, 0x45, 0x55, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, + 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, + 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x2a, 0x4c, 0x0a, 0x10, 0x4b, 0x75, 0x62, 0x65, 0x72, + 0x6e, 0x65, 0x74, 0x65, 0x73, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x0c, 0x0a, 0x08, 0x41, + 0x70, 0x70, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x76, 0x69, + 0x63, 0x74, 0x65, 0x64, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4f, 0x4d, 0x10, 0x02, 0x12, + 0x14, 0x0a, 0x10, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x45, 0x78, 0x63, 0x65, 0x65, + 0x64, 0x65, 0x64, 0x10, 0x03, 0x42, 0x52, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x72, 0x6d, + 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0xaa, 0x02, 0x1d, 0x41, 0x72, 0x6d, 0x61, + 0x64, 0x61, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x6f, 0x2e, 0x41, 0x72, 0x6d, + 0x61, 0x64, 0x61, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +}) -func (m *JobRunSucceeded) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +var ( + file_pkg_armadaevents_events_proto_rawDescOnce sync.Once + file_pkg_armadaevents_events_proto_rawDescData []byte +) -func (m *JobRunSucceeded) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0x2a - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x22 - } - if len(m.ResourceInfos) > 0 { - for iNdEx := len(m.ResourceInfos) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ResourceInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } +func file_pkg_armadaevents_events_proto_rawDescGZIP() []byte { + file_pkg_armadaevents_events_proto_rawDescOnce.Do(func() { + file_pkg_armadaevents_events_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_armadaevents_events_proto_rawDesc), len(file_pkg_armadaevents_events_proto_rawDesc))) + }) + return file_pkg_armadaevents_events_proto_rawDescData +} + +var file_pkg_armadaevents_events_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_pkg_armadaevents_events_proto_msgTypes = make([]protoimpl.MessageInfo, 53) +var file_pkg_armadaevents_events_proto_goTypes = []any{ + (JobState)(0), // 0: armadaevents.JobState + (KubernetesReason)(0), // 1: armadaevents.KubernetesReason + (*EventSequence)(nil), // 2: armadaevents.EventSequence + (*ResourceUtilisation)(nil), // 3: armadaevents.ResourceUtilisation + (*SubmitJob)(nil), // 4: armadaevents.SubmitJob + (*KubernetesMainObject)(nil), // 5: armadaevents.KubernetesMainObject + (*KubernetesObject)(nil), // 6: armadaevents.KubernetesObject + (*ObjectMeta)(nil), // 7: armadaevents.ObjectMeta + (*PodSpecWithAvoidList)(nil), // 8: armadaevents.PodSpecWithAvoidList + (*ReprioritiseJob)(nil), // 9: armadaevents.ReprioritiseJob + (*JobRequeued)(nil), // 10: armadaevents.JobRequeued + (*ReprioritiseJobSet)(nil), // 11: armadaevents.ReprioritiseJobSet + (*ReprioritisedJob)(nil), // 12: armadaevents.ReprioritisedJob + (*CancelJob)(nil), // 13: armadaevents.CancelJob + (*JobSetFilter)(nil), // 14: armadaevents.JobSetFilter + (*CancelJobSet)(nil), // 15: armadaevents.CancelJobSet + (*CancelledJob)(nil), // 16: armadaevents.CancelledJob + (*JobSucceeded)(nil), // 17: armadaevents.JobSucceeded + (*JobRunLeased)(nil), // 18: armadaevents.JobRunLeased + (*JobRunAssigned)(nil), // 19: armadaevents.JobRunAssigned + (*JobRunRunning)(nil), // 20: armadaevents.JobRunRunning + (*KubernetesResourceInfo)(nil), // 21: armadaevents.KubernetesResourceInfo + (*PodInfo)(nil), // 22: armadaevents.PodInfo + (*IngressInfo)(nil), // 23: armadaevents.IngressInfo + (*StandaloneIngressInfo)(nil), // 24: armadaevents.StandaloneIngressInfo + (*JobRunSucceeded)(nil), // 25: armadaevents.JobRunSucceeded + (*JobErrors)(nil), // 26: armadaevents.JobErrors + (*JobRunErrors)(nil), // 27: armadaevents.JobRunErrors + (*Error)(nil), // 28: armadaevents.Error + (*KubernetesError)(nil), // 29: armadaevents.KubernetesError + (*PodError)(nil), // 30: armadaevents.PodError + (*ContainerError)(nil), // 31: armadaevents.ContainerError + (*PodLeaseReturned)(nil), // 32: armadaevents.PodLeaseReturned + (*PodTerminated)(nil), // 33: armadaevents.PodTerminated + (*ExecutorError)(nil), // 34: armadaevents.ExecutorError + (*PodUnschedulable)(nil), // 35: armadaevents.PodUnschedulable + (*LeaseExpired)(nil), // 36: armadaevents.LeaseExpired + (*MaxRunsExceeded)(nil), // 37: armadaevents.MaxRunsExceeded + (*JobRunPreemptedError)(nil), // 38: armadaevents.JobRunPreemptedError + (*GangJobUnschedulable)(nil), // 39: armadaevents.GangJobUnschedulable + (*JobRejected)(nil), // 40: armadaevents.JobRejected + (*JobRunPreempted)(nil), // 41: armadaevents.JobRunPreempted + (*PartitionMarker)(nil), // 42: armadaevents.PartitionMarker + (*JobRunPreemptionRequested)(nil), // 43: armadaevents.JobRunPreemptionRequested + (*JobPreemptionRequested)(nil), // 44: armadaevents.JobPreemptionRequested + (*JobValidated)(nil), // 45: armadaevents.JobValidated + (*JobRunCancelled)(nil), // 46: armadaevents.JobRunCancelled + (*EventSequence_Event)(nil), // 47: armadaevents.EventSequence.Event + nil, // 48: armadaevents.ResourceUtilisation.MaxResourcesForPeriodEntry + nil, // 49: armadaevents.ResourceUtilisation.TotalCumulativeUsageEntry + nil, // 50: armadaevents.ResourceUtilisation.AvgResourcesForPeriodEntry + nil, // 51: armadaevents.ObjectMeta.AnnotationsEntry + nil, // 52: armadaevents.ObjectMeta.LabelsEntry + nil, // 53: armadaevents.IngressInfo.IngressAddressesEntry + nil, // 54: armadaevents.StandaloneIngressInfo.IngressAddressesEntry + (*v1.IngressSpec)(nil), // 55: k8s.io.api.networking.v1.IngressSpec + (*v11.ServiceSpec)(nil), // 56: k8s.io.api.core.v1.ServiceSpec + (*v11.ConfigMap)(nil), // 57: k8s.io.api.core.v1.ConfigMap + (*v11.PodSpec)(nil), // 58: k8s.io.api.core.v1.PodSpec + (*schedulerobjects.JobSchedulingInfo)(nil), // 59: schedulerobjects.JobSchedulingInfo + (*schedulerobjects.PodRequirements)(nil), // 60: schedulerobjects.PodRequirements + (*timestamppb.Timestamp)(nil), // 61: google.protobuf.Timestamp + (*resource.Quantity)(nil), // 62: k8s.io.apimachinery.pkg.api.resource.Quantity +} +var file_pkg_armadaevents_events_proto_depIdxs = []int32{ + 47, // 0: armadaevents.EventSequence.events:type_name -> armadaevents.EventSequence.Event + 21, // 1: armadaevents.ResourceUtilisation.resource_info:type_name -> armadaevents.KubernetesResourceInfo + 48, // 2: armadaevents.ResourceUtilisation.max_resources_for_period:type_name -> armadaevents.ResourceUtilisation.MaxResourcesForPeriodEntry + 49, // 3: armadaevents.ResourceUtilisation.total_cumulative_usage:type_name -> armadaevents.ResourceUtilisation.TotalCumulativeUsageEntry + 50, // 4: armadaevents.ResourceUtilisation.avg_resources_for_period:type_name -> armadaevents.ResourceUtilisation.AvgResourcesForPeriodEntry + 7, // 5: armadaevents.SubmitJob.objectMeta:type_name -> armadaevents.ObjectMeta + 5, // 6: armadaevents.SubmitJob.mainObject:type_name -> armadaevents.KubernetesMainObject + 6, // 7: armadaevents.SubmitJob.objects:type_name -> armadaevents.KubernetesObject + 7, // 8: armadaevents.KubernetesMainObject.objectMeta:type_name -> armadaevents.ObjectMeta + 8, // 9: armadaevents.KubernetesMainObject.pod_spec:type_name -> armadaevents.PodSpecWithAvoidList + 7, // 10: armadaevents.KubernetesObject.objectMeta:type_name -> armadaevents.ObjectMeta + 8, // 11: armadaevents.KubernetesObject.pod_spec:type_name -> armadaevents.PodSpecWithAvoidList + 55, // 12: armadaevents.KubernetesObject.ingress:type_name -> k8s.io.api.networking.v1.IngressSpec + 56, // 13: armadaevents.KubernetesObject.service:type_name -> k8s.io.api.core.v1.ServiceSpec + 57, // 14: armadaevents.KubernetesObject.configMap:type_name -> k8s.io.api.core.v1.ConfigMap + 51, // 15: armadaevents.ObjectMeta.annotations:type_name -> armadaevents.ObjectMeta.AnnotationsEntry + 52, // 16: armadaevents.ObjectMeta.labels:type_name -> armadaevents.ObjectMeta.LabelsEntry + 58, // 17: armadaevents.PodSpecWithAvoidList.pod_spec:type_name -> k8s.io.api.core.v1.PodSpec + 59, // 18: armadaevents.JobRequeued.scheduling_info:type_name -> schedulerobjects.JobSchedulingInfo + 0, // 19: armadaevents.JobSetFilter.states:type_name -> armadaevents.JobState + 0, // 20: armadaevents.CancelJobSet.states:type_name -> armadaevents.JobState + 21, // 21: armadaevents.JobSucceeded.resourceInfos:type_name -> armadaevents.KubernetesResourceInfo + 60, // 22: armadaevents.JobRunLeased.pod_requirements_overlay:type_name -> schedulerobjects.PodRequirements + 21, // 23: armadaevents.JobRunAssigned.resourceInfos:type_name -> armadaevents.KubernetesResourceInfo + 21, // 24: armadaevents.JobRunRunning.resourceInfos:type_name -> armadaevents.KubernetesResourceInfo + 7, // 25: armadaevents.KubernetesResourceInfo.objectMeta:type_name -> armadaevents.ObjectMeta + 22, // 26: armadaevents.KubernetesResourceInfo.podInfo:type_name -> armadaevents.PodInfo + 23, // 27: armadaevents.KubernetesResourceInfo.ingressInfo:type_name -> armadaevents.IngressInfo + 53, // 28: armadaevents.IngressInfo.ingress_addresses:type_name -> armadaevents.IngressInfo.IngressAddressesEntry + 7, // 29: armadaevents.StandaloneIngressInfo.objectMeta:type_name -> armadaevents.ObjectMeta + 54, // 30: armadaevents.StandaloneIngressInfo.ingress_addresses:type_name -> armadaevents.StandaloneIngressInfo.IngressAddressesEntry + 21, // 31: armadaevents.JobRunSucceeded.resourceInfos:type_name -> armadaevents.KubernetesResourceInfo + 28, // 32: armadaevents.JobErrors.errors:type_name -> armadaevents.Error + 28, // 33: armadaevents.JobRunErrors.errors:type_name -> armadaevents.Error + 29, // 34: armadaevents.Error.kubernetesError:type_name -> armadaevents.KubernetesError + 31, // 35: armadaevents.Error.containerError:type_name -> armadaevents.ContainerError + 34, // 36: armadaevents.Error.executorError:type_name -> armadaevents.ExecutorError + 35, // 37: armadaevents.Error.podUnschedulable:type_name -> armadaevents.PodUnschedulable + 36, // 38: armadaevents.Error.leaseExpired:type_name -> armadaevents.LeaseExpired + 37, // 39: armadaevents.Error.maxRunsExceeded:type_name -> armadaevents.MaxRunsExceeded + 30, // 40: armadaevents.Error.podError:type_name -> armadaevents.PodError + 32, // 41: armadaevents.Error.podLeaseReturned:type_name -> armadaevents.PodLeaseReturned + 38, // 42: armadaevents.Error.jobRunPreemptedError:type_name -> armadaevents.JobRunPreemptedError + 39, // 43: armadaevents.Error.gangJobUnschedulable:type_name -> armadaevents.GangJobUnschedulable + 40, // 44: armadaevents.Error.jobRejected:type_name -> armadaevents.JobRejected + 7, // 45: armadaevents.PodError.objectMeta:type_name -> armadaevents.ObjectMeta + 31, // 46: armadaevents.PodError.containerErrors:type_name -> armadaevents.ContainerError + 1, // 47: armadaevents.PodError.kubernetes_reason:type_name -> armadaevents.KubernetesReason + 7, // 48: armadaevents.ContainerError.objectMeta:type_name -> armadaevents.ObjectMeta + 1, // 49: armadaevents.ContainerError.kubernetes_reason:type_name -> armadaevents.KubernetesReason + 7, // 50: armadaevents.PodLeaseReturned.objectMeta:type_name -> armadaevents.ObjectMeta + 7, // 51: armadaevents.PodTerminated.objectMeta:type_name -> armadaevents.ObjectMeta + 7, // 52: armadaevents.PodUnschedulable.objectMeta:type_name -> armadaevents.ObjectMeta + 61, // 53: armadaevents.EventSequence.Event.created:type_name -> google.protobuf.Timestamp + 4, // 54: armadaevents.EventSequence.Event.submitJob:type_name -> armadaevents.SubmitJob + 9, // 55: armadaevents.EventSequence.Event.reprioritiseJob:type_name -> armadaevents.ReprioritiseJob + 11, // 56: armadaevents.EventSequence.Event.reprioritiseJobSet:type_name -> armadaevents.ReprioritiseJobSet + 12, // 57: armadaevents.EventSequence.Event.reprioritisedJob:type_name -> armadaevents.ReprioritisedJob + 13, // 58: armadaevents.EventSequence.Event.cancelJob:type_name -> armadaevents.CancelJob + 15, // 59: armadaevents.EventSequence.Event.cancelJobSet:type_name -> armadaevents.CancelJobSet + 16, // 60: armadaevents.EventSequence.Event.cancelledJob:type_name -> armadaevents.CancelledJob + 17, // 61: armadaevents.EventSequence.Event.jobSucceeded:type_name -> armadaevents.JobSucceeded + 26, // 62: armadaevents.EventSequence.Event.jobErrors:type_name -> armadaevents.JobErrors + 18, // 63: armadaevents.EventSequence.Event.jobRunLeased:type_name -> armadaevents.JobRunLeased + 19, // 64: armadaevents.EventSequence.Event.jobRunAssigned:type_name -> armadaevents.JobRunAssigned + 20, // 65: armadaevents.EventSequence.Event.jobRunRunning:type_name -> armadaevents.JobRunRunning + 25, // 66: armadaevents.EventSequence.Event.jobRunSucceeded:type_name -> armadaevents.JobRunSucceeded + 27, // 67: armadaevents.EventSequence.Event.jobRunErrors:type_name -> armadaevents.JobRunErrors + 24, // 68: armadaevents.EventSequence.Event.standaloneIngressInfo:type_name -> armadaevents.StandaloneIngressInfo + 3, // 69: armadaevents.EventSequence.Event.resourceUtilisation:type_name -> armadaevents.ResourceUtilisation + 41, // 70: armadaevents.EventSequence.Event.jobRunPreempted:type_name -> armadaevents.JobRunPreempted + 42, // 71: armadaevents.EventSequence.Event.partitionMarker:type_name -> armadaevents.PartitionMarker + 43, // 72: armadaevents.EventSequence.Event.jobRunPreemptionRequested:type_name -> armadaevents.JobRunPreemptionRequested + 10, // 73: armadaevents.EventSequence.Event.jobRequeued:type_name -> armadaevents.JobRequeued + 44, // 74: armadaevents.EventSequence.Event.jobPreemptionRequested:type_name -> armadaevents.JobPreemptionRequested + 46, // 75: armadaevents.EventSequence.Event.jobRunCancelled:type_name -> armadaevents.JobRunCancelled + 45, // 76: armadaevents.EventSequence.Event.jobValidated:type_name -> armadaevents.JobValidated + 62, // 77: armadaevents.ResourceUtilisation.MaxResourcesForPeriodEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity + 62, // 78: armadaevents.ResourceUtilisation.TotalCumulativeUsageEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity + 62, // 79: armadaevents.ResourceUtilisation.AvgResourcesForPeriodEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity + 80, // [80:80] is the sub-list for method output_type + 80, // [80:80] is the sub-list for method input_type + 80, // [80:80] is the sub-list for extension type_name + 80, // [80:80] is the sub-list for extension extendee + 0, // [0:80] is the sub-list for field type_name +} + +func init() { file_pkg_armadaevents_events_proto_init() } +func file_pkg_armadaevents_events_proto_init() { + if File_pkg_armadaevents_events_proto != nil { + return + } + file_pkg_armadaevents_events_proto_msgTypes[3].OneofWrappers = []any{ + (*KubernetesMainObject_PodSpec)(nil), } - return len(dAtA) - i, nil -} - -func (m *JobErrors) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + file_pkg_armadaevents_events_proto_msgTypes[4].OneofWrappers = []any{ + (*KubernetesObject_PodSpec)(nil), + (*KubernetesObject_Ingress)(nil), + (*KubernetesObject_Service)(nil), + (*KubernetesObject_ConfigMap)(nil), } - return dAtA[:n], nil -} - -func (m *JobErrors) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobErrors) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x1a + file_pkg_armadaevents_events_proto_msgTypes[19].OneofWrappers = []any{ + (*KubernetesResourceInfo_PodInfo)(nil), + (*KubernetesResourceInfo_IngressInfo)(nil), } - if len(m.Errors) > 0 { - for iNdEx := len(m.Errors) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Errors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + file_pkg_armadaevents_events_proto_msgTypes[26].OneofWrappers = []any{ + (*Error_KubernetesError)(nil), + (*Error_ContainerError)(nil), + (*Error_ExecutorError)(nil), + (*Error_PodUnschedulable)(nil), + (*Error_LeaseExpired)(nil), + (*Error_MaxRunsExceeded)(nil), + (*Error_PodError)(nil), + (*Error_PodLeaseReturned)(nil), + (*Error_JobRunPreemptedError)(nil), + (*Error_GangJobUnschedulable)(nil), + (*Error_JobRejected)(nil), } - return len(dAtA) - i, nil -} - -func (m *JobRunErrors) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + file_pkg_armadaevents_events_proto_msgTypes[45].OneofWrappers = []any{ + (*EventSequence_Event_SubmitJob)(nil), + (*EventSequence_Event_ReprioritiseJob)(nil), + (*EventSequence_Event_ReprioritiseJobSet)(nil), + (*EventSequence_Event_ReprioritisedJob)(nil), + (*EventSequence_Event_CancelJob)(nil), + (*EventSequence_Event_CancelJobSet)(nil), + (*EventSequence_Event_CancelledJob)(nil), + (*EventSequence_Event_JobSucceeded)(nil), + (*EventSequence_Event_JobErrors)(nil), + (*EventSequence_Event_JobRunLeased)(nil), + (*EventSequence_Event_JobRunAssigned)(nil), + (*EventSequence_Event_JobRunRunning)(nil), + (*EventSequence_Event_JobRunSucceeded)(nil), + (*EventSequence_Event_JobRunErrors)(nil), + (*EventSequence_Event_StandaloneIngressInfo)(nil), + (*EventSequence_Event_ResourceUtilisation)(nil), + (*EventSequence_Event_JobRunPreempted)(nil), + (*EventSequence_Event_PartitionMarker)(nil), + (*EventSequence_Event_JobRunPreemptionRequested)(nil), + (*EventSequence_Event_JobRequeued)(nil), + (*EventSequence_Event_JobPreemptionRequested)(nil), + (*EventSequence_Event_JobRunCancelled)(nil), + (*EventSequence_Event_JobValidated)(nil), } - return dAtA[:n], nil + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_armadaevents_events_proto_rawDesc), len(file_pkg_armadaevents_events_proto_rawDesc)), + NumEnums: 2, + NumMessages: 53, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_pkg_armadaevents_events_proto_goTypes, + DependencyIndexes: file_pkg_armadaevents_events_proto_depIdxs, + EnumInfos: file_pkg_armadaevents_events_proto_enumTypes, + MessageInfos: file_pkg_armadaevents_events_proto_msgTypes, + }.Build() + File_pkg_armadaevents_events_proto = out.File + file_pkg_armadaevents_events_proto_goTypes = nil + file_pkg_armadaevents_events_proto_depIdxs = nil } - -func (m *JobRunErrors) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobRunErrors) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0x2a - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Errors) > 0 { - for iNdEx := len(m.Errors) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Errors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - return len(dAtA) - i, nil -} - -func (m *Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Reason != nil { - { - size := m.Reason.Size() - i -= size - if _, err := m.Reason.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.Terminal { - i-- - if m.Terminal { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Error_KubernetesError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error_KubernetesError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.KubernetesError != nil { - { - size, err := m.KubernetesError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *Error_ContainerError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error_ContainerError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ContainerError != nil { - { - size, err := m.ContainerError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} -func (m *Error_ExecutorError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error_ExecutorError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ExecutorError != nil { - { - size, err := m.ExecutorError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - return len(dAtA) - i, nil -} -func (m *Error_PodUnschedulable) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error_PodUnschedulable) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.PodUnschedulable != nil { - { - size, err := m.PodUnschedulable.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *Error_LeaseExpired) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error_LeaseExpired) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.LeaseExpired != nil { - { - size, err := m.LeaseExpired.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - return len(dAtA) - i, nil -} -func (m *Error_MaxRunsExceeded) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error_MaxRunsExceeded) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.MaxRunsExceeded != nil { - { - size, err := m.MaxRunsExceeded.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - return len(dAtA) - i, nil -} -func (m *Error_PodError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error_PodError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.PodError != nil { - { - size, err := m.PodError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - return len(dAtA) - i, nil -} -func (m *Error_PodLeaseReturned) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error_PodLeaseReturned) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.PodLeaseReturned != nil { - { - size, err := m.PodLeaseReturned.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - return len(dAtA) - i, nil -} -func (m *Error_JobRunPreemptedError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error_JobRunPreemptedError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.JobRunPreemptedError != nil { - { - size, err := m.JobRunPreemptedError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - return len(dAtA) - i, nil -} -func (m *Error_GangJobUnschedulable) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error_GangJobUnschedulable) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.GangJobUnschedulable != nil { - { - size, err := m.GangJobUnschedulable.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - return len(dAtA) - i, nil -} -func (m *Error_JobRejected) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error_JobRejected) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.JobRejected != nil { - { - size, err := m.JobRejected.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - return len(dAtA) - i, nil -} -func (m *KubernetesError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *KubernetesError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KubernetesError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ResourceType) > 0 { - i -= len(m.ResourceType) - copy(dAtA[i:], m.ResourceType) - i = encodeVarintEvents(dAtA, i, uint64(len(m.ResourceType))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PodError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DebugMessage) > 0 { - i -= len(m.DebugMessage) - copy(dAtA[i:], m.DebugMessage) - i = encodeVarintEvents(dAtA, i, uint64(len(m.DebugMessage))) - i-- - dAtA[i] = 0x3a - } - if m.KubernetesReason != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.KubernetesReason)) - i-- - dAtA[i] = 0x30 - } - if len(m.ContainerErrors) > 0 { - for iNdEx := len(m.ContainerErrors) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ContainerErrors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if m.PodNumber != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x20 - } - if len(m.NodeName) > 0 { - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintEvents(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0x1a - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - } - if m.ObjectMeta != nil { - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ContainerError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContainerError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContainerError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.KubernetesReason != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.KubernetesReason)) - i-- - dAtA[i] = 0x48 - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x1a - } - if m.ExitCode != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.ExitCode)) - i-- - dAtA[i] = 0x10 - } - if m.ObjectMeta != nil { - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PodLeaseReturned) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodLeaseReturned) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodLeaseReturned) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DebugMessage) > 0 { - i -= len(m.DebugMessage) - copy(dAtA[i:], m.DebugMessage) - i = encodeVarintEvents(dAtA, i, uint64(len(m.DebugMessage))) - i-- - dAtA[i] = 0x2a - } - if m.RunAttempted { - i-- - if m.RunAttempted { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.PodNumber != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x18 - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - } - if m.ObjectMeta != nil { - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PodTerminated) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodTerminated) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodTerminated) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PodNumber != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x20 - } - if len(m.NodeName) > 0 { - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintEvents(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0x1a - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - } - if m.ObjectMeta != nil { - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ExecutorError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExecutorError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExecutorError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *PodUnschedulable) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodUnschedulable) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodUnschedulable) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PodNumber != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.PodNumber)) - i-- - dAtA[i] = 0x20 - } - if len(m.NodeName) > 0 { - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintEvents(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0x1a - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - } - if m.ObjectMeta != nil { - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *LeaseExpired) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LeaseExpired) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LeaseExpired) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MaxRunsExceeded) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MaxRunsExceeded) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MaxRunsExceeded) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobRunPreemptedError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobRunPreemptedError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobRunPreemptedError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GangJobUnschedulable) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GangJobUnschedulable) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GangJobUnschedulable) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobRejected) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobRejected) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobRejected) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobRunPreempted) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobRunPreempted) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobRunPreempted) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x3a - } - if len(m.PreemptedRunId) > 0 { - i -= len(m.PreemptedRunId) - copy(dAtA[i:], m.PreemptedRunId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.PreemptedRunId))) - i-- - dAtA[i] = 0x32 - } - if len(m.PreemptedJobId) > 0 { - i -= len(m.PreemptedJobId) - copy(dAtA[i:], m.PreemptedJobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.PreemptedJobId))) - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} - -func (m *PartitionMarker) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PartitionMarker) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PartitionMarker) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.GroupId) > 0 { - i -= len(m.GroupId) - copy(dAtA[i:], m.GroupId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.GroupId))) - i-- - dAtA[i] = 0x1a - } - if m.Partition != 0 { - i = encodeVarintEvents(dAtA, i, uint64(m.Partition)) - i-- - dAtA[i] = 0x10 - } - return len(dAtA) - i, nil -} - -func (m *JobRunPreemptionRequested) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobRunPreemptionRequested) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobRunPreemptionRequested) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0x22 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} - -func (m *JobPreemptionRequested) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobPreemptionRequested) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobPreemptionRequested) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x1a - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} - -func (m *JobValidated) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobValidated) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobValidated) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x1a - } - if len(m.Pools) > 0 { - for iNdEx := len(m.Pools) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Pools[iNdEx]) - copy(dAtA[i:], m.Pools[iNdEx]) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Pools[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - return len(dAtA) - i, nil -} - -func (m *JobRunCancelled) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobRunCancelled) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobRunCancelled) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0x22 - } - if len(m.JobId) > 0 { - i -= len(m.JobId) - copy(dAtA[i:], m.JobId) - i = encodeVarintEvents(dAtA, i, uint64(len(m.JobId))) - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} - -func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { - offset -= sovEvents(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *EventSequence) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.JobSetName) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.UserId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if len(m.Groups) > 0 { - for _, s := range m.Groups { - l = len(s) - n += 1 + l + sovEvents(uint64(l)) - } - } - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.Size() - n += 1 + l + sovEvents(uint64(l)) - } - } - return n -} - -func (m *EventSequence_Event) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Event != nil { - n += m.Event.Size() - } - if m.Created != nil { - l = m.Created.Size() - n += 2 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *EventSequence_Event_SubmitJob) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SubmitJob != nil { - l = m.SubmitJob.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_ReprioritiseJob) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ReprioritiseJob != nil { - l = m.ReprioritiseJob.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_ReprioritiseJobSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ReprioritiseJobSet != nil { - l = m.ReprioritiseJobSet.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_ReprioritisedJob) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ReprioritisedJob != nil { - l = m.ReprioritisedJob.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_CancelJob) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CancelJob != nil { - l = m.CancelJob.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_CancelJobSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CancelJobSet != nil { - l = m.CancelJobSet.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_CancelledJob) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CancelledJob != nil { - l = m.CancelledJob.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_JobSucceeded) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.JobSucceeded != nil { - l = m.JobSucceeded.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_JobErrors) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.JobErrors != nil { - l = m.JobErrors.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_JobRunLeased) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.JobRunLeased != nil { - l = m.JobRunLeased.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_JobRunAssigned) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.JobRunAssigned != nil { - l = m.JobRunAssigned.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_JobRunRunning) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.JobRunRunning != nil { - l = m.JobRunRunning.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_JobRunSucceeded) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.JobRunSucceeded != nil { - l = m.JobRunSucceeded.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_JobRunErrors) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.JobRunErrors != nil { - l = m.JobRunErrors.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_StandaloneIngressInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StandaloneIngressInfo != nil { - l = m.StandaloneIngressInfo.Size() - n += 2 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_ResourceUtilisation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ResourceUtilisation != nil { - l = m.ResourceUtilisation.Size() - n += 2 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_JobRunPreempted) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.JobRunPreempted != nil { - l = m.JobRunPreempted.Size() - n += 2 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_PartitionMarker) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PartitionMarker != nil { - l = m.PartitionMarker.Size() - n += 2 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_JobRunPreemptionRequested) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.JobRunPreemptionRequested != nil { - l = m.JobRunPreemptionRequested.Size() - n += 2 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_JobRequeued) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.JobRequeued != nil { - l = m.JobRequeued.Size() - n += 2 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_JobPreemptionRequested) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.JobPreemptionRequested != nil { - l = m.JobPreemptionRequested.Size() - n += 2 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_JobRunCancelled) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.JobRunCancelled != nil { - l = m.JobRunCancelled.Size() - n += 2 + l + sovEvents(uint64(l)) - } - return n -} -func (m *EventSequence_Event_JobValidated) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.JobValidated != nil { - l = m.JobValidated.Size() - n += 2 + l + sovEvents(uint64(l)) - } - return n -} -func (m *ResourceUtilisation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ResourceInfo != nil { - l = m.ResourceInfo.Size() - n += 1 + l + sovEvents(uint64(l)) - } - if len(m.MaxResourcesForPeriod) > 0 { - for k, v := range m.MaxResourcesForPeriod { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovEvents(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovEvents(uint64(len(k))) + l - n += mapEntrySize + 1 + sovEvents(uint64(mapEntrySize)) - } - } - if len(m.TotalCumulativeUsage) > 0 { - for k, v := range m.TotalCumulativeUsage { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovEvents(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovEvents(uint64(len(k))) + l - n += mapEntrySize + 1 + sovEvents(uint64(mapEntrySize)) - } - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if len(m.AvgResourcesForPeriod) > 0 { - for k, v := range m.AvgResourcesForPeriod { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovEvents(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovEvents(uint64(len(k))) + l - n += mapEntrySize + 1 + sovEvents(uint64(mapEntrySize)) - } - } - return n -} - -func (m *SubmitJob) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DeduplicationId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if m.Priority != 0 { - n += 1 + sovEvents(uint64(m.Priority)) - } - if m.ObjectMeta != nil { - l = m.ObjectMeta.Size() - n += 1 + l + sovEvents(uint64(l)) - } - if m.MainObject != nil { - l = m.MainObject.Size() - n += 1 + l + sovEvents(uint64(l)) - } - if len(m.Objects) > 0 { - for _, e := range m.Objects { - l = e.Size() - n += 1 + l + sovEvents(uint64(l)) - } - } - if m.Lifetime != 0 { - n += 1 + sovEvents(uint64(m.Lifetime)) - } - if m.AtMostOnce { - n += 2 - } - if m.Preemptible { - n += 2 - } - if m.ConcurrencySafe { - n += 2 - } - l = len(m.Scheduler) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if m.IsDuplicate { - n += 2 - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *KubernetesMainObject) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ObjectMeta != nil { - l = m.ObjectMeta.Size() - n += 1 + l + sovEvents(uint64(l)) - } - if m.Object != nil { - n += m.Object.Size() - } - return n -} - -func (m *KubernetesMainObject_PodSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PodSpec != nil { - l = m.PodSpec.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *KubernetesObject) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ObjectMeta != nil { - l = m.ObjectMeta.Size() - n += 1 + l + sovEvents(uint64(l)) - } - if m.Object != nil { - n += m.Object.Size() - } - return n -} - -func (m *KubernetesObject_PodSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PodSpec != nil { - l = m.PodSpec.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *KubernetesObject_Ingress) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Ingress != nil { - l = m.Ingress.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *KubernetesObject_Service) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Service != nil { - l = m.Service.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *KubernetesObject_ConfigMap) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ConfigMap != nil { - l = m.ConfigMap.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *ObjectMeta) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ExecutorId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.KubernetesId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if len(m.Annotations) > 0 { - for k, v := range m.Annotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovEvents(uint64(len(k))) + 1 + len(v) + sovEvents(uint64(len(v))) - n += mapEntrySize + 1 + sovEvents(uint64(mapEntrySize)) - } - } - if len(m.Labels) > 0 { - for k, v := range m.Labels { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovEvents(uint64(len(k))) + 1 + len(v) + sovEvents(uint64(len(v))) - n += mapEntrySize + 1 + sovEvents(uint64(mapEntrySize)) - } - } - return n -} - -func (m *PodSpecWithAvoidList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PodSpec != nil { - l = m.PodSpec.Size() - n += 1 + l + sovEvents(uint64(l)) - } - if len(m.NodeAvoidlist) > 0 { - for _, s := range m.NodeAvoidlist { - l = len(s) - n += 1 + l + sovEvents(uint64(l)) - } - } - return n -} - -func (m *ReprioritiseJob) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Priority != 0 { - n += 1 + sovEvents(uint64(m.Priority)) - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobRequeued) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SchedulingInfo != nil { - l = m.SchedulingInfo.Size() - n += 1 + l + sovEvents(uint64(l)) - } - if m.UpdateSequenceNumber != 0 { - n += 1 + sovEvents(uint64(m.UpdateSequenceNumber)) - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *ReprioritiseJobSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Priority != 0 { - n += 1 + sovEvents(uint64(m.Priority)) - } - return n -} - -func (m *ReprioritisedJob) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Priority != 0 { - n += 1 + sovEvents(uint64(m.Priority)) - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *CancelJob) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobSetFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.States) > 0 { - l = 0 - for _, e := range m.States { - l += sovEvents(uint64(e)) - } - n += 1 + sovEvents(uint64(l)) + l - } - return n -} - -func (m *CancelJobSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.States) > 0 { - l = 0 - for _, e := range m.States { - l += sovEvents(uint64(e)) - } - n += 1 + sovEvents(uint64(l)) + l - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *CancelledJob) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.CancelUser) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobSucceeded) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ResourceInfos) > 0 { - for _, e := range m.ResourceInfos { - l = e.Size() - n += 1 + l + sovEvents(uint64(l)) - } - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobRunLeased) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ExecutorId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.NodeId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if m.UpdateSequenceNumber != 0 { - n += 1 + sovEvents(uint64(m.UpdateSequenceNumber)) - } - if m.HasScheduledAtPriority { - n += 2 - } - if m.ScheduledAtPriority != 0 { - n += 1 + sovEvents(uint64(m.ScheduledAtPriority)) - } - if m.PodRequirementsOverlay != nil { - l = m.PodRequirementsOverlay.Size() - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.Pool) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobRunAssigned) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ResourceInfos) > 0 { - for _, e := range m.ResourceInfos { - l = e.Size() - n += 1 + l + sovEvents(uint64(l)) - } - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobRunRunning) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ResourceInfos) > 0 { - for _, e := range m.ResourceInfos { - l = e.Size() - n += 1 + l + sovEvents(uint64(l)) - } - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *KubernetesResourceInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ObjectMeta != nil { - l = m.ObjectMeta.Size() - n += 1 + l + sovEvents(uint64(l)) - } - if m.Info != nil { - n += m.Info.Size() - } - return n -} - -func (m *KubernetesResourceInfo_PodInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PodInfo != nil { - l = m.PodInfo.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *KubernetesResourceInfo_IngressInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.IngressInfo != nil { - l = m.IngressInfo.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *PodInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.NodeName) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovEvents(uint64(m.PodNumber)) - } - return n -} - -func (m *IngressInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.NodeName) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if len(m.IngressAddresses) > 0 { - for k, v := range m.IngressAddresses { - _ = k - _ = v - mapEntrySize := 1 + sovEvents(uint64(k)) + 1 + len(v) + sovEvents(uint64(len(v))) - n += mapEntrySize + 1 + sovEvents(uint64(mapEntrySize)) - } - } - return n -} - -func (m *StandaloneIngressInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ObjectMeta != nil { - l = m.ObjectMeta.Size() - n += 1 + l + sovEvents(uint64(l)) - } - if len(m.IngressAddresses) > 0 { - for k, v := range m.IngressAddresses { - _ = k - _ = v - mapEntrySize := 1 + sovEvents(uint64(k)) + 1 + len(v) + sovEvents(uint64(len(v))) - n += mapEntrySize + 1 + sovEvents(uint64(mapEntrySize)) - } - } - l = len(m.NodeName) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovEvents(uint64(m.PodNumber)) - } - l = len(m.PodName) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.PodNamespace) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobRunSucceeded) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ResourceInfos) > 0 { - for _, e := range m.ResourceInfos { - l = e.Size() - n += 1 + l + sovEvents(uint64(l)) - } - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobErrors) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Errors) > 0 { - for _, e := range m.Errors { - l = e.Size() - n += 1 + l + sovEvents(uint64(l)) - } - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobRunErrors) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Errors) > 0 { - for _, e := range m.Errors { - l = e.Size() - n += 1 + l + sovEvents(uint64(l)) - } - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Terminal { - n += 2 - } - if m.Reason != nil { - n += m.Reason.Size() - } - return n -} - -func (m *Error_KubernetesError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.KubernetesError != nil { - l = m.KubernetesError.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *Error_ContainerError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ContainerError != nil { - l = m.ContainerError.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *Error_ExecutorError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ExecutorError != nil { - l = m.ExecutorError.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *Error_PodUnschedulable) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PodUnschedulable != nil { - l = m.PodUnschedulable.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *Error_LeaseExpired) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.LeaseExpired != nil { - l = m.LeaseExpired.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *Error_MaxRunsExceeded) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MaxRunsExceeded != nil { - l = m.MaxRunsExceeded.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *Error_PodError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PodError != nil { - l = m.PodError.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *Error_PodLeaseReturned) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PodLeaseReturned != nil { - l = m.PodLeaseReturned.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *Error_JobRunPreemptedError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.JobRunPreemptedError != nil { - l = m.JobRunPreemptedError.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *Error_GangJobUnschedulable) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GangJobUnschedulable != nil { - l = m.GangJobUnschedulable.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *Error_JobRejected) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.JobRejected != nil { - l = m.JobRejected.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *KubernetesError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ResourceType) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *PodError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ObjectMeta != nil { - l = m.ObjectMeta.Size() - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.NodeName) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovEvents(uint64(m.PodNumber)) - } - if len(m.ContainerErrors) > 0 { - for _, e := range m.ContainerErrors { - l = e.Size() - n += 1 + l + sovEvents(uint64(l)) - } - } - if m.KubernetesReason != 0 { - n += 1 + sovEvents(uint64(m.KubernetesReason)) - } - l = len(m.DebugMessage) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *ContainerError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ObjectMeta != nil { - l = m.ObjectMeta.Size() - n += 1 + l + sovEvents(uint64(l)) - } - if m.ExitCode != 0 { - n += 1 + sovEvents(uint64(m.ExitCode)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if m.KubernetesReason != 0 { - n += 1 + sovEvents(uint64(m.KubernetesReason)) - } - return n -} - -func (m *PodLeaseReturned) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ObjectMeta != nil { - l = m.ObjectMeta.Size() - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovEvents(uint64(m.PodNumber)) - } - if m.RunAttempted { - n += 2 - } - l = len(m.DebugMessage) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *PodTerminated) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ObjectMeta != nil { - l = m.ObjectMeta.Size() - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.NodeName) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovEvents(uint64(m.PodNumber)) - } - return n -} - -func (m *ExecutorError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *PodUnschedulable) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ObjectMeta != nil { - l = m.ObjectMeta.Size() - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.NodeName) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if m.PodNumber != 0 { - n += 1 + sovEvents(uint64(m.PodNumber)) - } - return n -} - -func (m *LeaseExpired) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MaxRunsExceeded) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Message) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobRunPreemptedError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *GangJobUnschedulable) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Message) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobRejected) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Message) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobRunPreempted) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PreemptedJobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.PreemptedRunId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *PartitionMarker) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Partition != 0 { - n += 1 + sovEvents(uint64(m.Partition)) - } - l = len(m.GroupId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobRunPreemptionRequested) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobPreemptionRequested) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobValidated) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Pools) > 0 { - for _, s := range m.Pools { - l = len(s) - n += 1 + l + sovEvents(uint64(l)) - } - } - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func (m *JobRunCancelled) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.JobId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - return n -} - -func sovEvents(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozEvents(x uint64) (n int) { - return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *EventSequence) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventSequence: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventSequence: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSetName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobSetName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Events = append(m.Events, &EventSequence_Event{}) - if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventSequence_Event) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Event: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SubmitJob", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &SubmitJob{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_SubmitJob{v} - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReprioritiseJob", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ReprioritiseJob{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_ReprioritiseJob{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReprioritiseJobSet", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ReprioritiseJobSet{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_ReprioritiseJobSet{v} - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReprioritisedJob", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ReprioritisedJob{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_ReprioritisedJob{v} - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelJob", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &CancelJob{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_CancelJob{v} - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelJobSet", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &CancelJobSet{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_CancelJobSet{v} - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelledJob", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &CancelledJob{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_CancelledJob{v} - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobSucceeded", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobSucceeded{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_JobSucceeded{v} - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobErrors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobErrors{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_JobErrors{v} - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRunLeased", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobRunLeased{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_JobRunLeased{v} - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRunAssigned", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobRunAssigned{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_JobRunAssigned{v} - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRunRunning", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobRunRunning{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_JobRunRunning{v} - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRunSucceeded", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobRunSucceeded{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_JobRunSucceeded{v} - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRunErrors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobRunErrors{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_JobRunErrors{v} - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StandaloneIngressInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &StandaloneIngressInfo{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_StandaloneIngressInfo{v} - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceUtilisation", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ResourceUtilisation{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_ResourceUtilisation{v} - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRunPreempted", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobRunPreempted{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_JobRunPreempted{v} - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PartitionMarker", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &PartitionMarker{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_PartitionMarker{v} - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRunPreemptionRequested", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobRunPreemptionRequested{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_JobRunPreemptionRequested{v} - iNdEx = postIndex - case 22: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRequeued", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobRequeued{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_JobRequeued{v} - iNdEx = postIndex - case 23: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobPreemptionRequested", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobPreemptionRequested{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_JobPreemptionRequested{v} - iNdEx = postIndex - case 24: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRunCancelled", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobRunCancelled{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_JobRunCancelled{v} - iNdEx = postIndex - case 25: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobValidated", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobValidated{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &EventSequence_Event_JobValidated{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceUtilisation) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceUtilisation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceUtilisation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ResourceInfo == nil { - m.ResourceInfo = &KubernetesResourceInfo{} - } - if err := m.ResourceInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxResourcesForPeriod", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxResourcesForPeriod == nil { - m.MaxResourcesForPeriod = make(map[string]*resource.Quantity) - } - var mapkey string - var mapvalue *resource.Quantity - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthEvents - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthEvents - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthEvents - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthEvents - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.MaxResourcesForPeriod[mapkey] = mapvalue - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalCumulativeUsage", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TotalCumulativeUsage == nil { - m.TotalCumulativeUsage = make(map[string]*resource.Quantity) - } - var mapkey string - var mapvalue *resource.Quantity - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthEvents - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthEvents - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthEvents - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthEvents - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.TotalCumulativeUsage[mapkey] = mapvalue - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AvgResourcesForPeriod", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AvgResourcesForPeriod == nil { - m.AvgResourcesForPeriod = make(map[string]*resource.Quantity) - } - var mapkey string - var mapvalue *resource.Quantity - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthEvents - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthEvents - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthEvents - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthEvents - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.AvgResourcesForPeriod[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubmitJob) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubmitJob: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubmitJob: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeduplicationId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DeduplicationId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) - } - m.Priority = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Priority |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ObjectMeta == nil { - m.ObjectMeta = &ObjectMeta{} - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MainObject", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MainObject == nil { - m.MainObject = &KubernetesMainObject{} - } - if err := m.MainObject.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Objects", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Objects = append(m.Objects, &KubernetesObject{}) - if err := m.Objects[len(m.Objects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Lifetime", wireType) - } - m.Lifetime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Lifetime |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AtMostOnce", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AtMostOnce = bool(v != 0) - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Preemptible", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Preemptible = bool(v != 0) - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ConcurrencySafe", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ConcurrencySafe = bool(v != 0) - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scheduler", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Scheduler = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsDuplicate", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsDuplicate = bool(v != 0) - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *KubernetesMainObject) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: KubernetesMainObject: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: KubernetesMainObject: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ObjectMeta == nil { - m.ObjectMeta = &ObjectMeta{} - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodSpec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &PodSpecWithAvoidList{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Object = &KubernetesMainObject_PodSpec{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *KubernetesObject) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: KubernetesObject: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: KubernetesObject: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ObjectMeta == nil { - m.ObjectMeta = &ObjectMeta{} - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodSpec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &PodSpecWithAvoidList{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Object = &KubernetesObject_PodSpec{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &v1.IngressSpec{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Object = &KubernetesObject_Ingress{v} - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &v11.ServiceSpec{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Object = &KubernetesObject_Service{v} - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfigMap", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &v11.ConfigMap{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Object = &KubernetesObject_ConfigMap{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ObjectMeta) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ObjectMeta: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectMeta: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExecutorId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubernetesId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KubernetesId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Annotations == nil { - m.Annotations = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthEvents - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthEvents - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthEvents - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthEvents - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Annotations[mapkey] = mapvalue - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Labels == nil { - m.Labels = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthEvents - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthEvents - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthEvents - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthEvents - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Labels[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSpecWithAvoidList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSpecWithAvoidList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSpecWithAvoidList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodSpec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PodSpec == nil { - m.PodSpec = &v11.PodSpec{} - } - if err := m.PodSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeAvoidlist", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeAvoidlist = append(m.NodeAvoidlist, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReprioritiseJob) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReprioritiseJob: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReprioritiseJob: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) - } - m.Priority = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Priority |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobRequeued) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRequeued: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRequeued: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SchedulingInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SchedulingInfo == nil { - m.SchedulingInfo = &schedulerobjects.JobSchedulingInfo{} - } - if err := m.SchedulingInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateSequenceNumber", wireType) - } - m.UpdateSequenceNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UpdateSequenceNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReprioritiseJobSet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReprioritiseJobSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReprioritiseJobSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) - } - m.Priority = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Priority |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReprioritisedJob) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReprioritisedJob: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReprioritisedJob: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) - } - m.Priority = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Priority |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CancelJob) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CancelJob: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancelJob: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobSetFilter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobSetFilter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSetFilter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v JobState - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= JobState(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.States = append(m.States, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.States) == 0 { - m.States = make([]JobState, 0, elementCount) - } - for iNdEx < postIndex { - var v JobState - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= JobState(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.States = append(m.States, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field States", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CancelJobSet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CancelJobSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancelJobSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v JobState - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= JobState(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.States = append(m.States, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.States) == 0 { - m.States = make([]JobState, 0, elementCount) - } - for iNdEx < postIndex { - var v JobState - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= JobState(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.States = append(m.States, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field States", wireType) - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CancelledJob) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CancelledJob: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancelledJob: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelUser", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CancelUser = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobSucceeded) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobSucceeded: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSucceeded: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceInfos", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceInfos = append(m.ResourceInfos, &KubernetesResourceInfo{}) - if err := m.ResourceInfos[len(m.ResourceInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobRunLeased) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRunLeased: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRunLeased: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExecutorId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateSequenceNumber", wireType) - } - m.UpdateSequenceNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UpdateSequenceNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HasScheduledAtPriority", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HasScheduledAtPriority = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledAtPriority", wireType) - } - m.ScheduledAtPriority = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduledAtPriority |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodRequirementsOverlay", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PodRequirementsOverlay == nil { - m.PodRequirementsOverlay = &schedulerobjects.PodRequirements{} - } - if err := m.PodRequirementsOverlay.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pool = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobRunAssigned) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRunAssigned: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRunAssigned: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceInfos", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceInfos = append(m.ResourceInfos, &KubernetesResourceInfo{}) - if err := m.ResourceInfos[len(m.ResourceInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobRunRunning) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRunRunning: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRunRunning: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceInfos", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceInfos = append(m.ResourceInfos, &KubernetesResourceInfo{}) - if err := m.ResourceInfos[len(m.ResourceInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *KubernetesResourceInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: KubernetesResourceInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: KubernetesResourceInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ObjectMeta == nil { - m.ObjectMeta = &ObjectMeta{} - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &PodInfo{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Info = &KubernetesResourceInfo_PodInfo{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IngressInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &IngressInfo{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Info = &KubernetesResourceInfo_IngressInfo{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IngressAddresses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.IngressAddresses == nil { - m.IngressAddresses = make(map[int32]string) - } - var mapkey int32 - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapkey |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthEvents - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthEvents - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.IngressAddresses[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StandaloneIngressInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StandaloneIngressInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StandaloneIngressInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ObjectMeta == nil { - m.ObjectMeta = &ObjectMeta{} - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IngressAddresses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.IngressAddresses == nil { - m.IngressAddresses = make(map[int32]string) - } - var mapkey int32 - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapkey |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthEvents - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthEvents - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.IngressAddresses[mapkey] = mapvalue - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodNamespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobRunSucceeded) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRunSucceeded: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRunSucceeded: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceInfos", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceInfos = append(m.ResourceInfos, &KubernetesResourceInfo{}) - if err := m.ResourceInfos[len(m.ResourceInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobErrors) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobErrors: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobErrors: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Errors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Errors = append(m.Errors, &Error{}) - if err := m.Errors[len(m.Errors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobRunErrors) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRunErrors: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRunErrors: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Errors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Errors = append(m.Errors, &Error{}) - if err := m.Errors[len(m.Errors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Terminal = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubernetesError", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &KubernetesError{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Reason = &Error_KubernetesError{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerError", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ContainerError{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Reason = &Error_ContainerError{v} - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutorError", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ExecutorError{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Reason = &Error_ExecutorError{v} - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodUnschedulable", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &PodUnschedulable{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Reason = &Error_PodUnschedulable{v} - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LeaseExpired", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &LeaseExpired{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Reason = &Error_LeaseExpired{v} - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxRunsExceeded", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &MaxRunsExceeded{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Reason = &Error_MaxRunsExceeded{v} - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodError", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &PodError{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Reason = &Error_PodError{v} - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodLeaseReturned", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &PodLeaseReturned{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Reason = &Error_PodLeaseReturned{v} - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRunPreemptedError", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobRunPreemptedError{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Reason = &Error_JobRunPreemptedError{v} - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GangJobUnschedulable", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &GangJobUnschedulable{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Reason = &Error_GangJobUnschedulable{v} - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRejected", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobRejected{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Reason = &Error_JobRejected{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *KubernetesError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: KubernetesError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: KubernetesError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ObjectMeta == nil { - m.ObjectMeta = &ObjectMeta{} - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerErrors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerErrors = append(m.ContainerErrors, &ContainerError{}) - if err := m.ContainerErrors[len(m.ContainerErrors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KubernetesReason", wireType) - } - m.KubernetesReason = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.KubernetesReason |= KubernetesReason(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DebugMessage", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DebugMessage = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContainerError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContainerError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ObjectMeta == nil { - m.ObjectMeta = &ObjectMeta{} - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExitCode", wireType) - } - m.ExitCode = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExitCode |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KubernetesReason", wireType) - } - m.KubernetesReason = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.KubernetesReason |= KubernetesReason(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodLeaseReturned) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodLeaseReturned: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodLeaseReturned: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ObjectMeta == nil { - m.ObjectMeta = &ObjectMeta{} - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RunAttempted", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RunAttempted = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DebugMessage", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DebugMessage = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodTerminated) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodTerminated: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodTerminated: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ObjectMeta == nil { - m.ObjectMeta = &ObjectMeta{} - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExecutorError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecutorError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecutorError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodUnschedulable) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodUnschedulable: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodUnschedulable: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ObjectMeta == nil { - m.ObjectMeta = &ObjectMeta{} - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodNumber", wireType) - } - m.PodNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodNumber |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LeaseExpired) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LeaseExpired: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LeaseExpired: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MaxRunsExceeded) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MaxRunsExceeded: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MaxRunsExceeded: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobRunPreemptedError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRunPreemptedError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRunPreemptedError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GangJobUnschedulable) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GangJobUnschedulable: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GangJobUnschedulable: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobRejected) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRejected: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRejected: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobRunPreempted) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRunPreempted: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRunPreempted: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreemptedJobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PreemptedJobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreemptedRunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PreemptedRunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PartitionMarker) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PartitionMarker: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PartitionMarker: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) - } - m.Partition = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Partition |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobRunPreemptionRequested) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRunPreemptionRequested: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRunPreemptionRequested: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobPreemptionRequested) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobPreemptionRequested: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobPreemptionRequested: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobValidated) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobValidated: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobValidated: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pools", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pools = append(m.Pools, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobRunCancelled) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRunCancelled: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRunCancelled: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipEvents(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvents - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvents - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvents - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthEvents - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupEvents - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthEvents - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/client/domain/watch_test.go b/pkg/client/domain/watch_test.go index e98f05bb0fa..34a593438fd 100644 --- a/pkg/client/domain/watch_test.go +++ b/pkg/client/domain/watch_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/gogo/protobuf/types" "github.com/stretchr/testify/assert" + "google.golang.org/protobuf/types/known/timestamppb" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" @@ -239,7 +239,7 @@ func TestWatchContext_UtilisationEvent(t *testing.T) { JobId: "job1", JobSetId: "", Queue: "", - Created: types.TimestampNow(), + Created: timestamppb.Now(), ClusterId: "", KubernetesId: "", MaxResourcesForPeriod: map[string]*resource.Quantity{ diff --git a/pkg/client/submit.go b/pkg/client/submit.go index 4214ca7ca71..8436fb49376 100644 --- a/pkg/client/submit.go +++ b/pkg/client/submit.go @@ -27,7 +27,7 @@ func UpdateQueue(submitClient api.SubmitClient, queue *api.Queue) error { func DeleteQueue(submitClient api.SubmitClient, name string) error { ctx, cancel := common.ContextWithDefaultTimeout() defer cancel() - _, e := submitClient.DeleteQueue(ctx, &api.QueueDeleteRequest{name}) + _, e := submitClient.DeleteQueue(ctx, &api.QueueDeleteRequest{Name: name}) return e } diff --git a/pkg/client/util/deserialize.go b/pkg/client/util/deserialize.go index 05f9bd70a56..c33fd56bf4e 100644 --- a/pkg/client/util/deserialize.go +++ b/pkg/client/util/deserialize.go @@ -10,11 +10,11 @@ import ( func BindJsonOrYaml(filePath string, obj interface{}) error { reader, err := os.Open(filePath) if err != nil { - return fmt.Errorf("Failed opening file %s due to %s", filePath, err) + return fmt.Errorf("failed opening file %s due to %s", filePath, err) } err = yaml.NewYAMLOrJSONDecoder(reader, 128).Decode(obj) if err != nil { - return fmt.Errorf("Failed to parse file %s because: %v", filePath, err) + return fmt.Errorf("failed to parse file %s because: %v", filePath, err) } return nil } diff --git a/pkg/client/util/deserialize_test.go b/pkg/client/util/deserialize_test.go index b471567e9c2..779c9b0dd4f 100644 --- a/pkg/client/util/deserialize_test.go +++ b/pkg/client/util/deserialize_test.go @@ -8,6 +8,7 @@ import ( v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" + "github.com/armadaproject/armada/internal/common/testutil" "github.com/armadaproject/armada/pkg/api" "github.com/armadaproject/armada/pkg/client/domain" ) @@ -16,14 +17,14 @@ func TestBindJsonOrYaml_Yaml(t *testing.T) { submitFile := &domain.JobSubmitFile{} err := BindJsonOrYaml(filepath.Join("testdata", "jobs.yaml"), submitFile) assert.NoError(t, err) - assert.Equal(t, getExpectedJobSubmitFile(t), submitFile) + testutil.AssertProtoEqual(t, getExpectedJobSubmitFile(t), submitFile) } func TestBindJsonOrYaml_Json(t *testing.T) { submitFile := &domain.JobSubmitFile{} err := BindJsonOrYaml(filepath.Join("testdata", "jobs.json"), submitFile) assert.NoError(t, err) - assert.Equal(t, getExpectedJobSubmitFile(t), submitFile) + testutil.AssertProtoEqual(t, getExpectedJobSubmitFile(t), submitFile) } func TestBindJsonOrYaml_IngressType(t *testing.T) { diff --git a/pkg/controlplaneevents/events.pb.go b/pkg/controlplaneevents/events.pb.go index f66abd834e0..a08d10405f0 100644 --- a/pkg/controlplaneevents/events.pb.go +++ b/pkg/controlplaneevents/events.pb.go @@ -1,28 +1,27 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: pkg/controlplaneevents/events.proto package controlplaneevents import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" - proto "github.com/gogo/protobuf/proto" - types "github.com/gogo/protobuf/types" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) -// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // A subset of JobState including only non-terminal states type ActiveJobState int32 @@ -35,2482 +34,718 @@ const ( ActiveJobState_RUNNING ActiveJobState = 4 ) -var ActiveJobState_name = map[int32]string{ - 0: "UNKNOWN", - 1: "QUEUED", - 2: "LEASED", - 3: "PENDING", - 4: "RUNNING", -} +// Enum value maps for ActiveJobState. +var ( + ActiveJobState_name = map[int32]string{ + 0: "UNKNOWN", + 1: "QUEUED", + 2: "LEASED", + 3: "PENDING", + 4: "RUNNING", + } + ActiveJobState_value = map[string]int32{ + "UNKNOWN": 0, + "QUEUED": 1, + "LEASED": 2, + "PENDING": 3, + "RUNNING": 4, + } +) -var ActiveJobState_value = map[string]int32{ - "UNKNOWN": 0, - "QUEUED": 1, - "LEASED": 2, - "PENDING": 3, - "RUNNING": 4, +func (x ActiveJobState) Enum() *ActiveJobState { + p := new(ActiveJobState) + *p = x + return p } func (x ActiveJobState) String() string { - return proto.EnumName(ActiveJobState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ActiveJobState) Descriptor() protoreflect.EnumDescriptor { + return file_pkg_controlplaneevents_events_proto_enumTypes[0].Descriptor() +} + +func (ActiveJobState) Type() protoreflect.EnumType { + return &file_pkg_controlplaneevents_events_proto_enumTypes[0] +} + +func (x ActiveJobState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use ActiveJobState.Descriptor instead. func (ActiveJobState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2ccee8bdbf348752, []int{0} + return file_pkg_controlplaneevents_events_proto_rawDescGZIP(), []int{0} } type Event struct { - Created *types.Timestamp `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Created *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"` // Types that are valid to be assigned to Event: + // // *Event_ExecutorSettingsUpsert // *Event_ExecutorSettingsDelete // *Event_PreemptOnExecutor // *Event_CancelOnExecutor // *Event_PreemptOnQueue // *Event_CancelOnQueue - Event isEvent_Event `protobuf_oneof:"event"` + Event isEvent_Event `protobuf_oneof:"event"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *Event) Reset() { *m = Event{} } -func (m *Event) String() string { return proto.CompactTextString(m) } -func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { - return fileDescriptor_2ccee8bdbf348752, []int{0} -} -func (m *Event) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Event.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Event) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event.Merge(m, src) -} -func (m *Event) XXX_Size() int { - return m.Size() +func (x *Event) Reset() { + *x = Event{} + mi := &file_pkg_controlplaneevents_events_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *Event) XXX_DiscardUnknown() { - xxx_messageInfo_Event.DiscardUnknown(m) + +func (x *Event) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Event proto.InternalMessageInfo +func (*Event) ProtoMessage() {} -type isEvent_Event interface { - isEvent_Event() - MarshalTo([]byte) (int, error) - Size() int +func (x *Event) ProtoReflect() protoreflect.Message { + mi := &file_pkg_controlplaneevents_events_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type Event_ExecutorSettingsUpsert struct { - ExecutorSettingsUpsert *ExecutorSettingsUpsert `protobuf:"bytes,2,opt,name=executorSettingsUpsert,proto3,oneof" json:"executorSettingsUpsert,omitempty"` -} -type Event_ExecutorSettingsDelete struct { - ExecutorSettingsDelete *ExecutorSettingsDelete `protobuf:"bytes,3,opt,name=executorSettingsDelete,proto3,oneof" json:"executorSettingsDelete,omitempty"` -} -type Event_PreemptOnExecutor struct { - PreemptOnExecutor *PreemptOnExecutor `protobuf:"bytes,4,opt,name=preemptOnExecutor,proto3,oneof" json:"preemptOnExecutor,omitempty"` -} -type Event_CancelOnExecutor struct { - CancelOnExecutor *CancelOnExecutor `protobuf:"bytes,5,opt,name=cancelOnExecutor,proto3,oneof" json:"cancelOnExecutor,omitempty"` -} -type Event_PreemptOnQueue struct { - PreemptOnQueue *PreemptOnQueue `protobuf:"bytes,6,opt,name=preemptOnQueue,proto3,oneof" json:"preemptOnQueue,omitempty"` -} -type Event_CancelOnQueue struct { - CancelOnQueue *CancelOnQueue `protobuf:"bytes,7,opt,name=cancelOnQueue,proto3,oneof" json:"cancelOnQueue,omitempty"` +// Deprecated: Use Event.ProtoReflect.Descriptor instead. +func (*Event) Descriptor() ([]byte, []int) { + return file_pkg_controlplaneevents_events_proto_rawDescGZIP(), []int{0} } -func (*Event_ExecutorSettingsUpsert) isEvent_Event() {} -func (*Event_ExecutorSettingsDelete) isEvent_Event() {} -func (*Event_PreemptOnExecutor) isEvent_Event() {} -func (*Event_CancelOnExecutor) isEvent_Event() {} -func (*Event_PreemptOnQueue) isEvent_Event() {} -func (*Event_CancelOnQueue) isEvent_Event() {} - -func (m *Event) GetEvent() isEvent_Event { - if m != nil { - return m.Event +func (x *Event) GetCreated() *timestamppb.Timestamp { + if x != nil { + return x.Created } return nil } -func (m *Event) GetCreated() *types.Timestamp { - if m != nil { - return m.Created +func (x *Event) GetEvent() isEvent_Event { + if x != nil { + return x.Event } return nil } -func (m *Event) GetExecutorSettingsUpsert() *ExecutorSettingsUpsert { - if x, ok := m.GetEvent().(*Event_ExecutorSettingsUpsert); ok { - return x.ExecutorSettingsUpsert +func (x *Event) GetExecutorSettingsUpsert() *ExecutorSettingsUpsert { + if x != nil { + if x, ok := x.Event.(*Event_ExecutorSettingsUpsert); ok { + return x.ExecutorSettingsUpsert + } } return nil } -func (m *Event) GetExecutorSettingsDelete() *ExecutorSettingsDelete { - if x, ok := m.GetEvent().(*Event_ExecutorSettingsDelete); ok { - return x.ExecutorSettingsDelete +func (x *Event) GetExecutorSettingsDelete() *ExecutorSettingsDelete { + if x != nil { + if x, ok := x.Event.(*Event_ExecutorSettingsDelete); ok { + return x.ExecutorSettingsDelete + } } return nil } -func (m *Event) GetPreemptOnExecutor() *PreemptOnExecutor { - if x, ok := m.GetEvent().(*Event_PreemptOnExecutor); ok { - return x.PreemptOnExecutor +func (x *Event) GetPreemptOnExecutor() *PreemptOnExecutor { + if x != nil { + if x, ok := x.Event.(*Event_PreemptOnExecutor); ok { + return x.PreemptOnExecutor + } } return nil } -func (m *Event) GetCancelOnExecutor() *CancelOnExecutor { - if x, ok := m.GetEvent().(*Event_CancelOnExecutor); ok { - return x.CancelOnExecutor +func (x *Event) GetCancelOnExecutor() *CancelOnExecutor { + if x != nil { + if x, ok := x.Event.(*Event_CancelOnExecutor); ok { + return x.CancelOnExecutor + } } return nil } -func (m *Event) GetPreemptOnQueue() *PreemptOnQueue { - if x, ok := m.GetEvent().(*Event_PreemptOnQueue); ok { - return x.PreemptOnQueue +func (x *Event) GetPreemptOnQueue() *PreemptOnQueue { + if x != nil { + if x, ok := x.Event.(*Event_PreemptOnQueue); ok { + return x.PreemptOnQueue + } } return nil } -func (m *Event) GetCancelOnQueue() *CancelOnQueue { - if x, ok := m.GetEvent().(*Event_CancelOnQueue); ok { - return x.CancelOnQueue +func (x *Event) GetCancelOnQueue() *CancelOnQueue { + if x != nil { + if x, ok := x.Event.(*Event_CancelOnQueue); ok { + return x.CancelOnQueue + } } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Event) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Event_ExecutorSettingsUpsert)(nil), - (*Event_ExecutorSettingsDelete)(nil), - (*Event_PreemptOnExecutor)(nil), - (*Event_CancelOnExecutor)(nil), - (*Event_PreemptOnQueue)(nil), - (*Event_CancelOnQueue)(nil), - } +type isEvent_Event interface { + isEvent_Event() } -type ExecutorSettingsUpsert struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Cordoned bool `protobuf:"varint,2,opt,name=cordoned,proto3" json:"cordoned,omitempty"` - CordonReason string `protobuf:"bytes,3,opt,name=cordonReason,proto3" json:"cordonReason,omitempty"` - SetByUser string `protobuf:"bytes,4,opt,name=setByUser,proto3" json:"setByUser,omitempty"` +type Event_ExecutorSettingsUpsert struct { + ExecutorSettingsUpsert *ExecutorSettingsUpsert `protobuf:"bytes,2,opt,name=executorSettingsUpsert,proto3,oneof"` } -func (m *ExecutorSettingsUpsert) Reset() { *m = ExecutorSettingsUpsert{} } -func (m *ExecutorSettingsUpsert) String() string { return proto.CompactTextString(m) } -func (*ExecutorSettingsUpsert) ProtoMessage() {} -func (*ExecutorSettingsUpsert) Descriptor() ([]byte, []int) { - return fileDescriptor_2ccee8bdbf348752, []int{1} -} -func (m *ExecutorSettingsUpsert) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExecutorSettingsUpsert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExecutorSettingsUpsert.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ExecutorSettingsUpsert) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutorSettingsUpsert.Merge(m, src) -} -func (m *ExecutorSettingsUpsert) XXX_Size() int { - return m.Size() -} -func (m *ExecutorSettingsUpsert) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutorSettingsUpsert.DiscardUnknown(m) +type Event_ExecutorSettingsDelete struct { + ExecutorSettingsDelete *ExecutorSettingsDelete `protobuf:"bytes,3,opt,name=executorSettingsDelete,proto3,oneof"` } -var xxx_messageInfo_ExecutorSettingsUpsert proto.InternalMessageInfo - -func (m *ExecutorSettingsUpsert) GetName() string { - if m != nil { - return m.Name - } - return "" +type Event_PreemptOnExecutor struct { + PreemptOnExecutor *PreemptOnExecutor `protobuf:"bytes,4,opt,name=preemptOnExecutor,proto3,oneof"` } -func (m *ExecutorSettingsUpsert) GetCordoned() bool { - if m != nil { - return m.Cordoned - } - return false +type Event_CancelOnExecutor struct { + CancelOnExecutor *CancelOnExecutor `protobuf:"bytes,5,opt,name=cancelOnExecutor,proto3,oneof"` } -func (m *ExecutorSettingsUpsert) GetCordonReason() string { - if m != nil { - return m.CordonReason - } - return "" +type Event_PreemptOnQueue struct { + PreemptOnQueue *PreemptOnQueue `protobuf:"bytes,6,opt,name=preemptOnQueue,proto3,oneof"` } -func (m *ExecutorSettingsUpsert) GetSetByUser() string { - if m != nil { - return m.SetByUser - } - return "" +type Event_CancelOnQueue struct { + CancelOnQueue *CancelOnQueue `protobuf:"bytes,7,opt,name=cancelOnQueue,proto3,oneof"` } -type ExecutorSettingsDelete struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} +func (*Event_ExecutorSettingsUpsert) isEvent_Event() {} -func (m *ExecutorSettingsDelete) Reset() { *m = ExecutorSettingsDelete{} } -func (m *ExecutorSettingsDelete) String() string { return proto.CompactTextString(m) } -func (*ExecutorSettingsDelete) ProtoMessage() {} -func (*ExecutorSettingsDelete) Descriptor() ([]byte, []int) { - return fileDescriptor_2ccee8bdbf348752, []int{2} -} -func (m *ExecutorSettingsDelete) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExecutorSettingsDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExecutorSettingsDelete.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ExecutorSettingsDelete) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutorSettingsDelete.Merge(m, src) -} -func (m *ExecutorSettingsDelete) XXX_Size() int { - return m.Size() -} -func (m *ExecutorSettingsDelete) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutorSettingsDelete.DiscardUnknown(m) -} +func (*Event_ExecutorSettingsDelete) isEvent_Event() {} -var xxx_messageInfo_ExecutorSettingsDelete proto.InternalMessageInfo +func (*Event_PreemptOnExecutor) isEvent_Event() {} -func (m *ExecutorSettingsDelete) GetName() string { - if m != nil { - return m.Name - } - return "" -} +func (*Event_CancelOnExecutor) isEvent_Event() {} -type PreemptOnExecutor struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Queues []string `protobuf:"bytes,2,rep,name=queues,proto3" json:"queues,omitempty"` - PriorityClasses []string `protobuf:"bytes,3,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` -} +func (*Event_PreemptOnQueue) isEvent_Event() {} -func (m *PreemptOnExecutor) Reset() { *m = PreemptOnExecutor{} } -func (m *PreemptOnExecutor) String() string { return proto.CompactTextString(m) } -func (*PreemptOnExecutor) ProtoMessage() {} -func (*PreemptOnExecutor) Descriptor() ([]byte, []int) { - return fileDescriptor_2ccee8bdbf348752, []int{3} -} -func (m *PreemptOnExecutor) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PreemptOnExecutor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PreemptOnExecutor.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *PreemptOnExecutor) XXX_Merge(src proto.Message) { - xxx_messageInfo_PreemptOnExecutor.Merge(m, src) +func (*Event_CancelOnQueue) isEvent_Event() {} + +type ExecutorSettingsUpsert struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Cordoned bool `protobuf:"varint,2,opt,name=cordoned,proto3" json:"cordoned,omitempty"` + CordonReason string `protobuf:"bytes,3,opt,name=cordonReason,proto3" json:"cordonReason,omitempty"` + SetByUser string `protobuf:"bytes,4,opt,name=setByUser,proto3" json:"setByUser,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PreemptOnExecutor) XXX_Size() int { - return m.Size() + +func (x *ExecutorSettingsUpsert) Reset() { + *x = ExecutorSettingsUpsert{} + mi := &file_pkg_controlplaneevents_events_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PreemptOnExecutor) XXX_DiscardUnknown() { - xxx_messageInfo_PreemptOnExecutor.DiscardUnknown(m) + +func (x *ExecutorSettingsUpsert) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_PreemptOnExecutor proto.InternalMessageInfo +func (*ExecutorSettingsUpsert) ProtoMessage() {} -func (m *PreemptOnExecutor) GetName() string { - if m != nil { - return m.Name +func (x *ExecutorSettingsUpsert) ProtoReflect() protoreflect.Message { + mi := &file_pkg_controlplaneevents_events_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *PreemptOnExecutor) GetQueues() []string { - if m != nil { - return m.Queues - } - return nil +// Deprecated: Use ExecutorSettingsUpsert.ProtoReflect.Descriptor instead. +func (*ExecutorSettingsUpsert) Descriptor() ([]byte, []int) { + return file_pkg_controlplaneevents_events_proto_rawDescGZIP(), []int{1} } -func (m *PreemptOnExecutor) GetPriorityClasses() []string { - if m != nil { - return m.PriorityClasses +func (x *ExecutorSettingsUpsert) GetName() string { + if x != nil { + return x.Name } - return nil + return "" } -type CancelOnExecutor struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Queues []string `protobuf:"bytes,2,rep,name=queues,proto3" json:"queues,omitempty"` - PriorityClasses []string `protobuf:"bytes,3,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` +func (x *ExecutorSettingsUpsert) GetCordoned() bool { + if x != nil { + return x.Cordoned + } + return false } -func (m *CancelOnExecutor) Reset() { *m = CancelOnExecutor{} } -func (m *CancelOnExecutor) String() string { return proto.CompactTextString(m) } -func (*CancelOnExecutor) ProtoMessage() {} -func (*CancelOnExecutor) Descriptor() ([]byte, []int) { - return fileDescriptor_2ccee8bdbf348752, []int{4} -} -func (m *CancelOnExecutor) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancelOnExecutor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancelOnExecutor.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ExecutorSettingsUpsert) GetCordonReason() string { + if x != nil { + return x.CordonReason } + return "" } -func (m *CancelOnExecutor) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelOnExecutor.Merge(m, src) -} -func (m *CancelOnExecutor) XXX_Size() int { - return m.Size() -} -func (m *CancelOnExecutor) XXX_DiscardUnknown() { - xxx_messageInfo_CancelOnExecutor.DiscardUnknown(m) -} - -var xxx_messageInfo_CancelOnExecutor proto.InternalMessageInfo -func (m *CancelOnExecutor) GetName() string { - if m != nil { - return m.Name +func (x *ExecutorSettingsUpsert) GetSetByUser() string { + if x != nil { + return x.SetByUser } return "" } -func (m *CancelOnExecutor) GetQueues() []string { - if m != nil { - return m.Queues - } - return nil +type ExecutorSettingsDelete struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *CancelOnExecutor) GetPriorityClasses() []string { - if m != nil { - return m.PriorityClasses - } - return nil +func (x *ExecutorSettingsDelete) Reset() { + *x = ExecutorSettingsDelete{} + mi := &file_pkg_controlplaneevents_events_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -type PreemptOnQueue struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - PriorityClasses []string `protobuf:"bytes,2,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` +func (x *ExecutorSettingsDelete) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PreemptOnQueue) Reset() { *m = PreemptOnQueue{} } -func (m *PreemptOnQueue) String() string { return proto.CompactTextString(m) } -func (*PreemptOnQueue) ProtoMessage() {} -func (*PreemptOnQueue) Descriptor() ([]byte, []int) { - return fileDescriptor_2ccee8bdbf348752, []int{5} -} -func (m *PreemptOnQueue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PreemptOnQueue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PreemptOnQueue.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*ExecutorSettingsDelete) ProtoMessage() {} + +func (x *ExecutorSettingsDelete) ProtoReflect() protoreflect.Message { + mi := &file_pkg_controlplaneevents_events_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *PreemptOnQueue) XXX_Merge(src proto.Message) { - xxx_messageInfo_PreemptOnQueue.Merge(m, src) -} -func (m *PreemptOnQueue) XXX_Size() int { - return m.Size() -} -func (m *PreemptOnQueue) XXX_DiscardUnknown() { - xxx_messageInfo_PreemptOnQueue.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_PreemptOnQueue proto.InternalMessageInfo +// Deprecated: Use ExecutorSettingsDelete.ProtoReflect.Descriptor instead. +func (*ExecutorSettingsDelete) Descriptor() ([]byte, []int) { + return file_pkg_controlplaneevents_events_proto_rawDescGZIP(), []int{2} +} -func (m *PreemptOnQueue) GetName() string { - if m != nil { - return m.Name +func (x *ExecutorSettingsDelete) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *PreemptOnQueue) GetPriorityClasses() []string { - if m != nil { - return m.PriorityClasses - } - return nil +type PreemptOnExecutor struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Queues []string `protobuf:"bytes,2,rep,name=queues,proto3" json:"queues,omitempty"` + PriorityClasses []string `protobuf:"bytes,3,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -type CancelOnQueue struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - PriorityClasses []string `protobuf:"bytes,2,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` - JobStates []ActiveJobState `protobuf:"varint,3,rep,packed,name=jobStates,proto3,enum=controlplaneevents.ActiveJobState" json:"jobStates,omitempty"` +func (x *PreemptOnExecutor) Reset() { + *x = PreemptOnExecutor{} + mi := &file_pkg_controlplaneevents_events_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CancelOnQueue) Reset() { *m = CancelOnQueue{} } -func (m *CancelOnQueue) String() string { return proto.CompactTextString(m) } -func (*CancelOnQueue) ProtoMessage() {} -func (*CancelOnQueue) Descriptor() ([]byte, []int) { - return fileDescriptor_2ccee8bdbf348752, []int{6} -} -func (m *CancelOnQueue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancelOnQueue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancelOnQueue.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *PreemptOnExecutor) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PreemptOnExecutor) ProtoMessage() {} + +func (x *PreemptOnExecutor) ProtoReflect() protoreflect.Message { + mi := &file_pkg_controlplaneevents_events_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *CancelOnQueue) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelOnQueue.Merge(m, src) -} -func (m *CancelOnQueue) XXX_Size() int { - return m.Size() -} -func (m *CancelOnQueue) XXX_DiscardUnknown() { - xxx_messageInfo_CancelOnQueue.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_CancelOnQueue proto.InternalMessageInfo +// Deprecated: Use PreemptOnExecutor.ProtoReflect.Descriptor instead. +func (*PreemptOnExecutor) Descriptor() ([]byte, []int) { + return file_pkg_controlplaneevents_events_proto_rawDescGZIP(), []int{3} +} -func (m *CancelOnQueue) GetName() string { - if m != nil { - return m.Name +func (x *PreemptOnExecutor) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *CancelOnQueue) GetPriorityClasses() []string { - if m != nil { - return m.PriorityClasses +func (x *PreemptOnExecutor) GetQueues() []string { + if x != nil { + return x.Queues } return nil } -func (m *CancelOnQueue) GetJobStates() []ActiveJobState { - if m != nil { - return m.JobStates +func (x *PreemptOnExecutor) GetPriorityClasses() []string { + if x != nil { + return x.PriorityClasses } return nil } -func init() { - proto.RegisterEnum("controlplaneevents.ActiveJobState", ActiveJobState_name, ActiveJobState_value) - proto.RegisterType((*Event)(nil), "controlplaneevents.Event") - proto.RegisterType((*ExecutorSettingsUpsert)(nil), "controlplaneevents.ExecutorSettingsUpsert") - proto.RegisterType((*ExecutorSettingsDelete)(nil), "controlplaneevents.ExecutorSettingsDelete") - proto.RegisterType((*PreemptOnExecutor)(nil), "controlplaneevents.PreemptOnExecutor") - proto.RegisterType((*CancelOnExecutor)(nil), "controlplaneevents.CancelOnExecutor") - proto.RegisterType((*PreemptOnQueue)(nil), "controlplaneevents.PreemptOnQueue") - proto.RegisterType((*CancelOnQueue)(nil), "controlplaneevents.CancelOnQueue") -} - -func init() { - proto.RegisterFile("pkg/controlplaneevents/events.proto", fileDescriptor_2ccee8bdbf348752) -} - -var fileDescriptor_2ccee8bdbf348752 = []byte{ - // 738 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x96, 0xcf, 0x6e, 0xd3, 0x4a, - 0x18, 0xc5, 0xe3, 0xa4, 0x4d, 0x9a, 0xe9, 0x6d, 0x6e, 0x3a, 0xf7, 0x92, 0x9a, 0x14, 0x32, 0x25, - 0x2d, 0xa8, 0xaa, 0x2a, 0x47, 0x2a, 0x82, 0x25, 0xa2, 0x6e, 0xa2, 0x52, 0x8a, 0xdc, 0x34, 0x25, - 0x42, 0xb0, 0x73, 0x9c, 0x69, 0x70, 0x89, 0x3d, 0xc6, 0x9e, 0x44, 0x74, 0xc9, 0x96, 0x15, 0xcf, - 0xc1, 0x0e, 0x36, 0xbc, 0x02, 0xcb, 0x2e, 0x91, 0x90, 0x2c, 0xd4, 0xee, 0xcc, 0x4b, 0x20, 0xcf, - 0x24, 0xa9, 0xff, 0x51, 0x45, 0x2c, 0x10, 0xab, 0x78, 0x66, 0x7e, 0xe7, 0x3b, 0x67, 0x46, 0xf3, - 0xc5, 0x06, 0xab, 0xd6, 0xab, 0x5e, 0x4d, 0x23, 0x26, 0xb5, 0x49, 0xdf, 0xea, 0xab, 0x26, 0xc6, - 0x43, 0x6c, 0x52, 0xa7, 0xc6, 0x7f, 0x24, 0xcb, 0x26, 0x94, 0x40, 0x18, 0x07, 0xca, 0xa8, 0x47, - 0x48, 0xaf, 0x8f, 0x6b, 0x8c, 0xe8, 0x0c, 0x8e, 0x6b, 0x54, 0x37, 0xb0, 0x43, 0x55, 0xc3, 0xe2, - 0xa2, 0xea, 0xe7, 0x2c, 0x98, 0x6d, 0xf8, 0x2c, 0xdc, 0x07, 0x39, 0xcd, 0xc6, 0x2a, 0xc5, 0x5d, - 0x51, 0x58, 0x11, 0xd6, 0xe7, 0xb7, 0xca, 0x12, 0x17, 0x4b, 0x63, 0xb1, 0xf4, 0x74, 0x2c, 0x96, - 0xaf, 0x79, 0x2e, 0x5a, 0x1c, 0xe1, 0x9b, 0xc4, 0xd0, 0x29, 0x36, 0x2c, 0x7a, 0xda, 0x1a, 0x57, - 0x80, 0xef, 0x04, 0x50, 0xc2, 0x6f, 0xb0, 0x36, 0xa0, 0xc4, 0x3e, 0xc2, 0x94, 0xea, 0x66, 0xcf, - 0x69, 0x5b, 0x0e, 0xb6, 0xa9, 0x98, 0x66, 0xc5, 0x37, 0xa4, 0x78, 0x5a, 0xa9, 0x91, 0xa8, 0x90, - 0xd7, 0x3c, 0x17, 0xad, 0x24, 0x57, 0xbb, 0xf4, 0x7e, 0x94, 0x6a, 0xfd, 0xc2, 0x31, 0x31, 0x4c, - 0x1d, 0xf7, 0x31, 0xc5, 0x62, 0x66, 0xfa, 0x30, 0x5c, 0x91, 0x1c, 0x86, 0xaf, 0x5d, 0x1d, 0x86, - 0x33, 0x70, 0x08, 0x16, 0x2d, 0x1b, 0xfb, 0xd4, 0x81, 0x39, 0xb6, 0x10, 0x67, 0x58, 0x8c, 0xdb, - 0x49, 0x31, 0x9a, 0x51, 0x58, 0x46, 0x9e, 0x8b, 0x96, 0x63, 0x35, 0x42, 0xe6, 0x71, 0x0b, 0x68, - 0x83, 0xa2, 0xa6, 0x9a, 0x1a, 0xee, 0x07, 0x6c, 0x67, 0x99, 0xed, 0x5a, 0x92, 0xed, 0x4e, 0x84, - 0x95, 0x2b, 0x9e, 0x8b, 0xca, 0xd1, 0x0a, 0x21, 0xd3, 0x58, 0x7d, 0x78, 0x02, 0x0a, 0x93, 0x20, - 0x87, 0x03, 0x3c, 0xc0, 0x62, 0x96, 0x39, 0x56, 0xaf, 0xdc, 0x28, 0x23, 0xe5, 0x1b, 0x9e, 0x8b, - 0xc4, 0xb0, 0x3a, 0xe4, 0x16, 0xa9, 0x0c, 0x8f, 0xc1, 0xc2, 0xd8, 0x9f, 0x5b, 0xe5, 0x98, 0xd5, - 0xad, 0xab, 0x36, 0xc7, 0x9d, 0x96, 0x3d, 0x17, 0x2d, 0x85, 0xb4, 0x21, 0xa3, 0x70, 0x59, 0x39, - 0x07, 0x66, 0x59, 0x95, 0xea, 0x0f, 0x01, 0x94, 0x92, 0x2f, 0x2c, 0xbc, 0x03, 0x66, 0x4c, 0xd5, - 0xc0, 0xac, 0x8f, 0xf2, 0x32, 0xf4, 0x5c, 0x54, 0xf0, 0xc7, 0x81, 0x46, 0x61, 0xeb, 0x70, 0x0b, - 0xcc, 0x69, 0xc4, 0xee, 0x12, 0x13, 0x77, 0x59, 0x5b, 0xcc, 0xc9, 0x25, 0xcf, 0x45, 0x70, 0x3c, - 0x17, 0xe0, 0x27, 0x1c, 0x7c, 0x00, 0xfe, 0xe1, 0xcf, 0x2d, 0xac, 0x3a, 0xc4, 0x64, 0x37, 0x38, - 0x2f, 0x97, 0x3d, 0x17, 0x95, 0x82, 0xf3, 0x01, 0x6d, 0x88, 0x87, 0xf7, 0x40, 0xde, 0xc1, 0x54, - 0x3e, 0x6d, 0x3b, 0x98, 0xdf, 0xbb, 0xbc, 0xbc, 0xe4, 0xb9, 0xe8, 0xbf, 0xc9, 0x64, 0x40, 0x79, - 0x49, 0x56, 0x1f, 0xc6, 0x37, 0x3b, 0xba, 0xd0, 0x53, 0x6e, 0xb6, 0xfa, 0x49, 0x00, 0x8b, 0xb1, - 0xcb, 0x3c, 0xf5, 0x51, 0x6d, 0x82, 0xec, 0x6b, 0xff, 0xfc, 0x1d, 0x31, 0xbd, 0x92, 0x59, 0xcf, - 0xcb, 0xff, 0x7b, 0x2e, 0x2a, 0xf2, 0x99, 0x00, 0x3b, 0x62, 0xe0, 0x2e, 0xf8, 0xd7, 0xb2, 0x75, - 0x62, 0xeb, 0xf4, 0x74, 0xa7, 0xaf, 0x3a, 0x0e, 0x76, 0xc4, 0x0c, 0x93, 0xdd, 0xf4, 0x5c, 0x74, - 0x3d, 0xb2, 0x14, 0xd0, 0x47, 0x55, 0xd5, 0x8f, 0x02, 0x28, 0x46, 0x5b, 0xe1, 0x6f, 0xcf, 0xfc, - 0x56, 0x00, 0x85, 0x70, 0x33, 0x4d, 0x9d, 0x38, 0x21, 0x43, 0xfa, 0xb7, 0x32, 0x7c, 0x13, 0xc0, - 0x42, 0xa8, 0xcb, 0xfe, 0x78, 0x04, 0xf8, 0x1c, 0xe4, 0x4f, 0x48, 0xe7, 0x88, 0xaa, 0x74, 0x74, - 0x92, 0x85, 0xe4, 0xff, 0x9d, 0x6d, 0x8d, 0xea, 0x43, 0xfc, 0x78, 0x84, 0xf2, 0x66, 0x98, 0x08, - 0x83, 0xcd, 0x30, 0x99, 0xdc, 0x38, 0x00, 0x85, 0xb0, 0x0a, 0xce, 0x83, 0x5c, 0x5b, 0xd9, 0x57, - 0x0e, 0x9e, 0x29, 0xc5, 0x14, 0x04, 0x20, 0x7b, 0xd8, 0x6e, 0xb4, 0x1b, 0xf5, 0xa2, 0xe0, 0x3f, - 0x3f, 0x69, 0x6c, 0x1f, 0x35, 0xea, 0xc5, 0xb4, 0x0f, 0x35, 0x1b, 0x4a, 0x7d, 0x4f, 0xd9, 0x2d, - 0x66, 0xfc, 0x41, 0xab, 0xad, 0x28, 0xfe, 0x60, 0x46, 0x1e, 0x7e, 0x39, 0xaf, 0x08, 0x67, 0xe7, - 0x15, 0xe1, 0xfb, 0x79, 0x45, 0x78, 0x7f, 0x51, 0x49, 0x9d, 0x5d, 0x54, 0x52, 0x5f, 0x2f, 0x2a, - 0xa9, 0x17, 0xf7, 0x7b, 0x3a, 0x7d, 0x39, 0xe8, 0x48, 0x1a, 0x31, 0x6a, 0xaa, 0x6d, 0xa8, 0x5d, - 0xd5, 0xb2, 0xc9, 0x09, 0xd6, 0xe8, 0x68, 0x54, 0x4b, 0xfe, 0x32, 0xf8, 0x90, 0x5e, 0xdd, 0x66, - 0xeb, 0x4d, 0x4e, 0x4b, 0x7b, 0x44, 0xda, 0xe1, 0x54, 0xd3, 0xa7, 0xd8, 0x2b, 0xdf, 0xe9, 0x64, - 0xd9, 0xab, 0xfd, 0xee, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4d, 0xd1, 0xf1, 0xaf, 0x60, 0x08, - 0x00, 0x00, -} - -func (m *Event) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Event) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size := m.Event.Size() - i -= size - if _, err := m.Event.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.Created != nil { - { - size, err := m.Created.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type CancelOnExecutor struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Queues []string `protobuf:"bytes,2,rep,name=queues,proto3" json:"queues,omitempty"` + PriorityClasses []string `protobuf:"bytes,3,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *Event_ExecutorSettingsUpsert) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *CancelOnExecutor) Reset() { + *x = CancelOnExecutor{} + mi := &file_pkg_controlplaneevents_events_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *Event_ExecutorSettingsUpsert) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ExecutorSettingsUpsert != nil { - { - size, err := m.ExecutorSettingsUpsert.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *Event_ExecutorSettingsDelete) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_ExecutorSettingsDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ExecutorSettingsDelete != nil { - { - size, err := m.ExecutorSettingsDelete.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} -func (m *Event_PreemptOnExecutor) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_PreemptOnExecutor) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.PreemptOnExecutor != nil { - { - size, err := m.PreemptOnExecutor.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - return len(dAtA) - i, nil -} -func (m *Event_CancelOnExecutor) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_CancelOnExecutor) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.CancelOnExecutor != nil { - { - size, err := m.CancelOnExecutor.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *Event_PreemptOnQueue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_PreemptOnQueue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.PreemptOnQueue != nil { - { - size, err := m.PreemptOnQueue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - return len(dAtA) - i, nil -} -func (m *Event_CancelOnQueue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_CancelOnQueue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.CancelOnQueue != nil { - { - size, err := m.CancelOnQueue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - return len(dAtA) - i, nil -} -func (m *ExecutorSettingsUpsert) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *CancelOnExecutor) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExecutorSettingsUpsert) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*CancelOnExecutor) ProtoMessage() {} -func (m *ExecutorSettingsUpsert) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SetByUser) > 0 { - i -= len(m.SetByUser) - copy(dAtA[i:], m.SetByUser) - i = encodeVarintEvents(dAtA, i, uint64(len(m.SetByUser))) - i-- - dAtA[i] = 0x22 - } - if len(m.CordonReason) > 0 { - i -= len(m.CordonReason) - copy(dAtA[i:], m.CordonReason) - i = encodeVarintEvents(dAtA, i, uint64(len(m.CordonReason))) - i-- - dAtA[i] = 0x1a - } - if m.Cordoned { - i-- - if m.Cordoned { - dAtA[i] = 1 - } else { - dAtA[i] = 0 +func (x *CancelOnExecutor) ProtoReflect() protoreflect.Message { + mi := &file_pkg_controlplaneevents_events_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x10 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ExecutorSettingsDelete) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *ExecutorSettingsDelete) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use CancelOnExecutor.ProtoReflect.Descriptor instead. +func (*CancelOnExecutor) Descriptor() ([]byte, []int) { + return file_pkg_controlplaneevents_events_proto_rawDescGZIP(), []int{4} } -func (m *ExecutorSettingsDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa +func (x *CancelOnExecutor) GetName() string { + if x != nil { + return x.Name } - return len(dAtA) - i, nil + return "" } -func (m *PreemptOnExecutor) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PreemptOnExecutor) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PreemptOnExecutor) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PriorityClasses) > 0 { - for iNdEx := len(m.PriorityClasses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PriorityClasses[iNdEx]) - copy(dAtA[i:], m.PriorityClasses[iNdEx]) - i = encodeVarintEvents(dAtA, i, uint64(len(m.PriorityClasses[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Queues) > 0 { - for iNdEx := len(m.Queues) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Queues[iNdEx]) - copy(dAtA[i:], m.Queues[iNdEx]) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Queues[iNdEx]))) - i-- - dAtA[i] = 0x12 - } +func (x *CancelOnExecutor) GetQueues() []string { + if x != nil { + return x.Queues } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return nil } -func (m *CancelOnExecutor) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *CancelOnExecutor) GetPriorityClasses() []string { + if x != nil { + return x.PriorityClasses } - return dAtA[:n], nil -} - -func (m *CancelOnExecutor) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CancelOnExecutor) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PriorityClasses) > 0 { - for iNdEx := len(m.PriorityClasses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PriorityClasses[iNdEx]) - copy(dAtA[i:], m.PriorityClasses[iNdEx]) - i = encodeVarintEvents(dAtA, i, uint64(len(m.PriorityClasses[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Queues) > 0 { - for iNdEx := len(m.Queues) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Queues[iNdEx]) - copy(dAtA[i:], m.Queues[iNdEx]) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Queues[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return nil } -func (m *PreemptOnQueue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PreemptOnQueue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PreemptOnQueue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PriorityClasses) > 0 { - for iNdEx := len(m.PriorityClasses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PriorityClasses[iNdEx]) - copy(dAtA[i:], m.PriorityClasses[iNdEx]) - i = encodeVarintEvents(dAtA, i, uint64(len(m.PriorityClasses[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type PreemptOnQueue struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + PriorityClasses []string `protobuf:"bytes,2,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *CancelOnQueue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CancelOnQueue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CancelOnQueue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobStates) > 0 { - dAtA9 := make([]byte, len(m.JobStates)*10) - var j8 int - for _, num := range m.JobStates { - for num >= 1<<7 { - dAtA9[j8] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j8++ - } - dAtA9[j8] = uint8(num) - j8++ - } - i -= j8 - copy(dAtA[i:], dAtA9[:j8]) - i = encodeVarintEvents(dAtA, i, uint64(j8)) - i-- - dAtA[i] = 0x1a - } - if len(m.PriorityClasses) > 0 { - for iNdEx := len(m.PriorityClasses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PriorityClasses[iNdEx]) - copy(dAtA[i:], m.PriorityClasses[iNdEx]) - i = encodeVarintEvents(dAtA, i, uint64(len(m.PriorityClasses[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintEvents(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *PreemptOnQueue) Reset() { + *x = PreemptOnQueue{} + mi := &file_pkg_controlplaneevents_events_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { - offset -= sovEvents(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Event) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Created != nil { - l = m.Created.Size() - n += 1 + l + sovEvents(uint64(l)) - } - if m.Event != nil { - n += m.Event.Size() - } - return n +func (x *PreemptOnQueue) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Event_ExecutorSettingsUpsert) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ExecutorSettingsUpsert != nil { - l = m.ExecutorSettingsUpsert.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *Event_ExecutorSettingsDelete) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ExecutorSettingsDelete != nil { - l = m.ExecutorSettingsDelete.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *Event_PreemptOnExecutor) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PreemptOnExecutor != nil { - l = m.PreemptOnExecutor.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *Event_CancelOnExecutor) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CancelOnExecutor != nil { - l = m.CancelOnExecutor.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n -} -func (m *Event_PreemptOnQueue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PreemptOnQueue != nil { - l = m.PreemptOnQueue.Size() - n += 1 + l + sovEvents(uint64(l)) +func (*PreemptOnQueue) ProtoMessage() {} + +func (x *PreemptOnQueue) ProtoReflect() protoreflect.Message { + mi := &file_pkg_controlplaneevents_events_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return n + return mi.MessageOf(x) } -func (m *Event_CancelOnQueue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CancelOnQueue != nil { - l = m.CancelOnQueue.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n + +// Deprecated: Use PreemptOnQueue.ProtoReflect.Descriptor instead. +func (*PreemptOnQueue) Descriptor() ([]byte, []int) { + return file_pkg_controlplaneevents_events_proto_rawDescGZIP(), []int{5} } -func (m *ExecutorSettingsUpsert) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if m.Cordoned { - n += 2 - } - l = len(m.CordonReason) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.SetByUser) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) + +func (x *PreemptOnQueue) GetName() string { + if x != nil { + return x.Name } - return n + return "" } -func (m *ExecutorSettingsDelete) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) +func (x *PreemptOnQueue) GetPriorityClasses() []string { + if x != nil { + return x.PriorityClasses } - return n + return nil } -func (m *PreemptOnExecutor) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if len(m.Queues) > 0 { - for _, s := range m.Queues { - l = len(s) - n += 1 + l + sovEvents(uint64(l)) - } - } - if len(m.PriorityClasses) > 0 { - for _, s := range m.PriorityClasses { - l = len(s) - n += 1 + l + sovEvents(uint64(l)) - } - } - return n +type CancelOnQueue struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + PriorityClasses []string `protobuf:"bytes,2,rep,name=priorityClasses,proto3" json:"priorityClasses,omitempty"` + JobStates []ActiveJobState `protobuf:"varint,3,rep,packed,name=jobStates,proto3,enum=controlplaneevents.ActiveJobState" json:"jobStates,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *CancelOnExecutor) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if len(m.Queues) > 0 { - for _, s := range m.Queues { - l = len(s) - n += 1 + l + sovEvents(uint64(l)) - } - } - if len(m.PriorityClasses) > 0 { - for _, s := range m.PriorityClasses { - l = len(s) - n += 1 + l + sovEvents(uint64(l)) - } - } - return n +func (x *CancelOnQueue) Reset() { + *x = CancelOnQueue{} + mi := &file_pkg_controlplaneevents_events_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PreemptOnQueue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if len(m.PriorityClasses) > 0 { - for _, s := range m.PriorityClasses { - l = len(s) - n += 1 + l + sovEvents(uint64(l)) - } - } - return n +func (x *CancelOnQueue) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CancelOnQueue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if len(m.PriorityClasses) > 0 { - for _, s := range m.PriorityClasses { - l = len(s) - n += 1 + l + sovEvents(uint64(l)) - } - } - if len(m.JobStates) > 0 { - l = 0 - for _, e := range m.JobStates { - l += sovEvents(uint64(e)) - } - n += 1 + sovEvents(uint64(l)) + l - } - return n -} - -func sovEvents(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozEvents(x uint64) (n int) { - return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Event) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Event: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Created == nil { - m.Created = &types.Timestamp{} - } - if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutorSettingsUpsert", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ExecutorSettingsUpsert{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &Event_ExecutorSettingsUpsert{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutorSettingsDelete", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ExecutorSettingsDelete{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &Event_ExecutorSettingsDelete{v} - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreemptOnExecutor", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &PreemptOnExecutor{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &Event_PreemptOnExecutor{v} - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelOnExecutor", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &CancelOnExecutor{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &Event_CancelOnExecutor{v} - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreemptOnQueue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &PreemptOnQueue{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &Event_PreemptOnQueue{v} - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelOnQueue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &CancelOnQueue{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &Event_CancelOnQueue{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +func (*CancelOnQueue) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExecutorSettingsUpsert) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecutorSettingsUpsert: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecutorSettingsUpsert: illegal tag %d (wire type %d)", fieldNum, wire) +func (x *CancelOnQueue) ProtoReflect() protoreflect.Message { + mi := &file_pkg_controlplaneevents_events_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Cordoned", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Cordoned = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CordonReason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CordonReason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SetByUser", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SetByUser = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF + return ms } - return nil + return mi.MessageOf(x) } -func (m *ExecutorSettingsDelete) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecutorSettingsDelete: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecutorSettingsDelete: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use CancelOnQueue.ProtoReflect.Descriptor instead. +func (*CancelOnQueue) Descriptor() ([]byte, []int) { + return file_pkg_controlplaneevents_events_proto_rawDescGZIP(), []int{6} } -func (m *PreemptOnExecutor) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PreemptOnExecutor: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PreemptOnExecutor: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queues = append(m.Queues, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PriorityClasses", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PriorityClasses = append(m.PriorityClasses, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *CancelOnQueue) GetName() string { + if x != nil { + return x.Name } - return nil + return "" } -func (m *CancelOnExecutor) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CancelOnExecutor: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancelOnExecutor: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queues = append(m.Queues, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PriorityClasses", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PriorityClasses = append(m.PriorityClasses, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *CancelOnQueue) GetPriorityClasses() []string { + if x != nil { + return x.PriorityClasses } return nil } -func (m *PreemptOnQueue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PreemptOnQueue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PreemptOnQueue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PriorityClasses", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PriorityClasses = append(m.PriorityClasses, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *CancelOnQueue) GetJobStates() []ActiveJobState { + if x != nil { + return x.JobStates } return nil } -func (m *CancelOnQueue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CancelOnQueue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancelOnQueue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PriorityClasses", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PriorityClasses = append(m.PriorityClasses, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType == 0 { - var v ActiveJobState - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= ActiveJobState(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.JobStates = append(m.JobStates, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.JobStates) == 0 { - m.JobStates = make([]ActiveJobState, 0, elementCount) - } - for iNdEx < postIndex { - var v ActiveJobState - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= ActiveJobState(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.JobStates = append(m.JobStates, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field JobStates", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipEvents(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvents - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvents - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvents - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthEvents - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupEvents - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthEvents - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} +var File_pkg_controlplaneevents_events_proto protoreflect.FileDescriptor + +var file_pkg_controlplaneevents_events_proto_rawDesc = string([]byte{ + 0x0a, 0x23, 0x70, 0x6b, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x70, 0x6c, 0x61, + 0x6e, 0x65, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x70, 0x6c, + 0x61, 0x6e, 0x65, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd6, 0x04, 0x0a, 0x05, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x64, 0x0a, 0x16, 0x65, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x55, 0x70, + 0x73, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x48, 0x00, 0x52, 0x16, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x6f, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, + 0x12, 0x64, 0x0a, 0x16, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2a, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x53, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x48, 0x00, 0x52, 0x16, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x55, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, + 0x74, 0x4f, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x70, 0x6c, 0x61, 0x6e, 0x65, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x4f, 0x6e, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x11, 0x70, 0x72, 0x65, 0x65, + 0x6d, 0x70, 0x74, 0x4f, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x52, 0x0a, + 0x10, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, + 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, + 0x6c, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x4f, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x48, 0x00, 0x52, + 0x10, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, + 0x72, 0x12, 0x4c, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x4f, 0x6e, 0x51, 0x75, + 0x65, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x6f, 0x6c, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x50, + 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x4f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x48, 0x00, 0x52, + 0x0e, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x4f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, + 0x49, 0x0a, 0x0d, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x43, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x4f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x63, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x4f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x22, 0x8a, 0x01, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x65, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x65, 0x64, 0x12, 0x22, + 0x0a, 0x0c, 0x63, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x72, 0x64, 0x6f, 0x6e, 0x52, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x74, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, + 0x22, 0x2c, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x69, + 0x0a, 0x11, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x4f, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, + 0x28, 0x0a, 0x0f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x22, 0x68, 0x0a, 0x10, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x4f, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x70, 0x72, 0x69, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x65, 0x73, 0x22, 0x4e, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x4f, 0x6e, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x70, 0x72, 0x69, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x65, 0x73, 0x22, 0x8f, 0x01, 0x0a, 0x0d, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x6e, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x70, 0x72, 0x69, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x09, 0x6a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x73, 0x2a, 0x4f, 0x0a, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4a, + 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, + 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x51, 0x55, 0x45, 0x55, 0x45, 0x44, 0x10, 0x01, + 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x45, 0x41, 0x53, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, + 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, + 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x42, 0x5e, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, + 0xaa, 0x02, 0x23, 0x41, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x49, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6c, 0x61, 0x6e, 0x65, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) var ( - ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") + file_pkg_controlplaneevents_events_proto_rawDescOnce sync.Once + file_pkg_controlplaneevents_events_proto_rawDescData []byte ) + +func file_pkg_controlplaneevents_events_proto_rawDescGZIP() []byte { + file_pkg_controlplaneevents_events_proto_rawDescOnce.Do(func() { + file_pkg_controlplaneevents_events_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_controlplaneevents_events_proto_rawDesc), len(file_pkg_controlplaneevents_events_proto_rawDesc))) + }) + return file_pkg_controlplaneevents_events_proto_rawDescData +} + +var file_pkg_controlplaneevents_events_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_pkg_controlplaneevents_events_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_pkg_controlplaneevents_events_proto_goTypes = []any{ + (ActiveJobState)(0), // 0: controlplaneevents.ActiveJobState + (*Event)(nil), // 1: controlplaneevents.Event + (*ExecutorSettingsUpsert)(nil), // 2: controlplaneevents.ExecutorSettingsUpsert + (*ExecutorSettingsDelete)(nil), // 3: controlplaneevents.ExecutorSettingsDelete + (*PreemptOnExecutor)(nil), // 4: controlplaneevents.PreemptOnExecutor + (*CancelOnExecutor)(nil), // 5: controlplaneevents.CancelOnExecutor + (*PreemptOnQueue)(nil), // 6: controlplaneevents.PreemptOnQueue + (*CancelOnQueue)(nil), // 7: controlplaneevents.CancelOnQueue + (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp +} +var file_pkg_controlplaneevents_events_proto_depIdxs = []int32{ + 8, // 0: controlplaneevents.Event.created:type_name -> google.protobuf.Timestamp + 2, // 1: controlplaneevents.Event.executorSettingsUpsert:type_name -> controlplaneevents.ExecutorSettingsUpsert + 3, // 2: controlplaneevents.Event.executorSettingsDelete:type_name -> controlplaneevents.ExecutorSettingsDelete + 4, // 3: controlplaneevents.Event.preemptOnExecutor:type_name -> controlplaneevents.PreemptOnExecutor + 5, // 4: controlplaneevents.Event.cancelOnExecutor:type_name -> controlplaneevents.CancelOnExecutor + 6, // 5: controlplaneevents.Event.preemptOnQueue:type_name -> controlplaneevents.PreemptOnQueue + 7, // 6: controlplaneevents.Event.cancelOnQueue:type_name -> controlplaneevents.CancelOnQueue + 0, // 7: controlplaneevents.CancelOnQueue.jobStates:type_name -> controlplaneevents.ActiveJobState + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_pkg_controlplaneevents_events_proto_init() } +func file_pkg_controlplaneevents_events_proto_init() { + if File_pkg_controlplaneevents_events_proto != nil { + return + } + file_pkg_controlplaneevents_events_proto_msgTypes[0].OneofWrappers = []any{ + (*Event_ExecutorSettingsUpsert)(nil), + (*Event_ExecutorSettingsDelete)(nil), + (*Event_PreemptOnExecutor)(nil), + (*Event_CancelOnExecutor)(nil), + (*Event_PreemptOnQueue)(nil), + (*Event_CancelOnQueue)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_controlplaneevents_events_proto_rawDesc), len(file_pkg_controlplaneevents_events_proto_rawDesc)), + NumEnums: 1, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_pkg_controlplaneevents_events_proto_goTypes, + DependencyIndexes: file_pkg_controlplaneevents_events_proto_depIdxs, + EnumInfos: file_pkg_controlplaneevents_events_proto_enumTypes, + MessageInfos: file_pkg_controlplaneevents_events_proto_msgTypes, + }.Build() + File_pkg_controlplaneevents_events_proto = out.File + file_pkg_controlplaneevents_events_proto_goTypes = nil + file_pkg_controlplaneevents_events_proto_depIdxs = nil +} diff --git a/pkg/executorapi/executorapi.pb.go b/pkg/executorapi/executorapi.pb.go index f4794a87256..39eb7bb7726 100644 --- a/pkg/executorapi/executorapi.pb.go +++ b/pkg/executorapi/executorapi.pb.go @@ -1,20 +1,19 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: pkg/executorapi/executorapi.proto package executorapi import ( - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" - proto "github.com/gogo/protobuf/proto" - types "github.com/gogo/protobuf/types" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" v1 "k8s.io/api/core/v1" resource "k8s.io/apimachinery/pkg/api/resource" @@ -22,4833 +21,1068 @@ import ( armadaevents "github.com/armadaproject/armada/pkg/armadaevents" ) -// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // Used by the scheduler when allocating jobs to executors. type NodeInfo struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Taints []*v1.Taint `protobuf:"bytes,2,rep,name=taints,proto3" json:"taints,omitempty"` - Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Taints []*v1.Taint `protobuf:"bytes,2,rep,name=taints,proto3" json:"taints,omitempty"` + Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // To be deprecated in favour of total_resources + allocated_resources. - AllocatableResources map[string]*resource.Quantity `protobuf:"bytes,4,rep,name=allocatable_resources,json=allocatableResources,proto3" json:"allocatableResources,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + AllocatableResources map[string]*resource.Quantity `protobuf:"bytes,4,rep,name=allocatable_resources,json=allocatableResources,proto3" json:"allocatable_resources,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // To be deprecated in favour of total_resources + allocated_resources. - AvailableResources map[string]*resource.Quantity `protobuf:"bytes,5,rep,name=available_resources,json=availableResources,proto3" json:"availableResources,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + AvailableResources map[string]*resource.Quantity `protobuf:"bytes,5,rep,name=available_resources,json=availableResources,proto3" json:"available_resources,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Total node resources. // Resources available for allocation is given by the difference between this and allocated_resources. - TotalResources map[string]*resource.Quantity `protobuf:"bytes,6,rep,name=total_resources,json=totalResources,proto3" json:"totalResources,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + TotalResources map[string]*resource.Quantity `protobuf:"bytes,6,rep,name=total_resources,json=totalResources,proto3" json:"total_resources,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // All run ids of jobs on the node, mapped to their current state - RunIdsByState map[string]api.JobState `protobuf:"bytes,8,rep,name=run_ids_by_state,json=runIdsByState,proto3" json:"runIdsByState,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=api.JobState"` + RunIdsByState map[string]api.JobState `protobuf:"bytes,8,rep,name=run_ids_by_state,json=runIdsByState,proto3" json:"run_ids_by_state,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=api.JobState"` // The amount of resource allocated to non-armada pods by priority - NonArmadaAllocatedResources map[int32]*ComputeResource `protobuf:"bytes,9,rep,name=non_armada_allocated_resources,json=nonArmadaAllocatedResources,proto3" json:"nonArmadaAllocatedResources,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + NonArmadaAllocatedResources map[int32]*ComputeResource `protobuf:"bytes,9,rep,name=non_armada_allocated_resources,json=nonArmadaAllocatedResources,proto3" json:"non_armada_allocated_resources,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` Unschedulable bool `protobuf:"varint,10,opt,name=unschedulable,proto3" json:"unschedulable,omitempty"` // This should only be used for metrics // This is the type the node should be reported as. It is simple a label to categorise the group the node belongs to - NodeType string `protobuf:"bytes,12,opt,name=node_type,json=nodeType,proto3" json:"nodeType,omitempty"` + NodeType string `protobuf:"bytes,12,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` // The pool that this node belongs to, this is used for scheduling purposes Pool string `protobuf:"bytes,13,opt,name=pool,proto3" json:"pool,omitempty"` // Replaces resource_usage_by_queue - ResourceUsageByQueueAndPool []*PoolQueueResource `protobuf:"bytes,14,rep,name=resource_usage_by_queue_and_pool,json=resourceUsageByQueueAndPool,proto3" json:"resourceUsageByQueueAndPool,omitempty"` + ResourceUsageByQueueAndPool []*PoolQueueResource `protobuf:"bytes,14,rep,name=resource_usage_by_queue_and_pool,json=resourceUsageByQueueAndPool,proto3" json:"resource_usage_by_queue_and_pool,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *NodeInfo) Reset() { *m = NodeInfo{} } -func (m *NodeInfo) String() string { return proto.CompactTextString(m) } -func (*NodeInfo) ProtoMessage() {} -func (*NodeInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_57e0d9d0e484e459, []int{0} +func (x *NodeInfo) Reset() { + *x = NodeInfo{} + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *NodeInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *NodeInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NodeInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*NodeInfo) ProtoMessage() {} + +func (x *NodeInfo) ProtoReflect() protoreflect.Message { + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *NodeInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeInfo.Merge(m, src) -} -func (m *NodeInfo) XXX_Size() int { - return m.Size() -} -func (m *NodeInfo) XXX_DiscardUnknown() { - xxx_messageInfo_NodeInfo.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_NodeInfo proto.InternalMessageInfo +// Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead. +func (*NodeInfo) Descriptor() ([]byte, []int) { + return file_pkg_executorapi_executorapi_proto_rawDescGZIP(), []int{0} +} -func (m *NodeInfo) GetName() string { - if m != nil { - return m.Name +func (x *NodeInfo) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *NodeInfo) GetTaints() []*v1.Taint { - if m != nil { - return m.Taints +func (x *NodeInfo) GetTaints() []*v1.Taint { + if x != nil { + return x.Taints } return nil } -func (m *NodeInfo) GetLabels() map[string]string { - if m != nil { - return m.Labels +func (x *NodeInfo) GetLabels() map[string]string { + if x != nil { + return x.Labels } return nil } -func (m *NodeInfo) GetAllocatableResources() map[string]*resource.Quantity { - if m != nil { - return m.AllocatableResources +func (x *NodeInfo) GetAllocatableResources() map[string]*resource.Quantity { + if x != nil { + return x.AllocatableResources } return nil } -func (m *NodeInfo) GetAvailableResources() map[string]*resource.Quantity { - if m != nil { - return m.AvailableResources +func (x *NodeInfo) GetAvailableResources() map[string]*resource.Quantity { + if x != nil { + return x.AvailableResources } return nil } -func (m *NodeInfo) GetTotalResources() map[string]*resource.Quantity { - if m != nil { - return m.TotalResources +func (x *NodeInfo) GetTotalResources() map[string]*resource.Quantity { + if x != nil { + return x.TotalResources } return nil } -func (m *NodeInfo) GetRunIdsByState() map[string]api.JobState { - if m != nil { - return m.RunIdsByState +func (x *NodeInfo) GetRunIdsByState() map[string]api.JobState { + if x != nil { + return x.RunIdsByState } return nil } -func (m *NodeInfo) GetNonArmadaAllocatedResources() map[int32]*ComputeResource { - if m != nil { - return m.NonArmadaAllocatedResources +func (x *NodeInfo) GetNonArmadaAllocatedResources() map[int32]*ComputeResource { + if x != nil { + return x.NonArmadaAllocatedResources } return nil } -func (m *NodeInfo) GetUnschedulable() bool { - if m != nil { - return m.Unschedulable +func (x *NodeInfo) GetUnschedulable() bool { + if x != nil { + return x.Unschedulable } return false } -func (m *NodeInfo) GetNodeType() string { - if m != nil { - return m.NodeType +func (x *NodeInfo) GetNodeType() string { + if x != nil { + return x.NodeType } return "" } -func (m *NodeInfo) GetPool() string { - if m != nil { - return m.Pool +func (x *NodeInfo) GetPool() string { + if x != nil { + return x.Pool } return "" } -func (m *NodeInfo) GetResourceUsageByQueueAndPool() []*PoolQueueResource { - if m != nil { - return m.ResourceUsageByQueueAndPool +func (x *NodeInfo) GetResourceUsageByQueueAndPool() []*PoolQueueResource { + if x != nil { + return x.ResourceUsageByQueueAndPool } return nil } type ComputeResource struct { - Resources map[string]*resource.Quantity `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + state protoimpl.MessageState `protogen:"open.v1"` + Resources map[string]*resource.Quantity `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ComputeResource) Reset() { *m = ComputeResource{} } -func (m *ComputeResource) String() string { return proto.CompactTextString(m) } -func (*ComputeResource) ProtoMessage() {} -func (*ComputeResource) Descriptor() ([]byte, []int) { - return fileDescriptor_57e0d9d0e484e459, []int{1} +func (x *ComputeResource) Reset() { + *x = ComputeResource{} + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ComputeResource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ComputeResource) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ComputeResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ComputeResource.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ComputeResource) ProtoMessage() {} + +func (x *ComputeResource) ProtoReflect() protoreflect.Message { + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ComputeResource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ComputeResource.Merge(m, src) -} -func (m *ComputeResource) XXX_Size() int { - return m.Size() -} -func (m *ComputeResource) XXX_DiscardUnknown() { - xxx_messageInfo_ComputeResource.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ComputeResource proto.InternalMessageInfo +// Deprecated: Use ComputeResource.ProtoReflect.Descriptor instead. +func (*ComputeResource) Descriptor() ([]byte, []int) { + return file_pkg_executorapi_executorapi_proto_rawDescGZIP(), []int{1} +} -func (m *ComputeResource) GetResources() map[string]*resource.Quantity { - if m != nil { - return m.Resources +func (x *ComputeResource) GetResources() map[string]*resource.Quantity { + if x != nil { + return x.Resources } return nil } type PoolQueueResource struct { - Pool string `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"` - Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"` - Resources map[string]*resource.Quantity `protobuf:"bytes,3,rep,name=resources,proto3" json:"resources,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + state protoimpl.MessageState `protogen:"open.v1"` + Pool string `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"` + Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"` + Resources map[string]*resource.Quantity `protobuf:"bytes,3,rep,name=resources,proto3" json:"resources,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PoolQueueResource) Reset() { *m = PoolQueueResource{} } -func (m *PoolQueueResource) String() string { return proto.CompactTextString(m) } -func (*PoolQueueResource) ProtoMessage() {} -func (*PoolQueueResource) Descriptor() ([]byte, []int) { - return fileDescriptor_57e0d9d0e484e459, []int{2} +func (x *PoolQueueResource) Reset() { + *x = PoolQueueResource{} + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PoolQueueResource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *PoolQueueResource) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PoolQueueResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PoolQueueResource.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*PoolQueueResource) ProtoMessage() {} + +func (x *PoolQueueResource) ProtoReflect() protoreflect.Message { + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *PoolQueueResource) XXX_Merge(src proto.Message) { - xxx_messageInfo_PoolQueueResource.Merge(m, src) -} -func (m *PoolQueueResource) XXX_Size() int { - return m.Size() -} -func (m *PoolQueueResource) XXX_DiscardUnknown() { - xxx_messageInfo_PoolQueueResource.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_PoolQueueResource proto.InternalMessageInfo +// Deprecated: Use PoolQueueResource.ProtoReflect.Descriptor instead. +func (*PoolQueueResource) Descriptor() ([]byte, []int) { + return file_pkg_executorapi_executorapi_proto_rawDescGZIP(), []int{2} +} -func (m *PoolQueueResource) GetPool() string { - if m != nil { - return m.Pool +func (x *PoolQueueResource) GetPool() string { + if x != nil { + return x.Pool } return "" } -func (m *PoolQueueResource) GetQueue() string { - if m != nil { - return m.Queue +func (x *PoolQueueResource) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *PoolQueueResource) GetResources() map[string]*resource.Quantity { - if m != nil { - return m.Resources +func (x *PoolQueueResource) GetResources() map[string]*resource.Quantity { + if x != nil { + return x.Resources } return nil } type EventList struct { - Events []*armadaevents.EventSequence `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Events []*armadaevents.EventSequence `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *EventList) Reset() { *m = EventList{} } -func (m *EventList) String() string { return proto.CompactTextString(m) } -func (*EventList) ProtoMessage() {} -func (*EventList) Descriptor() ([]byte, []int) { - return fileDescriptor_57e0d9d0e484e459, []int{3} +func (x *EventList) Reset() { + *x = EventList{} + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *EventList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *EventList) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EventList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*EventList) ProtoMessage() {} + +func (x *EventList) ProtoReflect() protoreflect.Message { + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *EventList) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventList.Merge(m, src) -} -func (m *EventList) XXX_Size() int { - return m.Size() -} -func (m *EventList) XXX_DiscardUnknown() { - xxx_messageInfo_EventList.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_EventList proto.InternalMessageInfo +// Deprecated: Use EventList.ProtoReflect.Descriptor instead. +func (*EventList) Descriptor() ([]byte, []int) { + return file_pkg_executorapi_executorapi_proto_rawDescGZIP(), []int{3} +} -func (m *EventList) GetEvents() []*armadaevents.EventSequence { - if m != nil { - return m.Events +func (x *EventList) GetEvents() []*armadaevents.EventSequence { + if x != nil { + return x.Events } return nil } type LeaseRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` // Each executor has a unique name associated with it. - ExecutorId string `protobuf:"bytes,1,opt,name=executor_id,json=executorId,proto3" json:"executorId,omitempty"` + ExecutorId string `protobuf:"bytes,1,opt,name=executor_id,json=executorId,proto3" json:"executor_id,omitempty"` // Nodes are split into pools. This field indicates for which pool jobs are leased. Pool string `protobuf:"bytes,2,opt,name=pool,proto3" json:"pool,omitempty"` // Total resources available for scheduling across all nodes. - Resources map[string]*resource.Quantity `protobuf:"bytes,3,rep,name=resources,proto3" json:"resources,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Resources map[string]*resource.Quantity `protobuf:"bytes,3,rep,name=resources,proto3" json:"resources,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Jobs submitted to this executor must require at least this amount of resources. - MinimumJobSize map[string]*resource.Quantity `protobuf:"bytes,4,rep,name=minimum_job_size,json=minimumJobSize,proto3" json:"minimumJobSize,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + MinimumJobSize map[string]*resource.Quantity `protobuf:"bytes,4,rep,name=minimum_job_size,json=minimumJobSize,proto3" json:"minimum_job_size,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // For each node in the cluster: // - The total allocatable resources on that node. // - The job runs running on those nodes, // - Any taints and labels on the node. Nodes []*NodeInfo `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes,omitempty"` // Max number of jobs this request should return - MaxJobsToLease uint32 `protobuf:"varint,7,opt,name=max_jobs_to_lease,json=maxJobsToLease,proto3" json:"maxJobsToLease,omitempty"` + MaxJobsToLease uint32 `protobuf:"varint,7,opt,name=max_jobs_to_lease,json=maxJobsToLease,proto3" json:"max_jobs_to_lease,omitempty"` // Run Ids of jobs owned by the executor but not currently assigned to a node. - UnassignedJobRunIds []string `protobuf:"bytes,8,rep,name=unassigned_job_run_ids,json=unassignedJobRunIds,proto3" json:"unassignedJobRunIds,omitempty"` + UnassignedJobRunIds []string `protobuf:"bytes,8,rep,name=unassigned_job_run_ids,json=unassignedJobRunIds,proto3" json:"unassigned_job_run_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *LeaseRequest) Reset() { *m = LeaseRequest{} } -func (m *LeaseRequest) String() string { return proto.CompactTextString(m) } -func (*LeaseRequest) ProtoMessage() {} -func (*LeaseRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_57e0d9d0e484e459, []int{4} +func (x *LeaseRequest) Reset() { + *x = LeaseRequest{} + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *LeaseRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *LeaseRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LeaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LeaseRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*LeaseRequest) ProtoMessage() {} + +func (x *LeaseRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *LeaseRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LeaseRequest.Merge(m, src) -} -func (m *LeaseRequest) XXX_Size() int { - return m.Size() -} -func (m *LeaseRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LeaseRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_LeaseRequest proto.InternalMessageInfo +// Deprecated: Use LeaseRequest.ProtoReflect.Descriptor instead. +func (*LeaseRequest) Descriptor() ([]byte, []int) { + return file_pkg_executorapi_executorapi_proto_rawDescGZIP(), []int{4} +} -func (m *LeaseRequest) GetExecutorId() string { - if m != nil { - return m.ExecutorId +func (x *LeaseRequest) GetExecutorId() string { + if x != nil { + return x.ExecutorId } return "" } -func (m *LeaseRequest) GetPool() string { - if m != nil { - return m.Pool +func (x *LeaseRequest) GetPool() string { + if x != nil { + return x.Pool } return "" } -func (m *LeaseRequest) GetResources() map[string]*resource.Quantity { - if m != nil { - return m.Resources +func (x *LeaseRequest) GetResources() map[string]*resource.Quantity { + if x != nil { + return x.Resources } return nil } -func (m *LeaseRequest) GetMinimumJobSize() map[string]*resource.Quantity { - if m != nil { - return m.MinimumJobSize +func (x *LeaseRequest) GetMinimumJobSize() map[string]*resource.Quantity { + if x != nil { + return x.MinimumJobSize } return nil } -func (m *LeaseRequest) GetNodes() []*NodeInfo { - if m != nil { - return m.Nodes +func (x *LeaseRequest) GetNodes() []*NodeInfo { + if x != nil { + return x.Nodes } return nil } -func (m *LeaseRequest) GetMaxJobsToLease() uint32 { - if m != nil { - return m.MaxJobsToLease +func (x *LeaseRequest) GetMaxJobsToLease() uint32 { + if x != nil { + return x.MaxJobsToLease } return 0 } -func (m *LeaseRequest) GetUnassignedJobRunIds() []string { - if m != nil { - return m.UnassignedJobRunIds +func (x *LeaseRequest) GetUnassignedJobRunIds() []string { + if x != nil { + return x.UnassignedJobRunIds } return nil } // Indicates that a job run is now leased. type JobRunLease struct { - Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"` - Jobset string `protobuf:"bytes,3,opt,name=jobset,proto3" json:"jobset,omitempty"` - User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` - Groups []string `protobuf:"bytes,5,rep,name=groups,proto3" json:"groups,omitempty"` - Job *armadaevents.SubmitJob `protobuf:"bytes,6,opt,name=job,proto3" json:"job,omitempty"` - JobRunId string `protobuf:"bytes,7,opt,name=job_run_id,json=jobRunId,proto3" json:"jobRunId,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"` + Jobset string `protobuf:"bytes,3,opt,name=jobset,proto3" json:"jobset,omitempty"` + User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` + Groups []string `protobuf:"bytes,5,rep,name=groups,proto3" json:"groups,omitempty"` + Job *armadaevents.SubmitJob `protobuf:"bytes,6,opt,name=job,proto3" json:"job,omitempty"` + JobRunId string `protobuf:"bytes,7,opt,name=job_run_id,json=jobRunId,proto3" json:"job_run_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunLease) Reset() { *m = JobRunLease{} } -func (m *JobRunLease) String() string { return proto.CompactTextString(m) } -func (*JobRunLease) ProtoMessage() {} -func (*JobRunLease) Descriptor() ([]byte, []int) { - return fileDescriptor_57e0d9d0e484e459, []int{5} +func (x *JobRunLease) Reset() { + *x = JobRunLease{} + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *JobRunLease) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *JobRunLease) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobRunLease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_JobRunLease.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*JobRunLease) ProtoMessage() {} + +func (x *JobRunLease) ProtoReflect() protoreflect.Message { + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *JobRunLease) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobRunLease.Merge(m, src) -} -func (m *JobRunLease) XXX_Size() int { - return m.Size() -} -func (m *JobRunLease) XXX_DiscardUnknown() { - xxx_messageInfo_JobRunLease.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_JobRunLease proto.InternalMessageInfo +// Deprecated: Use JobRunLease.ProtoReflect.Descriptor instead. +func (*JobRunLease) Descriptor() ([]byte, []int) { + return file_pkg_executorapi_executorapi_proto_rawDescGZIP(), []int{5} +} -func (m *JobRunLease) GetQueue() string { - if m != nil { - return m.Queue +func (x *JobRunLease) GetQueue() string { + if x != nil { + return x.Queue } return "" } -func (m *JobRunLease) GetJobset() string { - if m != nil { - return m.Jobset +func (x *JobRunLease) GetJobset() string { + if x != nil { + return x.Jobset } return "" } -func (m *JobRunLease) GetUser() string { - if m != nil { - return m.User +func (x *JobRunLease) GetUser() string { + if x != nil { + return x.User } return "" } -func (m *JobRunLease) GetGroups() []string { - if m != nil { - return m.Groups +func (x *JobRunLease) GetGroups() []string { + if x != nil { + return x.Groups } return nil } -func (m *JobRunLease) GetJob() *armadaevents.SubmitJob { - if m != nil { - return m.Job +func (x *JobRunLease) GetJob() *armadaevents.SubmitJob { + if x != nil { + return x.Job } return nil } -func (m *JobRunLease) GetJobRunId() string { - if m != nil { - return m.JobRunId +func (x *JobRunLease) GetJobRunId() string { + if x != nil { + return x.JobRunId } return "" } // Indicates that the job runs with the given ids should be cancelled. type CancelRuns struct { - JobRunIdsToCancel []string `protobuf:"bytes,2,rep,name=job_run_ids_to_cancel,json=jobRunIdsToCancel,proto3" json:"jobRunIdsToCancel,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobRunIdsToCancel []string `protobuf:"bytes,2,rep,name=job_run_ids_to_cancel,json=jobRunIdsToCancel,proto3" json:"job_run_ids_to_cancel,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *CancelRuns) Reset() { *m = CancelRuns{} } -func (m *CancelRuns) String() string { return proto.CompactTextString(m) } -func (*CancelRuns) ProtoMessage() {} -func (*CancelRuns) Descriptor() ([]byte, []int) { - return fileDescriptor_57e0d9d0e484e459, []int{6} -} -func (m *CancelRuns) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancelRuns) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancelRuns.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *CancelRuns) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelRuns.Merge(m, src) -} -func (m *CancelRuns) XXX_Size() int { - return m.Size() -} -func (m *CancelRuns) XXX_DiscardUnknown() { - xxx_messageInfo_CancelRuns.DiscardUnknown(m) +func (x *CancelRuns) Reset() { + *x = CancelRuns{} + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -var xxx_messageInfo_CancelRuns proto.InternalMessageInfo - -func (m *CancelRuns) GetJobRunIdsToCancel() []string { - if m != nil { - return m.JobRunIdsToCancel - } - return nil -} - -// Indicates that the job runs with the given ids should be preempted. -type PreemptRuns struct { - JobRunIdsToPreempt []string `protobuf:"bytes,2,rep,name=job_run_ids_to_preempt,json=jobRunIdsToPreempt,proto3" json:"jobRunIdsToPreempt,omitempty"` -} - -func (m *PreemptRuns) Reset() { *m = PreemptRuns{} } -func (m *PreemptRuns) String() string { return proto.CompactTextString(m) } -func (*PreemptRuns) ProtoMessage() {} -func (*PreemptRuns) Descriptor() ([]byte, []int) { - return fileDescriptor_57e0d9d0e484e459, []int{7} -} -func (m *PreemptRuns) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PreemptRuns) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PreemptRuns.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *PreemptRuns) XXX_Merge(src proto.Message) { - xxx_messageInfo_PreemptRuns.Merge(m, src) -} -func (m *PreemptRuns) XXX_Size() int { - return m.Size() -} -func (m *PreemptRuns) XXX_DiscardUnknown() { - xxx_messageInfo_PreemptRuns.DiscardUnknown(m) -} - -var xxx_messageInfo_PreemptRuns proto.InternalMessageInfo - -func (m *PreemptRuns) GetJobRunIdsToPreempt() []string { - if m != nil { - return m.JobRunIdsToPreempt - } - return nil +func (x *CancelRuns) String() string { + return protoimpl.X.MessageStringOf(x) } -// Indicates the end of the lease stream. -type EndMarker struct { -} +func (*CancelRuns) ProtoMessage() {} -func (m *EndMarker) Reset() { *m = EndMarker{} } -func (m *EndMarker) String() string { return proto.CompactTextString(m) } -func (*EndMarker) ProtoMessage() {} -func (*EndMarker) Descriptor() ([]byte, []int) { - return fileDescriptor_57e0d9d0e484e459, []int{8} -} -func (m *EndMarker) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EndMarker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EndMarker.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *CancelRuns) ProtoReflect() protoreflect.Message { + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *EndMarker) XXX_Merge(src proto.Message) { - xxx_messageInfo_EndMarker.Merge(m, src) -} -func (m *EndMarker) XXX_Size() int { - return m.Size() -} -func (m *EndMarker) XXX_DiscardUnknown() { - xxx_messageInfo_EndMarker.DiscardUnknown(m) -} - -var xxx_messageInfo_EndMarker proto.InternalMessageInfo -type LeaseStreamMessage struct { - // Types that are valid to be assigned to Event: - // *LeaseStreamMessage_Lease - // *LeaseStreamMessage_CancelRuns - // *LeaseStreamMessage_End - // *LeaseStreamMessage_PreemptRuns - Event isLeaseStreamMessage_Event `protobuf_oneof:"event"` -} - -func (m *LeaseStreamMessage) Reset() { *m = LeaseStreamMessage{} } -func (m *LeaseStreamMessage) String() string { return proto.CompactTextString(m) } -func (*LeaseStreamMessage) ProtoMessage() {} -func (*LeaseStreamMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_57e0d9d0e484e459, []int{9} -} -func (m *LeaseStreamMessage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LeaseStreamMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LeaseStreamMessage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *LeaseStreamMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_LeaseStreamMessage.Merge(m, src) -} -func (m *LeaseStreamMessage) XXX_Size() int { - return m.Size() -} -func (m *LeaseStreamMessage) XXX_DiscardUnknown() { - xxx_messageInfo_LeaseStreamMessage.DiscardUnknown(m) -} - -var xxx_messageInfo_LeaseStreamMessage proto.InternalMessageInfo - -type isLeaseStreamMessage_Event interface { - isLeaseStreamMessage_Event() - MarshalTo([]byte) (int, error) - Size() int -} - -type LeaseStreamMessage_Lease struct { - Lease *JobRunLease `protobuf:"bytes,1,opt,name=lease,proto3,oneof" json:"lease,omitempty"` -} -type LeaseStreamMessage_CancelRuns struct { - CancelRuns *CancelRuns `protobuf:"bytes,2,opt,name=cancel_runs,json=cancelRuns,proto3,oneof" json:"cancelRuns,omitempty"` -} -type LeaseStreamMessage_End struct { - End *EndMarker `protobuf:"bytes,3,opt,name=end,proto3,oneof" json:"end,omitempty"` -} -type LeaseStreamMessage_PreemptRuns struct { - PreemptRuns *PreemptRuns `protobuf:"bytes,4,opt,name=preempt_runs,json=preemptRuns,proto3,oneof" json:"preemptRuns,omitempty"` -} - -func (*LeaseStreamMessage_Lease) isLeaseStreamMessage_Event() {} -func (*LeaseStreamMessage_CancelRuns) isLeaseStreamMessage_Event() {} -func (*LeaseStreamMessage_End) isLeaseStreamMessage_Event() {} -func (*LeaseStreamMessage_PreemptRuns) isLeaseStreamMessage_Event() {} - -func (m *LeaseStreamMessage) GetEvent() isLeaseStreamMessage_Event { - if m != nil { - return m.Event - } - return nil -} - -func (m *LeaseStreamMessage) GetLease() *JobRunLease { - if x, ok := m.GetEvent().(*LeaseStreamMessage_Lease); ok { - return x.Lease - } - return nil -} - -func (m *LeaseStreamMessage) GetCancelRuns() *CancelRuns { - if x, ok := m.GetEvent().(*LeaseStreamMessage_CancelRuns); ok { - return x.CancelRuns - } - return nil -} - -func (m *LeaseStreamMessage) GetEnd() *EndMarker { - if x, ok := m.GetEvent().(*LeaseStreamMessage_End); ok { - return x.End - } - return nil +// Deprecated: Use CancelRuns.ProtoReflect.Descriptor instead. +func (*CancelRuns) Descriptor() ([]byte, []int) { + return file_pkg_executorapi_executorapi_proto_rawDescGZIP(), []int{6} } -func (m *LeaseStreamMessage) GetPreemptRuns() *PreemptRuns { - if x, ok := m.GetEvent().(*LeaseStreamMessage_PreemptRuns); ok { - return x.PreemptRuns +func (x *CancelRuns) GetJobRunIdsToCancel() []string { + if x != nil { + return x.JobRunIdsToCancel } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*LeaseStreamMessage) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*LeaseStreamMessage_Lease)(nil), - (*LeaseStreamMessage_CancelRuns)(nil), - (*LeaseStreamMessage_End)(nil), - (*LeaseStreamMessage_PreemptRuns)(nil), - } -} - -func init() { - proto.RegisterType((*NodeInfo)(nil), "executorapi.NodeInfo") - proto.RegisterMapType((map[string]*resource.Quantity)(nil), "executorapi.NodeInfo.AllocatableResourcesEntry") - proto.RegisterMapType((map[string]*resource.Quantity)(nil), "executorapi.NodeInfo.AvailableResourcesEntry") - proto.RegisterMapType((map[string]string)(nil), "executorapi.NodeInfo.LabelsEntry") - proto.RegisterMapType((map[int32]*ComputeResource)(nil), "executorapi.NodeInfo.NonArmadaAllocatedResourcesEntry") - proto.RegisterMapType((map[string]api.JobState)(nil), "executorapi.NodeInfo.RunIdsByStateEntry") - proto.RegisterMapType((map[string]*resource.Quantity)(nil), "executorapi.NodeInfo.TotalResourcesEntry") - proto.RegisterType((*ComputeResource)(nil), "executorapi.ComputeResource") - proto.RegisterMapType((map[string]*resource.Quantity)(nil), "executorapi.ComputeResource.ResourcesEntry") - proto.RegisterType((*PoolQueueResource)(nil), "executorapi.PoolQueueResource") - proto.RegisterMapType((map[string]*resource.Quantity)(nil), "executorapi.PoolQueueResource.ResourcesEntry") - proto.RegisterType((*EventList)(nil), "executorapi.EventList") - proto.RegisterType((*LeaseRequest)(nil), "executorapi.LeaseRequest") - proto.RegisterMapType((map[string]*resource.Quantity)(nil), "executorapi.LeaseRequest.MinimumJobSizeEntry") - proto.RegisterMapType((map[string]*resource.Quantity)(nil), "executorapi.LeaseRequest.ResourcesEntry") - proto.RegisterType((*JobRunLease)(nil), "executorapi.JobRunLease") - proto.RegisterType((*CancelRuns)(nil), "executorapi.CancelRuns") - proto.RegisterType((*PreemptRuns)(nil), "executorapi.PreemptRuns") - proto.RegisterType((*EndMarker)(nil), "executorapi.EndMarker") - proto.RegisterType((*LeaseStreamMessage)(nil), "executorapi.LeaseStreamMessage") -} - -func init() { proto.RegisterFile("pkg/executorapi/executorapi.proto", fileDescriptor_57e0d9d0e484e459) } - -var fileDescriptor_57e0d9d0e484e459 = []byte{ - // 1526 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0x3b, 0x6f, 0xdc, 0xc6, - 0x16, 0x16, 0x57, 0xd2, 0x5a, 0x3b, 0xab, 0xe7, 0xe8, 0x45, 0x49, 0xf6, 0x52, 0xde, 0x8b, 0x7b, - 0x21, 0xe1, 0xda, 0xdc, 0x6b, 0xd9, 0xb8, 0x70, 0x82, 0x24, 0x88, 0xd6, 0x10, 0x1c, 0x09, 0xb6, - 0x63, 0x4b, 0x8a, 0x91, 0xa4, 0x21, 0x86, 0xcb, 0xf1, 0x9a, 0x12, 0x39, 0x43, 0x93, 0x43, 0xc5, - 0xeb, 0x2a, 0x65, 0x8a, 0x14, 0x2e, 0xd2, 0xa4, 0x30, 0xd2, 0xa5, 0xce, 0xcf, 0x48, 0x69, 0x20, - 0x4d, 0x2a, 0x26, 0xb0, 0x3a, 0xf6, 0xe9, 0x83, 0x99, 0x21, 0xb5, 0xc3, 0x7d, 0x58, 0x4e, 0x2a, - 0x21, 0x95, 0x34, 0xe7, 0xf5, 0x7d, 0x73, 0xce, 0x9c, 0xb3, 0x67, 0x17, 0x5c, 0x0d, 0x8e, 0xdb, - 0x0d, 0xfc, 0x1c, 0xb7, 0x62, 0x46, 0x43, 0x14, 0xb8, 0xea, 0xff, 0x66, 0x10, 0x52, 0x46, 0x61, - 0x55, 0x11, 0xad, 0x5e, 0xe1, 0xf6, 0x28, 0xf4, 0x91, 0x83, 0xf0, 0x09, 0x26, 0x2c, 0x6a, 0xc8, - 0x3f, 0xd2, 0x76, 0x75, 0x41, 0xa8, 0x03, 0xb7, 0x11, 0xc5, 0xb6, 0xef, 0xb2, 0x4c, 0xba, 0xd6, - 0xa6, 0xb4, 0xed, 0xe1, 0x86, 0x38, 0xd9, 0xf1, 0x93, 0x06, 0xf6, 0x03, 0xd6, 0xc9, 0x94, 0xf5, - 0xe3, 0xdb, 0x91, 0xe9, 0x52, 0xe1, 0xd5, 0xa2, 0x21, 0x6e, 0x9c, 0xdc, 0x68, 0xb4, 0x31, 0xc1, - 0x21, 0x62, 0xd8, 0xc9, 0x6c, 0x6e, 0x75, 0x6d, 0x7c, 0xd4, 0x7a, 0xea, 0x12, 0x1c, 0x76, 0x1a, - 0x39, 0x54, 0x88, 0x23, 0x1a, 0x87, 0x2d, 0xdc, 0xeb, 0x55, 0xff, 0x63, 0x06, 0x4c, 0x3c, 0xa0, - 0x0e, 0xde, 0x25, 0x4f, 0x28, 0xfc, 0x0f, 0x18, 0x23, 0xc8, 0xc7, 0xba, 0xb6, 0xae, 0x6d, 0x54, - 0x9a, 0x30, 0x4d, 0x8c, 0x69, 0x7e, 0xbe, 0x46, 0x7d, 0x97, 0x09, 0x3a, 0xfb, 0x42, 0x0f, 0xef, - 0x82, 0x32, 0x43, 0x2e, 0x61, 0x91, 0x5e, 0x5a, 0x1f, 0xdd, 0xa8, 0x6e, 0xad, 0x98, 0x12, 0xdb, - 0xe4, 0x09, 0xe1, 0xfc, 0xcc, 0x93, 0x1b, 0xe6, 0x21, 0xb7, 0x68, 0x2e, 0xa4, 0x89, 0x31, 0x2b, - 0x8d, 0x95, 0x30, 0x99, 0x3b, 0xfc, 0x14, 0x94, 0x3d, 0x64, 0x63, 0x2f, 0xd2, 0x47, 0x45, 0xa0, - 0xab, 0xa6, 0x9a, 0xda, 0x9c, 0x97, 0x79, 0x4f, 0xd8, 0xec, 0x10, 0x16, 0x76, 0x64, 0x40, 0xe9, - 0xa4, 0x06, 0x94, 0x12, 0xf8, 0x8d, 0x06, 0x16, 0x91, 0xe7, 0xd1, 0x16, 0x62, 0xc8, 0xf6, 0xb0, - 0x95, 0xdf, 0x3b, 0xd2, 0xc7, 0x04, 0x40, 0x63, 0x30, 0xc0, 0x76, 0xd7, 0x65, 0x3f, 0xf7, 0x90, - 0x70, 0xf5, 0x34, 0x31, 0x6a, 0x68, 0x80, 0x5a, 0x01, 0x5f, 0x18, 0xa4, 0x87, 0x5f, 0x6b, 0x60, - 0x1e, 0x9d, 0x20, 0xd7, 0xeb, 0x21, 0x32, 0x2e, 0x88, 0x5c, 0x1f, 0x42, 0x24, 0x77, 0xe8, 0xa1, - 0xb1, 0x9e, 0x26, 0xc6, 0x65, 0xd4, 0xa7, 0x54, 0x48, 0xc0, 0x7e, 0x2d, 0x0c, 0xc0, 0x0c, 0xa3, - 0x0c, 0x79, 0x0a, 0x7a, 0x59, 0xa0, 0x6f, 0x0e, 0x46, 0x3f, 0xe4, 0xc6, 0x3d, 0xc8, 0x97, 0xd3, - 0xc4, 0xd0, 0x59, 0x41, 0xa1, 0xa0, 0x4e, 0x17, 0x35, 0x90, 0x80, 0xd9, 0x30, 0x26, 0x96, 0xeb, - 0x44, 0x96, 0xdd, 0xb1, 0x22, 0x86, 0x18, 0xd6, 0x27, 0x04, 0xe4, 0xc6, 0x60, 0xc8, 0xfd, 0x98, - 0xec, 0x3a, 0x51, 0xb3, 0x73, 0xc0, 0x4d, 0x25, 0xe2, 0x5a, 0x9a, 0x18, 0xcb, 0xa1, 0x2a, 0x57, - 0x00, 0xa7, 0x0a, 0x0a, 0xf8, 0xa3, 0x06, 0x6a, 0x84, 0x12, 0x4b, 0x76, 0x9b, 0x95, 0x15, 0x02, - 0x3b, 0xca, 0x8d, 0x2b, 0x02, 0xfe, 0xff, 0x83, 0xe1, 0x1f, 0x50, 0xb2, 0x2d, 0x5c, 0xb7, 0x73, - 0xcf, 0x9e, 0xeb, 0x6f, 0xa6, 0x89, 0xf1, 0x6f, 0x32, 0xdc, 0x4a, 0xa1, 0xb6, 0xf6, 0x16, 0x33, - 0xb8, 0x0d, 0xa6, 0x62, 0x12, 0xb5, 0x9e, 0x62, 0x27, 0x16, 0x45, 0xd2, 0xc1, 0xba, 0xb6, 0x31, - 0x21, 0xef, 0x5a, 0x50, 0xa8, 0x77, 0x2d, 0x28, 0xe0, 0x4d, 0x50, 0x21, 0xd4, 0xc1, 0x16, 0xeb, - 0x04, 0x58, 0x9f, 0x14, 0x2d, 0xba, 0x94, 0x26, 0x06, 0xe4, 0xc2, 0xc3, 0x4e, 0xa0, 0x7a, 0x4e, - 0xe4, 0x32, 0xde, 0xd2, 0x01, 0xa5, 0x9e, 0x3e, 0xd5, 0x6d, 0x69, 0x7e, 0x56, 0x5b, 0x9a, 0x9f, - 0xe1, 0x4b, 0x0d, 0xac, 0xe7, 0x39, 0xb3, 0xe2, 0x08, 0xb5, 0x31, 0x2f, 0xe0, 0xb3, 0x18, 0xc7, - 0xd8, 0x42, 0xc4, 0xb1, 0x44, 0x90, 0x69, 0x91, 0xca, 0x5a, 0x21, 0x95, 0x0f, 0x29, 0xf5, 0x1e, - 0x71, 0xb3, 0xfc, 0xae, 0x32, 0x65, 0x79, 0xac, 0xcf, 0x78, 0xa8, 0x66, 0x47, 0x58, 0x6c, 0x13, - 0xe7, 0x61, 0x11, 0x7b, 0xed, 0x2d, 0x66, 0xab, 0x08, 0x54, 0x95, 0xc6, 0x87, 0xff, 0x02, 0xa3, - 0xc7, 0xb8, 0x93, 0xcd, 0xa6, 0xb9, 0x34, 0x31, 0xa6, 0x8e, 0x71, 0x47, 0x89, 0xc5, 0xb5, 0x70, - 0x13, 0x8c, 0x9f, 0x20, 0x2f, 0xc6, 0x7a, 0x49, 0x98, 0xcd, 0xa7, 0x89, 0x31, 0x23, 0x04, 0x8a, - 0xa1, 0xb4, 0x78, 0xbf, 0x74, 0x5b, 0x5b, 0xfd, 0x41, 0x03, 0x2b, 0x43, 0x7b, 0xff, 0xdd, 0x10, - 0xbf, 0x50, 0x11, 0xab, 0x5b, 0xa6, 0x32, 0x0a, 0xcf, 0xc6, 0xb0, 0x19, 0x1c, 0xb7, 0xc5, 0x6c, - 0xcc, 0xaf, 0x6b, 0x3e, 0x8a, 0x11, 0x61, 0x2e, 0xeb, 0x9c, 0xcb, 0xf0, 0x95, 0x06, 0x96, 0x87, - 0x0c, 0x85, 0x0b, 0xc1, 0xef, 0x7b, 0x0d, 0xcc, 0x0f, 0x18, 0x1b, 0x17, 0x82, 0xdb, 0x57, 0x00, - 0xf6, 0x8f, 0x97, 0x77, 0x63, 0x76, 0x5b, 0x65, 0x36, 0xbd, 0x35, 0x25, 0x18, 0xec, 0x51, 0x5b, - 0xc4, 0x39, 0x17, 0xf8, 0x3b, 0x0d, 0xac, 0x9f, 0x37, 0x59, 0x54, 0x1e, 0xe3, 0x43, 0x79, 0xdc, - 0x2d, 0x66, 0xe8, 0x72, 0xa1, 0xf5, 0xee, 0x50, 0x3f, 0x88, 0x59, 0xb7, 0xf1, 0xce, 0xa1, 0xb5, - 0x37, 0x36, 0x71, 0x69, 0x76, 0x62, 0x6f, 0x6c, 0xa2, 0x3a, 0x3b, 0x59, 0xff, 0xb6, 0x04, 0x66, - 0x7a, 0xfc, 0xa1, 0x0d, 0x2a, 0xdd, 0xb1, 0xa9, 0x89, 0x5e, 0xff, 0xef, 0xdb, 0x00, 0xcd, 0x9e, - 0x59, 0xb9, 0x9c, 0x26, 0xc6, 0x7c, 0x38, 0x60, 0x32, 0x76, 0xc3, 0xf2, 0xd4, 0x4c, 0x5f, 0xbc, - 0xa7, 0x52, 0x3f, 0x2d, 0x81, 0xb9, 0xbe, 0x49, 0x76, 0x36, 0x3c, 0xb5, 0x73, 0x86, 0xe7, 0x26, - 0x18, 0x17, 0x93, 0x52, 0x9d, 0x3a, 0x42, 0xa0, 0x82, 0x09, 0x01, 0x74, 0xd4, 0x1c, 0x8f, 0x0e, - 0x58, 0x05, 0xfa, 0x58, 0xfc, 0x83, 0xb2, 0xfc, 0x18, 0x54, 0x76, 0xf8, 0x26, 0x7c, 0xcf, 0x8d, - 0x18, 0xdc, 0x05, 0x65, 0xb9, 0x16, 0x67, 0x4f, 0x6d, 0xcd, 0x54, 0x57, 0x66, 0x53, 0x18, 0x1e, - 0xe0, 0x67, 0x31, 0x26, 0x2d, 0x2c, 0xb7, 0x3e, 0xa9, 0x51, 0xb7, 0x3e, 0x29, 0xa9, 0xff, 0x56, - 0x06, 0x93, 0xf7, 0x30, 0x8a, 0xf0, 0x3e, 0xb7, 0x8f, 0x18, 0x7c, 0x0f, 0x9c, 0x2d, 0xe4, 0x96, - 0xeb, 0x64, 0x97, 0xd6, 0xd3, 0xc4, 0x58, 0xc8, 0xc5, 0xbb, 0x8e, 0x12, 0x07, 0x74, 0xa5, 0x67, - 0x35, 0x2f, 0x9d, 0x53, 0x73, 0xab, 0xbf, 0x90, 0xc5, 0x15, 0x47, 0x25, 0xf4, 0x37, 0x6a, 0x08, - 0x63, 0x30, 0xeb, 0xbb, 0xc4, 0xf5, 0x63, 0xdf, 0x3a, 0xa2, 0xb6, 0x15, 0xb9, 0x2f, 0x70, 0xb6, - 0xc4, 0x5e, 0x1f, 0x8e, 0x73, 0x5f, 0x7a, 0xf0, 0x49, 0xe5, 0xbe, 0xc0, 0xca, 0x06, 0xe7, 0x17, - 0x14, 0xea, 0x06, 0x57, 0xd4, 0xc0, 0x8f, 0xc1, 0x38, 0x5f, 0x1e, 0xf2, 0x3d, 0x75, 0x71, 0xe0, - 0xde, 0x24, 0x2b, 0x2d, 0xec, 0xd4, 0x4a, 0x0b, 0x01, 0xbc, 0x0b, 0xe6, 0x7c, 0xf4, 0x9c, 0x93, - 0x8e, 0x2c, 0x46, 0x2d, 0x8f, 0xf3, 0xd3, 0x2f, 0xad, 0x6b, 0x1b, 0x53, 0x19, 0x15, 0xf4, 0x7c, - 0x8f, 0xda, 0xd1, 0x21, 0x15, 0xcc, 0x0b, 0x54, 0x0a, 0x1a, 0xf8, 0x18, 0x2c, 0xc5, 0x04, 0x45, - 0x91, 0xdb, 0x26, 0xd8, 0x11, 0x49, 0xc8, 0x76, 0x4b, 0xb1, 0x52, 0x56, 0x9a, 0x57, 0xd3, 0xc4, - 0xb8, 0xd2, 0xb5, 0xd8, 0xa3, 0xb6, 0x1c, 0xf7, 0x4a, 0xc8, 0xf9, 0x01, 0xea, 0x0b, 0xda, 0x1d, - 0xe2, 0xa3, 0x74, 0x40, 0xfd, 0x2e, 0x44, 0xe7, 0xfe, 0x54, 0x02, 0x55, 0x99, 0x40, 0x59, 0x9a, - 0xbf, 0x30, 0xf1, 0xae, 0x81, 0x32, 0x7f, 0x0a, 0x98, 0xe9, 0xa3, 0xc2, 0x56, 0xb4, 0xb2, 0x94, - 0xa8, 0xad, 0x2c, 0x25, 0xbc, 0xfd, 0xe2, 0x08, 0x87, 0xfa, 0x58, 0xb7, 0xfd, 0xf8, 0x59, 0x6d, - 0x3f, 0x7e, 0xe6, 0x51, 0xdb, 0x21, 0x8d, 0x03, 0xf9, 0x4e, 0xb3, 0xa8, 0x52, 0xa2, 0x46, 0x95, - 0x12, 0xf8, 0x01, 0x18, 0x3d, 0xa2, 0xb6, 0x5e, 0x16, 0xb9, 0x59, 0x2e, 0x0e, 0x9a, 0x03, 0xf1, - 0x2d, 0x7c, 0x8f, 0xda, 0x32, 0xb7, 0x47, 0xd4, 0x56, 0x73, 0x7b, 0x44, 0x6d, 0x78, 0x0b, 0x80, - 0xee, 0xe3, 0x13, 0x2f, 0x39, 0xdb, 0xbc, 0x8f, 0xb2, 0x27, 0xa5, 0x6e, 0xde, 0xb9, 0xac, 0x6e, - 0x01, 0x70, 0x07, 0x91, 0x16, 0xf6, 0xf6, 0x63, 0x12, 0xc1, 0x47, 0x60, 0x51, 0x79, 0xc0, 0xbc, - 0x2f, 0x5a, 0x42, 0x29, 0xbe, 0x41, 0x57, 0x9a, 0x46, 0x9a, 0x18, 0x6b, 0xb9, 0x6b, 0x74, 0x48, - 0xa5, 0xa7, 0x12, 0x77, 0xae, 0x4f, 0x59, 0x6f, 0x81, 0xea, 0xc3, 0x10, 0x73, 0xb5, 0x40, 0x38, - 0x04, 0x4b, 0x3d, 0x08, 0x81, 0xd4, 0x66, 0x10, 0xe2, 0x2b, 0xa4, 0x12, 0x25, 0xf3, 0x55, 0xbf, - 0x42, 0xf6, 0x6b, 0xeb, 0x55, 0x50, 0xd9, 0x21, 0xce, 0x7d, 0x14, 0x1e, 0xe3, 0xb0, 0xfe, 0x4b, - 0x09, 0x40, 0x51, 0xff, 0x03, 0x16, 0x62, 0xe4, 0xdf, 0xc7, 0x11, 0x5f, 0xdb, 0xe1, 0x0e, 0x18, - 0x97, 0x4d, 0xae, 0x89, 0xfc, 0xea, 0x85, 0x91, 0xa1, 0xbc, 0x1a, 0xf9, 0x4c, 0xbc, 0x62, 0xd7, - 0x7f, 0x32, 0xb2, 0x2f, 0xbd, 0xe1, 0x21, 0xa8, 0xca, 0x9c, 0xf0, 0x3b, 0x44, 0xd9, 0x43, 0x5e, - 0x2e, 0x2e, 0x20, 0x67, 0x09, 0x95, 0xd3, 0xbc, 0x75, 0x76, 0x2e, 0x04, 0x04, 0x5d, 0x39, 0xfc, - 0x10, 0x8c, 0x62, 0xe2, 0x88, 0xb7, 0x57, 0xdd, 0x5a, 0x2a, 0x44, 0x3b, 0xbb, 0x98, 0xac, 0x3c, - 0x26, 0x4e, 0x21, 0x0a, 0xf7, 0x83, 0x9f, 0x83, 0xc9, 0x2c, 0x8d, 0x92, 0xd5, 0xd8, 0x80, 0x2b, - 0x2a, 0x55, 0x68, 0xae, 0xa4, 0x89, 0xb1, 0x18, 0x74, 0x05, 0x85, 0x88, 0x55, 0x45, 0xd1, 0xbc, - 0x04, 0xc6, 0xc5, 0x0b, 0xdc, 0x7a, 0xa5, 0x81, 0xea, 0x4e, 0x16, 0x6e, 0x3b, 0x70, 0xe1, 0x83, - 0xec, 0xc3, 0x4c, 0x66, 0x2e, 0x82, 0x2b, 0x43, 0xc7, 0xfd, 0xaa, 0xd1, 0xaf, 0x2a, 0x94, 0x66, - 0x43, 0xfb, 0x9f, 0x06, 0x3f, 0x02, 0x93, 0xfb, 0x38, 0xa0, 0x21, 0x13, 0x1f, 0xa9, 0x11, 0xec, - 0x49, 0x42, 0xfe, 0x81, 0xbc, 0xba, 0x64, 0xca, 0x9f, 0xa0, 0xcc, 0xfc, 0x27, 0x28, 0x73, 0x87, - 0xf3, 0x6e, 0xee, 0xfe, 0xfc, 0xa6, 0xa6, 0xbd, 0x7e, 0x53, 0xd3, 0x7e, 0x7f, 0x53, 0xd3, 0x5e, - 0x9e, 0xd6, 0x46, 0x5e, 0x9f, 0xd6, 0x46, 0x7e, 0x3d, 0xad, 0x8d, 0x7c, 0xd9, 0x68, 0xbb, 0xec, - 0x69, 0x6c, 0x9b, 0x2d, 0xea, 0x67, 0xbf, 0x77, 0x05, 0x21, 0x3d, 0xc2, 0x2d, 0x96, 0x9d, 0x1a, - 0x3d, 0x3f, 0x9c, 0xd9, 0x65, 0x11, 0xfa, 0xe6, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x80, 0x1b, - 0x8b, 0x62, 0x52, 0x13, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// ExecutorApiClient is the client API for ExecutorApi service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ExecutorApiClient interface { - // Reports usage information to the scheduler. - // In return, the scheduler provides: - // - Slice of job runs that the executor is currently running that should be cancelled. - // - Slice of job runs that the executor is currently running that should be preempted. - // - Slice job runs that the executor is not currently running that should be scheduled. - // This call also acts as a signal to the scheduler that the executor is alive and accepting jobs. - LeaseJobRuns(ctx context.Context, opts ...grpc.CallOption) (ExecutorApi_LeaseJobRunsClient, error) - // Reports job run events to the scheduler. - ReportEvents(ctx context.Context, in *EventList, opts ...grpc.CallOption) (*types.Empty, error) -} - -type executorApiClient struct { - cc *grpc.ClientConn -} - -func NewExecutorApiClient(cc *grpc.ClientConn) ExecutorApiClient { - return &executorApiClient{cc} -} - -func (c *executorApiClient) LeaseJobRuns(ctx context.Context, opts ...grpc.CallOption) (ExecutorApi_LeaseJobRunsClient, error) { - stream, err := c.cc.NewStream(ctx, &_ExecutorApi_serviceDesc.Streams[0], "/executorapi.ExecutorApi/LeaseJobRuns", opts...) - if err != nil { - return nil, err - } - x := &executorApiLeaseJobRunsClient{stream} - return x, nil -} - -type ExecutorApi_LeaseJobRunsClient interface { - Send(*LeaseRequest) error - Recv() (*LeaseStreamMessage, error) - grpc.ClientStream -} - -type executorApiLeaseJobRunsClient struct { - grpc.ClientStream -} - -func (x *executorApiLeaseJobRunsClient) Send(m *LeaseRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *executorApiLeaseJobRunsClient) Recv() (*LeaseStreamMessage, error) { - m := new(LeaseStreamMessage) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *executorApiClient) ReportEvents(ctx context.Context, in *EventList, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/executorapi.ExecutorApi/ReportEvents", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ExecutorApiServer is the server API for ExecutorApi service. -type ExecutorApiServer interface { - // Reports usage information to the scheduler. - // In return, the scheduler provides: - // - Slice of job runs that the executor is currently running that should be cancelled. - // - Slice of job runs that the executor is currently running that should be preempted. - // - Slice job runs that the executor is not currently running that should be scheduled. - // This call also acts as a signal to the scheduler that the executor is alive and accepting jobs. - LeaseJobRuns(ExecutorApi_LeaseJobRunsServer) error - // Reports job run events to the scheduler. - ReportEvents(context.Context, *EventList) (*types.Empty, error) -} - -// UnimplementedExecutorApiServer can be embedded to have forward compatible implementations. -type UnimplementedExecutorApiServer struct { -} - -func (*UnimplementedExecutorApiServer) LeaseJobRuns(srv ExecutorApi_LeaseJobRunsServer) error { - return status.Errorf(codes.Unimplemented, "method LeaseJobRuns not implemented") -} -func (*UnimplementedExecutorApiServer) ReportEvents(ctx context.Context, req *EventList) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReportEvents not implemented") -} - -func RegisterExecutorApiServer(s *grpc.Server, srv ExecutorApiServer) { - s.RegisterService(&_ExecutorApi_serviceDesc, srv) -} - -func _ExecutorApi_LeaseJobRuns_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ExecutorApiServer).LeaseJobRuns(&executorApiLeaseJobRunsServer{stream}) -} - -type ExecutorApi_LeaseJobRunsServer interface { - Send(*LeaseStreamMessage) error - Recv() (*LeaseRequest, error) - grpc.ServerStream -} - -type executorApiLeaseJobRunsServer struct { - grpc.ServerStream -} - -func (x *executorApiLeaseJobRunsServer) Send(m *LeaseStreamMessage) error { - return x.ServerStream.SendMsg(m) -} - -func (x *executorApiLeaseJobRunsServer) Recv() (*LeaseRequest, error) { - m := new(LeaseRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _ExecutorApi_ReportEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EventList) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExecutorApiServer).ReportEvents(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/executorapi.ExecutorApi/ReportEvents", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExecutorApiServer).ReportEvents(ctx, req.(*EventList)) - } - return interceptor(ctx, in, info, handler) -} - -var _ExecutorApi_serviceDesc = grpc.ServiceDesc{ - ServiceName: "executorapi.ExecutorApi", - HandlerType: (*ExecutorApiServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ReportEvents", - Handler: _ExecutorApi_ReportEvents_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "LeaseJobRuns", - Handler: _ExecutorApi_LeaseJobRuns_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "pkg/executorapi/executorapi.proto", -} - -func (m *NodeInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ResourceUsageByQueueAndPool) > 0 { - for iNdEx := len(m.ResourceUsageByQueueAndPool) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ResourceUsageByQueueAndPool[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - } - if len(m.Pool) > 0 { - i -= len(m.Pool) - copy(dAtA[i:], m.Pool) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(m.Pool))) - i-- - dAtA[i] = 0x6a - } - if len(m.NodeType) > 0 { - i -= len(m.NodeType) - copy(dAtA[i:], m.NodeType) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(m.NodeType))) - i-- - dAtA[i] = 0x62 - } - if m.Unschedulable { - i-- - if m.Unschedulable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x50 - } - if len(m.NonArmadaAllocatedResources) > 0 { - for k := range m.NonArmadaAllocatedResources { - v := m.NonArmadaAllocatedResources[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i = encodeVarintExecutorapi(dAtA, i, uint64(k)) - i-- - dAtA[i] = 0x8 - i = encodeVarintExecutorapi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x4a - } - } - if len(m.RunIdsByState) > 0 { - for k := range m.RunIdsByState { - v := m.RunIdsByState[k] - baseI := i - i = encodeVarintExecutorapi(dAtA, i, uint64(v)) - i-- - dAtA[i] = 0x10 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintExecutorapi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x42 - } - } - if len(m.TotalResources) > 0 { - for k := range m.TotalResources { - v := m.TotalResources[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintExecutorapi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x32 - } - } - if len(m.AvailableResources) > 0 { - for k := range m.AvailableResources { - v := m.AvailableResources[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintExecutorapi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - if len(m.AllocatableResources) > 0 { - for k := range m.AllocatableResources { - v := m.AllocatableResources[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintExecutorapi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Labels) > 0 { - for k := range m.Labels { - v := m.Labels[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintExecutorapi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Taints) > 0 { - for iNdEx := len(m.Taints) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Taints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ComputeResource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ComputeResource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ComputeResource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Resources) > 0 { - for k := range m.Resources { - v := m.Resources[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintExecutorapi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *PoolQueueResource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PoolQueueResource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PoolQueueResource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Resources) > 0 { - for k := range m.Resources { - v := m.Resources[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintExecutorapi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x12 - } - if len(m.Pool) > 0 { - i -= len(m.Pool) - copy(dAtA[i:], m.Pool) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(m.Pool))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EventList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Events) > 0 { - for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *LeaseRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LeaseRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LeaseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.UnassignedJobRunIds) > 0 { - for iNdEx := len(m.UnassignedJobRunIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.UnassignedJobRunIds[iNdEx]) - copy(dAtA[i:], m.UnassignedJobRunIds[iNdEx]) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(m.UnassignedJobRunIds[iNdEx]))) - i-- - dAtA[i] = 0x42 - } - } - if m.MaxJobsToLease != 0 { - i = encodeVarintExecutorapi(dAtA, i, uint64(m.MaxJobsToLease)) - i-- - dAtA[i] = 0x38 - } - if len(m.Nodes) > 0 { - for iNdEx := len(m.Nodes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Nodes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.MinimumJobSize) > 0 { - for k := range m.MinimumJobSize { - v := m.MinimumJobSize[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintExecutorapi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Resources) > 0 { - for k := range m.Resources { - v := m.Resources[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintExecutorapi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Pool) > 0 { - i -= len(m.Pool) - copy(dAtA[i:], m.Pool) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(m.Pool))) - i-- - dAtA[i] = 0x12 - } - if len(m.ExecutorId) > 0 { - i -= len(m.ExecutorId) - copy(dAtA[i:], m.ExecutorId) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(m.ExecutorId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *JobRunLease) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobRunLease) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Indicates that the job runs with the given ids should be preempted. +type PreemptRuns struct { + state protoimpl.MessageState `protogen:"open.v1"` + JobRunIdsToPreempt []string `protobuf:"bytes,2,rep,name=job_run_ids_to_preempt,json=jobRunIdsToPreempt,proto3" json:"job_run_ids_to_preempt,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *JobRunLease) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobRunId) > 0 { - i -= len(m.JobRunId) - copy(dAtA[i:], m.JobRunId) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(m.JobRunId))) - i-- - dAtA[i] = 0x3a - } - if m.Job != nil { - { - size, err := m.Job.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if len(m.Groups) > 0 { - for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Groups[iNdEx]) - copy(dAtA[i:], m.Groups[iNdEx]) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(m.Groups[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(m.User) > 0 { - i -= len(m.User) - copy(dAtA[i:], m.User) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(m.User))) - i-- - dAtA[i] = 0x22 - } - if len(m.Jobset) > 0 { - i -= len(m.Jobset) - copy(dAtA[i:], m.Jobset) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(m.Jobset))) - i-- - dAtA[i] = 0x1a - } - if len(m.Queue) > 0 { - i -= len(m.Queue) - copy(dAtA[i:], m.Queue) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(m.Queue))) - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil +func (x *PreemptRuns) Reset() { + *x = PreemptRuns{} + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CancelRuns) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *PreemptRuns) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CancelRuns) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*PreemptRuns) ProtoMessage() {} -func (m *CancelRuns) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobRunIdsToCancel) > 0 { - for iNdEx := len(m.JobRunIdsToCancel) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.JobRunIdsToCancel[iNdEx]) - copy(dAtA[i:], m.JobRunIdsToCancel[iNdEx]) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(m.JobRunIdsToCancel[iNdEx]))) - i-- - dAtA[i] = 0x12 +func (x *PreemptRuns) ProtoReflect() protoreflect.Message { + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *PreemptRuns) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PreemptRuns) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PreemptRuns) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JobRunIdsToPreempt) > 0 { - for iNdEx := len(m.JobRunIdsToPreempt) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.JobRunIdsToPreempt[iNdEx]) - copy(dAtA[i:], m.JobRunIdsToPreempt[iNdEx]) - i = encodeVarintExecutorapi(dAtA, i, uint64(len(m.JobRunIdsToPreempt[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - return len(dAtA) - i, nil +// Deprecated: Use PreemptRuns.ProtoReflect.Descriptor instead. +func (*PreemptRuns) Descriptor() ([]byte, []int) { + return file_pkg_executorapi_executorapi_proto_rawDescGZIP(), []int{7} } -func (m *EndMarker) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *PreemptRuns) GetJobRunIdsToPreempt() []string { + if x != nil { + return x.JobRunIdsToPreempt } - return dAtA[:n], nil + return nil } -func (m *EndMarker) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Indicates the end of the lease stream. +type EndMarker struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *EndMarker) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func (x *EndMarker) Reset() { + *x = EndMarker{} + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *LeaseStreamMessage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *EndMarker) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LeaseStreamMessage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*EndMarker) ProtoMessage() {} -func (m *LeaseStreamMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size := m.Event.Size() - i -= size - if _, err := m.Event.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } +func (x *EndMarker) ProtoReflect() protoreflect.Message { + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *LeaseStreamMessage_Lease) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use EndMarker.ProtoReflect.Descriptor instead. +func (*EndMarker) Descriptor() ([]byte, []int) { + return file_pkg_executorapi_executorapi_proto_rawDescGZIP(), []int{8} } -func (m *LeaseStreamMessage_Lease) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Lease != nil { - { - size, err := m.Lease.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *LeaseStreamMessage_CancelRuns) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type LeaseStreamMessage struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Event: + // + // *LeaseStreamMessage_Lease + // *LeaseStreamMessage_CancelRuns + // *LeaseStreamMessage_End + // *LeaseStreamMessage_PreemptRuns + Event isLeaseStreamMessage_Event `protobuf_oneof:"event"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *LeaseStreamMessage_CancelRuns) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.CancelRuns != nil { - { - size, err := m.CancelRuns.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *LeaseStreamMessage_End) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *LeaseStreamMessage) Reset() { + *x = LeaseStreamMessage{} + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *LeaseStreamMessage_End) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.End != nil { - { - size, err := m.End.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} -func (m *LeaseStreamMessage_PreemptRuns) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *LeaseStreamMessage) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LeaseStreamMessage_PreemptRuns) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.PreemptRuns != nil { - { - size, err := m.PreemptRuns.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintExecutorapi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - return len(dAtA) - i, nil -} -func encodeVarintExecutorapi(dAtA []byte, offset int, v uint64) int { - offset -= sovExecutorapi(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *NodeInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovExecutorapi(uint64(l)) - } - if len(m.Taints) > 0 { - for _, e := range m.Taints { - l = e.Size() - n += 1 + l + sovExecutorapi(uint64(l)) - } - } - if len(m.Labels) > 0 { - for k, v := range m.Labels { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovExecutorapi(uint64(len(k))) + 1 + len(v) + sovExecutorapi(uint64(len(v))) - n += mapEntrySize + 1 + sovExecutorapi(uint64(mapEntrySize)) - } - } - if len(m.AllocatableResources) > 0 { - for k, v := range m.AllocatableResources { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovExecutorapi(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovExecutorapi(uint64(len(k))) + l - n += mapEntrySize + 1 + sovExecutorapi(uint64(mapEntrySize)) - } - } - if len(m.AvailableResources) > 0 { - for k, v := range m.AvailableResources { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovExecutorapi(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovExecutorapi(uint64(len(k))) + l - n += mapEntrySize + 1 + sovExecutorapi(uint64(mapEntrySize)) - } - } - if len(m.TotalResources) > 0 { - for k, v := range m.TotalResources { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovExecutorapi(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovExecutorapi(uint64(len(k))) + l - n += mapEntrySize + 1 + sovExecutorapi(uint64(mapEntrySize)) - } - } - if len(m.RunIdsByState) > 0 { - for k, v := range m.RunIdsByState { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovExecutorapi(uint64(len(k))) + 1 + sovExecutorapi(uint64(v)) - n += mapEntrySize + 1 + sovExecutorapi(uint64(mapEntrySize)) - } - } - if len(m.NonArmadaAllocatedResources) > 0 { - for k, v := range m.NonArmadaAllocatedResources { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovExecutorapi(uint64(l)) - } - mapEntrySize := 1 + sovExecutorapi(uint64(k)) + l - n += mapEntrySize + 1 + sovExecutorapi(uint64(mapEntrySize)) - } - } - if m.Unschedulable { - n += 2 - } - l = len(m.NodeType) - if l > 0 { - n += 1 + l + sovExecutorapi(uint64(l)) - } - l = len(m.Pool) - if l > 0 { - n += 1 + l + sovExecutorapi(uint64(l)) - } - if len(m.ResourceUsageByQueueAndPool) > 0 { - for _, e := range m.ResourceUsageByQueueAndPool { - l = e.Size() - n += 1 + l + sovExecutorapi(uint64(l)) - } - } - return n -} +func (*LeaseStreamMessage) ProtoMessage() {} -func (m *ComputeResource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Resources) > 0 { - for k, v := range m.Resources { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovExecutorapi(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovExecutorapi(uint64(len(k))) + l - n += mapEntrySize + 1 + sovExecutorapi(uint64(mapEntrySize)) +func (x *LeaseStreamMessage) ProtoReflect() protoreflect.Message { + mi := &file_pkg_executorapi_executorapi_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *PoolQueueResource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Pool) - if l > 0 { - n += 1 + l + sovExecutorapi(uint64(l)) - } - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovExecutorapi(uint64(l)) - } - if len(m.Resources) > 0 { - for k, v := range m.Resources { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovExecutorapi(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovExecutorapi(uint64(len(k))) + l - n += mapEntrySize + 1 + sovExecutorapi(uint64(mapEntrySize)) - } - } - return n +// Deprecated: Use LeaseStreamMessage.ProtoReflect.Descriptor instead. +func (*LeaseStreamMessage) Descriptor() ([]byte, []int) { + return file_pkg_executorapi_executorapi_proto_rawDescGZIP(), []int{9} } -func (m *EventList) Size() (n int) { - if m == nil { - return 0 +func (x *LeaseStreamMessage) GetEvent() isLeaseStreamMessage_Event { + if x != nil { + return x.Event } - var l int - _ = l - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.Size() - n += 1 + l + sovExecutorapi(uint64(l)) - } - } - return n + return nil } -func (m *LeaseRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ExecutorId) - if l > 0 { - n += 1 + l + sovExecutorapi(uint64(l)) - } - l = len(m.Pool) - if l > 0 { - n += 1 + l + sovExecutorapi(uint64(l)) - } - if len(m.Resources) > 0 { - for k, v := range m.Resources { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovExecutorapi(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovExecutorapi(uint64(len(k))) + l - n += mapEntrySize + 1 + sovExecutorapi(uint64(mapEntrySize)) - } - } - if len(m.MinimumJobSize) > 0 { - for k, v := range m.MinimumJobSize { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovExecutorapi(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovExecutorapi(uint64(len(k))) + l - n += mapEntrySize + 1 + sovExecutorapi(uint64(mapEntrySize)) +func (x *LeaseStreamMessage) GetLease() *JobRunLease { + if x != nil { + if x, ok := x.Event.(*LeaseStreamMessage_Lease); ok { + return x.Lease } } - if len(m.Nodes) > 0 { - for _, e := range m.Nodes { - l = e.Size() - n += 1 + l + sovExecutorapi(uint64(l)) - } - } - if m.MaxJobsToLease != 0 { - n += 1 + sovExecutorapi(uint64(m.MaxJobsToLease)) - } - if len(m.UnassignedJobRunIds) > 0 { - for _, s := range m.UnassignedJobRunIds { - l = len(s) - n += 1 + l + sovExecutorapi(uint64(l)) - } - } - return n + return nil } -func (m *JobRunLease) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Queue) - if l > 0 { - n += 1 + l + sovExecutorapi(uint64(l)) - } - l = len(m.Jobset) - if l > 0 { - n += 1 + l + sovExecutorapi(uint64(l)) - } - l = len(m.User) - if l > 0 { - n += 1 + l + sovExecutorapi(uint64(l)) - } - if len(m.Groups) > 0 { - for _, s := range m.Groups { - l = len(s) - n += 1 + l + sovExecutorapi(uint64(l)) +func (x *LeaseStreamMessage) GetCancelRuns() *CancelRuns { + if x != nil { + if x, ok := x.Event.(*LeaseStreamMessage_CancelRuns); ok { + return x.CancelRuns } } - if m.Job != nil { - l = m.Job.Size() - n += 1 + l + sovExecutorapi(uint64(l)) - } - l = len(m.JobRunId) - if l > 0 { - n += 1 + l + sovExecutorapi(uint64(l)) - } - return n + return nil } -func (m *CancelRuns) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.JobRunIdsToCancel) > 0 { - for _, s := range m.JobRunIdsToCancel { - l = len(s) - n += 1 + l + sovExecutorapi(uint64(l)) +func (x *LeaseStreamMessage) GetEnd() *EndMarker { + if x != nil { + if x, ok := x.Event.(*LeaseStreamMessage_End); ok { + return x.End } } - return n + return nil } -func (m *PreemptRuns) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.JobRunIdsToPreempt) > 0 { - for _, s := range m.JobRunIdsToPreempt { - l = len(s) - n += 1 + l + sovExecutorapi(uint64(l)) +func (x *LeaseStreamMessage) GetPreemptRuns() *PreemptRuns { + if x != nil { + if x, ok := x.Event.(*LeaseStreamMessage_PreemptRuns); ok { + return x.PreemptRuns } } - return n -} - -func (m *EndMarker) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n + return nil } -func (m *LeaseStreamMessage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Event != nil { - n += m.Event.Size() - } - return n +type isLeaseStreamMessage_Event interface { + isLeaseStreamMessage_Event() } -func (m *LeaseStreamMessage_Lease) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Lease != nil { - l = m.Lease.Size() - n += 1 + l + sovExecutorapi(uint64(l)) - } - return n -} -func (m *LeaseStreamMessage_CancelRuns) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CancelRuns != nil { - l = m.CancelRuns.Size() - n += 1 + l + sovExecutorapi(uint64(l)) - } - return n -} -func (m *LeaseStreamMessage_End) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.End != nil { - l = m.End.Size() - n += 1 + l + sovExecutorapi(uint64(l)) - } - return n -} -func (m *LeaseStreamMessage_PreemptRuns) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PreemptRuns != nil { - l = m.PreemptRuns.Size() - n += 1 + l + sovExecutorapi(uint64(l)) - } - return n +type LeaseStreamMessage_Lease struct { + Lease *JobRunLease `protobuf:"bytes,1,opt,name=lease,proto3,oneof"` } -func sovExecutorapi(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozExecutorapi(x uint64) (n int) { - return sovExecutorapi(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *NodeInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Taints", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Taints = append(m.Taints, &v1.Taint{}) - if err := m.Taints[len(m.Taints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Labels == nil { - m.Labels = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthExecutorapi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthExecutorapi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Labels[mapkey] = mapvalue - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllocatableResources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AllocatableResources == nil { - m.AllocatableResources = make(map[string]*resource.Quantity) - } - var mapkey string - var mapvalue *resource.Quantity - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthExecutorapi - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.AllocatableResources[mapkey] = mapvalue - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AvailableResources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AvailableResources == nil { - m.AvailableResources = make(map[string]*resource.Quantity) - } - var mapkey string - var mapvalue *resource.Quantity - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthExecutorapi - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.AvailableResources[mapkey] = mapvalue - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalResources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TotalResources == nil { - m.TotalResources = make(map[string]*resource.Quantity) - } - var mapkey string - var mapvalue *resource.Quantity - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthExecutorapi - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.TotalResources[mapkey] = mapvalue - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunIdsByState", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RunIdsByState == nil { - m.RunIdsByState = make(map[string]api.JobState) - } - var mapkey string - var mapvalue api.JobState - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= api.JobState(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.RunIdsByState[mapkey] = mapvalue - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonArmadaAllocatedResources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NonArmadaAllocatedResources == nil { - m.NonArmadaAllocatedResources = make(map[int32]*ComputeResource) - } - var mapkey int32 - var mapvalue *ComputeResource - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapkey |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthExecutorapi - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ComputeResource{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.NonArmadaAllocatedResources[mapkey] = mapvalue - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Unschedulable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Unschedulable = bool(v != 0) - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pool = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceUsageByQueueAndPool", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceUsageByQueueAndPool = append(m.ResourceUsageByQueueAndPool, &PoolQueueResource{}) - if err := m.ResourceUsageByQueueAndPool[len(m.ResourceUsageByQueueAndPool)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +type LeaseStreamMessage_CancelRuns struct { + CancelRuns *CancelRuns `protobuf:"bytes,2,opt,name=cancel_runs,json=cancelRuns,proto3,oneof"` } -func (m *ComputeResource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ComputeResource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ComputeResource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Resources == nil { - m.Resources = make(map[string]*resource.Quantity) - } - var mapkey string - var mapvalue *resource.Quantity - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthExecutorapi - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Resources[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +type LeaseStreamMessage_End struct { + End *EndMarker `protobuf:"bytes,3,opt,name=end,proto3,oneof"` } -func (m *PoolQueueResource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PoolQueueResource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PoolQueueResource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pool = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Resources == nil { - m.Resources = make(map[string]*resource.Quantity) - } - var mapkey string - var mapvalue *resource.Quantity - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthExecutorapi - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Resources[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +type LeaseStreamMessage_PreemptRuns struct { + PreemptRuns *PreemptRuns `protobuf:"bytes,4,opt,name=preempt_runs,json=preemptRuns,proto3,oneof"` } -func (m *EventList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Events = append(m.Events, &armadaevents.EventSequence{}) - if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LeaseRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LeaseRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LeaseRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExecutorId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pool = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Resources == nil { - m.Resources = make(map[string]*resource.Quantity) - } - var mapkey string - var mapvalue *resource.Quantity - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthExecutorapi - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Resources[mapkey] = mapvalue - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MinimumJobSize", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MinimumJobSize == nil { - m.MinimumJobSize = make(map[string]*resource.Quantity) - } - var mapkey string - var mapvalue *resource.Quantity - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthExecutorapi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthExecutorapi - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.MinimumJobSize[mapkey] = mapvalue - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nodes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Nodes = append(m.Nodes, &NodeInfo{}) - if err := m.Nodes[len(m.Nodes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxJobsToLease", wireType) - } - m.MaxJobsToLease = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxJobsToLease |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UnassignedJobRunIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UnassignedJobRunIds = append(m.UnassignedJobRunIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +func (*LeaseStreamMessage_Lease) isLeaseStreamMessage_Event() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobRunLease) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobRunLease: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobRunLease: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Jobset", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Jobset = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Job", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Job == nil { - m.Job = &armadaevents.SubmitJob{} - } - if err := m.Job.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobRunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +func (*LeaseStreamMessage_CancelRuns) isLeaseStreamMessage_Event() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CancelRuns) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CancelRuns: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancelRuns: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRunIdsToCancel", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobRunIdsToCancel = append(m.JobRunIdsToCancel, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +func (*LeaseStreamMessage_End) isLeaseStreamMessage_Event() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PreemptRuns) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PreemptRuns: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PreemptRuns: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobRunIdsToPreempt", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JobRunIdsToPreempt = append(m.JobRunIdsToPreempt, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +func (*LeaseStreamMessage_PreemptRuns) isLeaseStreamMessage_Event() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EndMarker) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EndMarker: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EndMarker: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +var File_pkg_executorapi_executorapi_proto protoreflect.FileDescriptor + +var file_pkg_executorapi_executorapi_proto_rawDesc = string([]byte{ + 0x0a, 0x21, 0x70, 0x6b, 0x67, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, + 0x69, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, + 0x1a, 0x1d, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x14, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x22, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, + 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x34, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x61, + 0x70, 0x69, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x72, 0x79, 0x2f, 0x70, 0x6b, 0x67, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x0b, 0x0a, + 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, + 0x06, 0x74, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x54, 0x61, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x74, 0x61, 0x69, 0x6e, 0x74, 0x73, + 0x12, 0x39, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x4e, + 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x64, 0x0a, 0x15, 0x61, + 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, + 0x6f, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x14, 0x61, 0x6c, 0x6c, + 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x12, 0x5e, 0x0a, 0x13, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, + 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x4e, 0x6f, 0x64, + 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x12, 0x61, + 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x12, 0x52, 0x0a, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, + 0x6f, 0x2e, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x51, 0x0a, 0x10, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x73, + 0x5f, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x28, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x4e, 0x6f, + 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x73, 0x42, 0x79, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x72, 0x75, 0x6e, 0x49, 0x64, + 0x73, 0x42, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x7b, 0x0a, 0x1e, 0x6e, 0x6f, 0x6e, 0x5f, + 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x36, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x4e, + 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4e, 0x6f, 0x6e, 0x41, 0x72, 0x6d, 0x61, 0x64, + 0x61, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x1b, 0x6e, 0x6f, 0x6e, 0x41, 0x72, 0x6d, + 0x61, 0x64, 0x61, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x75, 0x6e, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x75, 0x6e, + 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6e, + 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x6f, 0x6c, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x12, 0x65, 0x0a, 0x20, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, + 0x79, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, + 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, + 0x72, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x1b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x55, 0x73, 0x61, 0x67, 0x65, 0x42, 0x79, 0x51, 0x75, 0x65, 0x75, 0x65, 0x41, 0x6e, 0x64, 0x50, + 0x6f, 0x6f, 0x6c, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x77, + 0x0a, 0x19, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6b, + 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x72, 0x79, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x75, 0x0a, 0x17, 0x41, 0x76, 0x61, 0x69, 0x6c, + 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, + 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x71, + 0x0a, 0x13, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, + 0x61, 0x70, 0x69, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6b, 0x67, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x51, 0x75, + 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x1a, 0x4f, 0x0a, 0x12, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x73, 0x42, 0x79, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, + 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x1a, 0x6c, 0x0a, 0x20, 0x4e, 0x6f, 0x6e, 0x41, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x41, + 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x32, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x4a, 0x04, 0x08, 0x0b, 0x10, 0x0c, 0x22, 0xca, 0x01, 0x0a, + 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x12, 0x49, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, + 0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x6c, 0x0a, 0x0e, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x44, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, + 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x6d, 0x61, 0x63, 0x68, 0x69, + 0x6e, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xf8, 0x01, 0x0a, 0x11, 0x50, 0x6f, + 0x6f, 0x6c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, + 0x6f, 0x6f, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x4b, 0x0a, 0x09, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x51, + 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x6c, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6b, 0x38, 0x73, 0x2e, + 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x72, 0x79, 0x2e, + 0x70, 0x6b, 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x2e, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x22, 0x40, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, + 0x74, 0x12, 0x33, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, + 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x06, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xd2, 0x04, 0x0a, 0x0c, 0x4c, 0x65, 0x61, 0x73, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x6f, 0x6c, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x12, 0x46, 0x0a, 0x09, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x28, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x65, + 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x10, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, + 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, + 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x65, 0x61, + 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x69, 0x6e, 0x69, 0x6d, 0x75, + 0x6d, 0x4a, 0x6f, 0x62, 0x53, 0x69, 0x7a, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x6d, + 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x4a, 0x6f, 0x62, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2b, 0x0a, + 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x11, 0x6d, 0x61, + 0x78, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x4a, 0x6f, 0x62, 0x73, 0x54, 0x6f, + 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x16, 0x75, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x64, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, + 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x13, 0x75, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x64, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x73, 0x1a, 0x6c, 0x0a, 0x0e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, + 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, + 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x71, 0x0a, 0x13, 0x4d, 0x69, 0x6e, 0x69, + 0x6d, 0x75, 0x6d, 0x4a, 0x6f, 0x62, 0x53, 0x69, 0x7a, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x44, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2e, 0x2e, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x6d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb0, 0x01, 0x0a, 0x0b, + 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x71, + 0x75, 0x65, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x6a, 0x6f, 0x62, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, + 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x16, 0x0a, + 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x29, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, + 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x22, 0x3e, + 0x0a, 0x0a, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x30, 0x0a, 0x15, + 0x6a, 0x6f, 0x62, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x63, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x6a, 0x6f, 0x62, + 0x52, 0x75, 0x6e, 0x49, 0x64, 0x73, 0x54, 0x6f, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x22, 0x41, + 0x0a, 0x0b, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x32, 0x0a, + 0x16, 0x6a, 0x6f, 0x62, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x5f, 0x74, 0x6f, 0x5f, + 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x6a, + 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x73, 0x54, 0x6f, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, + 0x74, 0x22, 0x0b, 0x0a, 0x09, 0x45, 0x6e, 0x64, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x22, 0xf6, + 0x01, 0x0a, 0x12, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, + 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x48, 0x00, + 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x63, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x52, 0x75, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, + 0x75, 0x6e, 0x73, 0x12, 0x2a, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x45, + 0x6e, 0x64, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x48, 0x00, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, + 0x3d, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, + 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x75, 0x6e, 0x73, 0x48, + 0x00, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x75, 0x6e, 0x73, 0x42, 0x07, + 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x32, 0x9d, 0x01, 0x0a, 0x0b, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x6f, 0x72, 0x41, 0x70, 0x69, 0x12, 0x4e, 0x0a, 0x0c, 0x4c, 0x65, 0x61, 0x73, 0x65, + 0x4a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x19, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, + 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x3e, 0x0a, 0x0c, 0x52, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x16, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x6f, 0x72, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x1a, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +}) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LeaseStreamMessage) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LeaseStreamMessage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LeaseStreamMessage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &JobRunLease{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &LeaseStreamMessage_Lease{v} - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelRuns", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &CancelRuns{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &LeaseStreamMessage_CancelRuns{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &EndMarker{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &LeaseStreamMessage_End{v} - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreemptRuns", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthExecutorapi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthExecutorapi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &PreemptRuns{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Event = &LeaseStreamMessage_PreemptRuns{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipExecutorapi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExecutorapi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +var ( + file_pkg_executorapi_executorapi_proto_rawDescOnce sync.Once + file_pkg_executorapi_executorapi_proto_rawDescData []byte +) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipExecutorapi(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowExecutorapi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthExecutorapi - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupExecutorapi - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthExecutorapi - } - if depth == 0 { - return iNdEx, nil - } +func file_pkg_executorapi_executorapi_proto_rawDescGZIP() []byte { + file_pkg_executorapi_executorapi_proto_rawDescOnce.Do(func() { + file_pkg_executorapi_executorapi_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_executorapi_executorapi_proto_rawDesc), len(file_pkg_executorapi_executorapi_proto_rawDesc))) + }) + return file_pkg_executorapi_executorapi_proto_rawDescData +} + +var file_pkg_executorapi_executorapi_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_pkg_executorapi_executorapi_proto_goTypes = []any{ + (*NodeInfo)(nil), // 0: executorapi.NodeInfo + (*ComputeResource)(nil), // 1: executorapi.ComputeResource + (*PoolQueueResource)(nil), // 2: executorapi.PoolQueueResource + (*EventList)(nil), // 3: executorapi.EventList + (*LeaseRequest)(nil), // 4: executorapi.LeaseRequest + (*JobRunLease)(nil), // 5: executorapi.JobRunLease + (*CancelRuns)(nil), // 6: executorapi.CancelRuns + (*PreemptRuns)(nil), // 7: executorapi.PreemptRuns + (*EndMarker)(nil), // 8: executorapi.EndMarker + (*LeaseStreamMessage)(nil), // 9: executorapi.LeaseStreamMessage + nil, // 10: executorapi.NodeInfo.LabelsEntry + nil, // 11: executorapi.NodeInfo.AllocatableResourcesEntry + nil, // 12: executorapi.NodeInfo.AvailableResourcesEntry + nil, // 13: executorapi.NodeInfo.TotalResourcesEntry + nil, // 14: executorapi.NodeInfo.RunIdsByStateEntry + nil, // 15: executorapi.NodeInfo.NonArmadaAllocatedResourcesEntry + nil, // 16: executorapi.ComputeResource.ResourcesEntry + nil, // 17: executorapi.PoolQueueResource.ResourcesEntry + nil, // 18: executorapi.LeaseRequest.ResourcesEntry + nil, // 19: executorapi.LeaseRequest.MinimumJobSizeEntry + (*v1.Taint)(nil), // 20: k8s.io.api.core.v1.Taint + (*armadaevents.EventSequence)(nil), // 21: armadaevents.EventSequence + (*armadaevents.SubmitJob)(nil), // 22: armadaevents.SubmitJob + (*resource.Quantity)(nil), // 23: k8s.io.apimachinery.pkg.api.resource.Quantity + (api.JobState)(0), // 24: api.JobState + (*emptypb.Empty)(nil), // 25: google.protobuf.Empty +} +var file_pkg_executorapi_executorapi_proto_depIdxs = []int32{ + 20, // 0: executorapi.NodeInfo.taints:type_name -> k8s.io.api.core.v1.Taint + 10, // 1: executorapi.NodeInfo.labels:type_name -> executorapi.NodeInfo.LabelsEntry + 11, // 2: executorapi.NodeInfo.allocatable_resources:type_name -> executorapi.NodeInfo.AllocatableResourcesEntry + 12, // 3: executorapi.NodeInfo.available_resources:type_name -> executorapi.NodeInfo.AvailableResourcesEntry + 13, // 4: executorapi.NodeInfo.total_resources:type_name -> executorapi.NodeInfo.TotalResourcesEntry + 14, // 5: executorapi.NodeInfo.run_ids_by_state:type_name -> executorapi.NodeInfo.RunIdsByStateEntry + 15, // 6: executorapi.NodeInfo.non_armada_allocated_resources:type_name -> executorapi.NodeInfo.NonArmadaAllocatedResourcesEntry + 2, // 7: executorapi.NodeInfo.resource_usage_by_queue_and_pool:type_name -> executorapi.PoolQueueResource + 16, // 8: executorapi.ComputeResource.resources:type_name -> executorapi.ComputeResource.ResourcesEntry + 17, // 9: executorapi.PoolQueueResource.resources:type_name -> executorapi.PoolQueueResource.ResourcesEntry + 21, // 10: executorapi.EventList.events:type_name -> armadaevents.EventSequence + 18, // 11: executorapi.LeaseRequest.resources:type_name -> executorapi.LeaseRequest.ResourcesEntry + 19, // 12: executorapi.LeaseRequest.minimum_job_size:type_name -> executorapi.LeaseRequest.MinimumJobSizeEntry + 0, // 13: executorapi.LeaseRequest.nodes:type_name -> executorapi.NodeInfo + 22, // 14: executorapi.JobRunLease.job:type_name -> armadaevents.SubmitJob + 5, // 15: executorapi.LeaseStreamMessage.lease:type_name -> executorapi.JobRunLease + 6, // 16: executorapi.LeaseStreamMessage.cancel_runs:type_name -> executorapi.CancelRuns + 8, // 17: executorapi.LeaseStreamMessage.end:type_name -> executorapi.EndMarker + 7, // 18: executorapi.LeaseStreamMessage.preempt_runs:type_name -> executorapi.PreemptRuns + 23, // 19: executorapi.NodeInfo.AllocatableResourcesEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity + 23, // 20: executorapi.NodeInfo.AvailableResourcesEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity + 23, // 21: executorapi.NodeInfo.TotalResourcesEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity + 24, // 22: executorapi.NodeInfo.RunIdsByStateEntry.value:type_name -> api.JobState + 1, // 23: executorapi.NodeInfo.NonArmadaAllocatedResourcesEntry.value:type_name -> executorapi.ComputeResource + 23, // 24: executorapi.ComputeResource.ResourcesEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity + 23, // 25: executorapi.PoolQueueResource.ResourcesEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity + 23, // 26: executorapi.LeaseRequest.ResourcesEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity + 23, // 27: executorapi.LeaseRequest.MinimumJobSizeEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity + 4, // 28: executorapi.ExecutorApi.LeaseJobRuns:input_type -> executorapi.LeaseRequest + 3, // 29: executorapi.ExecutorApi.ReportEvents:input_type -> executorapi.EventList + 9, // 30: executorapi.ExecutorApi.LeaseJobRuns:output_type -> executorapi.LeaseStreamMessage + 25, // 31: executorapi.ExecutorApi.ReportEvents:output_type -> google.protobuf.Empty + 30, // [30:32] is the sub-list for method output_type + 28, // [28:30] is the sub-list for method input_type + 28, // [28:28] is the sub-list for extension type_name + 28, // [28:28] is the sub-list for extension extendee + 0, // [0:28] is the sub-list for field type_name +} + +func init() { file_pkg_executorapi_executorapi_proto_init() } +func file_pkg_executorapi_executorapi_proto_init() { + if File_pkg_executorapi_executorapi_proto != nil { + return + } + file_pkg_executorapi_executorapi_proto_msgTypes[9].OneofWrappers = []any{ + (*LeaseStreamMessage_Lease)(nil), + (*LeaseStreamMessage_CancelRuns)(nil), + (*LeaseStreamMessage_End)(nil), + (*LeaseStreamMessage_PreemptRuns)(nil), } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_executorapi_executorapi_proto_rawDesc), len(file_pkg_executorapi_executorapi_proto_rawDesc)), + NumEnums: 0, + NumMessages: 20, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_executorapi_executorapi_proto_goTypes, + DependencyIndexes: file_pkg_executorapi_executorapi_proto_depIdxs, + MessageInfos: file_pkg_executorapi_executorapi_proto_msgTypes, + }.Build() + File_pkg_executorapi_executorapi_proto = out.File + file_pkg_executorapi_executorapi_proto_goTypes = nil + file_pkg_executorapi_executorapi_proto_depIdxs = nil } - -var ( - ErrInvalidLengthExecutorapi = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowExecutorapi = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupExecutorapi = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/executorapi/executorapi_grpc.pb.go b/pkg/executorapi/executorapi_grpc.pb.go new file mode 100644 index 00000000000..498eb589e2c --- /dev/null +++ b/pkg/executorapi/executorapi_grpc.pb.go @@ -0,0 +1,170 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 +// source: pkg/executorapi/executorapi.proto + +package executorapi + +import ( + context "context" + + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + ExecutorApi_LeaseJobRuns_FullMethodName = "/executorapi.ExecutorApi/LeaseJobRuns" + ExecutorApi_ReportEvents_FullMethodName = "/executorapi.ExecutorApi/ReportEvents" +) + +// ExecutorApiClient is the client API for ExecutorApi service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ExecutorApiClient interface { + // Reports usage information to the scheduler. + // In return, the scheduler provides: + // - Slice of job runs that the executor is currently running that should be cancelled. + // - Slice of job runs that the executor is currently running that should be preempted. + // - Slice job runs that the executor is not currently running that should be scheduled. + // This call also acts as a signal to the scheduler that the executor is alive and accepting jobs. + LeaseJobRuns(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[LeaseRequest, LeaseStreamMessage], error) + // Reports job run events to the scheduler. + ReportEvents(ctx context.Context, in *EventList, opts ...grpc.CallOption) (*emptypb.Empty, error) +} + +type executorApiClient struct { + cc grpc.ClientConnInterface +} + +func NewExecutorApiClient(cc grpc.ClientConnInterface) ExecutorApiClient { + return &executorApiClient{cc} +} + +func (c *executorApiClient) LeaseJobRuns(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[LeaseRequest, LeaseStreamMessage], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ExecutorApi_ServiceDesc.Streams[0], ExecutorApi_LeaseJobRuns_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[LeaseRequest, LeaseStreamMessage]{ClientStream: stream} + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ExecutorApi_LeaseJobRunsClient = grpc.BidiStreamingClient[LeaseRequest, LeaseStreamMessage] + +func (c *executorApiClient) ReportEvents(ctx context.Context, in *EventList, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, ExecutorApi_ReportEvents_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ExecutorApiServer is the server API for ExecutorApi service. +// All implementations must embed UnimplementedExecutorApiServer +// for forward compatibility. +type ExecutorApiServer interface { + // Reports usage information to the scheduler. + // In return, the scheduler provides: + // - Slice of job runs that the executor is currently running that should be cancelled. + // - Slice of job runs that the executor is currently running that should be preempted. + // - Slice job runs that the executor is not currently running that should be scheduled. + // This call also acts as a signal to the scheduler that the executor is alive and accepting jobs. + LeaseJobRuns(grpc.BidiStreamingServer[LeaseRequest, LeaseStreamMessage]) error + // Reports job run events to the scheduler. + ReportEvents(context.Context, *EventList) (*emptypb.Empty, error) + mustEmbedUnimplementedExecutorApiServer() +} + +// UnimplementedExecutorApiServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedExecutorApiServer struct{} + +func (UnimplementedExecutorApiServer) LeaseJobRuns(grpc.BidiStreamingServer[LeaseRequest, LeaseStreamMessage]) error { + return status.Errorf(codes.Unimplemented, "method LeaseJobRuns not implemented") +} +func (UnimplementedExecutorApiServer) ReportEvents(context.Context, *EventList) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReportEvents not implemented") +} +func (UnimplementedExecutorApiServer) mustEmbedUnimplementedExecutorApiServer() {} +func (UnimplementedExecutorApiServer) testEmbeddedByValue() {} + +// UnsafeExecutorApiServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ExecutorApiServer will +// result in compilation errors. +type UnsafeExecutorApiServer interface { + mustEmbedUnimplementedExecutorApiServer() +} + +func RegisterExecutorApiServer(s grpc.ServiceRegistrar, srv ExecutorApiServer) { + // If the following call pancis, it indicates UnimplementedExecutorApiServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&ExecutorApi_ServiceDesc, srv) +} + +func _ExecutorApi_LeaseJobRuns_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(ExecutorApiServer).LeaseJobRuns(&grpc.GenericServerStream[LeaseRequest, LeaseStreamMessage]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ExecutorApi_LeaseJobRunsServer = grpc.BidiStreamingServer[LeaseRequest, LeaseStreamMessage] + +func _ExecutorApi_ReportEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EventList) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExecutorApiServer).ReportEvents(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ExecutorApi_ReportEvents_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExecutorApiServer).ReportEvents(ctx, req.(*EventList)) + } + return interceptor(ctx, in, info, handler) +} + +// ExecutorApi_ServiceDesc is the grpc.ServiceDesc for ExecutorApi service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ExecutorApi_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "executorapi.ExecutorApi", + HandlerType: (*ExecutorApiServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ReportEvents", + Handler: _ExecutorApi_ReportEvents_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "LeaseJobRuns", + Handler: _ExecutorApi_LeaseJobRuns_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "pkg/executorapi/executorapi.proto", +} diff --git a/pkg/priorityoverride/priorityoverride.pb.go b/pkg/priorityoverride/priorityoverride.pb.go index 08c06abb171..c9018875577 100644 --- a/pkg/priorityoverride/priorityoverride.pb.go +++ b/pkg/priorityoverride/priorityoverride.pb.go @@ -1,855 +1,247 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: pkg/priorityoverride/priorityoverride.proto package priorityoverride import ( - context "context" - encoding_binary "encoding/binary" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" - proto "github.com/gogo/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type PriorityOverrideRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PriorityOverrideRequest) Reset() { *m = PriorityOverrideRequest{} } -func (m *PriorityOverrideRequest) String() string { return proto.CompactTextString(m) } -func (*PriorityOverrideRequest) ProtoMessage() {} -func (*PriorityOverrideRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_564243d1236d3887, []int{0} -} -func (m *PriorityOverrideRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PriorityOverrideRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PriorityOverrideRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *PriorityOverrideRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PriorityOverrideRequest.Merge(m, src) -} -func (m *PriorityOverrideRequest) XXX_Size() int { - return m.Size() +func (x *PriorityOverrideRequest) Reset() { + *x = PriorityOverrideRequest{} + mi := &file_pkg_priorityoverride_priorityoverride_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PriorityOverrideRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PriorityOverrideRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PriorityOverrideRequest proto.InternalMessageInfo -type PoolPriorityOverrides struct { - Pool string `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"` - Overrides map[string]float64 `protobuf:"bytes,2,rep,name=overrides,proto3" json:"overrides,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"` +func (x *PriorityOverrideRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PoolPriorityOverrides) Reset() { *m = PoolPriorityOverrides{} } -func (m *PoolPriorityOverrides) String() string { return proto.CompactTextString(m) } -func (*PoolPriorityOverrides) ProtoMessage() {} -func (*PoolPriorityOverrides) Descriptor() ([]byte, []int) { - return fileDescriptor_564243d1236d3887, []int{1} -} -func (m *PoolPriorityOverrides) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PoolPriorityOverrides) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PoolPriorityOverrides.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *PoolPriorityOverrides) XXX_Merge(src proto.Message) { - xxx_messageInfo_PoolPriorityOverrides.Merge(m, src) -} -func (m *PoolPriorityOverrides) XXX_Size() int { - return m.Size() -} -func (m *PoolPriorityOverrides) XXX_DiscardUnknown() { - xxx_messageInfo_PoolPriorityOverrides.DiscardUnknown(m) -} - -var xxx_messageInfo_PoolPriorityOverrides proto.InternalMessageInfo - -func (m *PoolPriorityOverrides) GetPool() string { - if m != nil { - return m.Pool - } - return "" -} - -func (m *PoolPriorityOverrides) GetOverrides() map[string]float64 { - if m != nil { - return m.Overrides - } - return nil -} - -type PriorityOverrideResponse struct { - PoolPriorityOverrides []*PoolPriorityOverrides `protobuf:"bytes,1,rep,name=poolPriorityOverrides,proto3" json:"poolPriorityOverrides,omitempty"` -} +func (*PriorityOverrideRequest) ProtoMessage() {} -func (m *PriorityOverrideResponse) Reset() { *m = PriorityOverrideResponse{} } -func (m *PriorityOverrideResponse) String() string { return proto.CompactTextString(m) } -func (*PriorityOverrideResponse) ProtoMessage() {} -func (*PriorityOverrideResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_564243d1236d3887, []int{2} -} -func (m *PriorityOverrideResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PriorityOverrideResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PriorityOverrideResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *PriorityOverrideRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_priorityoverride_priorityoverride_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *PriorityOverrideResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PriorityOverrideResponse.Merge(m, src) -} -func (m *PriorityOverrideResponse) XXX_Size() int { - return m.Size() -} -func (m *PriorityOverrideResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PriorityOverrideResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PriorityOverrideResponse proto.InternalMessageInfo - -func (m *PriorityOverrideResponse) GetPoolPriorityOverrides() []*PoolPriorityOverrides { - if m != nil { - return m.PoolPriorityOverrides - } - return nil -} - -func init() { - proto.RegisterType((*PriorityOverrideRequest)(nil), "api.PriorityOverrideRequest") - proto.RegisterType((*PoolPriorityOverrides)(nil), "api.PoolPriorityOverrides") - proto.RegisterMapType((map[string]float64)(nil), "api.PoolPriorityOverrides.OverridesEntry") - proto.RegisterType((*PriorityOverrideResponse)(nil), "api.PriorityOverrideResponse") -} - -func init() { - proto.RegisterFile("pkg/priorityoverride/priorityoverride.proto", fileDescriptor_564243d1236d3887) -} - -var fileDescriptor_564243d1236d3887 = []byte{ - // 338 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2e, 0xc8, 0x4e, 0xd7, - 0x2f, 0x28, 0xca, 0xcc, 0x2f, 0xca, 0x2c, 0xa9, 0xcc, 0x2f, 0x4b, 0x2d, 0x2a, 0xca, 0x4c, 0x49, - 0xc5, 0x10, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4e, 0x2c, 0xc8, 0x54, 0x92, 0xe4, - 0x12, 0x0f, 0x80, 0x4a, 0xfb, 0x43, 0xa5, 0x83, 0x52, 0x0b, 0x4b, 0x53, 0x8b, 0x4b, 0x94, 0xda, - 0x99, 0xb8, 0x44, 0x03, 0xf2, 0xf3, 0x73, 0xd0, 0xe5, 0x8b, 0x85, 0xd4, 0xb8, 0x58, 0x0a, 0xf2, - 0xf3, 0x73, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x9d, 0x84, 0x5e, 0xdd, 0x93, 0xe7, 0x03, 0xf1, - 0x75, 0xf2, 0x73, 0x33, 0x4b, 0x52, 0x73, 0x0b, 0x4a, 0x2a, 0x83, 0xc0, 0xf2, 0x42, 0x09, 0x5c, - 0x9c, 0x30, 0x3b, 0x8b, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, 0x34, 0xf5, 0x12, 0x0b, 0x32, - 0xf5, 0xb0, 0x1a, 0xab, 0x07, 0x67, 0xb9, 0xe6, 0x95, 0x14, 0x55, 0x3a, 0x89, 0xbf, 0xba, 0x27, - 0x2f, 0x0c, 0xd7, 0x8f, 0x64, 0x38, 0xc2, 0x50, 0xa9, 0x14, 0x2e, 0x3e, 0x54, 0x5d, 0x42, 0xca, - 0x5c, 0xcc, 0xd9, 0xa9, 0x95, 0x50, 0xa7, 0x09, 0xbe, 0xba, 0x27, 0xcf, 0x9b, 0x9d, 0x5a, 0x89, - 0xa4, 0x19, 0x24, 0x2b, 0xa4, 0xc9, 0xc5, 0x5a, 0x96, 0x98, 0x53, 0x9a, 0x2a, 0xc1, 0xa4, 0xc0, - 0xa8, 0xc1, 0xe8, 0x24, 0xfc, 0xea, 0x9e, 0x3c, 0x3f, 0x58, 0x00, 0x49, 0x21, 0x44, 0x85, 0x15, - 0x93, 0x05, 0xa3, 0xd2, 0x44, 0x46, 0x2e, 0x09, 0xcc, 0x50, 0x2a, 0x2e, 0xc8, 0xcf, 0x2b, 0x4e, - 0x15, 0x2a, 0xe5, 0x12, 0x2d, 0xc0, 0xe6, 0x1d, 0x09, 0x46, 0xb0, 0x87, 0xa5, 0x70, 0x7b, 0xd8, - 0x49, 0xf9, 0xd5, 0x3d, 0x79, 0x79, 0xac, 0x9a, 0x91, 0xdc, 0x81, 0xdd, 0x74, 0xa3, 0x3c, 0xcc, - 0x88, 0x0b, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0x15, 0x0a, 0xe6, 0x12, 0x71, 0x4f, 0x2d, 0xc1, - 0x8c, 0x36, 0x19, 0x88, 0x53, 0xb0, 0x47, 0xb7, 0x94, 0x2c, 0x0e, 0x59, 0x88, 0x37, 0x9d, 0xf4, - 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, - 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x04, 0x5b, 0xa2, 0x4b, 0x62, - 0x03, 0x27, 0x32, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x61, 0xf8, 0x10, 0xec, 0x93, 0x02, - 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// PriorityOverrideServiceClient is the client API for PriorityOverrideService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type PriorityOverrideServiceClient interface { - GetPriorityOverrides(ctx context.Context, in *PriorityOverrideRequest, opts ...grpc.CallOption) (*PriorityOverrideResponse, error) -} - -type priorityOverrideServiceClient struct { - cc *grpc.ClientConn -} - -func NewPriorityOverrideServiceClient(cc *grpc.ClientConn) PriorityOverrideServiceClient { - return &priorityOverrideServiceClient{cc} -} - -func (c *priorityOverrideServiceClient) GetPriorityOverrides(ctx context.Context, in *PriorityOverrideRequest, opts ...grpc.CallOption) (*PriorityOverrideResponse, error) { - out := new(PriorityOverrideResponse) - err := c.cc.Invoke(ctx, "/api.PriorityOverrideService/GetPriorityOverrides", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// PriorityOverrideServiceServer is the server API for PriorityOverrideService service. -type PriorityOverrideServiceServer interface { - GetPriorityOverrides(context.Context, *PriorityOverrideRequest) (*PriorityOverrideResponse, error) -} - -// UnimplementedPriorityOverrideServiceServer can be embedded to have forward compatible implementations. -type UnimplementedPriorityOverrideServiceServer struct { + return mi.MessageOf(x) } -func (*UnimplementedPriorityOverrideServiceServer) GetPriorityOverrides(ctx context.Context, req *PriorityOverrideRequest) (*PriorityOverrideResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPriorityOverrides not implemented") -} - -func RegisterPriorityOverrideServiceServer(s *grpc.Server, srv PriorityOverrideServiceServer) { - s.RegisterService(&_PriorityOverrideService_serviceDesc, srv) -} - -func _PriorityOverrideService_GetPriorityOverrides_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PriorityOverrideRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PriorityOverrideServiceServer).GetPriorityOverrides(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.PriorityOverrideService/GetPriorityOverrides", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PriorityOverrideServiceServer).GetPriorityOverrides(ctx, req.(*PriorityOverrideRequest)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use PriorityOverrideRequest.ProtoReflect.Descriptor instead. +func (*PriorityOverrideRequest) Descriptor() ([]byte, []int) { + return file_pkg_priorityoverride_priorityoverride_proto_rawDescGZIP(), []int{0} } -var _PriorityOverrideService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "api.PriorityOverrideService", - HandlerType: (*PriorityOverrideServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetPriorityOverrides", - Handler: _PriorityOverrideService_GetPriorityOverrides_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pkg/priorityoverride/priorityoverride.proto", +type PoolPriorityOverrides struct { + state protoimpl.MessageState `protogen:"open.v1"` + Pool string `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"` + Overrides map[string]float64 `protobuf:"bytes,2,rep,name=overrides,proto3" json:"overrides,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PriorityOverrideRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *PoolPriorityOverrides) Reset() { + *x = PoolPriorityOverrides{} + mi := &file_pkg_priorityoverride_priorityoverride_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PriorityOverrideRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *PoolPriorityOverrides) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PriorityOverrideRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} +func (*PoolPriorityOverrides) ProtoMessage() {} -func (m *PoolPriorityOverrides) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *PoolPriorityOverrides) ProtoReflect() protoreflect.Message { + mi := &file_pkg_priorityoverride_priorityoverride_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *PoolPriorityOverrides) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use PoolPriorityOverrides.ProtoReflect.Descriptor instead. +func (*PoolPriorityOverrides) Descriptor() ([]byte, []int) { + return file_pkg_priorityoverride_priorityoverride_proto_rawDescGZIP(), []int{1} } -func (m *PoolPriorityOverrides) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Overrides) > 0 { - for k := range m.Overrides { - v := m.Overrides[k] - baseI := i - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(v)))) - i-- - dAtA[i] = 0x11 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintPriorityoverride(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintPriorityoverride(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Pool) > 0 { - i -= len(m.Pool) - copy(dAtA[i:], m.Pool) - i = encodeVarintPriorityoverride(dAtA, i, uint64(len(m.Pool))) - i-- - dAtA[i] = 0xa +func (x *PoolPriorityOverrides) GetPool() string { + if x != nil { + return x.Pool } - return len(dAtA) - i, nil + return "" } -func (m *PriorityOverrideResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *PoolPriorityOverrides) GetOverrides() map[string]float64 { + if x != nil { + return x.Overrides } - return dAtA[:n], nil + return nil } -func (m *PriorityOverrideResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type PriorityOverrideResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + PoolPriorityOverrides []*PoolPriorityOverrides `protobuf:"bytes,1,rep,name=poolPriorityOverrides,proto3" json:"poolPriorityOverrides,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PriorityOverrideResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PoolPriorityOverrides) > 0 { - for iNdEx := len(m.PoolPriorityOverrides) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PoolPriorityOverrides[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPriorityoverride(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil +func (x *PriorityOverrideResponse) Reset() { + *x = PriorityOverrideResponse{} + mi := &file_pkg_priorityoverride_priorityoverride_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func encodeVarintPriorityoverride(dAtA []byte, offset int, v uint64) int { - offset -= sovPriorityoverride(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *PriorityOverrideRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n +func (x *PriorityOverrideResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PoolPriorityOverrides) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Pool) - if l > 0 { - n += 1 + l + sovPriorityoverride(uint64(l)) - } - if len(m.Overrides) > 0 { - for k, v := range m.Overrides { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovPriorityoverride(uint64(len(k))) + 1 + 8 - n += mapEntrySize + 1 + sovPriorityoverride(uint64(mapEntrySize)) - } - } - return n -} +func (*PriorityOverrideResponse) ProtoMessage() {} -func (m *PriorityOverrideResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.PoolPriorityOverrides) > 0 { - for _, e := range m.PoolPriorityOverrides { - l = e.Size() - n += 1 + l + sovPriorityoverride(uint64(l)) +func (x *PriorityOverrideResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_priorityoverride_priorityoverride_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func sovPriorityoverride(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozPriorityoverride(x uint64) (n int) { - return sovPriorityoverride(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *PriorityOverrideRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPriorityoverride - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PriorityOverrideRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PriorityOverrideRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipPriorityoverride(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPriorityoverride - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use PriorityOverrideResponse.ProtoReflect.Descriptor instead. +func (*PriorityOverrideResponse) Descriptor() ([]byte, []int) { + return file_pkg_priorityoverride_priorityoverride_proto_rawDescGZIP(), []int{2} } -func (m *PoolPriorityOverrides) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPriorityoverride - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PoolPriorityOverrides: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PoolPriorityOverrides: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPriorityoverride - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPriorityoverride - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPriorityoverride - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pool = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Overrides", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPriorityoverride - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPriorityoverride - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPriorityoverride - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Overrides == nil { - m.Overrides = make(map[string]float64) - } - var mapkey string - var mapvalue float64 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPriorityoverride - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPriorityoverride - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthPriorityoverride - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthPriorityoverride - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapvaluetemp uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - mapvaluetemp = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - mapvalue = math.Float64frombits(mapvaluetemp) - } else { - iNdEx = entryPreIndex - skippy, err := skipPriorityoverride(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPriorityoverride - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Overrides[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPriorityoverride(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPriorityoverride - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PriorityOverrideResponse) GetPoolPriorityOverrides() []*PoolPriorityOverrides { + if x != nil { + return x.PoolPriorityOverrides } return nil } -func (m *PriorityOverrideResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPriorityoverride - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PriorityOverrideResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PriorityOverrideResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PoolPriorityOverrides", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPriorityoverride - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPriorityoverride - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPriorityoverride - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PoolPriorityOverrides = append(m.PoolPriorityOverrides, &PoolPriorityOverrides{}) - if err := m.PoolPriorityOverrides[len(m.PoolPriorityOverrides)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPriorityoverride(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPriorityoverride - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipPriorityoverride(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPriorityoverride - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPriorityoverride - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPriorityoverride - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthPriorityoverride - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupPriorityoverride - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthPriorityoverride - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} +var File_pkg_priorityoverride_priorityoverride_proto protoreflect.FileDescriptor + +var file_pkg_priorityoverride_priorityoverride_proto_rawDesc = string([]byte{ + 0x0a, 0x2b, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x6f, 0x76, + 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x2f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x6f, + 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, + 0x70, 0x69, 0x22, 0x19, 0x0a, 0x17, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4f, 0x76, + 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xb2, 0x01, + 0x0a, 0x15, 0x50, 0x6f, 0x6f, 0x6c, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4f, 0x76, + 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x12, 0x47, 0x0a, 0x09, 0x6f, + 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x2e, 0x4f, 0x76, 0x65, 0x72, 0x72, + 0x69, 0x64, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, + 0x69, 0x64, 0x65, 0x73, 0x1a, 0x3c, 0x0a, 0x0e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0x6c, 0x0a, 0x18, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4f, 0x76, + 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, + 0x0a, 0x15, 0x70, 0x6f, 0x6f, 0x6c, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4f, 0x76, + 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x52, 0x15, 0x70, 0x6f, 0x6f, 0x6c, 0x50, + 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, + 0x32, 0x6e, 0x0a, 0x17, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4f, 0x76, 0x65, 0x72, + 0x72, 0x69, 0x64, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x53, 0x0a, 0x14, 0x47, + 0x65, 0x74, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, + 0x64, 0x65, 0x73, 0x12, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x42, 0x16, 0x5a, 0x14, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) var ( - ErrInvalidLengthPriorityoverride = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowPriorityoverride = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupPriorityoverride = fmt.Errorf("proto: unexpected end of group") + file_pkg_priorityoverride_priorityoverride_proto_rawDescOnce sync.Once + file_pkg_priorityoverride_priorityoverride_proto_rawDescData []byte ) + +func file_pkg_priorityoverride_priorityoverride_proto_rawDescGZIP() []byte { + file_pkg_priorityoverride_priorityoverride_proto_rawDescOnce.Do(func() { + file_pkg_priorityoverride_priorityoverride_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_priorityoverride_priorityoverride_proto_rawDesc), len(file_pkg_priorityoverride_priorityoverride_proto_rawDesc))) + }) + return file_pkg_priorityoverride_priorityoverride_proto_rawDescData +} + +var file_pkg_priorityoverride_priorityoverride_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_pkg_priorityoverride_priorityoverride_proto_goTypes = []any{ + (*PriorityOverrideRequest)(nil), // 0: api.PriorityOverrideRequest + (*PoolPriorityOverrides)(nil), // 1: api.PoolPriorityOverrides + (*PriorityOverrideResponse)(nil), // 2: api.PriorityOverrideResponse + nil, // 3: api.PoolPriorityOverrides.OverridesEntry +} +var file_pkg_priorityoverride_priorityoverride_proto_depIdxs = []int32{ + 3, // 0: api.PoolPriorityOverrides.overrides:type_name -> api.PoolPriorityOverrides.OverridesEntry + 1, // 1: api.PriorityOverrideResponse.poolPriorityOverrides:type_name -> api.PoolPriorityOverrides + 0, // 2: api.PriorityOverrideService.GetPriorityOverrides:input_type -> api.PriorityOverrideRequest + 2, // 3: api.PriorityOverrideService.GetPriorityOverrides:output_type -> api.PriorityOverrideResponse + 3, // [3:4] is the sub-list for method output_type + 2, // [2:3] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_pkg_priorityoverride_priorityoverride_proto_init() } +func file_pkg_priorityoverride_priorityoverride_proto_init() { + if File_pkg_priorityoverride_priorityoverride_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_priorityoverride_priorityoverride_proto_rawDesc), len(file_pkg_priorityoverride_priorityoverride_proto_rawDesc)), + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_priorityoverride_priorityoverride_proto_goTypes, + DependencyIndexes: file_pkg_priorityoverride_priorityoverride_proto_depIdxs, + MessageInfos: file_pkg_priorityoverride_priorityoverride_proto_msgTypes, + }.Build() + File_pkg_priorityoverride_priorityoverride_proto = out.File + file_pkg_priorityoverride_priorityoverride_proto_goTypes = nil + file_pkg_priorityoverride_priorityoverride_proto_depIdxs = nil +} diff --git a/pkg/priorityoverride/priorityoverride_grpc.pb.go b/pkg/priorityoverride/priorityoverride_grpc.pb.go new file mode 100644 index 00000000000..31acb180686 --- /dev/null +++ b/pkg/priorityoverride/priorityoverride_grpc.pb.go @@ -0,0 +1,123 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 +// source: pkg/priorityoverride/priorityoverride.proto + +package priorityoverride + +import ( + context "context" + + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + PriorityOverrideService_GetPriorityOverrides_FullMethodName = "/api.PriorityOverrideService/GetPriorityOverrides" +) + +// PriorityOverrideServiceClient is the client API for PriorityOverrideService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type PriorityOverrideServiceClient interface { + GetPriorityOverrides(ctx context.Context, in *PriorityOverrideRequest, opts ...grpc.CallOption) (*PriorityOverrideResponse, error) +} + +type priorityOverrideServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewPriorityOverrideServiceClient(cc grpc.ClientConnInterface) PriorityOverrideServiceClient { + return &priorityOverrideServiceClient{cc} +} + +func (c *priorityOverrideServiceClient) GetPriorityOverrides(ctx context.Context, in *PriorityOverrideRequest, opts ...grpc.CallOption) (*PriorityOverrideResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PriorityOverrideResponse) + err := c.cc.Invoke(ctx, PriorityOverrideService_GetPriorityOverrides_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// PriorityOverrideServiceServer is the server API for PriorityOverrideService service. +// All implementations must embed UnimplementedPriorityOverrideServiceServer +// for forward compatibility. +type PriorityOverrideServiceServer interface { + GetPriorityOverrides(context.Context, *PriorityOverrideRequest) (*PriorityOverrideResponse, error) + mustEmbedUnimplementedPriorityOverrideServiceServer() +} + +// UnimplementedPriorityOverrideServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPriorityOverrideServiceServer struct{} + +func (UnimplementedPriorityOverrideServiceServer) GetPriorityOverrides(context.Context, *PriorityOverrideRequest) (*PriorityOverrideResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPriorityOverrides not implemented") +} +func (UnimplementedPriorityOverrideServiceServer) mustEmbedUnimplementedPriorityOverrideServiceServer() { +} +func (UnimplementedPriorityOverrideServiceServer) testEmbeddedByValue() {} + +// UnsafePriorityOverrideServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PriorityOverrideServiceServer will +// result in compilation errors. +type UnsafePriorityOverrideServiceServer interface { + mustEmbedUnimplementedPriorityOverrideServiceServer() +} + +func RegisterPriorityOverrideServiceServer(s grpc.ServiceRegistrar, srv PriorityOverrideServiceServer) { + // If the following call pancis, it indicates UnimplementedPriorityOverrideServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&PriorityOverrideService_ServiceDesc, srv) +} + +func _PriorityOverrideService_GetPriorityOverrides_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PriorityOverrideRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PriorityOverrideServiceServer).GetPriorityOverrides(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PriorityOverrideService_GetPriorityOverrides_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PriorityOverrideServiceServer).GetPriorityOverrides(ctx, req.(*PriorityOverrideRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// PriorityOverrideService_ServiceDesc is the grpc.ServiceDesc for PriorityOverrideService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var PriorityOverrideService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "api.PriorityOverrideService", + HandlerType: (*PriorityOverrideServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetPriorityOverrides", + Handler: _PriorityOverrideService_GetPriorityOverrides_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "pkg/priorityoverride/priorityoverride.proto", +} diff --git a/scripts/build-python-client.sh b/scripts/build-python-client.sh index f569b134ae7..f40c2b8d41a 100755 --- a/scripts/build-python-client.sh +++ b/scripts/build-python-client.sh @@ -12,7 +12,6 @@ python3 -m grpc_tools.protoc -I. --plugin=protoc-gen-mypy=$(which protoc-gen-myp google/api/annotations.proto \ google/api/http.proto \ armada/event.proto armada/submit.proto armada/health.proto armada/job.proto armada/binoculars.proto \ - github.com/gogo/protobuf/gogoproto/gogo.proto \ k8s.io/api/core/v1/generated.proto \ k8s.io/apimachinery/pkg/api/resource/generated.proto \ k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto \ diff --git a/scripts/protoc-gen-armada/protoc-gen-armada.go b/scripts/protoc-gen-armada/protoc-gen-armada.go deleted file mode 100644 index 7aad1532d24..00000000000 --- a/scripts/protoc-gen-armada/protoc-gen-armada.go +++ /dev/null @@ -1,66 +0,0 @@ -package main - -import ( - "strings" - "unicode" - - "github.com/gogo/protobuf/gogoproto" - "github.com/gogo/protobuf/proto" - "github.com/gogo/protobuf/protoc-gen-gogo/descriptor" - "github.com/gogo/protobuf/protoc-gen-gogo/generator" - "github.com/gogo/protobuf/vanity" - "github.com/gogo/protobuf/vanity/command" -) - -// Used to compile proto files into go via gogo. -// Identical to protoc-gen-gogofaster, but with json tags in camelCase. -func main() { - req := command.Read() - files := req.GetProtoFile() - files = vanity.FilterFiles(files, vanity.NotGoogleProtobufDescriptorProto) - - vanity.ForEachFile(files, vanity.TurnOnMarshalerAll) - vanity.ForEachFile(files, vanity.TurnOnSizerAll) - vanity.ForEachFile(files, vanity.TurnOnUnmarshalerAll) - - vanity.ForEachFieldInFiles(files, JsonTagCamelCase) - vanity.ForEachFieldInFilesExcludingExtensions(vanity.OnlyProto2(files), vanity.TurnOffNullableForNativeTypesWithoutDefaultsOnly) - vanity.ForEachFile(files, vanity.TurnOffGoUnrecognizedAll) - vanity.ForEachFile(files, vanity.TurnOffGoUnkeyedAll) - vanity.ForEachFile(files, vanity.TurnOffGoSizecacheAll) - - resp := command.Generate(req) - command.Write(resp) -} - -func JsonTagCamelCase(field *descriptor.FieldDescriptorProto) { - s := generator.CamelCase(*field.Name) - - // For consistency with previous tooling. - if gogoproto.IsNullable(field) { - s = s + ",omitempty" - } - s = strings.ReplaceAll(s, "k8S", "k8s") - s = strings.ReplaceAll(s, "K8S", "K8s") - - // Preserve casing of the first char. - // Necessary for consistency with previous tooling. - if unicode.IsLower(rune((*field.Name)[0])) { - s = strings.ToLower(s[:1]) + s[1:] - } else { - s = strings.ToUpper(s[:1]) + s[1:] - } - - SetStringFieldOption(gogoproto.E_Jsontag, s)(field) -} - -func SetStringFieldOption(extension *proto.ExtensionDesc, value string) func(field *descriptor.FieldDescriptorProto) { - return func(field *descriptor.FieldDescriptorProto) { - if field.Options == nil { - field.Options = &descriptor.FieldOptions{} - } - if err := proto.SetExtension(field.Options, extension, &value); err != nil { - panic(err) - } - } -} diff --git a/tools.yaml b/tools.yaml index f4fe22bc4a4..ffb5c69e9e2 100644 --- a/tools.yaml +++ b/tools.yaml @@ -1,10 +1,11 @@ # Tools used to build and release Armada -# TODO: Use latest goreleaser. After upgrading k8s.io packages. tools: - github.com/go-swagger/go-swagger/cmd/swagger@v0.31.0 - go.uber.org/mock/mockgen@v0.5.0 - github.com/gordonklaus/ineffassign@v0.0.0-20210914165742-4cc7213b9bc8 - github.com/goreleaser/goreleaser/v2@v2.8.1 +- google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.5 +- google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.5.1 - github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v1.16.0 - github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger@v1.16.0 - github.com/jstemmer/go-junit-report@v1.0.0