diff --git a/flyteadmin/pkg/async/cloudevent/implementations/cloudevent_publisher.go b/flyteadmin/pkg/async/cloudevent/implementations/cloudevent_publisher.go index c7d967cc1b..bc74db508a 100644 --- a/flyteadmin/pkg/async/cloudevent/implementations/cloudevent_publisher.go +++ b/flyteadmin/pkg/async/cloudevent/implementations/cloudevent_publisher.go @@ -216,6 +216,7 @@ func (c *CloudEventWrappedPublisher) TransformWorkflowExecutionEvent(ctx context InputData: inputs, ArtifactIds: spec.GetMetadata().GetArtifactIds(), ReferenceExecution: spec.GetMetadata().GetReferenceExecution(), + Principal: spec.GetMetadata().Principal, LaunchPlanId: spec.LaunchPlan, }, nil } @@ -371,6 +372,7 @@ func (c *CloudEventWrappedPublisher) TransformNodeExecutionEvent(ctx context.Con OutputInterface: typedInterface, InputData: inputs, ArtifactIds: spec.GetMetadata().GetArtifactIds(), + Principal: spec.GetMetadata().Principal, LaunchPlanId: spec.LaunchPlan, }, nil } diff --git a/flyteadmin/pkg/manager/impl/execution_manager.go b/flyteadmin/pkg/manager/impl/execution_manager.go index 1247f83085..b21e762cdc 100644 --- a/flyteadmin/pkg/manager/impl/execution_manager.go +++ b/flyteadmin/pkg/manager/impl/execution_manager.go @@ -701,6 +701,7 @@ func resolveSecurityCtx(ctx context.Context, executionConfigSecurityCtx *core.Se } // ExtractArtifactKeys pulls out artifact keys from Literals for lineage +// todo: rename this function to be less confusing func (m *ExecutionManager) ExtractArtifactKeys(input *core.Literal) []string { var artifactKeys []string @@ -713,7 +714,6 @@ func (m *ExecutionManager) ExtractArtifactKeys(input *core.Literal) []string { } } if input.GetCollection() != nil { - // TODO: Make recursive for _, v := range input.GetCollection().Literals { mapKeys := m.ExtractArtifactKeys(v) artifactKeys = append(artifactKeys, mapKeys...) @@ -1218,6 +1218,7 @@ func (m *ExecutionManager) launchExecutionAndPrepareModel( // publishExecutionStart is an event that Admin publishes for artifact lineage. func (m *ExecutionManager) publishExecutionStart(ctx context.Context, executionID core.WorkflowExecutionIdentifier, launchPlanID *core.Identifier, workflowID *core.Identifier, inputArtifactKeys []string, usedArtifactIDs []*core.ArtifactID) { + if len(inputArtifactKeys) > 0 || len(usedArtifactIDs) > 0 { logger.Debugf(ctx, "Sending execution start event for execution [%+v] with input artifact keys [%+v] and used artifact ids [%+v]", executionID, inputArtifactKeys, usedArtifactIDs) diff --git a/flyteartifacts/go.mod b/flyteartifacts/go.mod index ec499332ac..1fe874539f 100644 --- a/flyteartifacts/go.mod +++ b/flyteartifacts/go.mod @@ -3,6 +3,7 @@ module github.com/flyteorg/flyte/flyteartifacts go 1.19 require ( + github.com/DATA-DOG/go-sqlmock v1.5.0 github.com/NYTimes/gizmo v1.3.6 github.com/cloudevents/sdk-go/binding/format/protobuf/v2 v2.14.0 github.com/cloudevents/sdk-go/v2 v2.14.0 @@ -21,6 +22,7 @@ require ( github.com/stretchr/testify v1.8.4 google.golang.org/grpc v1.56.1 google.golang.org/protobuf v1.30.0 + gorm.io/driver/postgres v1.5.3 gorm.io/gorm v1.25.5 ) @@ -61,7 +63,11 @@ require ( github.com/googleapis/gax-go/v2 v2.7.1 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/inconshreveable/mousetrap v1.0.0 // indirect + github.com/jackc/chunkreader/v2 v2.0.1 // indirect + github.com/jackc/pgconn v1.14.1 // indirect + github.com/jackc/pgio v1.0.0 // indirect github.com/jackc/pgpassfile v1.0.0 // indirect + github.com/jackc/pgproto3/v2 v2.3.2 // indirect github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect github.com/jinzhu/inflection v1.0.0 // indirect github.com/jinzhu/now v1.1.5 // indirect @@ -105,7 +111,6 @@ require ( gopkg.in/ini.v1 v1.66.4 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - gorm.io/driver/postgres v1.5.3 // indirect gorm.io/driver/sqlite v1.5.4 // indirect k8s.io/apimachinery v0.24.1 // indirect k8s.io/client-go v0.24.1 // indirect diff --git a/flyteartifacts/go.sum b/flyteartifacts/go.sum index 619a567139..830d361481 100644 --- a/flyteartifacts/go.sum +++ b/flyteartifacts/go.sum @@ -83,6 +83,8 @@ github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBp github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60= +github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= github.com/DataDog/datadog-go v3.4.1+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/opencensus-go-exporter-datadog v0.0.0-20191210083620-6965a1cfed68/go.mod h1:gMGUEe16aZh0QN941HgDjwrdjU4iTthPoz2/AtDRADE= github.com/NYTimes/gizmo v1.3.6 h1:K+GRagPdAxojsT1TlTQlMkTeOmgfLxSdvuOhdki7GG0= @@ -133,9 +135,13 @@ github.com/cloudevents/sdk-go/v2 v2.14.0/go.mod h1:xDmKfzNjM8gBvjaF8ijFjM1VYOVUE github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= github.com/coocood/freecache v1.1.1 h1:uukNF7QKCZEdZ9gAV7WQzvh0SbjwdMF6m3x3rxEkaPc= github.com/coocood/freecache v1.1.1/go.mod h1:OKrEjkGVoxZhyWAJoeFi5BMLUJm2Tit0kpGkIr7NGYY= +github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -310,16 +316,47 @@ github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1: github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/jackc/chunkreader v1.0.0/go.mod h1:RT6O25fNZIuasFJRyZ4R/Y2BbhasbmZXF9QQ7T3kePo= +github.com/jackc/chunkreader/v2 v2.0.0/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk= github.com/jackc/chunkreader/v2 v2.0.1 h1:i+RDz65UE+mmpjTfyz0MoVTnzeYxroil2G82ki7MGG8= +github.com/jackc/chunkreader/v2 v2.0.1/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk= +github.com/jackc/pgconn v0.0.0-20190420214824-7e0022ef6ba3/go.mod h1:jkELnwuX+w9qN5YIfX0fl88Ehu4XC3keFuOJJk9pcnA= +github.com/jackc/pgconn v0.0.0-20190824142844-760dd75542eb/go.mod h1:lLjNuW/+OfW9/pnVKPazfWOgNfH2aPem8YQ7ilXGvJE= +github.com/jackc/pgconn v0.0.0-20190831204454-2fabfa3c18b7/go.mod h1:ZJKsE/KZfsUgOEh9hBm+xYTstcNHg7UPMVJqRfQxq4s= +github.com/jackc/pgconn v1.8.0/go.mod h1:1C2Pb36bGIP9QHGBYCjnyhqu7Rv3sGshaQUvmfGIB/o= +github.com/jackc/pgconn v1.9.0/go.mod h1:YctiPyvzfU11JFxoXokUOOKQXQmDMoJL9vJzHH8/2JY= github.com/jackc/pgconn v1.14.1 h1:smbxIaZA08n6YuxEX1sDyjV/qkbtUtkH20qLkR9MUR4= +github.com/jackc/pgconn v1.14.1/go.mod h1:9mBNlny0UvkgJdCDvdVHYSjI+8tD2rnKK69Wz8ti++E= github.com/jackc/pgio v1.0.0 h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE= +github.com/jackc/pgio v1.0.0/go.mod h1:oP+2QK2wFfUWgr+gxjoBH9KGBb31Eio69xUb0w5bYf8= +github.com/jackc/pgmock v0.0.0-20190831213851-13a1b77aafa2/go.mod h1:fGZlG77KXmcq05nJLRkk0+p82V8B8Dw8KN2/V9c/OAE= +github.com/jackc/pgmock v0.0.0-20201204152224-4fe30f7445fd/go.mod h1:hrBW0Enj2AZTNpt/7Y5rr2xe/9Mn757Wtb2xeBzPv2c= +github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65 h1:DadwsjnMwFjfWc9y5Wi/+Zz7xoE5ALHsRQlOctkOiHc= +github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65/go.mod h1:5R2h2EEX+qri8jOWMbJCtaPWkrrNc7OHwsp2TCqp7ak= github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM= github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= +github.com/jackc/pgproto3 v1.1.0/go.mod h1:eR5FA3leWg7p9aeAqi37XOTgTIbkABlvcPB3E5rlc78= +github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190420180111-c116219b62db/go.mod h1:bhq50y+xrl9n5mRYyCBFKkpRVTLYJVWeCc+mEAI3yXA= +github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190609003834-432c2951c711/go.mod h1:uH0AWtUmuShn0bcesswc4aBTWGvw0cAxIJp+6OB//Wg= +github.com/jackc/pgproto3/v2 v2.0.0-rc3/go.mod h1:ryONWYqW6dqSg1Lw6vXNMXoBJhpzvWKnT95C46ckYeM= +github.com/jackc/pgproto3/v2 v2.0.0-rc3.0.20190831210041-4c03ce451f29/go.mod h1:ryONWYqW6dqSg1Lw6vXNMXoBJhpzvWKnT95C46ckYeM= +github.com/jackc/pgproto3/v2 v2.0.6/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA= +github.com/jackc/pgproto3/v2 v2.1.1/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA= github.com/jackc/pgproto3/v2 v2.3.2 h1:7eY55bdBeCz1F2fTzSz69QC+pG46jYq9/jtSPiJ5nn0= +github.com/jackc/pgproto3/v2 v2.3.2/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA= +github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b/go.mod h1:vsD4gTJCa9TptPL8sPkXrLZ+hDuNrZCnj29CQpr4X1E= github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a h1:bbPeKD0xmW/Y25WS6cokEszi5g+S0QxI/d45PkRi7Nk= github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM= +github.com/jackc/pgtype v0.0.0-20190421001408-4ed0de4755e0/go.mod h1:hdSHsc1V01CGwFsrv11mJRHWJ6aifDLfdV3aVjFF0zg= +github.com/jackc/pgtype v0.0.0-20190824184912-ab885b375b90/go.mod h1:KcahbBH1nCMSo2DXpzsoWOAfFkdEtEJpPbVLq8eE+mc= +github.com/jackc/pgtype v0.0.0-20190828014616-a8802b16cc59/go.mod h1:MWlu30kVJrUS8lot6TQqcg7mtthZ9T0EoIBFiJcmcyw= +github.com/jackc/pgx/v4 v4.0.0-20190420224344-cc3461e65d96/go.mod h1:mdxmSJJuR08CZQyj1PVQBHy9XOp5p8/SHH6a0psbY9Y= +github.com/jackc/pgx/v4 v4.0.0-20190421002000-1b8f0016e912/go.mod h1:no/Y67Jkk/9WuGR0JG/JseM9irFbnEPbuWV2EELPNuM= +github.com/jackc/pgx/v4 v4.0.0-pre1.0.20190824185557-6972a5742186/go.mod h1:X+GQnOEnf1dqHGpw7JmHqHc1NxDoalibchSk9/RWuDc= github.com/jackc/pgx/v5 v5.4.3 h1:cxFyXhxlvAifxnkKKdlxv8XqUf59tDlYjnV5YYfsJJY= github.com/jackc/pgx/v5 v5.4.3/go.mod h1:Ig06C2Vu0t5qXC60W8sqIthScaEnFvojjj9dSljmHRA= +github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= +github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= github.com/jinzhu/copier v0.3.5 h1:GlvfUwHk62RokgqVNvYsku0TATCF7bAHVwEXoBh3iJg= github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= @@ -350,6 +387,7 @@ github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/klauspost/compress v1.9.8/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= @@ -357,18 +395,25 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= +github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= +github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= +github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= +github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= @@ -450,8 +495,14 @@ github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563/go.mod h1:bCqn github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= +github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU= +github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= +github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE= @@ -474,6 +525,7 @@ github.com/spf13/viper v1.11.0/go.mod h1:djo0X/bA5+tYVoCn+C7cAYJGcVn/qYLFTG8gdUs github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= @@ -498,6 +550,8 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.1/go.mod h1:Ap50jQcDJrx6rB6VgeeFPtuPIf3wMRvRfrfYDO6+BmA= @@ -508,6 +562,7 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= @@ -515,22 +570,29 @@ go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= +go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.18.1 h1:CSUJ2mjFszzEWt4CdKISEuChVIXGBn3lAPwkRGyVrc4= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200204104054-c9f3fb736b72/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= golang.org/x/crypto v0.13.0 h1:mvySKfSWJ+UKUii46M40LOvyWfN0s2U+46/jDd0e6Ck= golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -567,6 +629,7 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -582,6 +645,7 @@ golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -612,6 +676,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= @@ -640,12 +706,15 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -653,6 +722,7 @@ golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -702,10 +772,15 @@ golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -715,6 +790,7 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -731,12 +807,14 @@ golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3 golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190425163242-31fd60d6bfdc/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190823170909-c4a336ef6a2f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191010075000-0337d82405ff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -777,6 +855,9 @@ golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 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= @@ -911,6 +992,7 @@ gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/inconshreveable/log15.v2 v2.0.0-20180818164646-67afb5ed74ec/go.mod h1:aPpfJ7XW+gOuirDoZ8gHhLh3kZ1B08FtV2bbmy7Jv3s= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= gopkg.in/ini.v1 v1.66.4 h1:SsAcf+mM7mRZo2nJNGt8mZCjG8ZRaNGMURJw7BsIST4= gopkg.in/ini.v1 v1.66.4/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= diff --git a/flyteartifacts/pkg/db/gorm_models.go b/flyteartifacts/pkg/db/gorm_models.go index c13068b839..bc033f186b 100644 --- a/flyteartifacts/pkg/db/gorm_models.go +++ b/flyteartifacts/pkg/db/gorm_models.go @@ -12,11 +12,21 @@ type ArtifactKey struct { Name string `gorm:"uniqueIndex:idx_pdn;index:idx_name;type:varchar(255)"` } +// WorkflowExecution - The Project/Domain is assumed to always be the same as the Artifact. +// The +type WorkflowExecution struct { + gorm.Model + ExecutionProject string `gorm:"uniqueIndex:idx_we_pdn;index:idx_we_proj;type:varchar(64)"` + ExecutionDomain string `gorm:"uniqueIndex:idx_we_pdn;index:idx_we_dom;type:varchar(64)"` + ExecutionName string `gorm:"uniqueIndex:idx_we_pdn;index:idx_we_name;type:varchar(255)"` + InputArtifacts []Artifact `gorm:"many2many:execution_inputs;"` +} + type Artifact struct { gorm.Model - ArtifactKeyID uint + ArtifactKeyID uint `gorm:"not null;uniqueIndex:idx_artifact_version"` ArtifactKey ArtifactKey `gorm:"foreignKey:ArtifactKeyID;references:ID"` - Version string `gorm:"not null;type:varchar(255);index:idx_artifact_version"` + Version string `gorm:"not null;type:varchar(255);uniqueIndex:idx_artifact_version"` Partitions pgtype.Hstore `gorm:"type:hstore;index:idx_artifact_partitions"` LiteralType []byte `gorm:"not null"` @@ -26,8 +36,10 @@ type Artifact struct { MetadataType string `gorm:"type:varchar(64)"` OffloadedUserMetadata string `gorm:"type:varchar(255)"` - // Project/Domain assumed to always be the same as the Artifact - ExecutionName string `gorm:"type:varchar(255)"` + WorkflowExecutionID uint `gorm:"index:idx_artifact_wf_exec_id"` + WorkflowExecution WorkflowExecution `gorm:"foreignKey:WorkflowExecutionID;references:ID"` + NodeID string `gorm:"type:varchar(128)"` + WorkflowProject string `gorm:"type:varchar(64)"` WorkflowDomain string `gorm:"type:varchar(64)"` WorkflowName string `gorm:"type:varchar(255)"` @@ -36,10 +48,11 @@ type Artifact struct { TaskDomain string `gorm:"type:varchar(64)"` TaskName string `gorm:"type:varchar(255)"` TaskVersion string `gorm:"type:varchar(255)"` - NodeID string `gorm:"type:varchar(64)"` // See Admin migration for note. // Here nullable in the case of workflow output. RetryAttempt *uint32 + + Principal string `gorm:"type:varchar(256)"` } type TriggerKey struct { diff --git a/flyteartifacts/pkg/db/gorm_transformers.go b/flyteartifacts/pkg/db/gorm_transformers.go index 18457bc013..776028a0f1 100644 --- a/flyteartifacts/pkg/db/gorm_transformers.go +++ b/flyteartifacts/pkg/db/gorm_transformers.go @@ -65,16 +65,31 @@ func ServiceToGormModel(serviceModel models.Artifact) (Artifact, error) { Description: serviceModel.Artifact.Spec.ShortDescription, MetadataType: serviceModel.Artifact.Spec.MetadataType, OffloadedUserMetadata: serviceModel.OffloadedMetadata, + } - ExecutionName: serviceModel.Artifact.Spec.Execution.Name, + if serviceModel.Artifact.GetSource().GetWorkflowExecution() != nil { + // artifact and execution project/domains are always the same. + // Note the service model will not have workflow execution if it was an upload + wfExec := WorkflowExecution{ + ExecutionProject: serviceModel.Artifact.ArtifactId.ArtifactKey.Project, + ExecutionDomain: serviceModel.Artifact.ArtifactId.ArtifactKey.Domain, + ExecutionName: serviceModel.Source.WorkflowExecution.Name, + } + ga.WorkflowExecution = wfExec + ga.NodeID = serviceModel.Source.NodeId + } + if serviceModel.GetSource() != nil { + ga.Principal = serviceModel.GetSource().GetPrincipal() } - if serviceModel.Artifact.Spec.TaskExecution != nil { - ga.TaskProject = serviceModel.Artifact.Spec.TaskExecution.TaskId.Project - ga.TaskDomain = serviceModel.Artifact.Spec.TaskExecution.TaskId.Domain - ga.TaskName = serviceModel.Artifact.Spec.TaskExecution.TaskId.Name - ga.TaskVersion = serviceModel.Artifact.Spec.TaskExecution.TaskId.Version - ga.RetryAttempt = &serviceModel.Artifact.Spec.TaskExecution.RetryAttempt + if serviceModel.GetSource().GetTaskId() != nil { + // If task id is there, so should the retry attempt + retry := serviceModel.GetSource().GetRetryAttempt() + ga.RetryAttempt = &retry + ga.TaskProject = serviceModel.GetSource().GetTaskId().Project + ga.TaskDomain = serviceModel.GetSource().GetTaskId().Domain + ga.TaskName = serviceModel.GetSource().GetTaskId().Name + ga.TaskVersion = serviceModel.GetSource().GetTaskId().Version } return ga, nil @@ -102,15 +117,8 @@ func GormToServiceModel(ga Artifact) (models.Artifact, error) { Version: ga.Version, }, Spec: &artifact.ArtifactSpec{ - Value: lit, - Type: lt, - TaskExecution: nil, - Execution: &core.WorkflowExecutionIdentifier{ - Project: ga.ArtifactKey.Project, - Domain: ga.ArtifactKey.Domain, - Name: ga.ExecutionName, - }, - Principal: "", + Value: lit, + Type: lt, ShortDescription: ga.Description, UserMetadata: nil, MetadataType: ga.MetadataType, @@ -121,6 +129,31 @@ func GormToServiceModel(ga Artifact) (models.Artifact, error) { if p != nil { a.ArtifactId.Dimensions = &core.ArtifactID_Partitions{Partitions: p} } + aSrc := artifact.ArtifactSource{ + NodeId: ga.NodeID, + Principal: ga.Principal, + } + if ga.RetryAttempt != nil { + aSrc.RetryAttempt = *ga.RetryAttempt + } + if ga.WorkflowExecutionID != 0 { + execID := &core.WorkflowExecutionIdentifier{ + Project: ga.ArtifactKey.Project, + Domain: ga.ArtifactKey.Domain, + Name: ga.WorkflowExecution.ExecutionName, + } + aSrc.WorkflowExecution = execID + } + if ga.TaskProject != "" { + aSrc.TaskId = &core.Identifier{ + ResourceType: core.ResourceType_TASK, + Project: ga.TaskProject, + Domain: ga.TaskDomain, + Name: ga.TaskName, + Version: ga.TaskVersion, + } + } + a.Source = &aSrc return models.Artifact{ Artifact: a, diff --git a/flyteartifacts/pkg/db/migrations.go b/flyteartifacts/pkg/db/migrations.go index b09755115e..719d17a8d9 100644 --- a/flyteartifacts/pkg/db/migrations.go +++ b/flyteartifacts/pkg/db/migrations.go @@ -16,12 +16,20 @@ var Migrations = []*gormigrate.Migration{ Domain string `gorm:"uniqueIndex:idx_pdn;index:idx_dom;type:varchar(64)"` Name string `gorm:"uniqueIndex:idx_pdn;index:idx_name;type:varchar(255)"` } + type WorkflowExecution struct { + gorm.Model + ExecutionProject string `gorm:"uniqueIndex:idx_we_pdn;index:idx_we_proj;type:varchar(64)"` + ExecutionDomain string `gorm:"uniqueIndex:idx_we_pdn;index:idx_we_dom;type:varchar(64)"` + ExecutionName string `gorm:"uniqueIndex:idx_we_pdn;index:idx_we_name;type:varchar(255)"` + InputArtifacts []Artifact `gorm:"many2many:execution_inputs;"` + } + type Artifact struct { gorm.Model - ArtifactKeyID uint `gorm:"uniqueIndex:idx_pdnv"` - ArtifactKey ArtifactKey `gorm:"foreignKey:ArtifactKeyID;references:ID"` - Version string `gorm:"type:varchar(255);index:idx_artifact_version;uniqueIndex:idx_pdnv"` - Partitions *pgtype.Hstore `gorm:"type:hstore;index:idx_artifact_partitions"` + ArtifactKeyID uint `gorm:"not null;uniqueIndex:idx_artifact_version"` + ArtifactKey ArtifactKey `gorm:"foreignKey:ArtifactKeyID;references:ID"` + Version string `gorm:"not null;type:varchar(255);uniqueIndex:idx_artifact_version"` + Partitions pgtype.Hstore `gorm:"type:hstore;index:idx_artifact_partitions"` LiteralType []byte `gorm:"not null"` LiteralValue []byte `gorm:"not null"` @@ -30,8 +38,10 @@ var Migrations = []*gormigrate.Migration{ MetadataType string `gorm:"type:varchar(64)"` OffloadedUserMetadata string `gorm:"type:varchar(255)"` - // Project/Domain assumed to always be the same as the Artifact - ExecutionName string `gorm:"type:varchar(255)"` + WorkflowExecutionID uint `gorm:"index:idx_artifact_wf_exec_id"` + WorkflowExecution WorkflowExecution `gorm:"foreignKey:WorkflowExecutionID;references:ID"` + NodeID string `gorm:"type:varchar(128)"` + WorkflowProject string `gorm:"type:varchar(64)"` WorkflowDomain string `gorm:"type:varchar(64)"` WorkflowName string `gorm:"type:varchar(255)"` @@ -40,14 +50,22 @@ var Migrations = []*gormigrate.Migration{ TaskDomain string `gorm:"type:varchar(64)"` TaskName string `gorm:"type:varchar(255)"` TaskVersion string `gorm:"type:varchar(255)"` - NodeID string `gorm:"type:varchar(64)"` // See Admin migration for note. // Here nullable in the case of workflow output. RetryAttempt *uint32 + + Principal string `gorm:"type:varchar(256)"` } - return tx.AutoMigrate( - &ArtifactKey{}, &Artifact{}, + err := tx.AutoMigrate( + &ArtifactKey{}, &Artifact{}, &WorkflowExecution{}, ) + if err != nil { + return err + } + + tx.Exec("CREATE INDEX idx_gin_artifact_partitions ON artifacts USING GIN (partitions)") + tx.Exec("CREATE INDEX idx_created_at ON artifacts (created_at desc)") + return tx.Error }, Rollback: func(tx *gorm.DB) error { return tx.Migrator().DropTable( diff --git a/flyteartifacts/pkg/db/querying_test.go b/flyteartifacts/pkg/db/querying_test.go new file mode 100644 index 0000000000..fd9ff014e4 --- /dev/null +++ b/flyteartifacts/pkg/db/querying_test.go @@ -0,0 +1,350 @@ +package db + +import ( + "context" + "database/sql" + "fmt" + "github.com/DATA-DOG/go-sqlmock" + "github.com/flyteorg/flyte/flyteartifacts/pkg/models" + "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/artifact" + "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + "github.com/flyteorg/flyte/flytestdlib/database" + "github.com/flyteorg/flyte/flytestdlib/promutils" + "github.com/stretchr/testify/assert" + "testing" + + "gorm.io/driver/postgres" + "gorm.io/gorm" +) + +func getMockRds(t *testing.T) (*sql.DB, sqlmock.Sqlmock, RDSStorage) { + dbCfg := database.DbConfig{} + + mockDb, mock, err := sqlmock.New() + assert.NoError(t, err) + dialector := postgres.New(postgres.Config{ + Conn: mockDb, + DriverName: "postgres", + }) + db, _ := gorm.Open(dialector, &gorm.Config{}) + + scope := promutils.NewTestScope() + rds := RDSStorage{ + config: dbCfg, + db: db, + metrics: newMetrics(scope), + } + return mockDb, mock, rds +} + +func TestQuery1(t *testing.T) { + ctx := context.Background() + + mockDb, mock, rds := getMockRds(t) + defer func(mockDb *sql.DB) { + err := mockDb.Close() + assert.NoError(t, err) + }(mockDb) + + //rows := sqlmock.NewRows([]string{"Code", "Price"}).AddRow("D43", 100) + //mock.ExpectQuery(`SELECT`).WillReturnRows(rows) + + query := core.ArtifactQuery{ + Identifier: &core.ArtifactQuery_ArtifactId{ + ArtifactId: &core.ArtifactID{ + ArtifactKey: &core.ArtifactKey{ + Project: "pp", + Domain: "dd", + Name: "nn", + }, + Version: "abc", + Dimensions: nil, + }, + }, + } + _, err := rds.GetArtifact(ctx, query) + assert.NoError(t, err) + + //mock.ExpectQuery("SELECT") + mock.ExpectClose() +} + +func TestQuery2_Create(t *testing.T) { + ctx := context.Background() + + mockDb, mock, rds := getMockRds(t) + defer func(mockDb *sql.DB) { + err := mockDb.Close() + assert.NoError(t, err) + }(mockDb) + + a := artifact.Artifact{ + ArtifactId: &core.ArtifactID{ + ArtifactKey: &core.ArtifactKey{ + Project: "pp", + Domain: "dd", + Name: "nn", + }, + Version: "abc", + Dimensions: nil, + }, + Spec: &artifact.ArtifactSpec{ + Value: nil, + Type: nil, + }, + Source: &artifact.ArtifactSource{ + WorkflowExecution: &core.WorkflowExecutionIdentifier{ + Project: "pp", + Domain: "dd", + Name: "artifact_name", + }, + NodeId: "node1", + Principal: "foo", + }, + } + + mock.ExpectBegin() + _, err := rds.CreateArtifact(ctx, models.Artifact{ + Artifact: a, + LiteralTypeBytes: []byte("hello"), + LiteralValueBytes: []byte("world"), + }) + assert.NoError(t, err) + + //mock.ExpectQuery("SELECT") + mock.ExpectClose() +} + +func TestQuery3_Find(t *testing.T) { + ctx := context.Background() + + mockDb, mock, rds := getMockRds(t) + defer func(mockDb *sql.DB) { + err := mockDb.Close() + assert.NoError(t, err) + }(mockDb) + + p := models.PartitionsToIdl(map[string]string{"region": "LAX"}) + + s := artifact.SearchArtifactsRequest{ + ArtifactKey: &core.ArtifactKey{ + Domain: "development", + }, + Partitions: p, + Principal: "", + Version: "", + Options: nil, + } + + res, ct, err := rds.SearchArtifacts(ctx, s) + assert.NoError(t, err) + + fmt.Println(res, ct) + + s = artifact.SearchArtifactsRequest{ + ArtifactKey: &core.ArtifactKey{ + Domain: "development", + }, + Partitions: p, + Principal: "", + Version: "", + Options: &artifact.SearchOptions{ + StrictPartitions: true, + }, + } + + res, ct, err = rds.SearchArtifacts(ctx, s) + assert.NoError(t, err) + + s = artifact.SearchArtifactsRequest{ + ArtifactKey: &core.ArtifactKey{ + Domain: "development", + }, + Principal: "abc", + Version: "vxyz", + Options: &artifact.SearchOptions{ + StrictPartitions: true, + }, + } + + res, ct, err = rds.SearchArtifacts(ctx, s) + assert.NoError(t, err) + + fmt.Println(res, ct) + + mock.ExpectClose() +} + +func TestQuery4_Find(t *testing.T) { + ctx := context.Background() + + mockDb, mock, rds := getMockRds(t) + defer func(mockDb *sql.DB) { + err := mockDb.Close() + assert.NoError(t, err) + }(mockDb) + + s := artifact.SearchArtifactsRequest{ + ArtifactKey: &core.ArtifactKey{ + Domain: "development", + }, + Principal: "", + Version: "", + Options: nil, + } + + res, ct, err := rds.SearchArtifacts(ctx, s) + assert.NoError(t, err) + + fmt.Println(res, ct) + + mock.ExpectClose() +} + +func TestQuery5_Find(t *testing.T) { + ctx := context.Background() + + mockDb, mock, rds := getMockRds(t) + defer func(mockDb *sql.DB) { + err := mockDb.Close() + assert.NoError(t, err) + }(mockDb) + + s := artifact.SearchArtifactsRequest{ + ArtifactKey: &core.ArtifactKey{ + Domain: "development", + }, + Principal: "", + Version: "", + Token: "1", + Options: &artifact.SearchOptions{ + LatestByKey: true, + }, + } + + res, ct, err := rds.SearchArtifacts(ctx, s) + assert.NoError(t, err) + + fmt.Println(res, ct) + + mock.ExpectClose() +} + +func TestLineage1_Input(t *testing.T) { + ctx := context.Background() + + mockDb, mock, rds := getMockRds(t) + defer func(mockDb *sql.DB) { + err := mockDb.Close() + assert.NoError(t, err) + }(mockDb) + + r := artifact.FindByWorkflowExecRequest{ + ExecId: &core.WorkflowExecutionIdentifier{ + Project: "pr", + Domain: "do", + Name: "nnn", + }, + Direction: 0, + } + + res, err := rds.FindByWorkflowExec(ctx, &r) + assert.NoError(t, err) + + fmt.Println(res) + + mock.ExpectClose() +} + +func TestLineage2_Output(t *testing.T) { + ctx := context.Background() + + mockDb, mock, rds := getMockRds(t) + defer func(mockDb *sql.DB) { + err := mockDb.Close() + assert.NoError(t, err) + }(mockDb) + + r := artifact.FindByWorkflowExecRequest{ + ExecId: &core.WorkflowExecutionIdentifier{ + Project: "pr", + Domain: "do", + Name: "nnn", + }, + Direction: 1, + } + + res, err := rds.FindByWorkflowExec(ctx, &r) + assert.NoError(t, err) + + fmt.Println(res) + + mock.ExpectClose() +} + +func TestLineage3_Set(t *testing.T) { + ctx := context.Background() + + mockDb, mock, rds := getMockRds(t) + defer func(mockDb *sql.DB) { + err := mockDb.Close() + assert.NoError(t, err) + }(mockDb) + + ak := core.ArtifactKey{ + Project: "pr", + Domain: "do", + Name: "nnn", + } + ids := []*core.ArtifactID{ + { + ArtifactKey: &ak, + Version: "v1", + }, + { + ArtifactKey: &ak, + Version: "v2", + }, + } + + r := artifact.ExecutionInputsRequest{ + ExecutionId: &core.WorkflowExecutionIdentifier{ + Project: "pr", + Domain: "do", + Name: "nnn", + }, + Inputs: ids, + } + mock.ExpectBegin() + err := rds.SetExecutionInputs(ctx, &r) + assert.NoError(t, err) + mock.ExpectClose() +} + +func TestLineagedd3_Set(t *testing.T) { + mockDb, mock, rds := getMockRds(t) + defer func(mockDb *sql.DB) { + err := mockDb.Close() + assert.NoError(t, err) + }(mockDb) + defer func(mockDb *sql.DB) { + err := mockDb.Close() + assert.NoError(t, err) + }(mockDb) + + type Language struct { + gorm.Model + Name string //`gorm:"uniqueIndex:idx_lang_name"` + } + type User struct { + gorm.Model + Name string + Languages []Language `gorm:"many2many:user_languages;"` + } + var userLanguages []Language + var dbUser User + err := rds.db.Model(&dbUser).Where("name = ?", "chinese").Association("Languages").Find(&userLanguages) + + assert.NoError(t, err) + mock.ExpectClose() +} diff --git a/flyteartifacts/pkg/db/storage.go b/flyteartifacts/pkg/db/storage.go index 729a2a27b9..177e9741cb 100644 --- a/flyteartifacts/pkg/db/storage.go +++ b/flyteartifacts/pkg/db/storage.go @@ -7,6 +7,7 @@ import ( "github.com/flyteorg/flyte/flyteartifacts/pkg/configuration" "github.com/flyteorg/flyte/flyteartifacts/pkg/lib" "github.com/flyteorg/flyte/flyteartifacts/pkg/models" + "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/artifact" "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" "github.com/flyteorg/flyte/flytestdlib/database" "github.com/flyteorg/flyte/flytestdlib/logger" @@ -14,6 +15,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" "gorm.io/gorm" + "strconv" ) // RDSStorage should implement StorageInterface @@ -50,12 +52,29 @@ func (r *RDSStorage) CreateArtifact(ctx context.Context, serviceModel models.Art } gormModel.ArtifactKeyID = extantKey.ID gormModel.ArtifactKey = ArtifactKey{} // zero out the artifact key + + if serviceModel.GetSource().GetWorkflowExecution() != nil { + var extantWfExec WorkflowExecution + we := WorkflowExecution{ + ExecutionProject: serviceModel.Artifact.ArtifactId.ArtifactKey.Project, + ExecutionDomain: serviceModel.Artifact.ArtifactId.ArtifactKey.Domain, + ExecutionName: serviceModel.Source.WorkflowExecution.Name, + } + tx.FirstOrCreate(&extantWfExec, we) + if err := tx.Error; err != nil { + logger.Errorf(ctx, "Failed to firstorcreate wf exec: %+v", err) + return err + } + gormModel.WorkflowExecutionID = extantWfExec.ID + gormModel.WorkflowExecution = WorkflowExecution{} // zero out the workflow execution + } + tx.Create(&gormModel) if tx.Error != nil { logger.Errorf(ctx, "Failed to create artifact %+v", tx.Error) return tx.Error } - getSaved := tx.Preload("ArtifactKey").First(&gormModel, "id = ?", gormModel.ID) + getSaved := tx.Preload("ArtifactKey").Preload("WorkflowExecution").First(&gormModel, "id = ?", gormModel.ID) if getSaved.Error != nil { logger.Errorf(ctx, "Failed to find artifact that was just saved: %+v", getSaved.Error) return getSaved.Error @@ -97,11 +116,12 @@ func (r *RDSStorage) handleArtifactIdGet(ctx context.Context, artifactID core.Ar Domain: artifactID.ArtifactKey.Domain, Name: artifactID.ArtifactKey.Name, } - db := r.db.Model(&Artifact{}).InnerJoins("ArtifactKey", r.db.Where(&ak)) + db := r.db.Model(&Artifact{}).InnerJoins("ArtifactKey", r.db.Where(&ak)).Joins("WorkflowExecution") if artifactID.Version != "" { db = db.Where("version = ?", artifactID.Version) } + // @eduardo - not actually sure if this is doing a strict match. if artifactID.GetPartitions() != nil && len(artifactID.GetPartitions().GetValue()) > 0 { partitionMap := PartitionsIdlToHstore(artifactID.GetPartitions()) db = db.Where("partitions = ?", partitionMap) @@ -157,8 +177,27 @@ func (r *RDSStorage) CreateTrigger(ctx context.Context, trigger models.Trigger) dbTrigger := ServiceToGormTrigger(trigger) // TODO: Add a check to ensure that the artifact IDs that the trigger is triggering on are unique if more than one. - // Check to see if the trigger key already exists. Create if not + // The first transaction just saves artifact keys, in case there are no artifacts + // yet in the database that the trigger depends on. err := r.db.WithContext(ctx).Transaction(func(tx *gorm.DB) error { + for _, ak := range dbTrigger.RunsOn { + var extantKey ArtifactKey + tx.FirstOrCreate(&extantKey, ak) + if err := tx.Error; err != nil { + logger.Errorf(ctx, "Failed to firstorcreate key: %+v", err) + return err + } + } + return nil + }) + + if err != nil { + logger.Errorf(ctx, "Failed to pre-save artifact keys [%s]: %+v", trigger.Name, err) + return models.Trigger{}, err + } + + // Check to see if the trigger key already exists. Create if not + err = r.db.WithContext(ctx).Transaction(func(tx *gorm.DB) error { var extantKey TriggerKey tx.FirstOrCreate(&extantKey, dbTrigger.TriggerKey) @@ -179,7 +218,7 @@ func (r *RDSStorage) CreateTrigger(ctx context.Context, trigger models.Trigger) } var artifactKeys []ArtifactKey - // should we use tx here? + db := r.db.Model(&ArtifactKey{}).Where(&dbTrigger.RunsOn).Find(&artifactKeys) if db.Error != nil { logger.Errorf(ctx, "Error %v", db.Error) @@ -322,6 +361,190 @@ func (r *RDSStorage) GetTriggersByArtifactKey(ctx context.Context, key core.Arti return modelTriggers, nil } +func (r *RDSStorage) SearchArtifacts(ctx context.Context, request artifact.SearchArtifactsRequest) ([]models.Artifact, string, error) { + + var offset = 0 + var err error + if request.GetToken() != "" { + offset, err = strconv.Atoi(request.GetToken()) + if err != nil { + logger.Errorf(ctx, "Failed to convert offset to int: %+v", err) + return nil, "", err + } + } + + var db *gorm.DB + if request.GetOptions() != nil && request.GetOptions().LatestByKey { + db = r.db.Select(`distinct on ("ArtifactKey"."project", "ArtifactKey"."domain", "ArtifactKey"."name") "artifacts".*`).Model(&Artifact{}) + } else { + db = r.db.Model(&Artifact{}) + } + + if request.GetArtifactKey() != nil { + gormAk := ArtifactKey{ + Project: request.GetArtifactKey().Project, + Domain: request.GetArtifactKey().Domain, + Name: request.GetArtifactKey().Name, + } + db = db.InnerJoins("ArtifactKey", r.db.Where(&gormAk)) + } + + if request.GetOptions() != nil && request.GetOptions().StrictPartitions { + // strict means if partitions is not specified, then partitions is set to empty + if request.GetPartitions() != nil && len(request.GetPartitions().GetValue()) > 0 { + partitionMap := PartitionsIdlToHstore(request.GetPartitions()) + db = db.Where("partitions = ?", partitionMap) + } else { + db = db.Where("partitions is null or partitions = ''") + } + } else { + // make this not-strict, and make the handleArtifactIdGet one strict. + // this should be what the @> comparison does. + if request.GetPartitions() != nil && len(request.GetPartitions().GetValue()) > 0 { + partitionMap := PartitionsIdlToHstore(request.GetPartitions()) + db = db.Where("partitions @> ?", partitionMap) + } + } + + if request.Principal != "" { + db = db.Where("principal = ?", request.Principal) + } + + if request.Version != "" { + db = db.Where("version = ?", request.Version) + } + + var limit = 10 + if request.Limit != 0 { + limit = int(request.Limit) + } + if request.GetOptions() != nil && request.GetOptions().LatestByKey { + db.Order(`"ArtifactKey"."project", "ArtifactKey"."domain", "ArtifactKey"."name", created_at desc`) + } else { + db.Order("created_at desc") + } + + var results []Artifact + db.Limit(limit).Offset(offset).Find(&results) + + if len(results) == 0 { + logger.Debugf(ctx, "No artifacts found for query: %+v", request) + return nil, "", nil + } + var res = make([]models.Artifact, len(results)) + for i, ga := range results { + a, err := GormToServiceModel(ga) + if err != nil { + logger.Errorf(ctx, "Failed to convert %v: %+v", ga, err) + return nil, "", err + } + res[i] = a + } + + return res, fmt.Sprintf("%d", offset+len(res)), nil +} + +func (r *RDSStorage) SetExecutionInputs(ctx context.Context, req *artifact.ExecutionInputsRequest) error { + err := r.db.WithContext(ctx).Transaction(func(tx *gorm.DB) error { + + var newInputs = make([]Artifact, len(req.GetInputs())) + for i, a := range req.GetInputs() { + if a.Version == "" { + return fmt.Errorf("version must be specified for artifact %v", a.ArtifactKey) + } + ak := ArtifactKey{ + Project: a.ArtifactKey.Project, + Domain: a.ArtifactKey.Domain, + Name: a.ArtifactKey.Name, + } + var dbArtifact Artifact + r.db.Model(&Artifact{}).InnerJoins("ArtifactKey", r.db.Where(&ak)).Where("version = ?", a.Version).First(&dbArtifact) + newInputs[i] = dbArtifact + } + we := WorkflowExecution{ + ExecutionProject: req.ExecutionId.Project, + ExecutionDomain: req.ExecutionId.Domain, + ExecutionName: req.ExecutionId.Name, + } + var dbWe WorkflowExecution + // Create the execution if it doesn't exist. When we hit this part, we're keeping track of what artifacts + // an execution used as inputs. We need to create because the execution itself might otherwise never exist + // in the artifact db if it doesn't itself produce artifacts. + tx.FirstOrCreate(&dbWe, we) + if err := tx.Error; err != nil { + logger.Errorf(ctx, "Failed to firstorcreate workflow exec %v: %+v", we, err) + return err + } + + err := tx.Model(&dbWe).Association("InputArtifacts").Append(&newInputs) + + if err != nil { + logger.Errorf(ctx, "Failed to update input artifacts: %+v", err) + return err + } + + return nil + }) + + return err +} + +func (r *RDSStorage) findWorkflowInputs(ctx context.Context, we WorkflowExecution) ([]Artifact, error) { + var usedAsInputs []Artifact + var dbWe WorkflowExecution + err := r.db.Preload("InputArtifacts").Where(we).First(&dbWe).Error + if err != nil { + logger.Errorf(ctx, "The requested workflow execution %v does not exist: %+v", we, err) + return nil, err + } + err = r.db.Model(&dbWe).Association("InputArtifacts").Find(&usedAsInputs) + if err != nil { + logger.Errorf(ctx, "Failed to find artifacts used as inputs for workflow execution %v: %+v", we, err) + return nil, err + } + return usedAsInputs, nil +} + +func (r *RDSStorage) FindByWorkflowExec(ctx context.Context, request *artifact.FindByWorkflowExecRequest) ([]models.Artifact, error) { + we := WorkflowExecution{ + ExecutionProject: request.ExecId.Project, + ExecutionDomain: request.ExecId.Domain, + ExecutionName: request.ExecId.Name, + } + var artifacts []Artifact + var err error + if request.Direction == artifact.FindByWorkflowExecRequest_INPUTS { + // What are the artifacts that this workflow execution used as inputs? + artifacts, err = r.findWorkflowInputs(ctx, we) + } else { + // What artifacts were produced as outputs by this workflow execution? + db := r.db.Model(&Artifact{}).InnerJoins("WorkflowExecution", r.db.Where(&we)) + db.Order("created_at desc").Find(&artifacts) + err = db.Error + } + + if err != nil { + logger.Errorf(ctx, "Failed to find artifacts for workflow execution: %+v", err) + return nil, err + } + + if len(artifacts) == 0 { + logger.Debugf(ctx, "No artifacts found for workflow execution: %+v", request) + return nil, nil + } + var res = make([]models.Artifact, len(artifacts)) + for i, ga := range artifacts { + a, err := GormToServiceModel(ga) + if err != nil { + logger.Errorf(ctx, "Failed to convert %v: %+v", ga, err) + return nil, err + } + res[i] = a + } + + return res, nil +} + func NewStorage(ctx context.Context, scope promutils.Scope) *RDSStorage { dbCfg := configuration.ApplicationConfig.GetConfig().(*configuration.ApplicationConfiguration).ArtifactDatabaseConfig logConfig := logger.GetConfig() diff --git a/flyteartifacts/pkg/db/storage_test.go b/flyteartifacts/pkg/db/storage_test.go index 5dac063128..ef99d160b1 100644 --- a/flyteartifacts/pkg/db/storage_test.go +++ b/flyteartifacts/pkg/db/storage_test.go @@ -53,27 +53,25 @@ func TestBasicWrite(t *testing.T) { Domain: "unit", Name: "artfname 10", } - spec := &artifact.ArtifactSpec{ - Value: lit, - Type: lt, - TaskExecution: &core.TaskExecutionIdentifier{ - TaskId: &core.Identifier{ - ResourceType: core.ResourceType_TASK, - Project: "demotst", - Domain: "unit", - Name: "testtaskname 2", - Version: "testtaskversion", - }, - NodeExecutionId: &core.NodeExecutionIdentifier{ - NodeId: "testnodeid", - }, - }, - Execution: &core.WorkflowExecutionIdentifier{ + source := &artifact.ArtifactSource{ + WorkflowExecution: &core.WorkflowExecutionIdentifier{ Project: "demotst", Domain: "unit", Name: "exectest1", }, - Principal: "userone", + Principal: "userone", + NodeId: "testnodeid", + TaskId: &core.Identifier{ + ResourceType: core.ResourceType_TASK, + Project: "demotst", + Domain: "unit", + Name: "testtaskname 2", + Version: "testtaskversion", + }, + } + spec := &artifact.ArtifactSpec{ + Value: lit, + Type: lt, ShortDescription: "", UserMetadata: nil, MetadataType: "", @@ -84,7 +82,7 @@ func TestBasicWrite(t *testing.T) { } // Create one - am, err := models.CreateArtifactModelFromRequest(ctx, ak, spec, "abc123/1/n0/1", partitions, "tag", "principal") + am, err := models.CreateArtifactModelFromRequest(ctx, ak, spec, "abc123/1/n0/1", partitions, "tag", source) assert.NoError(t, err) newModel, err := rds.CreateArtifact(ctx, am) @@ -92,7 +90,7 @@ func TestBasicWrite(t *testing.T) { fmt.Println(newModel) // Create another - am, err = models.CreateArtifactModelFromRequest(ctx, ak, spec, "abc123/1/n0/2", partitions, "tag", "principal") + am, err = models.CreateArtifactModelFromRequest(ctx, ak, spec, "abc123/1/n0/2", partitions, "tag", source) assert.NoError(t, err) newModel, err = rds.CreateArtifact(ctx, am) diff --git a/flyteartifacts/pkg/models/transformers.go b/flyteartifacts/pkg/models/transformers.go index 6b8d3eace4..64cd433cb5 100644 --- a/flyteartifacts/pkg/models/transformers.go +++ b/flyteartifacts/pkg/models/transformers.go @@ -10,7 +10,7 @@ import ( "github.com/golang/protobuf/ptypes" ) -func CreateArtifactModelFromRequest(ctx context.Context, key *core.ArtifactKey, spec *artifact.ArtifactSpec, version string, partitions map[string]string, tag string, principal string) (Artifact, error) { +func CreateArtifactModelFromRequest(ctx context.Context, key *core.ArtifactKey, spec *artifact.ArtifactSpec, version string, partitions map[string]string, tag string, source *artifact.ArtifactSource) (Artifact, error) { if key == nil || spec == nil { return Artifact{}, fmt.Errorf("key and spec cannot be nil") } @@ -21,7 +21,7 @@ func CreateArtifactModelFromRequest(ctx context.Context, key *core.ArtifactKey, return Artifact{}, fmt.Errorf("spec type and value cannot be nil") } - ex := spec.Execution + ex := source.GetWorkflowExecution() if ex == nil { return Artifact{}, fmt.Errorf("spec execution cannot be nil") } @@ -38,8 +38,9 @@ func CreateArtifactModelFromRequest(ctx context.Context, key *core.ArtifactKey, }, Version: version, }, - Spec: spec, - Tags: []string{tag}, + Spec: spec, + Tags: []string{tag}, + Source: source, } if partitions != nil { @@ -48,9 +49,7 @@ func CreateArtifactModelFromRequest(ctx context.Context, key *core.ArtifactKey, Partitions: cp, } } - if principal != "" { - a.Spec.Principal = principal - } + ltBytes, err := proto.Marshal(spec.Type) if err != nil { logger.Errorf(ctx, "Failed to marshal type for artifact: %+v@%s, err: %v", key, version, err) diff --git a/flyteartifacts/pkg/server/interfaces.go b/flyteartifacts/pkg/server/interfaces.go index 9c63d75080..275b2d8343 100644 --- a/flyteartifacts/pkg/server/interfaces.go +++ b/flyteartifacts/pkg/server/interfaces.go @@ -21,6 +21,12 @@ type StorageInterface interface { GetTriggersByArtifactKey(ctx context.Context, key core.ArtifactKey) ([]models.Trigger, error) // DeleteTrigger(context.Context, models.Trigger) error + + SearchArtifacts(context.Context, artifact.SearchArtifactsRequest) ([]models.Artifact, string, error) + + SetExecutionInputs(ctx context.Context, req *artifact.ExecutionInputsRequest) error + + FindByWorkflowExec(ctx context.Context, request *artifact.FindByWorkflowExecRequest) ([]models.Artifact, error) } type BlobStoreInterface interface { diff --git a/flyteartifacts/pkg/server/processor/events_handler.go b/flyteartifacts/pkg/server/processor/events_handler.go index 6fe718d59c..dd47658f7c 100644 --- a/flyteartifacts/pkg/server/processor/events_handler.go +++ b/flyteartifacts/pkg/server/processor/events_handler.go @@ -39,8 +39,21 @@ func (s *ServiceCallHandler) HandleEvent(ctx context.Context, cloudEvent *event2 } } -func (s *ServiceCallHandler) HandleEventExecStart(_ context.Context, _ *event.CloudEventExecutionStart) error { - // metric +func (s *ServiceCallHandler) HandleEventExecStart(ctx context.Context, evt *event.CloudEventExecutionStart) error { + + if len(evt.ArtifactIds) > 0 { + // metric + req := &artifact.ExecutionInputsRequest{ + ExecutionId: evt.ExecutionId, + Inputs: evt.ArtifactIds, + } + _, err := s.service.SetExecutionInputs(ctx, req) + if err != nil { + logger.Errorf(ctx, "failed to set execution inputs for [%v] with error: %v", evt.ExecutionId, err) + return err + } + } + return nil } @@ -71,10 +84,15 @@ func (s *ServiceCallHandler) HandleEventWorkflowExec(ctx context.Context, source } output.Metadata[lib.ArtifactKey] = trackingTag + aSrc := &artifact.ArtifactSource{ + WorkflowExecution: execID, + NodeId: "end-node", + Principal: evt.Principal, + } + spec := artifact.ArtifactSpec{ - Value: output, - Type: evt.OutputInterface.Outputs.Variables[varName].Type, - Execution: execID, + Value: output, + Type: evt.OutputInterface.Outputs.Variables[varName].Type, } partitions, tag, err := getPartitionsAndTag( @@ -99,6 +117,7 @@ func (s *ServiceCallHandler) HandleEventWorkflowExec(ctx context.Context, source Spec: &spec, Partitions: partitions, Tag: tag, + Source: aSrc, } resp, err := s.service.CreateArtifact(ctx, &req) @@ -217,7 +236,6 @@ func (s *ServiceCallHandler) HandleEventNodeExec(ctx context.Context, source str var taskExecID *core.TaskExecutionIdentifier if taskExecID = evt.GetTaskExecId(); taskExecID == nil { logger.Debugf(ctx, "No task execution id to process for task event from [%s] node %s", execID, evt.RawEvent.Id.NodeId) - return nil } // See note on the cloudevent_publisher side, we'll have to call one of the get data endpoints to get the actual data @@ -239,11 +257,20 @@ func (s *ServiceCallHandler) HandleEventNodeExec(ctx context.Context, source str } output.Metadata[lib.ArtifactKey] = trackingTag + aSrc := &artifact.ArtifactSource{ + WorkflowExecution: execID, + NodeId: evt.RawEvent.Id.NodeId, + Principal: evt.Principal, + } + + if taskExecID != nil { + aSrc.RetryAttempt = taskExecID.RetryAttempt + aSrc.TaskId = taskExecID.TaskId + } + spec := artifact.ArtifactSpec{ - Value: output, - Type: evt.OutputInterface.Outputs.Variables[varName].Type, - TaskExecution: taskExecID, - Execution: execID, + Value: output, + Type: evt.OutputInterface.Outputs.Variables[varName].Type, } partitions, tag, err := getPartitionsAndTag( @@ -268,6 +295,7 @@ func (s *ServiceCallHandler) HandleEventNodeExec(ctx context.Context, source str Spec: &spec, Partitions: partitions, Tag: tag, + Source: aSrc, } resp, err := s.service.CreateArtifact(ctx, &req) diff --git a/flyteartifacts/pkg/server/server.go b/flyteartifacts/pkg/server/server.go index f1c2ec9f52..6ae88c312c 100644 --- a/flyteartifacts/pkg/server/server.go +++ b/flyteartifacts/pkg/server/server.go @@ -71,6 +71,13 @@ func (a *ArtifactService) RegisterConsumer(ctx context.Context, req *artifact.Re return a.Service.RegisterConsumer(ctx, req) } +func (a *ArtifactService) SetExecutionInputs(ctx context.Context, req *artifact.ExecutionInputsRequest) (*artifact.ExecutionInputsResponse, error) { + return a.Service.SetExecutionInputs(ctx, req) +} + +func (a *ArtifactService) FindByWorkflowExec(ctx context.Context, req *artifact.FindByWorkflowExecRequest) (*artifact.SearchArtifactsResponse, error) { + return a.Service.FindByWorkflowExec(ctx, req) +} func (a *ArtifactService) runProcessor(ctx context.Context) { for { select { diff --git a/flyteartifacts/pkg/server/service.go b/flyteartifacts/pkg/server/service.go index 216d0d4995..e28124a415 100644 --- a/flyteartifacts/pkg/server/service.go +++ b/flyteartifacts/pkg/server/service.go @@ -17,11 +17,13 @@ type CoreService struct { } func (c *CoreService) CreateArtifact(ctx context.Context, request *artifact.CreateArtifactRequest) (*artifact.CreateArtifactResponse, error) { + + // todo: gatepr _ua tracking bit to be installed if request == nil { return nil, nil } - artifactObj, err := models.CreateArtifactModelFromRequest(ctx, request.ArtifactKey, request.Spec, request.Version, request.Partitions, request.Tag, request.Spec.Principal) + artifactObj, err := models.CreateArtifactModelFromRequest(ctx, request.ArtifactKey, request.Spec, request.Version, request.Partitions, request.Tag, request.Source) if err != nil { logger.Errorf(ctx, "Failed to validate Create request: %v", err) return nil, err @@ -110,15 +112,48 @@ func (c *CoreService) RegisterConsumer(ctx context.Context, request *artifact.Re } func (c *CoreService) SearchArtifacts(ctx context.Context, request *artifact.SearchArtifactsRequest) (*artifact.SearchArtifactsResponse, error) { - // This is demo test code, will be deleted. logger.Infof(ctx, "SearchArtifactsRequest: %+v", request) - triggers, err := c.Storage.GetTriggersByArtifactKey(ctx, *request.ArtifactKey) + found, continuationToken, err := c.Storage.SearchArtifacts(ctx, *request) if err != nil { - logger.Errorf(ctx, "delete me Failed to get triggers by artifact key [%+v]: %v", request.ArtifactKey, err) + logger.Errorf(ctx, "Failed search [%+v]: %v", request, err) return nil, err } - fmt.Println(triggers) - return &artifact.SearchArtifactsResponse{}, nil + if len(found) == 0 { + return &artifact.SearchArtifactsResponse{}, fmt.Errorf("no artifacts found") + } + var as []*artifact.Artifact + for _, m := range found { + as = append(as, &m.Artifact) + } + return &artifact.SearchArtifactsResponse{ + Artifacts: as, + Token: continuationToken, + }, nil +} + +func (c *CoreService) SetExecutionInputs(ctx context.Context, req *artifact.ExecutionInputsRequest) (*artifact.ExecutionInputsResponse, error) { + err := c.Storage.SetExecutionInputs(ctx, req) + + return &artifact.ExecutionInputsResponse{}, err +} + +func (c *CoreService) FindByWorkflowExec(ctx context.Context, request *artifact.FindByWorkflowExecRequest) (*artifact.SearchArtifactsResponse, error) { + logger.Infof(ctx, "FindByWorkflowExecRequest: %+v", request) + + res, err := c.Storage.FindByWorkflowExec(ctx, request) + if err != nil { + logger.Errorf(ctx, "Failed to find artifacts by workflow execution: %v", err) + return nil, err + } + var as []*artifact.Artifact + for _, m := range res { + as = append(as, &m.Artifact) + } + resp := artifact.SearchArtifactsResponse{ + Artifacts: as, + } + + return &resp, nil } func NewCoreService(storage StorageInterface, blobStore BlobStoreInterface, _ promutils.Scope) CoreService { diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.cc index 6ce4ed9236..bcf5f3f71a 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.cc @@ -28,6 +28,8 @@ static const char* ArtifactRegistry_method_names[] = { "/flyteidl.artifact.ArtifactRegistry/AddTag", "/flyteidl.artifact.ArtifactRegistry/RegisterProducer", "/flyteidl.artifact.ArtifactRegistry/RegisterConsumer", + "/flyteidl.artifact.ArtifactRegistry/SetExecutionInputs", + "/flyteidl.artifact.ArtifactRegistry/FindByWorkflowExec", }; std::unique_ptr< ArtifactRegistry::Stub> ArtifactRegistry::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -45,6 +47,8 @@ ArtifactRegistry::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& c , rpcmethod_AddTag_(ArtifactRegistry_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_RegisterProducer_(ArtifactRegistry_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_RegisterConsumer_(ArtifactRegistry_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetExecutionInputs_(ArtifactRegistry_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_FindByWorkflowExec_(ArtifactRegistry_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status ArtifactRegistry::Stub::CreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::flyteidl::artifact::CreateArtifactResponse* response) { @@ -271,6 +275,62 @@ ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>* Arti return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::RegisterResponse>::Create(channel_.get(), cq, rpcmethod_RegisterConsumer_, context, request, false); } +::grpc::Status ArtifactRegistry::Stub::SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::flyteidl::artifact::ExecutionInputsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetExecutionInputs_, context, request, response); +} + +void ArtifactRegistry::Stub::experimental_async::SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetExecutionInputs_, context, request, response, std::move(f)); +} + +void ArtifactRegistry::Stub::experimental_async::SetExecutionInputs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ExecutionInputsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetExecutionInputs_, context, request, response, std::move(f)); +} + +void ArtifactRegistry::Stub::experimental_async::SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetExecutionInputs_, context, request, response, reactor); +} + +void ArtifactRegistry::Stub::experimental_async::SetExecutionInputs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ExecutionInputsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetExecutionInputs_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>* ArtifactRegistry::Stub::AsyncSetExecutionInputsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::ExecutionInputsResponse>::Create(channel_.get(), cq, rpcmethod_SetExecutionInputs_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>* ArtifactRegistry::Stub::PrepareAsyncSetExecutionInputsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::ExecutionInputsResponse>::Create(channel_.get(), cq, rpcmethod_SetExecutionInputs_, context, request, false); +} + +::grpc::Status ArtifactRegistry::Stub::FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::flyteidl::artifact::SearchArtifactsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_FindByWorkflowExec_, context, request, response); +} + +void ArtifactRegistry::Stub::experimental_async::FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_FindByWorkflowExec_, context, request, response, std::move(f)); +} + +void ArtifactRegistry::Stub::experimental_async::FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_FindByWorkflowExec_, context, request, response, std::move(f)); +} + +void ArtifactRegistry::Stub::experimental_async::FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_FindByWorkflowExec_, context, request, response, reactor); +} + +void ArtifactRegistry::Stub::experimental_async::FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_FindByWorkflowExec_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* ArtifactRegistry::Stub::AsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::SearchArtifactsResponse>::Create(channel_.get(), cq, rpcmethod_FindByWorkflowExec_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* ArtifactRegistry::Stub::PrepareAsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::SearchArtifactsResponse>::Create(channel_.get(), cq, rpcmethod_FindByWorkflowExec_, context, request, false); +} + ArtifactRegistry::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ArtifactRegistry_method_names[0], @@ -312,6 +372,16 @@ ArtifactRegistry::Service::Service() { ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::RegisterConsumerRequest, ::flyteidl::artifact::RegisterResponse>( std::mem_fn(&ArtifactRegistry::Service::RegisterConsumer), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ArtifactRegistry_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::ExecutionInputsRequest, ::flyteidl::artifact::ExecutionInputsResponse>( + std::mem_fn(&ArtifactRegistry::Service::SetExecutionInputs), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ArtifactRegistry_method_names[9], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::FindByWorkflowExecRequest, ::flyteidl::artifact::SearchArtifactsResponse>( + std::mem_fn(&ArtifactRegistry::Service::FindByWorkflowExec), this))); } ArtifactRegistry::Service::~Service() { @@ -373,6 +443,20 @@ ::grpc::Status ArtifactRegistry::Service::RegisterConsumer(::grpc::ServerContext return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status ArtifactRegistry::Service::SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ArtifactRegistry::Service::FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + } // namespace flyteidl } // namespace artifact diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.h index 2a641788a2..1fbe28eb23 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.h @@ -104,6 +104,20 @@ class ArtifactRegistry final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>> PrepareAsyncRegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>>(PrepareAsyncRegisterConsumerRaw(context, request, cq)); } + virtual ::grpc::Status SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::flyteidl::artifact::ExecutionInputsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ExecutionInputsResponse>> AsyncSetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ExecutionInputsResponse>>(AsyncSetExecutionInputsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ExecutionInputsResponse>> PrepareAsyncSetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ExecutionInputsResponse>>(PrepareAsyncSetExecutionInputsRaw(context, request, cq)); + } + virtual ::grpc::Status FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::flyteidl::artifact::SearchArtifactsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>> AsyncFindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>>(AsyncFindByWorkflowExecRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>> PrepareAsyncFindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>>(PrepareAsyncFindByWorkflowExecRaw(context, request, cq)); + } class experimental_async_interface { public: virtual ~experimental_async_interface() {} @@ -139,6 +153,14 @@ class ArtifactRegistry final { virtual void RegisterConsumer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, std::function) = 0; virtual void RegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; virtual void RegisterConsumer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response, std::function) = 0; + virtual void SetExecutionInputs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ExecutionInputsResponse* response, std::function) = 0; + virtual void SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void SetExecutionInputs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ExecutionInputsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) = 0; + virtual void FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) = 0; + virtual void FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; }; virtual class experimental_async_interface* experimental_async() { return nullptr; } private: @@ -158,6 +180,10 @@ class ArtifactRegistry final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>* PrepareAsyncRegisterProducerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>* AsyncRegisterConsumerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>* PrepareAsyncRegisterConsumerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ExecutionInputsResponse>* AsyncSetExecutionInputsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ExecutionInputsResponse>* PrepareAsyncSetExecutionInputsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>* AsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>* PrepareAsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -218,6 +244,20 @@ class ArtifactRegistry final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>> PrepareAsyncRegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>>(PrepareAsyncRegisterConsumerRaw(context, request, cq)); } + ::grpc::Status SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::flyteidl::artifact::ExecutionInputsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>> AsyncSetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>>(AsyncSetExecutionInputsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>> PrepareAsyncSetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>>(PrepareAsyncSetExecutionInputsRaw(context, request, cq)); + } + ::grpc::Status FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::flyteidl::artifact::SearchArtifactsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>> AsyncFindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>>(AsyncFindByWorkflowExecRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>> PrepareAsyncFindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>>(PrepareAsyncFindByWorkflowExecRaw(context, request, cq)); + } class experimental_async final : public StubInterface::experimental_async_interface { public: @@ -253,6 +293,14 @@ class ArtifactRegistry final { void RegisterConsumer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, std::function) override; void RegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void RegisterConsumer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response, std::function) override; + void SetExecutionInputs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ExecutionInputsResponse* response, std::function) override; + void SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void SetExecutionInputs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ExecutionInputsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) override; + void FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) override; + void FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -280,6 +328,10 @@ class ArtifactRegistry final { ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>* PrepareAsyncRegisterProducerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>* AsyncRegisterConsumerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>* PrepareAsyncRegisterConsumerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>* AsyncSetExecutionInputsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>* PrepareAsyncSetExecutionInputsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* AsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* PrepareAsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_CreateArtifact_; const ::grpc::internal::RpcMethod rpcmethod_GetArtifact_; const ::grpc::internal::RpcMethod rpcmethod_SearchArtifacts_; @@ -288,6 +340,8 @@ class ArtifactRegistry final { const ::grpc::internal::RpcMethod rpcmethod_AddTag_; const ::grpc::internal::RpcMethod rpcmethod_RegisterProducer_; const ::grpc::internal::RpcMethod rpcmethod_RegisterConsumer_; + const ::grpc::internal::RpcMethod rpcmethod_SetExecutionInputs_; + const ::grpc::internal::RpcMethod rpcmethod_FindByWorkflowExec_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -303,6 +357,8 @@ class ArtifactRegistry final { virtual ::grpc::Status AddTag(::grpc::ServerContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response); virtual ::grpc::Status RegisterProducer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response); virtual ::grpc::Status RegisterConsumer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response); + virtual ::grpc::Status SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response); + virtual ::grpc::Status FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response); }; template class WithAsyncMethod_CreateArtifact : public BaseClass { @@ -464,7 +520,47 @@ class ArtifactRegistry final { ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_CreateArtifact > > > > > > > AsyncService; + template + class WithAsyncMethod_SetExecutionInputs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_SetExecutionInputs() { + ::grpc::Service::MarkMethodAsync(8); + } + ~WithAsyncMethod_SetExecutionInputs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetExecutionInputs(::grpc::ServerContext* context, ::flyteidl::artifact::ExecutionInputsRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::ExecutionInputsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_FindByWorkflowExec : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_FindByWorkflowExec() { + ::grpc::Service::MarkMethodAsync(9); + } + ~WithAsyncMethod_FindByWorkflowExec() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestFindByWorkflowExec(::grpc::ServerContext* context, ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::SearchArtifactsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_CreateArtifact > > > > > > > > > AsyncService; template class ExperimentalWithCallbackMethod_CreateArtifact : public BaseClass { private: @@ -713,7 +809,69 @@ class ArtifactRegistry final { } virtual void RegisterConsumer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; - typedef ExperimentalWithCallbackMethod_CreateArtifact > > > > > > > ExperimentalCallbackService; + template + class ExperimentalWithCallbackMethod_SetExecutionInputs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_SetExecutionInputs() { + ::grpc::Service::experimental().MarkMethodCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::ExecutionInputsRequest, ::flyteidl::artifact::ExecutionInputsResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::artifact::ExecutionInputsRequest* request, + ::flyteidl::artifact::ExecutionInputsResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->SetExecutionInputs(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_SetExecutionInputs( + ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::ExecutionInputsRequest, ::flyteidl::artifact::ExecutionInputsResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::ExecutionInputsRequest, ::flyteidl::artifact::ExecutionInputsResponse>*>( + ::grpc::Service::experimental().GetHandler(8)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_SetExecutionInputs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_FindByWorkflowExec : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_FindByWorkflowExec() { + ::grpc::Service::experimental().MarkMethodCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::FindByWorkflowExecRequest, ::flyteidl::artifact::SearchArtifactsResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::artifact::FindByWorkflowExecRequest* request, + ::flyteidl::artifact::SearchArtifactsResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->FindByWorkflowExec(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_FindByWorkflowExec( + ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::FindByWorkflowExecRequest, ::flyteidl::artifact::SearchArtifactsResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::FindByWorkflowExecRequest, ::flyteidl::artifact::SearchArtifactsResponse>*>( + ::grpc::Service::experimental().GetHandler(9)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_FindByWorkflowExec() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_CreateArtifact > > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_CreateArtifact : public BaseClass { private: @@ -851,6 +1009,40 @@ class ArtifactRegistry final { } }; template + class WithGenericMethod_SetExecutionInputs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_SetExecutionInputs() { + ::grpc::Service::MarkMethodGeneric(8); + } + ~WithGenericMethod_SetExecutionInputs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_FindByWorkflowExec : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_FindByWorkflowExec() { + ::grpc::Service::MarkMethodGeneric(9); + } + ~WithGenericMethod_FindByWorkflowExec() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithRawMethod_CreateArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} @@ -1011,6 +1203,46 @@ class ArtifactRegistry final { } }; template + class WithRawMethod_SetExecutionInputs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_SetExecutionInputs() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_SetExecutionInputs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetExecutionInputs(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_FindByWorkflowExec : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_FindByWorkflowExec() { + ::grpc::Service::MarkMethodRaw(9); + } + ~WithRawMethod_FindByWorkflowExec() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestFindByWorkflowExec(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class ExperimentalWithRawCallbackMethod_CreateArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} @@ -1211,6 +1443,56 @@ class ArtifactRegistry final { virtual void RegisterConsumer(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template + class ExperimentalWithRawCallbackMethod_SetExecutionInputs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_SetExecutionInputs() { + ::grpc::Service::experimental().MarkMethodRawCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->SetExecutionInputs(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_SetExecutionInputs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void SetExecutionInputs(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_FindByWorkflowExec : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_FindByWorkflowExec() { + ::grpc::Service::experimental().MarkMethodRawCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->FindByWorkflowExec(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_FindByWorkflowExec() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void FindByWorkflowExec(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template class WithStreamedUnaryMethod_CreateArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} @@ -1370,9 +1652,49 @@ class ArtifactRegistry final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedRegisterConsumer(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::RegisterConsumerRequest,::flyteidl::artifact::RegisterResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_CreateArtifact > > > > > > > StreamedUnaryService; + template + class WithStreamedUnaryMethod_SetExecutionInputs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_SetExecutionInputs() { + ::grpc::Service::MarkMethodStreamed(8, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::ExecutionInputsRequest, ::flyteidl::artifact::ExecutionInputsResponse>(std::bind(&WithStreamedUnaryMethod_SetExecutionInputs::StreamedSetExecutionInputs, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_SetExecutionInputs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSetExecutionInputs(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::ExecutionInputsRequest,::flyteidl::artifact::ExecutionInputsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_FindByWorkflowExec : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_FindByWorkflowExec() { + ::grpc::Service::MarkMethodStreamed(9, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::FindByWorkflowExecRequest, ::flyteidl::artifact::SearchArtifactsResponse>(std::bind(&WithStreamedUnaryMethod_FindByWorkflowExec::StreamedFindByWorkflowExec, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_FindByWorkflowExec() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedFindByWorkflowExec(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::FindByWorkflowExecRequest,::flyteidl::artifact::SearchArtifactsResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_CreateArtifact > > > > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateArtifact > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_CreateArtifact > > > > > > > > > StreamedService; }; } // namespace artifact diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc index 5400d0ebed..ffc2e4816e 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc @@ -18,23 +18,22 @@ extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2flaunch_5fplan_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_LaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CreateArtifactRequest_PartitionsEntry_DoNotUse_flyteidl_2fartifact_2fartifacts_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SearchOptions_flyteidl_2fartifact_2fartifacts_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactConsumer_flyteidl_2fartifact_2fartifacts_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactProducer_flyteidl_2fartifact_2fartifacts_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Partitions_flyteidl_2fcore_2fartifact_5fid_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ArtifactQuery_flyteidl_2fcore_2fartifact_5fid_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fcloudevents_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_CloudEventTaskExecution_flyteidl_2fevent_2fcloudevents_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fcloudevents_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_CloudEventNodeExecution_flyteidl_2fevent_2fcloudevents_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fcloudevents_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_CloudEventWorkflowExecution_flyteidl_2fevent_2fcloudevents_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fany_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Any_google_2fprotobuf_2fany_2eproto; namespace flyteidl { namespace artifact { @@ -50,6 +49,10 @@ class CreateArtifactRequestDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _CreateArtifactRequest_default_instance_; +class ArtifactSourceDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ArtifactSource_default_instance_; class ArtifactSpecDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; @@ -66,14 +69,10 @@ class GetArtifactResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _GetArtifactResponse_default_instance_; -class ListArtifactNamesRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ListArtifactNamesRequest_default_instance_; -class ListArtifactNamesResponseDefaultTypeInternal { +class SearchOptionsDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ListArtifactNamesResponse_default_instance_; + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SearchOptions_default_instance_; class SearchArtifactsRequestDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; @@ -82,6 +81,10 @@ class SearchArtifactsResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _SearchArtifactsResponse_default_instance_; +class FindByWorkflowExecRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _FindByWorkflowExecRequest_default_instance_; class AddTagRequestDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; @@ -126,17 +129,14 @@ class RegisterResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _RegisterResponse_default_instance_; -class CloudEventRequestDefaultTypeInternal { +class ExecutionInputsRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::event::CloudEventWorkflowExecution* workflow_execution_event_; - const ::flyteidl::event::CloudEventTaskExecution* task_execution_event_; - const ::flyteidl::event::CloudEventNodeExecution* node_execution_event_; -} _CloudEventRequest_default_instance_; -class CloudEventResponseDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionInputsRequest_default_instance_; +class ExecutionInputsResponseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CloudEventResponse_default_instance_; + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionInputsResponse_default_instance_; } // namespace artifact } // namespace flyteidl static void InitDefaultsArtifact_flyteidl_2fartifact_2fartifacts_2eproto() { @@ -150,10 +150,11 @@ static void InitDefaultsArtifact_flyteidl_2fartifact_2fartifacts_2eproto() { ::flyteidl::artifact::Artifact::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<2> scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsArtifact_flyteidl_2fartifact_2fartifacts_2eproto}, { +::google::protobuf::internal::SCCInfo<3> scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsArtifact_flyteidl_2fartifact_2fartifacts_2eproto}, { &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; + &scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto.base, + &scc_info_ArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; static void InitDefaultsCreateArtifactRequest_PartitionsEntry_DoNotUse_flyteidl_2fartifact_2fartifacts_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -179,11 +180,28 @@ static void InitDefaultsCreateArtifactRequest_flyteidl_2fartifact_2fartifacts_2e ::flyteidl::artifact::CreateArtifactRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<3> scc_info_CreateArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsCreateArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { +::google::protobuf::internal::SCCInfo<4> scc_info_CreateArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsCreateArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { &scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto.base, &scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto.base, - &scc_info_CreateArtifactRequest_PartitionsEntry_DoNotUse_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; + &scc_info_CreateArtifactRequest_PartitionsEntry_DoNotUse_flyteidl_2fartifact_2fartifacts_2eproto.base, + &scc_info_ArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; + +static void InitDefaultsArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::artifact::_ArtifactSource_default_instance_; + new (ptr) ::flyteidl::artifact::ArtifactSource(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::artifact::ArtifactSource::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; static void InitDefaultsArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -196,12 +214,10 @@ static void InitDefaultsArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto() { ::flyteidl::artifact::ArtifactSpec::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<5> scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto}, { +::google::protobuf::internal::SCCInfo<3> scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto}, { &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base, - &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, &scc_info_Any_google_2fprotobuf_2fany_2eproto.base,}}; static void InitDefaultsCreateArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto() { @@ -249,34 +265,19 @@ ::google::protobuf::internal::SCCInfo<1> scc_info_GetArtifactResponse_flyteidl_2 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto}, { &scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; -static void InitDefaultsListArtifactNamesRequest_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_ListArtifactNamesRequest_default_instance_; - new (ptr) ::flyteidl::artifact::ListArtifactNamesRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::ListArtifactNamesRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ListArtifactNamesRequest_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsListArtifactNamesRequest_flyteidl_2fartifact_2fartifacts_2eproto}, {}}; - -static void InitDefaultsListArtifactNamesResponse_flyteidl_2fartifact_2fartifacts_2eproto() { +static void InitDefaultsSearchOptions_flyteidl_2fartifact_2fartifacts_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyteidl::artifact::_ListArtifactNamesResponse_default_instance_; - new (ptr) ::flyteidl::artifact::ListArtifactNamesResponse(); + void* ptr = &::flyteidl::artifact::_SearchOptions_default_instance_; + new (ptr) ::flyteidl::artifact::SearchOptions(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyteidl::artifact::ListArtifactNamesResponse::InitAsDefaultInstance(); + ::flyteidl::artifact::SearchOptions::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_ListArtifactNamesResponse_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListArtifactNamesResponse_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<0> scc_info_SearchOptions_flyteidl_2fartifact_2fartifacts_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSearchOptions_flyteidl_2fartifact_2fartifacts_2eproto}, {}}; static void InitDefaultsSearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -289,9 +290,11 @@ static void InitDefaultsSearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2 ::flyteidl::artifact::SearchArtifactsRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_SearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<3> scc_info_SearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsSearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { + &scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto.base, + &scc_info_Partitions_flyteidl_2fcore_2fartifact_5fid_2eproto.base, + &scc_info_SearchOptions_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; static void InitDefaultsSearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -308,6 +311,21 @@ ::google::protobuf::internal::SCCInfo<1> scc_info_SearchArtifactsResponse_flytei {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto}, { &scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; +static void InitDefaultsFindByWorkflowExecRequest_flyteidl_2fartifact_2fartifacts_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::artifact::_FindByWorkflowExecRequest_default_instance_; + new (ptr) ::flyteidl::artifact::FindByWorkflowExecRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::artifact::FindByWorkflowExecRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_FindByWorkflowExecRequest_flyteidl_2fartifact_2fartifacts_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFindByWorkflowExecRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + static void InitDefaultsAddTagRequest_flyteidl_2fartifact_2fartifacts_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -471,49 +489,49 @@ static void InitDefaultsRegisterResponse_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RegisterResponse_flyteidl_2fartifact_2fartifacts_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRegisterResponse_flyteidl_2fartifact_2fartifacts_2eproto}, {}}; -static void InitDefaultsCloudEventRequest_flyteidl_2fartifact_2fartifacts_2eproto() { +static void InitDefaultsExecutionInputsRequest_flyteidl_2fartifact_2fartifacts_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyteidl::artifact::_CloudEventRequest_default_instance_; - new (ptr) ::flyteidl::artifact::CloudEventRequest(); + void* ptr = &::flyteidl::artifact::_ExecutionInputsRequest_default_instance_; + new (ptr) ::flyteidl::artifact::ExecutionInputsRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyteidl::artifact::CloudEventRequest::InitAsDefaultInstance(); + ::flyteidl::artifact::ExecutionInputsRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<3> scc_info_CloudEventRequest_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsCloudEventRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_CloudEventWorkflowExecution_flyteidl_2fevent_2fcloudevents_2eproto.base, - &scc_info_CloudEventTaskExecution_flyteidl_2fevent_2fcloudevents_2eproto.base, - &scc_info_CloudEventNodeExecution_flyteidl_2fevent_2fcloudevents_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<2> scc_info_ExecutionInputsRequest_flyteidl_2fartifact_2fartifacts_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsExecutionInputsRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; -static void InitDefaultsCloudEventResponse_flyteidl_2fartifact_2fartifacts_2eproto() { +static void InitDefaultsExecutionInputsResponse_flyteidl_2fartifact_2fartifacts_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyteidl::artifact::_CloudEventResponse_default_instance_; - new (ptr) ::flyteidl::artifact::CloudEventResponse(); + void* ptr = &::flyteidl::artifact::_ExecutionInputsResponse_default_instance_; + new (ptr) ::flyteidl::artifact::ExecutionInputsResponse(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyteidl::artifact::CloudEventResponse::InitAsDefaultInstance(); + ::flyteidl::artifact::ExecutionInputsResponse::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_CloudEventResponse_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCloudEventResponse_flyteidl_2fartifact_2fartifacts_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionInputsResponse_flyteidl_2fartifact_2fartifacts_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExecutionInputsResponse_flyteidl_2fartifact_2fartifacts_2eproto}, {}}; void InitDefaults_flyteidl_2fartifact_2fartifacts_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_CreateArtifactRequest_PartitionsEntry_DoNotUse_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_CreateArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_CreateArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_GetArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_GetArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ListArtifactNamesRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ListArtifactNamesResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SearchOptions_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_SearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_SearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_FindByWorkflowExecRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_AddTagRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_AddTagResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_CreateTriggerRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); @@ -525,12 +543,12 @@ void InitDefaults_flyteidl_2fartifact_2fartifacts_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_ArtifactConsumer_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_RegisterConsumerRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_RegisterResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CloudEventRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CloudEventResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionInputsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionInputsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[24]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fartifact_2fartifacts_2eproto = nullptr; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[25]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fartifact_2fartifacts_2eproto[1]; constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fartifact_2fartifacts_2eproto = nullptr; const ::google::protobuf::uint32 TableStruct_flyteidl_2fartifact_2fartifacts_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { @@ -542,6 +560,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fartifact_2fartifacts_2ep PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::Artifact, artifact_id_), PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::Artifact, spec_), PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::Artifact, tags_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::Artifact, source_), PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ @@ -561,6 +580,17 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fartifact_2fartifacts_2ep PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest, spec_), PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest, partitions_), PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest, tag_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest, source_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSource, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSource, workflow_execution_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSource, node_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSource, task_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSource, retry_attempt_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSource, principal_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSpec, _internal_metadata_), ~0u, // no _extensions_ @@ -568,9 +598,6 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fartifact_2fartifacts_2ep ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSpec, value_), PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSpec, type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSpec, task_execution_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSpec, execution_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSpec, principal_), PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSpec, short_description_), PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSpec, user_metadata_), PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSpec, metadata_type_), @@ -594,25 +621,22 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fartifact_2fartifacts_2ep ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::GetArtifactResponse, artifact_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ListArtifactNamesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ListArtifactNamesRequest, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ListArtifactNamesRequest, domain_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ListArtifactNamesResponse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchOptions, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ListArtifactNamesResponse, artifact_keys_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchOptions, strict_partitions_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchOptions, latest_by_key_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, artifact_key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, filters_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, partitions_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, principal_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, version_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, options_), PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, token_), PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, limit_), ~0u, // no _has_bits_ @@ -621,6 +645,15 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fartifact_2fartifacts_2ep ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsResponse, artifacts_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsResponse, token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::FindByWorkflowExecRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::FindByWorkflowExecRequest, exec_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::FindByWorkflowExecRequest, direction_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::FindByWorkflowExecRequest, fetch_specs_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::AddTagRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -688,59 +721,59 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fartifact_2fartifacts_2ep ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CloudEventRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ExecutionInputsRequest, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CloudEventRequest, _oneof_case_[0]), + ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - offsetof(::flyteidl::artifact::CloudEventRequestDefaultTypeInternal, workflow_execution_event_), - offsetof(::flyteidl::artifact::CloudEventRequestDefaultTypeInternal, task_execution_event_), - offsetof(::flyteidl::artifact::CloudEventRequestDefaultTypeInternal, node_execution_event_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CloudEventRequest, event_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ExecutionInputsRequest, execution_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ExecutionInputsRequest, inputs_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CloudEventResponse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ExecutionInputsResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::artifact::Artifact)}, - { 8, 15, sizeof(::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse)}, - { 17, -1, sizeof(::flyteidl::artifact::CreateArtifactRequest)}, - { 27, -1, sizeof(::flyteidl::artifact::ArtifactSpec)}, - { 40, -1, sizeof(::flyteidl::artifact::CreateArtifactResponse)}, - { 46, -1, sizeof(::flyteidl::artifact::GetArtifactRequest)}, - { 53, -1, sizeof(::flyteidl::artifact::GetArtifactResponse)}, - { 59, -1, sizeof(::flyteidl::artifact::ListArtifactNamesRequest)}, - { 66, -1, sizeof(::flyteidl::artifact::ListArtifactNamesResponse)}, - { 72, -1, sizeof(::flyteidl::artifact::SearchArtifactsRequest)}, - { 81, -1, sizeof(::flyteidl::artifact::SearchArtifactsResponse)}, - { 87, -1, sizeof(::flyteidl::artifact::AddTagRequest)}, - { 95, -1, sizeof(::flyteidl::artifact::AddTagResponse)}, - { 100, -1, sizeof(::flyteidl::artifact::CreateTriggerRequest)}, - { 106, -1, sizeof(::flyteidl::artifact::CreateTriggerResponse)}, - { 111, -1, sizeof(::flyteidl::artifact::DeleteTriggerRequest)}, - { 117, -1, sizeof(::flyteidl::artifact::DeleteTriggerResponse)}, - { 122, -1, sizeof(::flyteidl::artifact::ArtifactProducer)}, - { 129, -1, sizeof(::flyteidl::artifact::RegisterProducerRequest)}, - { 135, -1, sizeof(::flyteidl::artifact::ArtifactConsumer)}, - { 142, -1, sizeof(::flyteidl::artifact::RegisterConsumerRequest)}, - { 148, -1, sizeof(::flyteidl::artifact::RegisterResponse)}, - { 153, -1, sizeof(::flyteidl::artifact::CloudEventRequest)}, - { 162, -1, sizeof(::flyteidl::artifact::CloudEventResponse)}, + { 9, 16, sizeof(::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse)}, + { 18, -1, sizeof(::flyteidl::artifact::CreateArtifactRequest)}, + { 29, -1, sizeof(::flyteidl::artifact::ArtifactSource)}, + { 39, -1, sizeof(::flyteidl::artifact::ArtifactSpec)}, + { 49, -1, sizeof(::flyteidl::artifact::CreateArtifactResponse)}, + { 55, -1, sizeof(::flyteidl::artifact::GetArtifactRequest)}, + { 62, -1, sizeof(::flyteidl::artifact::GetArtifactResponse)}, + { 68, -1, sizeof(::flyteidl::artifact::SearchOptions)}, + { 75, -1, sizeof(::flyteidl::artifact::SearchArtifactsRequest)}, + { 87, -1, sizeof(::flyteidl::artifact::SearchArtifactsResponse)}, + { 94, -1, sizeof(::flyteidl::artifact::FindByWorkflowExecRequest)}, + { 102, -1, sizeof(::flyteidl::artifact::AddTagRequest)}, + { 110, -1, sizeof(::flyteidl::artifact::AddTagResponse)}, + { 115, -1, sizeof(::flyteidl::artifact::CreateTriggerRequest)}, + { 121, -1, sizeof(::flyteidl::artifact::CreateTriggerResponse)}, + { 126, -1, sizeof(::flyteidl::artifact::DeleteTriggerRequest)}, + { 132, -1, sizeof(::flyteidl::artifact::DeleteTriggerResponse)}, + { 137, -1, sizeof(::flyteidl::artifact::ArtifactProducer)}, + { 144, -1, sizeof(::flyteidl::artifact::RegisterProducerRequest)}, + { 150, -1, sizeof(::flyteidl::artifact::ArtifactConsumer)}, + { 157, -1, sizeof(::flyteidl::artifact::RegisterConsumerRequest)}, + { 163, -1, sizeof(::flyteidl::artifact::RegisterResponse)}, + { 168, -1, sizeof(::flyteidl::artifact::ExecutionInputsRequest)}, + { 175, -1, sizeof(::flyteidl::artifact::ExecutionInputsResponse)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::artifact::_Artifact_default_instance_), reinterpret_cast(&::flyteidl::artifact::_CreateArtifactRequest_PartitionsEntry_DoNotUse_default_instance_), reinterpret_cast(&::flyteidl::artifact::_CreateArtifactRequest_default_instance_), + reinterpret_cast(&::flyteidl::artifact::_ArtifactSource_default_instance_), reinterpret_cast(&::flyteidl::artifact::_ArtifactSpec_default_instance_), reinterpret_cast(&::flyteidl::artifact::_CreateArtifactResponse_default_instance_), reinterpret_cast(&::flyteidl::artifact::_GetArtifactRequest_default_instance_), reinterpret_cast(&::flyteidl::artifact::_GetArtifactResponse_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_ListArtifactNamesRequest_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_ListArtifactNamesResponse_default_instance_), + reinterpret_cast(&::flyteidl::artifact::_SearchOptions_default_instance_), reinterpret_cast(&::flyteidl::artifact::_SearchArtifactsRequest_default_instance_), reinterpret_cast(&::flyteidl::artifact::_SearchArtifactsResponse_default_instance_), + reinterpret_cast(&::flyteidl::artifact::_FindByWorkflowExecRequest_default_instance_), reinterpret_cast(&::flyteidl::artifact::_AddTagRequest_default_instance_), reinterpret_cast(&::flyteidl::artifact::_AddTagResponse_default_instance_), reinterpret_cast(&::flyteidl::artifact::_CreateTriggerRequest_default_instance_), @@ -752,14 +785,14 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::artifact::_ArtifactConsumer_default_instance_), reinterpret_cast(&::flyteidl::artifact::_RegisterConsumerRequest_default_instance_), reinterpret_cast(&::flyteidl::artifact::_RegisterResponse_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_CloudEventRequest_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_CloudEventResponse_default_instance_), + reinterpret_cast(&::flyteidl::artifact::_ExecutionInputsRequest_default_instance_), + reinterpret_cast(&::flyteidl::artifact::_ExecutionInputsResponse_default_instance_), }; ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto = { {}, AddDescriptors_flyteidl_2fartifact_2fartifacts_2eproto, "flyteidl/artifact/artifacts.proto", schemas, file_default_instances, TableStruct_flyteidl_2fartifact_2fartifacts_2eproto::offsets, - file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto, 24, file_level_enum_descriptors_flyteidl_2fartifact_2fartifacts_2eproto, file_level_service_descriptors_flyteidl_2fartifact_2fartifacts_2eproto, + file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto, 25, file_level_enum_descriptors_flyteidl_2fartifact_2fartifacts_2eproto, file_level_service_descriptors_flyteidl_2fartifact_2fartifacts_2eproto, }; const char descriptor_table_protodef_flyteidl_2fartifact_2fartifacts_2eproto[] = @@ -771,86 +804,94 @@ const char descriptor_table_protodef_flyteidl_2fartifact_2fartifacts_2eproto[] = "to\032\036flyteidl/core/identifier.proto\032\037flyt" "eidl/core/artifact_id.proto\032\035flyteidl/co" "re/interface.proto\032 flyteidl/event/cloud" - "events.proto\"w\n\010Artifact\022.\n\013artifact_id\030" - "\001 \001(\0132\031.flyteidl.core.ArtifactID\022-\n\004spec" - "\030\002 \001(\0132\037.flyteidl.artifact.ArtifactSpec\022" - "\014\n\004tags\030\003 \003(\t\"\227\002\n\025CreateArtifactRequest\022" - "0\n\014artifact_key\030\001 \001(\0132\032.flyteidl.core.Ar" - "tifactKey\022\017\n\007version\030\003 \001(\t\022-\n\004spec\030\002 \001(\013" - "2\037.flyteidl.artifact.ArtifactSpec\022L\n\npar" - "titions\030\004 \003(\01328.flyteidl.artifact.Create" - "ArtifactRequest.PartitionsEntry\022\013\n\003tag\030\005" - " \001(\t\0321\n\017PartitionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - "value\030\002 \001(\t:\0028\001\"\320\002\n\014ArtifactSpec\022%\n\005valu" - "e\030\001 \001(\0132\026.flyteidl.core.Literal\022(\n\004type\030" - "\002 \001(\0132\032.flyteidl.core.LiteralType\022>\n\016tas" - "k_execution\030\005 \001(\0132&.flyteidl.core.TaskEx" - "ecutionIdentifier\022=\n\texecution\030\006 \001(\0132*.f" - "lyteidl.core.WorkflowExecutionIdentifier" - "\022\021\n\tprincipal\030\007 \001(\t\022\031\n\021short_description" - "\030\010 \001(\t\022+\n\ruser_metadata\030\n \001(\0132\024.google.p" - "rotobuf.Any\022\025\n\rmetadata_type\030\013 \001(\t\"G\n\026Cr" - "eateArtifactResponse\022-\n\010artifact\030\001 \001(\0132\033" - ".flyteidl.artifact.Artifact\"R\n\022GetArtifa" - "ctRequest\022+\n\005query\030\001 \001(\0132\034.flyteidl.core" - ".ArtifactQuery\022\017\n\007details\030\002 \001(\010\"D\n\023GetAr" - "tifactResponse\022-\n\010artifact\030\001 \001(\0132\033.flyte" - "idl.artifact.Artifact\";\n\030ListArtifactNam" - "esRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" - "(\t\"N\n\031ListArtifactNamesResponse\0221\n\rartif" - "act_keys\030\001 \003(\0132\032.flyteidl.core.ArtifactK" - "ey\"y\n\026SearchArtifactsRequest\0220\n\014artifact" - "_key\030\001 \001(\0132\032.flyteidl.core.ArtifactKey\022\017" - "\n\007filters\030\002 \001(\t\022\r\n\005token\030\003 \001(\t\022\r\n\005limit\030" - "\004 \001(\005\"I\n\027SearchArtifactsResponse\022.\n\tarti" - "facts\030\001 \003(\0132\033.flyteidl.artifact.Artifact" - "\"a\n\rAddTagRequest\022.\n\013artifact_id\030\001 \001(\0132\031" - ".flyteidl.core.ArtifactID\022\r\n\005value\030\002 \001(\t" - "\022\021\n\toverwrite\030\003 \001(\010\"\020\n\016AddTagResponse\"O\n" - "\024CreateTriggerRequest\0227\n\023trigger_launch_" - "plan\030\001 \001(\0132\032.flyteidl.admin.LaunchPlan\"\027" - "\n\025CreateTriggerResponse\"E\n\024DeleteTrigger" - "Request\022-\n\ntrigger_id\030\001 \001(\0132\031.flyteidl.c" - "ore.Identifier\"\027\n\025DeleteTriggerResponse\"" - "m\n\020ArtifactProducer\022,\n\tentity_id\030\001 \001(\0132\031" - ".flyteidl.core.Identifier\022+\n\007outputs\030\002 \001" - "(\0132\032.flyteidl.core.VariableMap\"Q\n\027Regist" - "erProducerRequest\0226\n\tproducers\030\001 \003(\0132#.f" - "lyteidl.artifact.ArtifactProducer\"m\n\020Art" - "ifactConsumer\022,\n\tentity_id\030\001 \001(\0132\031.flyte" - "idl.core.Identifier\022+\n\006inputs\030\002 \001(\0132\033.fl" - "yteidl.core.ParameterMap\"Q\n\027RegisterCons" - "umerRequest\0226\n\tconsumers\030\001 \003(\0132#.flyteid" - "l.artifact.ArtifactConsumer\"\022\n\020RegisterR" - "esponse\"\377\001\n\021CloudEventRequest\022O\n\030workflo" - "w_execution_event\030\001 \001(\0132+.flyteidl.event" - ".CloudEventWorkflowExecutionH\000\022G\n\024task_e" - "xecution_event\030\002 \001(\0132\'.flyteidl.event.Cl" - "oudEventTaskExecutionH\000\022G\n\024node_executio" - "n_event\030\003 \001(\0132\'.flyteidl.event.CloudEven" - "tNodeExecutionH\000B\007\n\005event\"\024\n\022CloudEventR" - "esponse2\273\013\n\020ArtifactRegistry\022g\n\016CreateAr" - "tifact\022(.flyteidl.artifact.CreateArtifac" - "tRequest\032).flyteidl.artifact.CreateArtif" - "actResponse\"\000\022\315\004\n\013GetArtifact\022%.flyteidl" - ".artifact.GetArtifactRequest\032&.flyteidl." - "artifact.GetArtifactResponse\"\356\003\202\323\344\223\002\347\003\022\022" - "/data/v1/artifactsZ\252\001\022\247\001/data/v1/artifac" - "t/id/{query.artifact_id.artifact_key.pro" - "ject}/{query.artifact_id.artifact_key.do" - "main}/{query.artifact_id.artifact_key.na" - "me}/{query.artifact_id.version}Z\216\001\022\213\001/da" - "ta/v1/artifact/id/{query.artifact_id.art" - "ifact_key.project}/{query.artifact_id.ar" - "tifact_key.domain}/{query.artifact_id.ar" - "tifact_key.name}Z\222\001\022\217\001/data/v1/artifact/" - "tag/{query.artifact_tag.artifact_key.pro" - "ject}/{query.artifact_tag.artifact_key.d" - "omain}/{query.artifact_tag.artifact_key." - "name}\022\202\002\n\017SearchArtifacts\022).flyteidl.art" - "ifact.SearchArtifactsRequest\032*.flyteidl." - "artifact.SearchArtifactsResponse\"\227\001\202\323\344\223\002" - "\220\001\022O/data/v1/query/{artifact_key.project" + "events.proto\"\252\001\n\010Artifact\022.\n\013artifact_id" + "\030\001 \001(\0132\031.flyteidl.core.ArtifactID\022-\n\004spe" + "c\030\002 \001(\0132\037.flyteidl.artifact.ArtifactSpec" + "\022\014\n\004tags\030\003 \003(\t\0221\n\006source\030\004 \001(\0132!.flyteid" + "l.artifact.ArtifactSource\"\312\002\n\025CreateArti" + "factRequest\0220\n\014artifact_key\030\001 \001(\0132\032.flyt" + "eidl.core.ArtifactKey\022\017\n\007version\030\003 \001(\t\022-" + "\n\004spec\030\002 \001(\0132\037.flyteidl.artifact.Artifac" + "tSpec\022L\n\npartitions\030\004 \003(\01328.flyteidl.art" + "ifact.CreateArtifactRequest.PartitionsEn" + "try\022\013\n\003tag\030\005 \001(\t\0221\n\006source\030\006 \001(\0132!.flyte" + "idl.artifact.ArtifactSource\0321\n\017Partition" + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\277" + "\001\n\016ArtifactSource\022F\n\022workflow_execution\030" + "\001 \001(\0132*.flyteidl.core.WorkflowExecutionI" + "dentifier\022\017\n\007node_id\030\002 \001(\t\022*\n\007task_id\030\003 " + "\001(\0132\031.flyteidl.core.Identifier\022\025\n\rretry_" + "attempt\030\004 \001(\r\022\021\n\tprincipal\030\005 \001(\t\"\276\001\n\014Art" + "ifactSpec\022%\n\005value\030\001 \001(\0132\026.flyteidl.core" + ".Literal\022(\n\004type\030\002 \001(\0132\032.flyteidl.core.L" + "iteralType\022\031\n\021short_description\030\003 \001(\t\022+\n" + "\ruser_metadata\030\004 \001(\0132\024.google.protobuf.A" + "ny\022\025\n\rmetadata_type\030\005 \001(\t\"G\n\026CreateArtif" + "actResponse\022-\n\010artifact\030\001 \001(\0132\033.flyteidl" + ".artifact.Artifact\"R\n\022GetArtifactRequest" + "\022+\n\005query\030\001 \001(\0132\034.flyteidl.core.Artifact" + "Query\022\017\n\007details\030\002 \001(\010\"D\n\023GetArtifactRes" + "ponse\022-\n\010artifact\030\001 \001(\0132\033.flyteidl.artif" + "act.Artifact\"A\n\rSearchOptions\022\031\n\021strict_" + "partitions\030\001 \001(\010\022\025\n\rlatest_by_key\030\002 \001(\010\"" + "\356\001\n\026SearchArtifactsRequest\0220\n\014artifact_k" + "ey\030\001 \001(\0132\032.flyteidl.core.ArtifactKey\022-\n\n" + "partitions\030\002 \001(\0132\031.flyteidl.core.Partiti" + "ons\022\021\n\tprincipal\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\022" + "1\n\007options\030\005 \001(\0132 .flyteidl.artifact.Sea" + "rchOptions\022\r\n\005token\030\006 \001(\t\022\r\n\005limit\030\007 \001(\005" + "\"X\n\027SearchArtifactsResponse\022.\n\tartifacts" + "\030\001 \003(\0132\033.flyteidl.artifact.Artifact\022\r\n\005t" + "oken\030\002 \001(\t\"\336\001\n\031FindByWorkflowExecRequest" + "\022;\n\007exec_id\030\001 \001(\0132*.flyteidl.core.Workfl" + "owExecutionIdentifier\022I\n\tdirection\030\002 \001(\016" + "26.flyteidl.artifact.FindByWorkflowExecR" + "equest.Direction\022\023\n\013fetch_specs\030\003 \001(\010\"$\n" + "\tDirection\022\n\n\006INPUTS\020\000\022\013\n\007OUTPUTS\020\001\"a\n\rA" + "ddTagRequest\022.\n\013artifact_id\030\001 \001(\0132\031.flyt" + "eidl.core.ArtifactID\022\r\n\005value\030\002 \001(\t\022\021\n\to" + "verwrite\030\003 \001(\010\"\020\n\016AddTagResponse\"O\n\024Crea" + "teTriggerRequest\0227\n\023trigger_launch_plan\030" + "\001 \001(\0132\032.flyteidl.admin.LaunchPlan\"\027\n\025Cre" + "ateTriggerResponse\"E\n\024DeleteTriggerReque" + "st\022-\n\ntrigger_id\030\001 \001(\0132\031.flyteidl.core.I" + "dentifier\"\027\n\025DeleteTriggerResponse\"m\n\020Ar" + "tifactProducer\022,\n\tentity_id\030\001 \001(\0132\031.flyt" + "eidl.core.Identifier\022+\n\007outputs\030\002 \001(\0132\032." + "flyteidl.core.VariableMap\"Q\n\027RegisterPro" + "ducerRequest\0226\n\tproducers\030\001 \003(\0132#.flytei" + "dl.artifact.ArtifactProducer\"m\n\020Artifact" + "Consumer\022,\n\tentity_id\030\001 \001(\0132\031.flyteidl.c" + "ore.Identifier\022+\n\006inputs\030\002 \001(\0132\033.flyteid" + "l.core.ParameterMap\"Q\n\027RegisterConsumerR" + "equest\0226\n\tconsumers\030\001 \003(\0132#.flyteidl.art" + "ifact.ArtifactConsumer\"\022\n\020RegisterRespon" + "se\"\205\001\n\026ExecutionInputsRequest\022@\n\014executi" + "on_id\030\001 \001(\0132*.flyteidl.core.WorkflowExec" + "utionIdentifier\022)\n\006inputs\030\002 \003(\0132\031.flytei" + "dl.core.ArtifactID\"\031\n\027ExecutionInputsRes" + "ponse2\365\r\n\020ArtifactRegistry\022g\n\016CreateArti" + "fact\022(.flyteidl.artifact.CreateArtifactR" + "equest\032).flyteidl.artifact.CreateArtifac" + "tResponse\"\000\022\315\004\n\013GetArtifact\022%.flyteidl.a" + "rtifact.GetArtifactRequest\032&.flyteidl.ar" + "tifact.GetArtifactResponse\"\356\003\202\323\344\223\002\347\003\022\022/d" + "ata/v1/artifactsZ\252\001\022\247\001/data/v1/artifact/" + "id/{query.artifact_id.artifact_key.proje" + "ct}/{query.artifact_id.artifact_key.doma" + "in}/{query.artifact_id.artifact_key.name" + "}/{query.artifact_id.version}Z\216\001\022\213\001/data" + "/v1/artifact/id/{query.artifact_id.artif" + "act_key.project}/{query.artifact_id.arti" + "fact_key.domain}/{query.artifact_id.arti" + "fact_key.name}Z\222\001\022\217\001/data/v1/artifact/ta" + "g/{query.artifact_tag.artifact_key.proje" + "ct}/{query.artifact_tag.artifact_key.dom" + "ain}/{query.artifact_tag.artifact_key.na" + "me}\022\204\002\n\017SearchArtifacts\022).flyteidl.artif" + "act.SearchArtifactsRequest\032*.flyteidl.ar" + "tifact.SearchArtifactsResponse\"\231\001\202\323\344\223\002\222\001" + "\022Q/data/v1/query/s/{artifact_key.project" "}/{artifact_key.domain}/{artifact_key.na" "me}Z=\022;/data/v1/query/{artifact_key.proj" "ect}/{artifact_key.domain}\022d\n\rCreateTrig" @@ -865,14 +906,22 @@ const char descriptor_table_protodef_flyteidl_2fartifact_2fartifacts_2eproto[] = "ProducerRequest\032#.flyteidl.artifact.Regi" "sterResponse\"\000\022e\n\020RegisterConsumer\022*.fly" "teidl.artifact.RegisterConsumerRequest\032#" - ".flyteidl.artifact.RegisterResponse\"\000B@Z" - ">github.com/flyteorg/flyte/flyteidl/gen/" - "pb-go/flyteidl/artifactb\006proto3" + ".flyteidl.artifact.RegisterResponse\"\000\022m\n" + "\022SetExecutionInputs\022).flyteidl.artifact." + "ExecutionInputsRequest\032*.flyteidl.artifa" + "ct.ExecutionInputsResponse\"\000\022\306\001\n\022FindByW" + "orkflowExec\022,.flyteidl.artifact.FindByWo" + "rkflowExecRequest\032*.flyteidl.artifact.Se" + "archArtifactsResponse\"V\202\323\344\223\002P\022N/data/v1/" + "query/e/{exec_id.project}/{exec_id.domai" + "n}/{exec_id.name}/{direction}B@Z>github." + "com/flyteorg/flyte/flyteidl/gen/pb-go/fl" + "yteidl/artifactb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fartifact_2fartifacts_2eproto = { false, InitDefaults_flyteidl_2fartifact_2fartifacts_2eproto, descriptor_table_protodef_flyteidl_2fartifact_2fartifacts_2eproto, - "flyteidl/artifact/artifacts.proto", &assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto, 4191, + "flyteidl/artifact/artifacts.proto", &assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto, 4823, }; void AddDescriptors_flyteidl_2fartifact_2fartifacts_2eproto() { @@ -895,6 +944,27 @@ void AddDescriptors_flyteidl_2fartifact_2fartifacts_2eproto() { static bool dynamic_init_dummy_flyteidl_2fartifact_2fartifacts_2eproto = []() { AddDescriptors_flyteidl_2fartifact_2fartifacts_2eproto(); return true; }(); namespace flyteidl { namespace artifact { +const ::google::protobuf::EnumDescriptor* FindByWorkflowExecRequest_Direction_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); + return file_level_enum_descriptors_flyteidl_2fartifact_2fartifacts_2eproto[0]; +} +bool FindByWorkflowExecRequest_Direction_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const FindByWorkflowExecRequest_Direction FindByWorkflowExecRequest::INPUTS; +const FindByWorkflowExecRequest_Direction FindByWorkflowExecRequest::OUTPUTS; +const FindByWorkflowExecRequest_Direction FindByWorkflowExecRequest::Direction_MIN; +const FindByWorkflowExecRequest_Direction FindByWorkflowExecRequest::Direction_MAX; +const int FindByWorkflowExecRequest::Direction_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 // =================================================================== @@ -903,11 +973,14 @@ void Artifact::InitAsDefaultInstance() { ::flyteidl::core::ArtifactID::internal_default_instance()); ::flyteidl::artifact::_Artifact_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::artifact::ArtifactSpec*>( ::flyteidl::artifact::ArtifactSpec::internal_default_instance()); + ::flyteidl::artifact::_Artifact_default_instance_._instance.get_mutable()->source_ = const_cast< ::flyteidl::artifact::ArtifactSource*>( + ::flyteidl::artifact::ArtifactSource::internal_default_instance()); } class Artifact::HasBitSetters { public: static const ::flyteidl::core::ArtifactID& artifact_id(const Artifact* msg); static const ::flyteidl::artifact::ArtifactSpec& spec(const Artifact* msg); + static const ::flyteidl::artifact::ArtifactSource& source(const Artifact* msg); }; const ::flyteidl::core::ArtifactID& @@ -918,6 +991,10 @@ const ::flyteidl::artifact::ArtifactSpec& Artifact::HasBitSetters::spec(const Artifact* msg) { return *msg->spec_; } +const ::flyteidl::artifact::ArtifactSource& +Artifact::HasBitSetters::source(const Artifact* msg) { + return *msg->source_; +} void Artifact::clear_artifact_id() { if (GetArenaNoVirtual() == nullptr && artifact_id_ != nullptr) { delete artifact_id_; @@ -928,6 +1005,7 @@ void Artifact::clear_artifact_id() { const int Artifact::kArtifactIdFieldNumber; const int Artifact::kSpecFieldNumber; const int Artifact::kTagsFieldNumber; +const int Artifact::kSourceFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Artifact::Artifact() @@ -950,6 +1028,11 @@ Artifact::Artifact(const Artifact& from) } else { spec_ = nullptr; } + if (from.has_source()) { + source_ = new ::flyteidl::artifact::ArtifactSource(*from.source_); + } else { + source_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.Artifact) } @@ -957,8 +1040,8 @@ void Artifact::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto.base); ::memset(&artifact_id_, 0, static_cast( - reinterpret_cast(&spec_) - - reinterpret_cast(&artifact_id_)) + sizeof(spec_)); + reinterpret_cast(&source_) - + reinterpret_cast(&artifact_id_)) + sizeof(source_)); } Artifact::~Artifact() { @@ -969,6 +1052,7 @@ Artifact::~Artifact() { void Artifact::SharedDtor() { if (this != internal_default_instance()) delete artifact_id_; if (this != internal_default_instance()) delete spec_; + if (this != internal_default_instance()) delete source_; } void Artifact::SetCachedSize(int size) const { @@ -995,6 +1079,10 @@ void Artifact::Clear() { delete spec_; } spec_ = nullptr; + if (GetArenaNoVirtual() == nullptr && source_ != nullptr) { + delete source_; + } + source_ = nullptr; _internal_metadata_.Clear(); } @@ -1056,6 +1144,19 @@ const char* Artifact::_InternalParse(const char* begin, const char* end, void* o } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); break; } + // .flyteidl.artifact.ArtifactSource source = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::artifact::ArtifactSource::_InternalParse; + object = msg->mutable_source(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -1128,6 +1229,17 @@ bool Artifact::MergePartialFromCodedStream( break; } + // .flyteidl.artifact.ArtifactSource source = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_source())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: if (tag == 0) { @@ -1177,6 +1289,12 @@ void Artifact::SerializeWithCachedSizes( 3, this->tags(i), output); } + // .flyteidl.artifact.ArtifactSource source = 4; + if (this->has_source()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::source(this), output); + } + if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); @@ -1214,6 +1332,13 @@ ::google::protobuf::uint8* Artifact::InternalSerializeWithCachedSizesToArray( WriteStringToArray(3, this->tags(i), target); } + // .flyteidl.artifact.ArtifactSource source = 4; + if (this->has_source()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::source(this), target); + } + if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); @@ -1257,6 +1382,13 @@ size_t Artifact::ByteSizeLong() const { *spec_); } + // .flyteidl.artifact.ArtifactSource source = 4; + if (this->has_source()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *source_); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; @@ -1291,6 +1423,9 @@ void Artifact::MergeFrom(const Artifact& from) { if (from.has_spec()) { mutable_spec()->::flyteidl::artifact::ArtifactSpec::MergeFrom(from.spec()); } + if (from.has_source()) { + mutable_source()->::flyteidl::artifact::ArtifactSource::MergeFrom(from.source()); + } } void Artifact::CopyFrom(const ::google::protobuf::Message& from) { @@ -1321,6 +1456,7 @@ void Artifact::InternalSwap(Artifact* other) { tags_.InternalSwap(CastToBase(&other->tags_)); swap(artifact_id_, other->artifact_id_); swap(spec_, other->spec_); + swap(source_, other->source_); } ::google::protobuf::Metadata Artifact::GetMetadata() const { @@ -1377,11 +1513,14 @@ void CreateArtifactRequest::InitAsDefaultInstance() { ::flyteidl::core::ArtifactKey::internal_default_instance()); ::flyteidl::artifact::_CreateArtifactRequest_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::artifact::ArtifactSpec*>( ::flyteidl::artifact::ArtifactSpec::internal_default_instance()); + ::flyteidl::artifact::_CreateArtifactRequest_default_instance_._instance.get_mutable()->source_ = const_cast< ::flyteidl::artifact::ArtifactSource*>( + ::flyteidl::artifact::ArtifactSource::internal_default_instance()); } class CreateArtifactRequest::HasBitSetters { public: static const ::flyteidl::core::ArtifactKey& artifact_key(const CreateArtifactRequest* msg); static const ::flyteidl::artifact::ArtifactSpec& spec(const CreateArtifactRequest* msg); + static const ::flyteidl::artifact::ArtifactSource& source(const CreateArtifactRequest* msg); }; const ::flyteidl::core::ArtifactKey& @@ -1392,6 +1531,10 @@ const ::flyteidl::artifact::ArtifactSpec& CreateArtifactRequest::HasBitSetters::spec(const CreateArtifactRequest* msg) { return *msg->spec_; } +const ::flyteidl::artifact::ArtifactSource& +CreateArtifactRequest::HasBitSetters::source(const CreateArtifactRequest* msg) { + return *msg->source_; +} void CreateArtifactRequest::clear_artifact_key() { if (GetArenaNoVirtual() == nullptr && artifact_key_ != nullptr) { delete artifact_key_; @@ -1404,6 +1547,7 @@ const int CreateArtifactRequest::kVersionFieldNumber; const int CreateArtifactRequest::kSpecFieldNumber; const int CreateArtifactRequest::kPartitionsFieldNumber; const int CreateArtifactRequest::kTagFieldNumber; +const int CreateArtifactRequest::kSourceFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CreateArtifactRequest::CreateArtifactRequest() @@ -1434,6 +1578,11 @@ CreateArtifactRequest::CreateArtifactRequest(const CreateArtifactRequest& from) } else { spec_ = nullptr; } + if (from.has_source()) { + source_ = new ::flyteidl::artifact::ArtifactSource(*from.source_); + } else { + source_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.CreateArtifactRequest) } @@ -1443,8 +1592,8 @@ void CreateArtifactRequest::SharedCtor() { version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&artifact_key_, 0, static_cast( - reinterpret_cast(&spec_) - - reinterpret_cast(&artifact_key_)) + sizeof(spec_)); + reinterpret_cast(&source_) - + reinterpret_cast(&artifact_key_)) + sizeof(source_)); } CreateArtifactRequest::~CreateArtifactRequest() { @@ -1457,6 +1606,7 @@ void CreateArtifactRequest::SharedDtor() { tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete artifact_key_; if (this != internal_default_instance()) delete spec_; + if (this != internal_default_instance()) delete source_; } void CreateArtifactRequest::SetCachedSize(int size) const { @@ -1485,6 +1635,10 @@ void CreateArtifactRequest::Clear() { delete spec_; } spec_ = nullptr; + if (GetArenaNoVirtual() == nullptr && source_ != nullptr) { + delete source_; + } + source_ = nullptr; _internal_metadata_.Clear(); } @@ -1578,6 +1732,19 @@ const char* CreateArtifactRequest::_InternalParse(const char* begin, const char* ptr += size; break; } + // .flyteidl.artifact.ArtifactSource source = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::artifact::ArtifactSource::_InternalParse; + object = msg->mutable_source(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -1690,6 +1857,17 @@ bool CreateArtifactRequest::MergePartialFromCodedStream( break; } + // .flyteidl.artifact.ArtifactSource source = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_source())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: if (tag == 0) { @@ -1798,6 +1976,12 @@ void CreateArtifactRequest::SerializeWithCachedSizes( 5, this->tag(), output); } + // .flyteidl.artifact.ArtifactSource source = 6; + if (this->has_source()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::source(this), output); + } + if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); @@ -1896,6 +2080,13 @@ ::google::protobuf::uint8* CreateArtifactRequest::InternalSerializeWithCachedSiz 5, this->tag(), target); } + // .flyteidl.artifact.ArtifactSource source = 6; + if (this->has_source()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::source(this), target); + } + if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); @@ -1959,6 +2150,13 @@ size_t CreateArtifactRequest::ByteSizeLong() const { *spec_); } + // .flyteidl.artifact.ArtifactSource source = 6; + if (this->has_source()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *source_); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; @@ -2001,6 +2199,9 @@ void CreateArtifactRequest::MergeFrom(const CreateArtifactRequest& from) { if (from.has_spec()) { mutable_spec()->::flyteidl::artifact::ArtifactSpec::MergeFrom(from.spec()); } + if (from.has_source()) { + mutable_source()->::flyteidl::artifact::ArtifactSource::MergeFrom(from.source()); + } } void CreateArtifactRequest::CopyFrom(const ::google::protobuf::Message& from) { @@ -2035,6 +2236,7 @@ void CreateArtifactRequest::InternalSwap(CreateArtifactRequest* other) { GetArenaNoVirtual()); swap(artifact_key_, other->artifact_key_); swap(spec_, other->spec_); + swap(source_, other->source_); } ::google::protobuf::Metadata CreateArtifactRequest::GetMetadata() const { @@ -2045,209 +2247,132 @@ ::google::protobuf::Metadata CreateArtifactRequest::GetMetadata() const { // =================================================================== -void ArtifactSpec::InitAsDefaultInstance() { - ::flyteidl::artifact::_ArtifactSpec_default_instance_._instance.get_mutable()->value_ = const_cast< ::flyteidl::core::Literal*>( - ::flyteidl::core::Literal::internal_default_instance()); - ::flyteidl::artifact::_ArtifactSpec_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::LiteralType*>( - ::flyteidl::core::LiteralType::internal_default_instance()); - ::flyteidl::artifact::_ArtifactSpec_default_instance_._instance.get_mutable()->task_execution_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( - ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); - ::flyteidl::artifact::_ArtifactSpec_default_instance_._instance.get_mutable()->execution_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( +void ArtifactSource::InitAsDefaultInstance() { + ::flyteidl::artifact::_ArtifactSource_default_instance_._instance.get_mutable()->workflow_execution_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); - ::flyteidl::artifact::_ArtifactSpec_default_instance_._instance.get_mutable()->user_metadata_ = const_cast< ::google::protobuf::Any*>( - ::google::protobuf::Any::internal_default_instance()); + ::flyteidl::artifact::_ArtifactSource_default_instance_._instance.get_mutable()->task_id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); } -class ArtifactSpec::HasBitSetters { +class ArtifactSource::HasBitSetters { public: - static const ::flyteidl::core::Literal& value(const ArtifactSpec* msg); - static const ::flyteidl::core::LiteralType& type(const ArtifactSpec* msg); - static const ::flyteidl::core::TaskExecutionIdentifier& task_execution(const ArtifactSpec* msg); - static const ::flyteidl::core::WorkflowExecutionIdentifier& execution(const ArtifactSpec* msg); - static const ::google::protobuf::Any& user_metadata(const ArtifactSpec* msg); + static const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_execution(const ArtifactSource* msg); + static const ::flyteidl::core::Identifier& task_id(const ArtifactSource* msg); }; -const ::flyteidl::core::Literal& -ArtifactSpec::HasBitSetters::value(const ArtifactSpec* msg) { - return *msg->value_; -} -const ::flyteidl::core::LiteralType& -ArtifactSpec::HasBitSetters::type(const ArtifactSpec* msg) { - return *msg->type_; -} -const ::flyteidl::core::TaskExecutionIdentifier& -ArtifactSpec::HasBitSetters::task_execution(const ArtifactSpec* msg) { - return *msg->task_execution_; -} const ::flyteidl::core::WorkflowExecutionIdentifier& -ArtifactSpec::HasBitSetters::execution(const ArtifactSpec* msg) { - return *msg->execution_; -} -const ::google::protobuf::Any& -ArtifactSpec::HasBitSetters::user_metadata(const ArtifactSpec* msg) { - return *msg->user_metadata_; -} -void ArtifactSpec::clear_value() { - if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { - delete value_; - } - value_ = nullptr; -} -void ArtifactSpec::clear_type() { - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; +ArtifactSource::HasBitSetters::workflow_execution(const ArtifactSource* msg) { + return *msg->workflow_execution_; } -void ArtifactSpec::clear_task_execution() { - if (GetArenaNoVirtual() == nullptr && task_execution_ != nullptr) { - delete task_execution_; - } - task_execution_ = nullptr; +const ::flyteidl::core::Identifier& +ArtifactSource::HasBitSetters::task_id(const ArtifactSource* msg) { + return *msg->task_id_; } -void ArtifactSpec::clear_execution() { - if (GetArenaNoVirtual() == nullptr && execution_ != nullptr) { - delete execution_; +void ArtifactSource::clear_workflow_execution() { + if (GetArenaNoVirtual() == nullptr && workflow_execution_ != nullptr) { + delete workflow_execution_; } - execution_ = nullptr; + workflow_execution_ = nullptr; } -void ArtifactSpec::clear_user_metadata() { - if (GetArenaNoVirtual() == nullptr && user_metadata_ != nullptr) { - delete user_metadata_; +void ArtifactSource::clear_task_id() { + if (GetArenaNoVirtual() == nullptr && task_id_ != nullptr) { + delete task_id_; } - user_metadata_ = nullptr; + task_id_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ArtifactSpec::kValueFieldNumber; -const int ArtifactSpec::kTypeFieldNumber; -const int ArtifactSpec::kTaskExecutionFieldNumber; -const int ArtifactSpec::kExecutionFieldNumber; -const int ArtifactSpec::kPrincipalFieldNumber; -const int ArtifactSpec::kShortDescriptionFieldNumber; -const int ArtifactSpec::kUserMetadataFieldNumber; -const int ArtifactSpec::kMetadataTypeFieldNumber; +const int ArtifactSource::kWorkflowExecutionFieldNumber; +const int ArtifactSource::kNodeIdFieldNumber; +const int ArtifactSource::kTaskIdFieldNumber; +const int ArtifactSource::kRetryAttemptFieldNumber; +const int ArtifactSource::kPrincipalFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -ArtifactSpec::ArtifactSpec() +ArtifactSource::ArtifactSource() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.ArtifactSpec) + // @@protoc_insertion_point(constructor:flyteidl.artifact.ArtifactSource) } -ArtifactSpec::ArtifactSpec(const ArtifactSpec& from) +ArtifactSource::ArtifactSource(const ArtifactSource& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); + node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.node_id().size() > 0) { + node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); + } principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.principal().size() > 0) { principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); } - short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.short_description().size() > 0) { - short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); - } - metadata_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.metadata_type().size() > 0) { - metadata_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metadata_type_); - } - if (from.has_value()) { - value_ = new ::flyteidl::core::Literal(*from.value_); - } else { - value_ = nullptr; - } - if (from.has_type()) { - type_ = new ::flyteidl::core::LiteralType(*from.type_); - } else { - type_ = nullptr; - } - if (from.has_task_execution()) { - task_execution_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.task_execution_); - } else { - task_execution_ = nullptr; - } - if (from.has_execution()) { - execution_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_); + if (from.has_workflow_execution()) { + workflow_execution_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.workflow_execution_); } else { - execution_ = nullptr; + workflow_execution_ = nullptr; } - if (from.has_user_metadata()) { - user_metadata_ = new ::google::protobuf::Any(*from.user_metadata_); + if (from.has_task_id()) { + task_id_ = new ::flyteidl::core::Identifier(*from.task_id_); } else { - user_metadata_ = nullptr; + task_id_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ArtifactSpec) + retry_attempt_ = from.retry_attempt_; + // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ArtifactSource) } -void ArtifactSpec::SharedCtor() { +void ArtifactSource::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto.base); + &scc_info_ArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto.base); + node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - metadata_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&value_, 0, static_cast( - reinterpret_cast(&user_metadata_) - - reinterpret_cast(&value_)) + sizeof(user_metadata_)); + ::memset(&workflow_execution_, 0, static_cast( + reinterpret_cast(&retry_attempt_) - + reinterpret_cast(&workflow_execution_)) + sizeof(retry_attempt_)); } -ArtifactSpec::~ArtifactSpec() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.ArtifactSpec) +ArtifactSource::~ArtifactSource() { + // @@protoc_insertion_point(destructor:flyteidl.artifact.ArtifactSource) SharedDtor(); } -void ArtifactSpec::SharedDtor() { +void ArtifactSource::SharedDtor() { + node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - short_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - metadata_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete value_; - if (this != internal_default_instance()) delete type_; - if (this != internal_default_instance()) delete task_execution_; - if (this != internal_default_instance()) delete execution_; - if (this != internal_default_instance()) delete user_metadata_; + if (this != internal_default_instance()) delete workflow_execution_; + if (this != internal_default_instance()) delete task_id_; } -void ArtifactSpec::SetCachedSize(int size) const { +void ArtifactSource::SetCachedSize(int size) const { _cached_size_.Set(size); } -const ArtifactSpec& ArtifactSpec::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto.base); +const ArtifactSource& ArtifactSource::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto.base); return *internal_default_instance(); } -void ArtifactSpec::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ArtifactSpec) +void ArtifactSource::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ArtifactSource) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - metadata_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { - delete value_; - } - value_ = nullptr; - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; - if (GetArenaNoVirtual() == nullptr && task_execution_ != nullptr) { - delete task_execution_; - } - task_execution_ = nullptr; - if (GetArenaNoVirtual() == nullptr && execution_ != nullptr) { - delete execution_; + if (GetArenaNoVirtual() == nullptr && workflow_execution_ != nullptr) { + delete workflow_execution_; } - execution_ = nullptr; - if (GetArenaNoVirtual() == nullptr && user_metadata_ != nullptr) { - delete user_metadata_; + workflow_execution_ = nullptr; + if (GetArenaNoVirtual() == nullptr && task_id_ != nullptr) { + delete task_id_; } - user_metadata_ = nullptr; + task_id_ = nullptr; + retry_attempt_ = 0u; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ArtifactSpec::_InternalParse(const char* begin, const char* end, void* object, +const char* ArtifactSource::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -2257,64 +2382,61 @@ const char* ArtifactSpec::_InternalParse(const char* begin, const char* end, voi ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .flyteidl.core.Literal value = 1; + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Literal::_InternalParse; - object = msg->mutable_value(); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_workflow_execution(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyteidl.core.LiteralType type = 2; + // string node_id = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralType::_InternalParse; - object = msg->mutable_type(); - if (size > end - ptr) goto len_delim_till_end; + ctx->extra_parse_data().SetFieldName("flyteidl.artifact.ArtifactSource.node_id"); + object = msg->mutable_node_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyteidl.core.TaskExecutionIdentifier task_execution = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + // .flyteidl.core.Identifier task_id = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TaskExecutionIdentifier::_InternalParse; - object = msg->mutable_task_execution(); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_task_id(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); + // uint32 retry_attempt = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_retry_attempt(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_execution(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); break; } - // string principal = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + // string principal = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.ArtifactSpec.principal"); + ctx->extra_parse_data().SetFieldName("flyteidl.artifact.ArtifactSource.principal"); object = msg->mutable_principal(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -2325,51 +2447,6 @@ const char* ArtifactSpec::_InternalParse(const char* begin, const char* end, voi ptr += size; break; } - // string short_description = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.ArtifactSpec.short_description"); - object = msg->mutable_short_description(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .google.protobuf.Any user_metadata = 10; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Any::_InternalParse; - object = msg->mutable_user_metadata(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // string metadata_type = 11; - case 11: { - if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.ArtifactSpec.metadata_type"); - object = msg->mutable_metadata_type(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -2394,110 +2471,75 @@ const char* ArtifactSpec::_InternalParse(const char* begin, const char* end, voi {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ArtifactSpec::MergePartialFromCodedStream( +bool ArtifactSource::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.artifact.ArtifactSpec) + // @@protoc_insertion_point(parse_start:flyteidl.artifact.ArtifactSource) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.core.Literal value = 1; + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_value())); + input, mutable_workflow_execution())); } else { goto handle_unusual; } break; } - // .flyteidl.core.LiteralType type = 2; + // string node_id = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_type())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TaskExecutionIdentifier task_execution = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_task_execution())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_execution())); - } else { - goto handle_unusual; - } - break; - } - - // string principal = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_principal())); + input, this->mutable_node_id())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), + this->node_id().data(), static_cast(this->node_id().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.ArtifactSpec.principal")); + "flyteidl.artifact.ArtifactSource.node_id")); } else { goto handle_unusual; } break; } - // string short_description = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_short_description())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->short_description().data(), static_cast(this->short_description().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.ArtifactSpec.short_description")); + // .flyteidl.core.Identifier task_id = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_task_id())); } else { goto handle_unusual; } break; } - // .google.protobuf.Any user_metadata = 10; - case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_user_metadata())); + // uint32 retry_attempt = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &retry_attempt_))); } else { goto handle_unusual; } break; } - // string metadata_type = 11; - case 11: { - if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { + // string principal = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_metadata_type())); + input, this->mutable_principal())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metadata_type().data(), static_cast(this->metadata_type().length()), + this->principal().data(), static_cast(this->principal().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.ArtifactSpec.metadata_type")); + "flyteidl.artifact.ArtifactSource.principal")); } else { goto handle_unusual; } @@ -2516,172 +2558,122 @@ bool ArtifactSpec::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyteidl.artifact.ArtifactSpec) + // @@protoc_insertion_point(parse_success:flyteidl.artifact.ArtifactSource) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ArtifactSpec) + // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ArtifactSource) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void ArtifactSpec::SerializeWithCachedSizes( +void ArtifactSource::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ArtifactSpec) + // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ArtifactSource) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.core.Literal value = 1; - if (this->has_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::value(this), output); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::type(this), output); - } - - // .flyteidl.core.TaskExecutionIdentifier task_execution = 5; - if (this->has_task_execution()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::task_execution(this), output); - } - - // .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - if (this->has_execution()) { + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; + if (this->has_workflow_execution()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::execution(this), output); + 1, HasBitSetters::workflow_execution(this), output); } - // string principal = 7; - if (this->principal().size() > 0) { + // string node_id = 2; + if (this->node_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), + this->node_id().data(), static_cast(this->node_id().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ArtifactSpec.principal"); + "flyteidl.artifact.ArtifactSource.node_id"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->principal(), output); + 2, this->node_id(), output); } - // string short_description = 8; - if (this->short_description().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->short_description().data(), static_cast(this->short_description().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ArtifactSpec.short_description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->short_description(), output); + // .flyteidl.core.Identifier task_id = 3; + if (this->has_task_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::task_id(this), output); } - // .google.protobuf.Any user_metadata = 10; - if (this->has_user_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, HasBitSetters::user_metadata(this), output); + // uint32 retry_attempt = 4; + if (this->retry_attempt() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->retry_attempt(), output); } - // string metadata_type = 11; - if (this->metadata_type().size() > 0) { + // string principal = 5; + if (this->principal().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metadata_type().data(), static_cast(this->metadata_type().length()), + this->principal().data(), static_cast(this->principal().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ArtifactSpec.metadata_type"); + "flyteidl.artifact.ArtifactSource.principal"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 11, this->metadata_type(), output); + 5, this->principal(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ArtifactSpec) + // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ArtifactSource) } -::google::protobuf::uint8* ArtifactSpec::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* ArtifactSource::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ArtifactSpec) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ArtifactSource) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.core.Literal value = 1; - if (this->has_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::value(this), target); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::type(this), target); - } - - // .flyteidl.core.TaskExecutionIdentifier task_execution = 5; - if (this->has_task_execution()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::task_execution(this), target); - } - - // .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - if (this->has_execution()) { + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; + if (this->has_workflow_execution()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 6, HasBitSetters::execution(this), target); - } - - // string principal = 7; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ArtifactSpec.principal"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 7, this->principal(), target); + 1, HasBitSetters::workflow_execution(this), target); } - // string short_description = 8; - if (this->short_description().size() > 0) { + // string node_id = 2; + if (this->node_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->short_description().data(), static_cast(this->short_description().length()), + this->node_id().data(), static_cast(this->node_id().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ArtifactSpec.short_description"); + "flyteidl.artifact.ArtifactSource.node_id"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 8, this->short_description(), target); + 2, this->node_id(), target); } - // .google.protobuf.Any user_metadata = 10; - if (this->has_user_metadata()) { + // .flyteidl.core.Identifier task_id = 3; + if (this->has_task_id()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 10, HasBitSetters::user_metadata(this), target); + 3, HasBitSetters::task_id(this), target); } - // string metadata_type = 11; - if (this->metadata_type().size() > 0) { + // uint32 retry_attempt = 4; + if (this->retry_attempt() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->retry_attempt(), target); + } + + // string principal = 5; + if (this->principal().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metadata_type().data(), static_cast(this->metadata_type().length()), + this->principal().data(), static_cast(this->principal().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ArtifactSpec.metadata_type"); + "flyteidl.artifact.ArtifactSource.principal"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 11, this->metadata_type(), target); + 5, this->principal(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.ArtifactSpec) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.ArtifactSource) return target; } -size_t ArtifactSpec::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ArtifactSpec) +size_t ArtifactSource::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ArtifactSource) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -2693,60 +2685,39 @@ size_t ArtifactSpec::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string principal = 7; - if (this->principal().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->principal()); - } - - // string short_description = 8; - if (this->short_description().size() > 0) { + // string node_id = 2; + if (this->node_id().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->short_description()); + this->node_id()); } - // string metadata_type = 11; - if (this->metadata_type().size() > 0) { + // string principal = 5; + if (this->principal().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->metadata_type()); - } - - // .flyteidl.core.Literal value = 1; - if (this->has_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_); + this->principal()); } - // .flyteidl.core.TaskExecutionIdentifier task_execution = 5; - if (this->has_task_execution()) { + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; + if (this->has_workflow_execution()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *task_execution_); + *workflow_execution_); } - // .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - if (this->has_execution()) { + // .flyteidl.core.Identifier task_id = 3; + if (this->has_task_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *execution_); + *task_id_); } - // .google.protobuf.Any user_metadata = 10; - if (this->has_user_metadata()) { + // uint32 retry_attempt = 4; + if (this->retry_attempt() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *user_metadata_); + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->retry_attempt()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -2754,96 +2725,82 @@ size_t ArtifactSpec::ByteSizeLong() const { return total_size; } -void ArtifactSpec::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ArtifactSpec) +void ArtifactSource::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ArtifactSource) GOOGLE_DCHECK_NE(&from, this); - const ArtifactSpec* source = - ::google::protobuf::DynamicCastToGenerated( + const ArtifactSource* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ArtifactSpec) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ArtifactSource) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ArtifactSpec) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ArtifactSource) MergeFrom(*source); } } -void ArtifactSpec::MergeFrom(const ArtifactSpec& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ArtifactSpec) +void ArtifactSource::MergeFrom(const ArtifactSource& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ArtifactSource) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.principal().size() > 0) { - - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - if (from.short_description().size() > 0) { + if (from.node_id().size() > 0) { - short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); + node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); } - if (from.metadata_type().size() > 0) { + if (from.principal().size() > 0) { - metadata_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metadata_type_); - } - if (from.has_value()) { - mutable_value()->::flyteidl::core::Literal::MergeFrom(from.value()); - } - if (from.has_type()) { - mutable_type()->::flyteidl::core::LiteralType::MergeFrom(from.type()); + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); } - if (from.has_task_execution()) { - mutable_task_execution()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.task_execution()); + if (from.has_workflow_execution()) { + mutable_workflow_execution()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.workflow_execution()); } - if (from.has_execution()) { - mutable_execution()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution()); + if (from.has_task_id()) { + mutable_task_id()->::flyteidl::core::Identifier::MergeFrom(from.task_id()); } - if (from.has_user_metadata()) { - mutable_user_metadata()->::google::protobuf::Any::MergeFrom(from.user_metadata()); + if (from.retry_attempt() != 0) { + set_retry_attempt(from.retry_attempt()); } } -void ArtifactSpec::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ArtifactSpec) +void ArtifactSource::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ArtifactSource) if (&from == this) return; Clear(); MergeFrom(from); } -void ArtifactSpec::CopyFrom(const ArtifactSpec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ArtifactSpec) +void ArtifactSource::CopyFrom(const ArtifactSource& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ArtifactSource) if (&from == this) return; Clear(); MergeFrom(from); } -bool ArtifactSpec::IsInitialized() const { +bool ArtifactSource::IsInitialized() const { return true; } -void ArtifactSpec::Swap(ArtifactSpec* other) { +void ArtifactSource::Swap(ArtifactSource* other) { if (other == this) return; InternalSwap(other); } -void ArtifactSpec::InternalSwap(ArtifactSpec* other) { +void ArtifactSource::InternalSwap(ArtifactSource* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - short_description_.Swap(&other->short_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + node_id_.Swap(&other->node_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - metadata_type_.Swap(&other->metadata_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - swap(value_, other->value_); - swap(type_, other->type_); - swap(task_execution_, other->task_execution_); - swap(execution_, other->execution_); - swap(user_metadata_, other->user_metadata_); + swap(workflow_execution_, other->workflow_execution_); + swap(task_id_, other->task_id_); + swap(retry_attempt_, other->retry_attempt_); } -::google::protobuf::Metadata ArtifactSpec::GetMetadata() const { +::google::protobuf::Metadata ArtifactSource::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; } @@ -2851,8 +2808,597 @@ ::google::protobuf::Metadata ArtifactSpec::GetMetadata() const { // =================================================================== -void CreateArtifactResponse::InitAsDefaultInstance() { - ::flyteidl::artifact::_CreateArtifactResponse_default_instance_._instance.get_mutable()->artifact_ = const_cast< ::flyteidl::artifact::Artifact*>( +void ArtifactSpec::InitAsDefaultInstance() { + ::flyteidl::artifact::_ArtifactSpec_default_instance_._instance.get_mutable()->value_ = const_cast< ::flyteidl::core::Literal*>( + ::flyteidl::core::Literal::internal_default_instance()); + ::flyteidl::artifact::_ArtifactSpec_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::LiteralType*>( + ::flyteidl::core::LiteralType::internal_default_instance()); + ::flyteidl::artifact::_ArtifactSpec_default_instance_._instance.get_mutable()->user_metadata_ = const_cast< ::google::protobuf::Any*>( + ::google::protobuf::Any::internal_default_instance()); +} +class ArtifactSpec::HasBitSetters { + public: + static const ::flyteidl::core::Literal& value(const ArtifactSpec* msg); + static const ::flyteidl::core::LiteralType& type(const ArtifactSpec* msg); + static const ::google::protobuf::Any& user_metadata(const ArtifactSpec* msg); +}; + +const ::flyteidl::core::Literal& +ArtifactSpec::HasBitSetters::value(const ArtifactSpec* msg) { + return *msg->value_; +} +const ::flyteidl::core::LiteralType& +ArtifactSpec::HasBitSetters::type(const ArtifactSpec* msg) { + return *msg->type_; +} +const ::google::protobuf::Any& +ArtifactSpec::HasBitSetters::user_metadata(const ArtifactSpec* msg) { + return *msg->user_metadata_; +} +void ArtifactSpec::clear_value() { + if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; +} +void ArtifactSpec::clear_type() { + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; +} +void ArtifactSpec::clear_user_metadata() { + if (GetArenaNoVirtual() == nullptr && user_metadata_ != nullptr) { + delete user_metadata_; + } + user_metadata_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ArtifactSpec::kValueFieldNumber; +const int ArtifactSpec::kTypeFieldNumber; +const int ArtifactSpec::kShortDescriptionFieldNumber; +const int ArtifactSpec::kUserMetadataFieldNumber; +const int ArtifactSpec::kMetadataTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ArtifactSpec::ArtifactSpec() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.artifact.ArtifactSpec) +} +ArtifactSpec::ArtifactSpec(const ArtifactSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.short_description().size() > 0) { + short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); + } + metadata_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.metadata_type().size() > 0) { + metadata_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metadata_type_); + } + if (from.has_value()) { + value_ = new ::flyteidl::core::Literal(*from.value_); + } else { + value_ = nullptr; + } + if (from.has_type()) { + type_ = new ::flyteidl::core::LiteralType(*from.type_); + } else { + type_ = nullptr; + } + if (from.has_user_metadata()) { + user_metadata_ = new ::google::protobuf::Any(*from.user_metadata_); + } else { + user_metadata_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ArtifactSpec) +} + +void ArtifactSpec::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto.base); + short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + metadata_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&value_, 0, static_cast( + reinterpret_cast(&user_metadata_) - + reinterpret_cast(&value_)) + sizeof(user_metadata_)); +} + +ArtifactSpec::~ArtifactSpec() { + // @@protoc_insertion_point(destructor:flyteidl.artifact.ArtifactSpec) + SharedDtor(); +} + +void ArtifactSpec::SharedDtor() { + short_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + metadata_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete value_; + if (this != internal_default_instance()) delete type_; + if (this != internal_default_instance()) delete user_metadata_; +} + +void ArtifactSpec::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ArtifactSpec& ArtifactSpec::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto.base); + return *internal_default_instance(); +} + + +void ArtifactSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ArtifactSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + metadata_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; + if (GetArenaNoVirtual() == nullptr && user_metadata_ != nullptr) { + delete user_metadata_; + } + user_metadata_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ArtifactSpec::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Literal value = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Literal::_InternalParse; + object = msg->mutable_value(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralType type = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralType::_InternalParse; + object = msg->mutable_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string short_description = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.artifact.ArtifactSpec.short_description"); + object = msg->mutable_short_description(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .google.protobuf.Any user_metadata = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Any::_InternalParse; + object = msg->mutable_user_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string metadata_type = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.artifact.ArtifactSpec.metadata_type"); + object = msg->mutable_metadata_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ArtifactSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.artifact.ArtifactSpec) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Literal value = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_value())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralType type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_type())); + } else { + goto handle_unusual; + } + break; + } + + // string short_description = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_short_description())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->short_description().data(), static_cast(this->short_description().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.artifact.ArtifactSpec.short_description")); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Any user_metadata = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_user_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // string metadata_type = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_metadata_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metadata_type().data(), static_cast(this->metadata_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.artifact.ArtifactSpec.metadata_type")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.artifact.ArtifactSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ArtifactSpec) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ArtifactSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ArtifactSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Literal value = 1; + if (this->has_value()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::value(this), output); + } + + // .flyteidl.core.LiteralType type = 2; + if (this->has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::type(this), output); + } + + // string short_description = 3; + if (this->short_description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->short_description().data(), static_cast(this->short_description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.artifact.ArtifactSpec.short_description"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->short_description(), output); + } + + // .google.protobuf.Any user_metadata = 4; + if (this->has_user_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::user_metadata(this), output); + } + + // string metadata_type = 5; + if (this->metadata_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metadata_type().data(), static_cast(this->metadata_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.artifact.ArtifactSpec.metadata_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->metadata_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ArtifactSpec) +} + +::google::protobuf::uint8* ArtifactSpec::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ArtifactSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Literal value = 1; + if (this->has_value()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::value(this), target); + } + + // .flyteidl.core.LiteralType type = 2; + if (this->has_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::type(this), target); + } + + // string short_description = 3; + if (this->short_description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->short_description().data(), static_cast(this->short_description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.artifact.ArtifactSpec.short_description"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->short_description(), target); + } + + // .google.protobuf.Any user_metadata = 4; + if (this->has_user_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::user_metadata(this), target); + } + + // string metadata_type = 5; + if (this->metadata_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metadata_type().data(), static_cast(this->metadata_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.artifact.ArtifactSpec.metadata_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->metadata_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.ArtifactSpec) + return target; +} + +size_t ArtifactSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ArtifactSpec) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string short_description = 3; + if (this->short_description().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->short_description()); + } + + // string metadata_type = 5; + if (this->metadata_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->metadata_type()); + } + + // .flyteidl.core.Literal value = 1; + if (this->has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_); + } + + // .flyteidl.core.LiteralType type = 2; + if (this->has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_); + } + + // .google.protobuf.Any user_metadata = 4; + if (this->has_user_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *user_metadata_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ArtifactSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ArtifactSpec) + GOOGLE_DCHECK_NE(&from, this); + const ArtifactSpec* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ArtifactSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ArtifactSpec) + MergeFrom(*source); + } +} + +void ArtifactSpec::MergeFrom(const ArtifactSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ArtifactSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.short_description().size() > 0) { + + short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); + } + if (from.metadata_type().size() > 0) { + + metadata_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metadata_type_); + } + if (from.has_value()) { + mutable_value()->::flyteidl::core::Literal::MergeFrom(from.value()); + } + if (from.has_type()) { + mutable_type()->::flyteidl::core::LiteralType::MergeFrom(from.type()); + } + if (from.has_user_metadata()) { + mutable_user_metadata()->::google::protobuf::Any::MergeFrom(from.user_metadata()); + } +} + +void ArtifactSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ArtifactSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ArtifactSpec::CopyFrom(const ArtifactSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ArtifactSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ArtifactSpec::IsInitialized() const { + return true; +} + +void ArtifactSpec::Swap(ArtifactSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void ArtifactSpec::InternalSwap(ArtifactSpec* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + short_description_.Swap(&other->short_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + metadata_type_.Swap(&other->metadata_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(value_, other->value_); + swap(type_, other->type_); + swap(user_metadata_, other->user_metadata_); +} + +::google::protobuf::Metadata ArtifactSpec::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); + return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateArtifactResponse::InitAsDefaultInstance() { + ::flyteidl::artifact::_CreateArtifactResponse_default_instance_._instance.get_mutable()->artifact_ = const_cast< ::flyteidl::artifact::Artifact*>( ::flyteidl::artifact::Artifact::internal_default_instance()); } class CreateArtifactResponse::HasBitSetters { @@ -3762,78 +4308,71 @@ ::google::protobuf::Metadata GetArtifactResponse::GetMetadata() const { // =================================================================== -void ListArtifactNamesRequest::InitAsDefaultInstance() { +void SearchOptions::InitAsDefaultInstance() { } -class ListArtifactNamesRequest::HasBitSetters { +class SearchOptions::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ListArtifactNamesRequest::kProjectFieldNumber; -const int ListArtifactNamesRequest::kDomainFieldNumber; +const int SearchOptions::kStrictPartitionsFieldNumber; +const int SearchOptions::kLatestByKeyFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -ListArtifactNamesRequest::ListArtifactNamesRequest() +SearchOptions::SearchOptions() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.ListArtifactNamesRequest) + // @@protoc_insertion_point(constructor:flyteidl.artifact.SearchOptions) } -ListArtifactNamesRequest::ListArtifactNamesRequest(const ListArtifactNamesRequest& from) +SearchOptions::SearchOptions(const SearchOptions& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ListArtifactNamesRequest) + ::memcpy(&strict_partitions_, &from.strict_partitions_, + static_cast(reinterpret_cast(&latest_by_key_) - + reinterpret_cast(&strict_partitions_)) + sizeof(latest_by_key_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.SearchOptions) } -void ListArtifactNamesRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ListArtifactNamesRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void SearchOptions::SharedCtor() { + ::memset(&strict_partitions_, 0, static_cast( + reinterpret_cast(&latest_by_key_) - + reinterpret_cast(&strict_partitions_)) + sizeof(latest_by_key_)); } -ListArtifactNamesRequest::~ListArtifactNamesRequest() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.ListArtifactNamesRequest) +SearchOptions::~SearchOptions() { + // @@protoc_insertion_point(destructor:flyteidl.artifact.SearchOptions) SharedDtor(); } -void ListArtifactNamesRequest::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void SearchOptions::SharedDtor() { } -void ListArtifactNamesRequest::SetCachedSize(int size) const { +void SearchOptions::SetCachedSize(int size) const { _cached_size_.Set(size); } -const ListArtifactNamesRequest& ListArtifactNamesRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ListArtifactNamesRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); +const SearchOptions& SearchOptions::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SearchOptions_flyteidl_2fartifact_2fartifacts_2eproto.base); return *internal_default_instance(); } -void ListArtifactNamesRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ListArtifactNamesRequest) +void SearchOptions::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.SearchOptions) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&strict_partitions_, 0, static_cast( + reinterpret_cast(&latest_by_key_) - + reinterpret_cast(&strict_partitions_)) + sizeof(latest_by_key_)); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ListArtifactNamesRequest::_InternalParse(const char* begin, const char* end, void* object, +const char* SearchOptions::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -3843,36 +4382,18 @@ const char* ListArtifactNamesRequest::_InternalParse(const char* begin, const ch ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string project = 1; + // bool strict_partitions = 1; case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_strict_partitions(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.ListArtifactNamesRequest.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; break; } - // string domain = 2; + // bool latest_by_key = 2; case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_latest_by_key(::google::protobuf::internal::ReadVarint(&ptr)); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.ListArtifactNamesRequest.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; break; } default: { @@ -3890,49 +4411,38 @@ const char* ListArtifactNamesRequest::_InternalParse(const char* begin, const ch } // switch } // while return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ListArtifactNamesRequest::MergePartialFromCodedStream( +bool SearchOptions::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.artifact.ListArtifactNamesRequest) + // @@protoc_insertion_point(parse_start:flyteidl.artifact.SearchOptions) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string project = 1; + // bool strict_partitions = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.ListArtifactNamesRequest.project")); + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &strict_partitions_))); } else { goto handle_unusual; } break; } - // string domain = 2; + // bool latest_by_key = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.ListArtifactNamesRequest.domain")); + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &latest_by_key_))); } else { goto handle_unusual; } @@ -3951,86 +4461,64 @@ bool ListArtifactNamesRequest::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyteidl.artifact.ListArtifactNamesRequest) + // @@protoc_insertion_point(parse_success:flyteidl.artifact.SearchOptions) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ListArtifactNamesRequest) + // @@protoc_insertion_point(parse_failure:flyteidl.artifact.SearchOptions) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void ListArtifactNamesRequest::SerializeWithCachedSizes( +void SearchOptions::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ListArtifactNamesRequest) + // @@protoc_insertion_point(serialize_start:flyteidl.artifact.SearchOptions) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ListArtifactNamesRequest.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); + // bool strict_partitions = 1; + if (this->strict_partitions() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->strict_partitions(), output); } - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ListArtifactNamesRequest.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->domain(), output); + // bool latest_by_key = 2; + if (this->latest_by_key() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->latest_by_key(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ListArtifactNamesRequest) + // @@protoc_insertion_point(serialize_end:flyteidl.artifact.SearchOptions) } -::google::protobuf::uint8* ListArtifactNamesRequest::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* SearchOptions::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ListArtifactNamesRequest) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.SearchOptions) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ListArtifactNamesRequest.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); + // bool strict_partitions = 1; + if (this->strict_partitions() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->strict_partitions(), target); } - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ListArtifactNamesRequest.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->domain(), target); + // bool latest_by_key = 2; + if (this->latest_by_key() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->latest_by_key(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.ListArtifactNamesRequest) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.SearchOptions) return target; } -size_t ListArtifactNamesRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ListArtifactNamesRequest) +size_t SearchOptions::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.SearchOptions) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -4042,18 +4530,14 @@ size_t ListArtifactNamesRequest::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); + // bool strict_partitions = 1; + if (this->strict_partitions() != 0) { + total_size += 1 + 1; } - // string domain = 2; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); + // bool latest_by_key = 2; + if (this->latest_by_key() != 0) { + total_size += 1 + 1; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -4061,70 +4545,66 @@ size_t ListArtifactNamesRequest::ByteSizeLong() const { return total_size; } -void ListArtifactNamesRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ListArtifactNamesRequest) +void SearchOptions::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.SearchOptions) GOOGLE_DCHECK_NE(&from, this); - const ListArtifactNamesRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const SearchOptions* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ListArtifactNamesRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.SearchOptions) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ListArtifactNamesRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.SearchOptions) MergeFrom(*source); } } -void ListArtifactNamesRequest::MergeFrom(const ListArtifactNamesRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ListArtifactNamesRequest) +void SearchOptions::MergeFrom(const SearchOptions& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.SearchOptions) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + if (from.strict_partitions() != 0) { + set_strict_partitions(from.strict_partitions()); } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + if (from.latest_by_key() != 0) { + set_latest_by_key(from.latest_by_key()); } } -void ListArtifactNamesRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ListArtifactNamesRequest) +void SearchOptions::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.SearchOptions) if (&from == this) return; Clear(); MergeFrom(from); } -void ListArtifactNamesRequest::CopyFrom(const ListArtifactNamesRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ListArtifactNamesRequest) +void SearchOptions::CopyFrom(const SearchOptions& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.SearchOptions) if (&from == this) return; Clear(); MergeFrom(from); } -bool ListArtifactNamesRequest::IsInitialized() const { +bool SearchOptions::IsInitialized() const { return true; } -void ListArtifactNamesRequest::Swap(ListArtifactNamesRequest* other) { +void SearchOptions::Swap(SearchOptions* other) { if (other == this) return; InternalSwap(other); } -void ListArtifactNamesRequest::InternalSwap(ListArtifactNamesRequest* other) { +void SearchOptions::InternalSwap(SearchOptions* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + swap(strict_partitions_, other->strict_partitions_); + swap(latest_by_key_, other->latest_by_key_); } -::google::protobuf::Metadata ListArtifactNamesRequest::GetMetadata() const { +::google::protobuf::Metadata SearchOptions::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; } @@ -4132,68 +4612,158 @@ ::google::protobuf::Metadata ListArtifactNamesRequest::GetMetadata() const { // =================================================================== -void ListArtifactNamesResponse::InitAsDefaultInstance() { +void SearchArtifactsRequest::InitAsDefaultInstance() { + ::flyteidl::artifact::_SearchArtifactsRequest_default_instance_._instance.get_mutable()->artifact_key_ = const_cast< ::flyteidl::core::ArtifactKey*>( + ::flyteidl::core::ArtifactKey::internal_default_instance()); + ::flyteidl::artifact::_SearchArtifactsRequest_default_instance_._instance.get_mutable()->partitions_ = const_cast< ::flyteidl::core::Partitions*>( + ::flyteidl::core::Partitions::internal_default_instance()); + ::flyteidl::artifact::_SearchArtifactsRequest_default_instance_._instance.get_mutable()->options_ = const_cast< ::flyteidl::artifact::SearchOptions*>( + ::flyteidl::artifact::SearchOptions::internal_default_instance()); } -class ListArtifactNamesResponse::HasBitSetters { +class SearchArtifactsRequest::HasBitSetters { public: + static const ::flyteidl::core::ArtifactKey& artifact_key(const SearchArtifactsRequest* msg); + static const ::flyteidl::core::Partitions& partitions(const SearchArtifactsRequest* msg); + static const ::flyteidl::artifact::SearchOptions& options(const SearchArtifactsRequest* msg); }; -void ListArtifactNamesResponse::clear_artifact_keys() { - artifact_keys_.Clear(); +const ::flyteidl::core::ArtifactKey& +SearchArtifactsRequest::HasBitSetters::artifact_key(const SearchArtifactsRequest* msg) { + return *msg->artifact_key_; +} +const ::flyteidl::core::Partitions& +SearchArtifactsRequest::HasBitSetters::partitions(const SearchArtifactsRequest* msg) { + return *msg->partitions_; +} +const ::flyteidl::artifact::SearchOptions& +SearchArtifactsRequest::HasBitSetters::options(const SearchArtifactsRequest* msg) { + return *msg->options_; +} +void SearchArtifactsRequest::clear_artifact_key() { + if (GetArenaNoVirtual() == nullptr && artifact_key_ != nullptr) { + delete artifact_key_; + } + artifact_key_ = nullptr; +} +void SearchArtifactsRequest::clear_partitions() { + if (GetArenaNoVirtual() == nullptr && partitions_ != nullptr) { + delete partitions_; + } + partitions_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ListArtifactNamesResponse::kArtifactKeysFieldNumber; +const int SearchArtifactsRequest::kArtifactKeyFieldNumber; +const int SearchArtifactsRequest::kPartitionsFieldNumber; +const int SearchArtifactsRequest::kPrincipalFieldNumber; +const int SearchArtifactsRequest::kVersionFieldNumber; +const int SearchArtifactsRequest::kOptionsFieldNumber; +const int SearchArtifactsRequest::kTokenFieldNumber; +const int SearchArtifactsRequest::kLimitFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -ListArtifactNamesResponse::ListArtifactNamesResponse() +SearchArtifactsRequest::SearchArtifactsRequest() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.ListArtifactNamesResponse) + // @@protoc_insertion_point(constructor:flyteidl.artifact.SearchArtifactsRequest) } -ListArtifactNamesResponse::ListArtifactNamesResponse(const ListArtifactNamesResponse& from) +SearchArtifactsRequest::SearchArtifactsRequest(const SearchArtifactsRequest& from) : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - artifact_keys_(from.artifact_keys_) { + _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ListArtifactNamesResponse) + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.principal().size() > 0) { + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.version().size() > 0) { + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.has_artifact_key()) { + artifact_key_ = new ::flyteidl::core::ArtifactKey(*from.artifact_key_); + } else { + artifact_key_ = nullptr; + } + if (from.has_partitions()) { + partitions_ = new ::flyteidl::core::Partitions(*from.partitions_); + } else { + partitions_ = nullptr; + } + if (from.has_options()) { + options_ = new ::flyteidl::artifact::SearchOptions(*from.options_); + } else { + options_ = nullptr; + } + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.SearchArtifactsRequest) } -void ListArtifactNamesResponse::SharedCtor() { +void SearchArtifactsRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_ListArtifactNamesResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); + &scc_info_SearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&artifact_key_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&artifact_key_)) + sizeof(limit_)); } -ListArtifactNamesResponse::~ListArtifactNamesResponse() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.ListArtifactNamesResponse) +SearchArtifactsRequest::~SearchArtifactsRequest() { + // @@protoc_insertion_point(destructor:flyteidl.artifact.SearchArtifactsRequest) SharedDtor(); } -void ListArtifactNamesResponse::SharedDtor() { +void SearchArtifactsRequest::SharedDtor() { + principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete artifact_key_; + if (this != internal_default_instance()) delete partitions_; + if (this != internal_default_instance()) delete options_; } -void ListArtifactNamesResponse::SetCachedSize(int size) const { +void SearchArtifactsRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const ListArtifactNamesResponse& ListArtifactNamesResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ListArtifactNamesResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); +const SearchArtifactsRequest& SearchArtifactsRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); return *internal_default_instance(); } -void ListArtifactNamesResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ListArtifactNamesResponse) +void SearchArtifactsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.SearchArtifactsRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - artifact_keys_.Clear(); + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && artifact_key_ != nullptr) { + delete artifact_key_; + } + artifact_key_ = nullptr; + if (GetArenaNoVirtual() == nullptr && partitions_ != nullptr) { + delete partitions_; + } + partitions_ = nullptr; + if (GetArenaNoVirtual() == nullptr && options_ != nullptr) { + delete options_; + } + options_ = nullptr; + limit_ = 0; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ListArtifactNamesResponse::_InternalParse(const char* begin, const char* end, void* object, +const char* SearchArtifactsRequest::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -4203,20 +4773,98 @@ const char* ListArtifactNamesResponse::_InternalParse(const char* begin, const c ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + // .flyteidl.core.ArtifactKey artifact_key = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ArtifactKey::_InternalParse; - object = msg->add_artifact_keys(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ArtifactKey::_InternalParse; + object = msg->mutable_artifact_key(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Partitions partitions = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Partitions::_InternalParse; + object = msg->mutable_partitions(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string principal = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.artifact.SearchArtifactsRequest.principal"); + object = msg->mutable_principal(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string version = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.artifact.SearchArtifactsRequest.version"); + object = msg->mutable_version(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.artifact.SearchOptions options = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::artifact::SearchOptions::_InternalParse; + object = msg->mutable_options(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string token = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.artifact.SearchArtifactsRequest.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // int32 limit = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; + msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } default: { @@ -4234,26 +4882,110 @@ const char* ListArtifactNamesResponse::_InternalParse(const char* begin, const c } // switch } // while return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ListArtifactNamesResponse::MergePartialFromCodedStream( +bool SearchArtifactsRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.artifact.ListArtifactNamesResponse) + // @@protoc_insertion_point(parse_start:flyteidl.artifact.SearchArtifactsRequest) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + // .flyteidl.core.ArtifactKey artifact_key = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_artifact_keys())); + input, mutable_artifact_key())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Partitions partitions = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_partitions())); + } else { + goto handle_unusual; + } + break; + } + + // string principal = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_principal())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.artifact.SearchArtifactsRequest.principal")); + } else { + goto handle_unusual; + } + break; + } + + // string version = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.artifact.SearchArtifactsRequest.version")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.artifact.SearchOptions options = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_options())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.artifact.SearchArtifactsRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // int32 limit = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &limit_))); } else { goto handle_unusual; } @@ -4272,61 +5004,156 @@ bool ListArtifactNamesResponse::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyteidl.artifact.ListArtifactNamesResponse) + // @@protoc_insertion_point(parse_success:flyteidl.artifact.SearchArtifactsRequest) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ListArtifactNamesResponse) + // @@protoc_insertion_point(parse_failure:flyteidl.artifact.SearchArtifactsRequest) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void ListArtifactNamesResponse::SerializeWithCachedSizes( +void SearchArtifactsRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ListArtifactNamesResponse) + // @@protoc_insertion_point(serialize_start:flyteidl.artifact.SearchArtifactsRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .flyteidl.core.ArtifactKey artifact_keys = 1; - for (unsigned int i = 0, - n = static_cast(this->artifact_keys_size()); i < n; i++) { + // .flyteidl.core.ArtifactKey artifact_key = 1; + if (this->has_artifact_key()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->artifact_keys(static_cast(i)), - output); + 1, HasBitSetters::artifact_key(this), output); + } + + // .flyteidl.core.Partitions partitions = 2; + if (this->has_partitions()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::partitions(this), output); + } + + // string principal = 3; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.artifact.SearchArtifactsRequest.principal"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->principal(), output); + } + + // string version = 4; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.artifact.SearchArtifactsRequest.version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->version(), output); + } + + // .flyteidl.artifact.SearchOptions options = 5; + if (this->has_options()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::options(this), output); + } + + // string token = 6; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.artifact.SearchArtifactsRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->token(), output); + } + + // int32 limit = 7; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->limit(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ListArtifactNamesResponse) + // @@protoc_insertion_point(serialize_end:flyteidl.artifact.SearchArtifactsRequest) } -::google::protobuf::uint8* ListArtifactNamesResponse::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* SearchArtifactsRequest::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ListArtifactNamesResponse) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.SearchArtifactsRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .flyteidl.core.ArtifactKey artifact_keys = 1; - for (unsigned int i = 0, - n = static_cast(this->artifact_keys_size()); i < n; i++) { + // .flyteidl.core.ArtifactKey artifact_key = 1; + if (this->has_artifact_key()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::artifact_key(this), target); + } + + // .flyteidl.core.Partitions partitions = 2; + if (this->has_partitions()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::partitions(this), target); + } + + // string principal = 3; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.artifact.SearchArtifactsRequest.principal"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->principal(), target); + } + + // string version = 4; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.artifact.SearchArtifactsRequest.version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->version(), target); + } + + // .flyteidl.artifact.SearchOptions options = 5; + if (this->has_options()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, this->artifact_keys(static_cast(i)), target); + 5, HasBitSetters::options(this), target); + } + + // string token = 6; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.artifact.SearchArtifactsRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->token(), target); + } + + // int32 limit = 7; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->limit(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.ListArtifactNamesResponse) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.SearchArtifactsRequest) return target; } -size_t ListArtifactNamesResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ListArtifactNamesResponse) +size_t SearchArtifactsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.SearchArtifactsRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -4338,15 +5165,53 @@ size_t ListArtifactNamesResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .flyteidl.core.ArtifactKey artifact_keys = 1; - { - unsigned int count = static_cast(this->artifact_keys_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->artifact_keys(static_cast(i))); - } + // string principal = 3; + if (this->principal().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->principal()); + } + + // string version = 4; + if (this->version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->version()); + } + + // string token = 6; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // .flyteidl.core.ArtifactKey artifact_key = 1; + if (this->has_artifact_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *artifact_key_); + } + + // .flyteidl.core.Partitions partitions = 2; + if (this->has_partitions()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *partitions_); + } + + // .flyteidl.artifact.SearchOptions options = 5; + if (this->has_options()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *options_); + } + + // int32 limit = 7; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->limit()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -4354,60 +5219,92 @@ size_t ListArtifactNamesResponse::ByteSizeLong() const { return total_size; } -void ListArtifactNamesResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ListArtifactNamesResponse) +void SearchArtifactsRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.SearchArtifactsRequest) GOOGLE_DCHECK_NE(&from, this); - const ListArtifactNamesResponse* source = - ::google::protobuf::DynamicCastToGenerated( + const SearchArtifactsRequest* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ListArtifactNamesResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.SearchArtifactsRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ListArtifactNamesResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.SearchArtifactsRequest) MergeFrom(*source); } } -void ListArtifactNamesResponse::MergeFrom(const ListArtifactNamesResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ListArtifactNamesResponse) +void SearchArtifactsRequest::MergeFrom(const SearchArtifactsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.SearchArtifactsRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - artifact_keys_.MergeFrom(from.artifact_keys_); + if (from.principal().size() > 0) { + + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } + if (from.version().size() > 0) { + + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.has_artifact_key()) { + mutable_artifact_key()->::flyteidl::core::ArtifactKey::MergeFrom(from.artifact_key()); + } + if (from.has_partitions()) { + mutable_partitions()->::flyteidl::core::Partitions::MergeFrom(from.partitions()); + } + if (from.has_options()) { + mutable_options()->::flyteidl::artifact::SearchOptions::MergeFrom(from.options()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } } -void ListArtifactNamesResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ListArtifactNamesResponse) +void SearchArtifactsRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.SearchArtifactsRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void ListArtifactNamesResponse::CopyFrom(const ListArtifactNamesResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ListArtifactNamesResponse) +void SearchArtifactsRequest::CopyFrom(const SearchArtifactsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.SearchArtifactsRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool ListArtifactNamesResponse::IsInitialized() const { +bool SearchArtifactsRequest::IsInitialized() const { return true; } -void ListArtifactNamesResponse::Swap(ListArtifactNamesResponse* other) { +void SearchArtifactsRequest::Swap(SearchArtifactsRequest* other) { if (other == this) return; InternalSwap(other); } -void ListArtifactNamesResponse::InternalSwap(ListArtifactNamesResponse* other) { +void SearchArtifactsRequest::InternalSwap(SearchArtifactsRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&artifact_keys_)->InternalSwap(CastToBase(&other->artifact_keys_)); + principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(artifact_key_, other->artifact_key_); + swap(partitions_, other->partitions_); + swap(options_, other->options_); + swap(limit_, other->limit_); } -::google::protobuf::Metadata ListArtifactNamesResponse::GetMetadata() const { +::google::protobuf::Metadata SearchArtifactsRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; } @@ -4415,108 +5312,73 @@ ::google::protobuf::Metadata ListArtifactNamesResponse::GetMetadata() const { // =================================================================== -void SearchArtifactsRequest::InitAsDefaultInstance() { - ::flyteidl::artifact::_SearchArtifactsRequest_default_instance_._instance.get_mutable()->artifact_key_ = const_cast< ::flyteidl::core::ArtifactKey*>( - ::flyteidl::core::ArtifactKey::internal_default_instance()); +void SearchArtifactsResponse::InitAsDefaultInstance() { } -class SearchArtifactsRequest::HasBitSetters { +class SearchArtifactsResponse::HasBitSetters { public: - static const ::flyteidl::core::ArtifactKey& artifact_key(const SearchArtifactsRequest* msg); }; -const ::flyteidl::core::ArtifactKey& -SearchArtifactsRequest::HasBitSetters::artifact_key(const SearchArtifactsRequest* msg) { - return *msg->artifact_key_; -} -void SearchArtifactsRequest::clear_artifact_key() { - if (GetArenaNoVirtual() == nullptr && artifact_key_ != nullptr) { - delete artifact_key_; - } - artifact_key_ = nullptr; -} #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchArtifactsRequest::kArtifactKeyFieldNumber; -const int SearchArtifactsRequest::kFiltersFieldNumber; -const int SearchArtifactsRequest::kTokenFieldNumber; -const int SearchArtifactsRequest::kLimitFieldNumber; +const int SearchArtifactsResponse::kArtifactsFieldNumber; +const int SearchArtifactsResponse::kTokenFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -SearchArtifactsRequest::SearchArtifactsRequest() +SearchArtifactsResponse::SearchArtifactsResponse() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.SearchArtifactsRequest) + // @@protoc_insertion_point(constructor:flyteidl.artifact.SearchArtifactsResponse) } -SearchArtifactsRequest::SearchArtifactsRequest(const SearchArtifactsRequest& from) +SearchArtifactsResponse::SearchArtifactsResponse(const SearchArtifactsResponse& from) : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { + _internal_metadata_(nullptr), + artifacts_(from.artifacts_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.filters().size() > 0) { - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.token().size() > 0) { token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); } - if (from.has_artifact_key()) { - artifact_key_ = new ::flyteidl::core::ArtifactKey(*from.artifact_key_); - } else { - artifact_key_ = nullptr; - } - limit_ = from.limit_; - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.SearchArtifactsRequest) + // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.SearchArtifactsResponse) } -void SearchArtifactsRequest::SharedCtor() { +void SearchArtifactsResponse::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_SearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + &scc_info_SearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&artifact_key_, 0, static_cast( - reinterpret_cast(&limit_) - - reinterpret_cast(&artifact_key_)) + sizeof(limit_)); } -SearchArtifactsRequest::~SearchArtifactsRequest() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.SearchArtifactsRequest) +SearchArtifactsResponse::~SearchArtifactsResponse() { + // @@protoc_insertion_point(destructor:flyteidl.artifact.SearchArtifactsResponse) SharedDtor(); } -void SearchArtifactsRequest::SharedDtor() { - filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void SearchArtifactsResponse::SharedDtor() { token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete artifact_key_; } -void SearchArtifactsRequest::SetCachedSize(int size) const { +void SearchArtifactsResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -const SearchArtifactsRequest& SearchArtifactsRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); +const SearchArtifactsResponse& SearchArtifactsResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); return *internal_default_instance(); } -void SearchArtifactsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.SearchArtifactsRequest) +void SearchArtifactsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.SearchArtifactsResponse) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + artifacts_.Clear(); token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && artifact_key_ != nullptr) { - delete artifact_key_; - } - artifact_key_ = nullptr; - limit_ = 0; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SearchArtifactsRequest::_InternalParse(const char* begin, const char* end, void* object, +const char* SearchArtifactsResponse::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -4526,41 +5388,28 @@ const char* SearchArtifactsRequest::_InternalParse(const char* begin, const char ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .flyteidl.core.ArtifactKey artifact_key = 1; + // repeated .flyteidl.artifact.Artifact artifacts = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ArtifactKey::_InternalParse; - object = msg->mutable_artifact_key(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::artifact::Artifact::_InternalParse; + object = msg->add_artifacts(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); break; } - // string filters = 2; + // string token = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.SearchArtifactsRequest.filters"); - object = msg->mutable_filters(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string token = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.SearchArtifactsRequest.token"); + ctx->extra_parse_data().SetFieldName("flyteidl.artifact.SearchArtifactsResponse.token"); object = msg->mutable_token(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -4571,13 +5420,6 @@ const char* SearchArtifactsRequest::_InternalParse(const char* begin, const char ptr += size; break; } - // int32 limit = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -4602,64 +5444,36 @@ const char* SearchArtifactsRequest::_InternalParse(const char* begin, const char {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SearchArtifactsRequest::MergePartialFromCodedStream( +bool SearchArtifactsResponse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.artifact.SearchArtifactsRequest) + // @@protoc_insertion_point(parse_start:flyteidl.artifact.SearchArtifactsResponse) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.core.ArtifactKey artifact_key = 1; + // repeated .flyteidl.artifact.Artifact artifacts = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_key())); + input, add_artifacts())); } else { goto handle_unusual; } break; } - // string filters = 2; + // string token = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_filters())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.SearchArtifactsRequest.filters")); - } else { - goto handle_unusual; - } - break; - } - - // string token = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_token())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->token().data(), static_cast(this->token().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.SearchArtifactsRequest.token")); - } else { - goto handle_unusual; - } - break; - } - - // int32 limit = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &limit_))); + "flyteidl.artifact.SearchArtifactsResponse.token")); } else { goto handle_unusual; } @@ -4678,109 +5492,82 @@ bool SearchArtifactsRequest::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyteidl.artifact.SearchArtifactsRequest) + // @@protoc_insertion_point(parse_success:flyteidl.artifact.SearchArtifactsResponse) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.SearchArtifactsRequest) + // @@protoc_insertion_point(parse_failure:flyteidl.artifact.SearchArtifactsResponse) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void SearchArtifactsRequest::SerializeWithCachedSizes( +void SearchArtifactsResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.SearchArtifactsRequest) + // @@protoc_insertion_point(serialize_start:flyteidl.artifact.SearchArtifactsResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.core.ArtifactKey artifact_key = 1; - if (this->has_artifact_key()) { + // repeated .flyteidl.artifact.Artifact artifacts = 1; + for (unsigned int i = 0, + n = static_cast(this->artifacts_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::artifact_key(this), output); - } - - // string filters = 2; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.SearchArtifactsRequest.filters"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->filters(), output); + 1, + this->artifacts(static_cast(i)), + output); } - // string token = 3; + // string token = 2; if (this->token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->token().data(), static_cast(this->token().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.SearchArtifactsRequest.token"); + "flyteidl.artifact.SearchArtifactsResponse.token"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->token(), output); - } - - // int32 limit = 4; - if (this->limit() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->limit(), output); + 2, this->token(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.SearchArtifactsRequest) + // @@protoc_insertion_point(serialize_end:flyteidl.artifact.SearchArtifactsResponse) } -::google::protobuf::uint8* SearchArtifactsRequest::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* SearchArtifactsResponse::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.SearchArtifactsRequest) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.SearchArtifactsResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.core.ArtifactKey artifact_key = 1; - if (this->has_artifact_key()) { + // repeated .flyteidl.artifact.Artifact artifacts = 1; + for (unsigned int i = 0, + n = static_cast(this->artifacts_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::artifact_key(this), target); - } - - // string filters = 2; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.SearchArtifactsRequest.filters"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->filters(), target); + 1, this->artifacts(static_cast(i)), target); } - // string token = 3; + // string token = 2; if (this->token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->token().data(), static_cast(this->token().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.SearchArtifactsRequest.token"); + "flyteidl.artifact.SearchArtifactsResponse.token"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->token(), target); - } - - // int32 limit = 4; - if (this->limit() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->limit(), target); + 2, this->token(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.SearchArtifactsRequest) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.SearchArtifactsResponse) return target; } -size_t SearchArtifactsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.SearchArtifactsRequest) +size_t SearchArtifactsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.SearchArtifactsResponse) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -4792,111 +5579,89 @@ size_t SearchArtifactsRequest::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string filters = 2; - if (this->filters().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->filters()); + // repeated .flyteidl.artifact.Artifact artifacts = 1; + { + unsigned int count = static_cast(this->artifacts_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->artifacts(static_cast(i))); + } } - // string token = 3; + // string token = 2; if (this->token().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->token()); } - // .flyteidl.core.ArtifactKey artifact_key = 1; - if (this->has_artifact_key()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_key_); - } - - // int32 limit = 4; - if (this->limit() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->limit()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void SearchArtifactsRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.SearchArtifactsRequest) +void SearchArtifactsResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.SearchArtifactsResponse) GOOGLE_DCHECK_NE(&from, this); - const SearchArtifactsRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const SearchArtifactsResponse* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.SearchArtifactsRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.SearchArtifactsResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.SearchArtifactsRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.SearchArtifactsResponse) MergeFrom(*source); } } -void SearchArtifactsRequest::MergeFrom(const SearchArtifactsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.SearchArtifactsRequest) +void SearchArtifactsResponse::MergeFrom(const SearchArtifactsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.SearchArtifactsResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.filters().size() > 0) { - - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } + artifacts_.MergeFrom(from.artifacts_); if (from.token().size() > 0) { token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); } - if (from.has_artifact_key()) { - mutable_artifact_key()->::flyteidl::core::ArtifactKey::MergeFrom(from.artifact_key()); - } - if (from.limit() != 0) { - set_limit(from.limit()); - } } -void SearchArtifactsRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.SearchArtifactsRequest) +void SearchArtifactsResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.SearchArtifactsResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void SearchArtifactsRequest::CopyFrom(const SearchArtifactsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.SearchArtifactsRequest) +void SearchArtifactsResponse::CopyFrom(const SearchArtifactsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.SearchArtifactsResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool SearchArtifactsRequest::IsInitialized() const { +bool SearchArtifactsResponse::IsInitialized() const { return true; } -void SearchArtifactsRequest::Swap(SearchArtifactsRequest* other) { +void SearchArtifactsResponse::Swap(SearchArtifactsResponse* other) { if (other == this) return; InternalSwap(other); } -void SearchArtifactsRequest::InternalSwap(SearchArtifactsRequest* other) { +void SearchArtifactsResponse::InternalSwap(SearchArtifactsResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + CastToBase(&artifacts_)->InternalSwap(CastToBase(&other->artifacts_)); token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - swap(artifact_key_, other->artifact_key_); - swap(limit_, other->limit_); } -::google::protobuf::Metadata SearchArtifactsRequest::GetMetadata() const { +::google::protobuf::Metadata SearchArtifactsResponse::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; } @@ -4904,65 +5669,97 @@ ::google::protobuf::Metadata SearchArtifactsRequest::GetMetadata() const { // =================================================================== -void SearchArtifactsResponse::InitAsDefaultInstance() { +void FindByWorkflowExecRequest::InitAsDefaultInstance() { + ::flyteidl::artifact::_FindByWorkflowExecRequest_default_instance_._instance.get_mutable()->exec_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); } -class SearchArtifactsResponse::HasBitSetters { +class FindByWorkflowExecRequest::HasBitSetters { public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& exec_id(const FindByWorkflowExecRequest* msg); }; +const ::flyteidl::core::WorkflowExecutionIdentifier& +FindByWorkflowExecRequest::HasBitSetters::exec_id(const FindByWorkflowExecRequest* msg) { + return *msg->exec_id_; +} +void FindByWorkflowExecRequest::clear_exec_id() { + if (GetArenaNoVirtual() == nullptr && exec_id_ != nullptr) { + delete exec_id_; + } + exec_id_ = nullptr; +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchArtifactsResponse::kArtifactsFieldNumber; +const int FindByWorkflowExecRequest::kExecIdFieldNumber; +const int FindByWorkflowExecRequest::kDirectionFieldNumber; +const int FindByWorkflowExecRequest::kFetchSpecsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -SearchArtifactsResponse::SearchArtifactsResponse() +FindByWorkflowExecRequest::FindByWorkflowExecRequest() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.SearchArtifactsResponse) + // @@protoc_insertion_point(constructor:flyteidl.artifact.FindByWorkflowExecRequest) } -SearchArtifactsResponse::SearchArtifactsResponse(const SearchArtifactsResponse& from) +FindByWorkflowExecRequest::FindByWorkflowExecRequest(const FindByWorkflowExecRequest& from) : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - artifacts_(from.artifacts_) { + _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.SearchArtifactsResponse) + if (from.has_exec_id()) { + exec_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.exec_id_); + } else { + exec_id_ = nullptr; + } + ::memcpy(&direction_, &from.direction_, + static_cast(reinterpret_cast(&fetch_specs_) - + reinterpret_cast(&direction_)) + sizeof(fetch_specs_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.FindByWorkflowExecRequest) } -void SearchArtifactsResponse::SharedCtor() { +void FindByWorkflowExecRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_SearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); + &scc_info_FindByWorkflowExecRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); + ::memset(&exec_id_, 0, static_cast( + reinterpret_cast(&fetch_specs_) - + reinterpret_cast(&exec_id_)) + sizeof(fetch_specs_)); } -SearchArtifactsResponse::~SearchArtifactsResponse() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.SearchArtifactsResponse) +FindByWorkflowExecRequest::~FindByWorkflowExecRequest() { + // @@protoc_insertion_point(destructor:flyteidl.artifact.FindByWorkflowExecRequest) SharedDtor(); } -void SearchArtifactsResponse::SharedDtor() { +void FindByWorkflowExecRequest::SharedDtor() { + if (this != internal_default_instance()) delete exec_id_; } -void SearchArtifactsResponse::SetCachedSize(int size) const { +void FindByWorkflowExecRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const SearchArtifactsResponse& SearchArtifactsResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); +const FindByWorkflowExecRequest& FindByWorkflowExecRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_FindByWorkflowExecRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); return *internal_default_instance(); } -void SearchArtifactsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.SearchArtifactsResponse) +void FindByWorkflowExecRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.FindByWorkflowExecRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - artifacts_.Clear(); + if (GetArenaNoVirtual() == nullptr && exec_id_ != nullptr) { + delete exec_id_; + } + exec_id_ = nullptr; + ::memset(&direction_, 0, static_cast( + reinterpret_cast(&fetch_specs_) - + reinterpret_cast(&direction_)) + sizeof(fetch_specs_)); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SearchArtifactsResponse::_InternalParse(const char* begin, const char* end, void* object, +const char* FindByWorkflowExecRequest::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -4972,20 +5769,32 @@ const char* SearchArtifactsResponse::_InternalParse(const char* begin, const cha ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // repeated .flyteidl.artifact.Artifact artifacts = 1; + // .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::artifact::Artifact::_InternalParse; - object = msg->add_artifacts(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_exec_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_direction(static_cast<::flyteidl::artifact::FindByWorkflowExecRequest_Direction>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // bool fetch_specs = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_fetch_specs(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } default: { @@ -5008,21 +5817,48 @@ const char* SearchArtifactsResponse::_InternalParse(const char* begin, const cha {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SearchArtifactsResponse::MergePartialFromCodedStream( +bool FindByWorkflowExecRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.artifact.SearchArtifactsResponse) + // @@protoc_insertion_point(parse_start:flyteidl.artifact.FindByWorkflowExecRequest) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .flyteidl.artifact.Artifact artifacts = 1; + // .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_artifacts())); + input, mutable_exec_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_direction(static_cast< ::flyteidl::artifact::FindByWorkflowExecRequest_Direction >(value)); + } else { + goto handle_unusual; + } + break; + } + + // bool fetch_specs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &fetch_specs_))); } else { goto handle_unusual; } @@ -5041,61 +5877,79 @@ bool SearchArtifactsResponse::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyteidl.artifact.SearchArtifactsResponse) + // @@protoc_insertion_point(parse_success:flyteidl.artifact.FindByWorkflowExecRequest) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.SearchArtifactsResponse) + // @@protoc_insertion_point(parse_failure:flyteidl.artifact.FindByWorkflowExecRequest) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void SearchArtifactsResponse::SerializeWithCachedSizes( +void FindByWorkflowExecRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.SearchArtifactsResponse) + // @@protoc_insertion_point(serialize_start:flyteidl.artifact.FindByWorkflowExecRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .flyteidl.artifact.Artifact artifacts = 1; - for (unsigned int i = 0, - n = static_cast(this->artifacts_size()); i < n; i++) { + // .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; + if (this->has_exec_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->artifacts(static_cast(i)), - output); + 1, HasBitSetters::exec_id(this), output); + } + + // .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; + if (this->direction() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->direction(), output); + } + + // bool fetch_specs = 3; + if (this->fetch_specs() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->fetch_specs(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.SearchArtifactsResponse) + // @@protoc_insertion_point(serialize_end:flyteidl.artifact.FindByWorkflowExecRequest) } -::google::protobuf::uint8* SearchArtifactsResponse::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* FindByWorkflowExecRequest::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.SearchArtifactsResponse) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.FindByWorkflowExecRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .flyteidl.artifact.Artifact artifacts = 1; - for (unsigned int i = 0, - n = static_cast(this->artifacts_size()); i < n; i++) { + // .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; + if (this->has_exec_id()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, this->artifacts(static_cast(i)), target); + 1, HasBitSetters::exec_id(this), target); + } + + // .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; + if (this->direction() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->direction(), target); + } + + // bool fetch_specs = 3; + if (this->fetch_specs() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->fetch_specs(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.SearchArtifactsResponse) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.FindByWorkflowExecRequest) return target; } -size_t SearchArtifactsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.SearchArtifactsResponse) +size_t FindByWorkflowExecRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.FindByWorkflowExecRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -5107,15 +5961,22 @@ size_t SearchArtifactsResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .flyteidl.artifact.Artifact artifacts = 1; - { - unsigned int count = static_cast(this->artifacts_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->artifacts(static_cast(i))); - } + // .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; + if (this->has_exec_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *exec_id_); + } + + // .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; + if (this->direction() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->direction()); + } + + // bool fetch_specs = 3; + if (this->fetch_specs() != 0) { + total_size += 1 + 1; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -5123,60 +5984,70 @@ size_t SearchArtifactsResponse::ByteSizeLong() const { return total_size; } -void SearchArtifactsResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.SearchArtifactsResponse) +void FindByWorkflowExecRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.FindByWorkflowExecRequest) GOOGLE_DCHECK_NE(&from, this); - const SearchArtifactsResponse* source = - ::google::protobuf::DynamicCastToGenerated( + const FindByWorkflowExecRequest* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.SearchArtifactsResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.FindByWorkflowExecRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.SearchArtifactsResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.FindByWorkflowExecRequest) MergeFrom(*source); } } -void SearchArtifactsResponse::MergeFrom(const SearchArtifactsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.SearchArtifactsResponse) +void FindByWorkflowExecRequest::MergeFrom(const FindByWorkflowExecRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.FindByWorkflowExecRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - artifacts_.MergeFrom(from.artifacts_); + if (from.has_exec_id()) { + mutable_exec_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.exec_id()); + } + if (from.direction() != 0) { + set_direction(from.direction()); + } + if (from.fetch_specs() != 0) { + set_fetch_specs(from.fetch_specs()); + } } -void SearchArtifactsResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.SearchArtifactsResponse) +void FindByWorkflowExecRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.FindByWorkflowExecRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void SearchArtifactsResponse::CopyFrom(const SearchArtifactsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.SearchArtifactsResponse) +void FindByWorkflowExecRequest::CopyFrom(const FindByWorkflowExecRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.FindByWorkflowExecRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool SearchArtifactsResponse::IsInitialized() const { +bool FindByWorkflowExecRequest::IsInitialized() const { return true; } -void SearchArtifactsResponse::Swap(SearchArtifactsResponse* other) { +void FindByWorkflowExecRequest::Swap(FindByWorkflowExecRequest* other) { if (other == this) return; InternalSwap(other); } -void SearchArtifactsResponse::InternalSwap(SearchArtifactsResponse* other) { +void FindByWorkflowExecRequest::InternalSwap(FindByWorkflowExecRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&artifacts_)->InternalSwap(CastToBase(&other->artifacts_)); + swap(exec_id_, other->exec_id_); + swap(direction_, other->direction_); + swap(fetch_specs_, other->fetch_specs_); } -::google::protobuf::Metadata SearchArtifactsResponse::GetMetadata() const { +::google::protobuf::Metadata FindByWorkflowExecRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; } @@ -8314,192 +9185,93 @@ ::google::protobuf::Metadata RegisterResponse::GetMetadata() const { // =================================================================== -void CloudEventRequest::InitAsDefaultInstance() { - ::flyteidl::artifact::_CloudEventRequest_default_instance_.workflow_execution_event_ = const_cast< ::flyteidl::event::CloudEventWorkflowExecution*>( - ::flyteidl::event::CloudEventWorkflowExecution::internal_default_instance()); - ::flyteidl::artifact::_CloudEventRequest_default_instance_.task_execution_event_ = const_cast< ::flyteidl::event::CloudEventTaskExecution*>( - ::flyteidl::event::CloudEventTaskExecution::internal_default_instance()); - ::flyteidl::artifact::_CloudEventRequest_default_instance_.node_execution_event_ = const_cast< ::flyteidl::event::CloudEventNodeExecution*>( - ::flyteidl::event::CloudEventNodeExecution::internal_default_instance()); +void ExecutionInputsRequest::InitAsDefaultInstance() { + ::flyteidl::artifact::_ExecutionInputsRequest_default_instance_._instance.get_mutable()->execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); } -class CloudEventRequest::HasBitSetters { +class ExecutionInputsRequest::HasBitSetters { public: - static const ::flyteidl::event::CloudEventWorkflowExecution& workflow_execution_event(const CloudEventRequest* msg); - static const ::flyteidl::event::CloudEventTaskExecution& task_execution_event(const CloudEventRequest* msg); - static const ::flyteidl::event::CloudEventNodeExecution& node_execution_event(const CloudEventRequest* msg); + static const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id(const ExecutionInputsRequest* msg); }; -const ::flyteidl::event::CloudEventWorkflowExecution& -CloudEventRequest::HasBitSetters::workflow_execution_event(const CloudEventRequest* msg) { - return *msg->event_.workflow_execution_event_; -} -const ::flyteidl::event::CloudEventTaskExecution& -CloudEventRequest::HasBitSetters::task_execution_event(const CloudEventRequest* msg) { - return *msg->event_.task_execution_event_; -} -const ::flyteidl::event::CloudEventNodeExecution& -CloudEventRequest::HasBitSetters::node_execution_event(const CloudEventRequest* msg) { - return *msg->event_.node_execution_event_; -} -void CloudEventRequest::set_allocated_workflow_execution_event(::flyteidl::event::CloudEventWorkflowExecution* workflow_execution_event) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_event(); - if (workflow_execution_event) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - workflow_execution_event = ::google::protobuf::internal::GetOwnedMessage( - message_arena, workflow_execution_event, submessage_arena); - } - set_has_workflow_execution_event(); - event_.workflow_execution_event_ = workflow_execution_event; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.CloudEventRequest.workflow_execution_event) -} -void CloudEventRequest::clear_workflow_execution_event() { - if (has_workflow_execution_event()) { - delete event_.workflow_execution_event_; - clear_has_event(); - } -} -void CloudEventRequest::set_allocated_task_execution_event(::flyteidl::event::CloudEventTaskExecution* task_execution_event) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_event(); - if (task_execution_event) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - task_execution_event = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_execution_event, submessage_arena); - } - set_has_task_execution_event(); - event_.task_execution_event_ = task_execution_event; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.CloudEventRequest.task_execution_event) -} -void CloudEventRequest::clear_task_execution_event() { - if (has_task_execution_event()) { - delete event_.task_execution_event_; - clear_has_event(); - } +const ::flyteidl::core::WorkflowExecutionIdentifier& +ExecutionInputsRequest::HasBitSetters::execution_id(const ExecutionInputsRequest* msg) { + return *msg->execution_id_; } -void CloudEventRequest::set_allocated_node_execution_event(::flyteidl::event::CloudEventNodeExecution* node_execution_event) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_event(); - if (node_execution_event) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - node_execution_event = ::google::protobuf::internal::GetOwnedMessage( - message_arena, node_execution_event, submessage_arena); - } - set_has_node_execution_event(); - event_.node_execution_event_ = node_execution_event; +void ExecutionInputsRequest::clear_execution_id() { + if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { + delete execution_id_; } - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.CloudEventRequest.node_execution_event) + execution_id_ = nullptr; } -void CloudEventRequest::clear_node_execution_event() { - if (has_node_execution_event()) { - delete event_.node_execution_event_; - clear_has_event(); - } +void ExecutionInputsRequest::clear_inputs() { + inputs_.Clear(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CloudEventRequest::kWorkflowExecutionEventFieldNumber; -const int CloudEventRequest::kTaskExecutionEventFieldNumber; -const int CloudEventRequest::kNodeExecutionEventFieldNumber; +const int ExecutionInputsRequest::kExecutionIdFieldNumber; +const int ExecutionInputsRequest::kInputsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -CloudEventRequest::CloudEventRequest() +ExecutionInputsRequest::ExecutionInputsRequest() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.CloudEventRequest) + // @@protoc_insertion_point(constructor:flyteidl.artifact.ExecutionInputsRequest) } -CloudEventRequest::CloudEventRequest(const CloudEventRequest& from) +ExecutionInputsRequest::ExecutionInputsRequest(const ExecutionInputsRequest& from) : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { + _internal_metadata_(nullptr), + inputs_(from.inputs_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_event(); - switch (from.event_case()) { - case kWorkflowExecutionEvent: { - mutable_workflow_execution_event()->::flyteidl::event::CloudEventWorkflowExecution::MergeFrom(from.workflow_execution_event()); - break; - } - case kTaskExecutionEvent: { - mutable_task_execution_event()->::flyteidl::event::CloudEventTaskExecution::MergeFrom(from.task_execution_event()); - break; - } - case kNodeExecutionEvent: { - mutable_node_execution_event()->::flyteidl::event::CloudEventNodeExecution::MergeFrom(from.node_execution_event()); - break; - } - case EVENT_NOT_SET: { - break; - } + if (from.has_execution_id()) { + execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_id_); + } else { + execution_id_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.CloudEventRequest) + // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ExecutionInputsRequest) } -void CloudEventRequest::SharedCtor() { +void ExecutionInputsRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_CloudEventRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - clear_has_event(); + &scc_info_ExecutionInputsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); + execution_id_ = nullptr; } -CloudEventRequest::~CloudEventRequest() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.CloudEventRequest) +ExecutionInputsRequest::~ExecutionInputsRequest() { + // @@protoc_insertion_point(destructor:flyteidl.artifact.ExecutionInputsRequest) SharedDtor(); } -void CloudEventRequest::SharedDtor() { - if (has_event()) { - clear_event(); - } +void ExecutionInputsRequest::SharedDtor() { + if (this != internal_default_instance()) delete execution_id_; } -void CloudEventRequest::SetCachedSize(int size) const { +void ExecutionInputsRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const CloudEventRequest& CloudEventRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CloudEventRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); +const ExecutionInputsRequest& ExecutionInputsRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionInputsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); return *internal_default_instance(); } -void CloudEventRequest::clear_event() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.artifact.CloudEventRequest) - switch (event_case()) { - case kWorkflowExecutionEvent: { - delete event_.workflow_execution_event_; - break; - } - case kTaskExecutionEvent: { - delete event_.task_execution_event_; - break; - } - case kNodeExecutionEvent: { - delete event_.node_execution_event_; - break; - } - case EVENT_NOT_SET: { - break; - } - } - _oneof_case_[0] = EVENT_NOT_SET; -} - - -void CloudEventRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.CloudEventRequest) +void ExecutionInputsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ExecutionInputsRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - clear_event(); + inputs_.Clear(); + if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { + delete execution_id_; + } + execution_id_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CloudEventRequest::_InternalParse(const char* begin, const char* end, void* object, +const char* ExecutionInputsRequest::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -8509,43 +9281,33 @@ const char* CloudEventRequest::_InternalParse(const char* begin, const char* end ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::event::CloudEventWorkflowExecution::_InternalParse; - object = msg->mutable_workflow_execution_event(); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_execution_id(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; + // repeated .flyteidl.core.ArtifactID inputs = 2; case 2: { if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::event::CloudEventTaskExecution::_InternalParse; - object = msg->mutable_task_execution_event(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::event::CloudEventNodeExecution::_InternalParse; - object = msg->mutable_node_execution_event(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ArtifactID::_InternalParse; + object = msg->add_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); break; } default: { @@ -8568,43 +9330,32 @@ const char* CloudEventRequest::_InternalParse(const char* begin, const char* end {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CloudEventRequest::MergePartialFromCodedStream( +bool ExecutionInputsRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.artifact.CloudEventRequest) + // @@protoc_insertion_point(parse_start:flyteidl.artifact.ExecutionInputsRequest) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_workflow_execution_event())); + input, mutable_execution_id())); } else { goto handle_unusual; } break; } - // .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; + // repeated .flyteidl.core.ArtifactID inputs = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_task_execution_event())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_node_execution_event())); + input, add_inputs())); } else { goto handle_unusual; } @@ -8623,83 +9374,74 @@ bool CloudEventRequest::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyteidl.artifact.CloudEventRequest) + // @@protoc_insertion_point(parse_success:flyteidl.artifact.ExecutionInputsRequest) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.CloudEventRequest) + // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ExecutionInputsRequest) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void CloudEventRequest::SerializeWithCachedSizes( +void ExecutionInputsRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.CloudEventRequest) + // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ExecutionInputsRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; - if (has_workflow_execution_event()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::workflow_execution_event(this), output); - } - - // .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; - if (has_task_execution_event()) { + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + if (this->has_execution_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::task_execution_event(this), output); + 1, HasBitSetters::execution_id(this), output); } - // .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; - if (has_node_execution_event()) { + // repeated .flyteidl.core.ArtifactID inputs = 2; + for (unsigned int i = 0, + n = static_cast(this->inputs_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::node_execution_event(this), output); + 2, + this->inputs(static_cast(i)), + output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.CloudEventRequest) + // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ExecutionInputsRequest) } -::google::protobuf::uint8* CloudEventRequest::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* ExecutionInputsRequest::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.CloudEventRequest) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ExecutionInputsRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; - if (has_workflow_execution_event()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::workflow_execution_event(this), target); - } - - // .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; - if (has_task_execution_event()) { + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + if (this->has_execution_id()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 2, HasBitSetters::task_execution_event(this), target); + 1, HasBitSetters::execution_id(this), target); } - // .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; - if (has_node_execution_event()) { + // repeated .flyteidl.core.ArtifactID inputs = 2; + for (unsigned int i = 0, + n = static_cast(this->inputs_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 3, HasBitSetters::node_execution_event(this), target); + 2, this->inputs(static_cast(i)), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.CloudEventRequest) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.ExecutionInputsRequest) return target; } -size_t CloudEventRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.CloudEventRequest) +size_t ExecutionInputsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ExecutionInputsRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -8711,108 +9453,87 @@ size_t CloudEventRequest::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - switch (event_case()) { - // .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; - case kWorkflowExecutionEvent: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *event_.workflow_execution_event_); - break; - } - // .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; - case kTaskExecutionEvent: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *event_.task_execution_event_); - break; - } - // .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; - case kNodeExecutionEvent: { - total_size += 1 + + // repeated .flyteidl.core.ArtifactID inputs = 2; + { + unsigned int count = static_cast(this->inputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( - *event_.node_execution_event_); - break; - } - case EVENT_NOT_SET: { - break; + this->inputs(static_cast(i))); } } + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + if (this->has_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *execution_id_); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void CloudEventRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.CloudEventRequest) +void ExecutionInputsRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ExecutionInputsRequest) GOOGLE_DCHECK_NE(&from, this); - const CloudEventRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const ExecutionInputsRequest* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.CloudEventRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ExecutionInputsRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.CloudEventRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ExecutionInputsRequest) MergeFrom(*source); } } -void CloudEventRequest::MergeFrom(const CloudEventRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.CloudEventRequest) +void ExecutionInputsRequest::MergeFrom(const ExecutionInputsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ExecutionInputsRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - switch (from.event_case()) { - case kWorkflowExecutionEvent: { - mutable_workflow_execution_event()->::flyteidl::event::CloudEventWorkflowExecution::MergeFrom(from.workflow_execution_event()); - break; - } - case kTaskExecutionEvent: { - mutable_task_execution_event()->::flyteidl::event::CloudEventTaskExecution::MergeFrom(from.task_execution_event()); - break; - } - case kNodeExecutionEvent: { - mutable_node_execution_event()->::flyteidl::event::CloudEventNodeExecution::MergeFrom(from.node_execution_event()); - break; - } - case EVENT_NOT_SET: { - break; - } + inputs_.MergeFrom(from.inputs_); + if (from.has_execution_id()) { + mutable_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution_id()); } } -void CloudEventRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.CloudEventRequest) +void ExecutionInputsRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ExecutionInputsRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void CloudEventRequest::CopyFrom(const CloudEventRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.CloudEventRequest) +void ExecutionInputsRequest::CopyFrom(const ExecutionInputsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ExecutionInputsRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool CloudEventRequest::IsInitialized() const { +bool ExecutionInputsRequest::IsInitialized() const { return true; } -void CloudEventRequest::Swap(CloudEventRequest* other) { +void ExecutionInputsRequest::Swap(ExecutionInputsRequest* other) { if (other == this) return; InternalSwap(other); } -void CloudEventRequest::InternalSwap(CloudEventRequest* other) { +void ExecutionInputsRequest::InternalSwap(ExecutionInputsRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(event_, other->event_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + CastToBase(&inputs_)->InternalSwap(CastToBase(&other->inputs_)); + swap(execution_id_, other->execution_id_); } -::google::protobuf::Metadata CloudEventRequest::GetMetadata() const { +::google::protobuf::Metadata ExecutionInputsRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; } @@ -8820,49 +9541,49 @@ ::google::protobuf::Metadata CloudEventRequest::GetMetadata() const { // =================================================================== -void CloudEventResponse::InitAsDefaultInstance() { +void ExecutionInputsResponse::InitAsDefaultInstance() { } -class CloudEventResponse::HasBitSetters { +class ExecutionInputsResponse::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -CloudEventResponse::CloudEventResponse() +ExecutionInputsResponse::ExecutionInputsResponse() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.CloudEventResponse) + // @@protoc_insertion_point(constructor:flyteidl.artifact.ExecutionInputsResponse) } -CloudEventResponse::CloudEventResponse(const CloudEventResponse& from) +ExecutionInputsResponse::ExecutionInputsResponse(const ExecutionInputsResponse& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.CloudEventResponse) + // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ExecutionInputsResponse) } -void CloudEventResponse::SharedCtor() { +void ExecutionInputsResponse::SharedCtor() { } -CloudEventResponse::~CloudEventResponse() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.CloudEventResponse) +ExecutionInputsResponse::~ExecutionInputsResponse() { + // @@protoc_insertion_point(destructor:flyteidl.artifact.ExecutionInputsResponse) SharedDtor(); } -void CloudEventResponse::SharedDtor() { +void ExecutionInputsResponse::SharedDtor() { } -void CloudEventResponse::SetCachedSize(int size) const { +void ExecutionInputsResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -const CloudEventResponse& CloudEventResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CloudEventResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); +const ExecutionInputsResponse& ExecutionInputsResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionInputsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); return *internal_default_instance(); } -void CloudEventResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.CloudEventResponse) +void ExecutionInputsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ExecutionInputsResponse) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -8871,9 +9592,9 @@ void CloudEventResponse::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CloudEventResponse::_InternalParse(const char* begin, const char* end, void* object, +const char* ExecutionInputsResponse::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -8899,11 +9620,11 @@ const char* CloudEventResponse::_InternalParse(const char* begin, const char* en return ptr; } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CloudEventResponse::MergePartialFromCodedStream( +bool ExecutionInputsResponse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.artifact.CloudEventResponse) + // @@protoc_insertion_point(parse_start:flyteidl.artifact.ExecutionInputsResponse) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -8916,18 +9637,18 @@ bool CloudEventResponse::MergePartialFromCodedStream( input, tag, _internal_metadata_.mutable_unknown_fields())); } success: - // @@protoc_insertion_point(parse_success:flyteidl.artifact.CloudEventResponse) + // @@protoc_insertion_point(parse_success:flyteidl.artifact.ExecutionInputsResponse) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.CloudEventResponse) + // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ExecutionInputsResponse) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void CloudEventResponse::SerializeWithCachedSizes( +void ExecutionInputsResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.CloudEventResponse) + // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ExecutionInputsResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -8935,12 +9656,12 @@ void CloudEventResponse::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.CloudEventResponse) + // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ExecutionInputsResponse) } -::google::protobuf::uint8* CloudEventResponse::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* ExecutionInputsResponse::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.CloudEventResponse) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ExecutionInputsResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -8948,12 +9669,12 @@ ::google::protobuf::uint8* CloudEventResponse::InternalSerializeWithCachedSizesT target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.CloudEventResponse) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.ExecutionInputsResponse) return target; } -size_t CloudEventResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.CloudEventResponse) +size_t ExecutionInputsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ExecutionInputsResponse) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -8970,23 +9691,23 @@ size_t CloudEventResponse::ByteSizeLong() const { return total_size; } -void CloudEventResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.CloudEventResponse) +void ExecutionInputsResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ExecutionInputsResponse) GOOGLE_DCHECK_NE(&from, this); - const CloudEventResponse* source = - ::google::protobuf::DynamicCastToGenerated( + const ExecutionInputsResponse* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.CloudEventResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ExecutionInputsResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.CloudEventResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ExecutionInputsResponse) MergeFrom(*source); } } -void CloudEventResponse::MergeFrom(const CloudEventResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.CloudEventResponse) +void ExecutionInputsResponse::MergeFrom(const ExecutionInputsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ExecutionInputsResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -8994,34 +9715,34 @@ void CloudEventResponse::MergeFrom(const CloudEventResponse& from) { } -void CloudEventResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.CloudEventResponse) +void ExecutionInputsResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ExecutionInputsResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void CloudEventResponse::CopyFrom(const CloudEventResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.CloudEventResponse) +void ExecutionInputsResponse::CopyFrom(const ExecutionInputsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ExecutionInputsResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool CloudEventResponse::IsInitialized() const { +bool ExecutionInputsResponse::IsInitialized() const { return true; } -void CloudEventResponse::Swap(CloudEventResponse* other) { +void ExecutionInputsResponse::Swap(ExecutionInputsResponse* other) { if (other == this) return; InternalSwap(other); } -void CloudEventResponse::InternalSwap(CloudEventResponse* other) { +void ExecutionInputsResponse::InternalSwap(ExecutionInputsResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); } -::google::protobuf::Metadata CloudEventResponse::GetMetadata() const { +::google::protobuf::Metadata ExecutionInputsResponse::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; } @@ -9041,6 +9762,9 @@ template<> PROTOBUF_NOINLINE ::flyteidl::artifact::CreateArtifactRequest_Partiti template<> PROTOBUF_NOINLINE ::flyteidl::artifact::CreateArtifactRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::CreateArtifactRequest >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::artifact::CreateArtifactRequest >(arena); } +template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ArtifactSource* Arena::CreateMaybeMessage< ::flyteidl::artifact::ArtifactSource >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::artifact::ArtifactSource >(arena); +} template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ArtifactSpec* Arena::CreateMaybeMessage< ::flyteidl::artifact::ArtifactSpec >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::artifact::ArtifactSpec >(arena); } @@ -9053,11 +9777,8 @@ template<> PROTOBUF_NOINLINE ::flyteidl::artifact::GetArtifactRequest* Arena::Cr template<> PROTOBUF_NOINLINE ::flyteidl::artifact::GetArtifactResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::GetArtifactResponse >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::artifact::GetArtifactResponse >(arena); } -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ListArtifactNamesRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::ListArtifactNamesRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::ListArtifactNamesRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ListArtifactNamesResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::ListArtifactNamesResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::ListArtifactNamesResponse >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::artifact::SearchOptions* Arena::CreateMaybeMessage< ::flyteidl::artifact::SearchOptions >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::artifact::SearchOptions >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::artifact::SearchArtifactsRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::SearchArtifactsRequest >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::artifact::SearchArtifactsRequest >(arena); @@ -9065,6 +9786,9 @@ template<> PROTOBUF_NOINLINE ::flyteidl::artifact::SearchArtifactsRequest* Arena template<> PROTOBUF_NOINLINE ::flyteidl::artifact::SearchArtifactsResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::SearchArtifactsResponse >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::artifact::SearchArtifactsResponse >(arena); } +template<> PROTOBUF_NOINLINE ::flyteidl::artifact::FindByWorkflowExecRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::FindByWorkflowExecRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::artifact::FindByWorkflowExecRequest >(arena); +} template<> PROTOBUF_NOINLINE ::flyteidl::artifact::AddTagRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::AddTagRequest >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::artifact::AddTagRequest >(arena); } @@ -9098,11 +9822,11 @@ template<> PROTOBUF_NOINLINE ::flyteidl::artifact::RegisterConsumerRequest* Aren template<> PROTOBUF_NOINLINE ::flyteidl::artifact::RegisterResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::RegisterResponse >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::artifact::RegisterResponse >(arena); } -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::CloudEventRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::CloudEventRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::CloudEventRequest >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ExecutionInputsRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::ExecutionInputsRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::artifact::ExecutionInputsRequest >(arena); } -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::CloudEventResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::CloudEventResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::CloudEventResponse >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ExecutionInputsResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::ExecutionInputsResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::artifact::ExecutionInputsResponse >(arena); } } // namespace protobuf } // namespace google diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.h b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.h index 0e21ee790c..b06022dc5c 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.h @@ -33,6 +33,7 @@ #include // IWYU pragma: export #include #include +#include #include #include #include "google/api/annotations.pb.h" @@ -53,7 +54,7 @@ struct TableStruct_flyteidl_2fartifact_2fartifacts_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[24] + static const ::google::protobuf::internal::ParseTable schema[25] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; @@ -77,15 +78,12 @@ extern ArtifactConsumerDefaultTypeInternal _ArtifactConsumer_default_instance_; class ArtifactProducer; class ArtifactProducerDefaultTypeInternal; extern ArtifactProducerDefaultTypeInternal _ArtifactProducer_default_instance_; +class ArtifactSource; +class ArtifactSourceDefaultTypeInternal; +extern ArtifactSourceDefaultTypeInternal _ArtifactSource_default_instance_; class ArtifactSpec; class ArtifactSpecDefaultTypeInternal; extern ArtifactSpecDefaultTypeInternal _ArtifactSpec_default_instance_; -class CloudEventRequest; -class CloudEventRequestDefaultTypeInternal; -extern CloudEventRequestDefaultTypeInternal _CloudEventRequest_default_instance_; -class CloudEventResponse; -class CloudEventResponseDefaultTypeInternal; -extern CloudEventResponseDefaultTypeInternal _CloudEventResponse_default_instance_; class CreateArtifactRequest; class CreateArtifactRequestDefaultTypeInternal; extern CreateArtifactRequestDefaultTypeInternal _CreateArtifactRequest_default_instance_; @@ -107,18 +105,21 @@ extern DeleteTriggerRequestDefaultTypeInternal _DeleteTriggerRequest_default_ins class DeleteTriggerResponse; class DeleteTriggerResponseDefaultTypeInternal; extern DeleteTriggerResponseDefaultTypeInternal _DeleteTriggerResponse_default_instance_; +class ExecutionInputsRequest; +class ExecutionInputsRequestDefaultTypeInternal; +extern ExecutionInputsRequestDefaultTypeInternal _ExecutionInputsRequest_default_instance_; +class ExecutionInputsResponse; +class ExecutionInputsResponseDefaultTypeInternal; +extern ExecutionInputsResponseDefaultTypeInternal _ExecutionInputsResponse_default_instance_; +class FindByWorkflowExecRequest; +class FindByWorkflowExecRequestDefaultTypeInternal; +extern FindByWorkflowExecRequestDefaultTypeInternal _FindByWorkflowExecRequest_default_instance_; class GetArtifactRequest; class GetArtifactRequestDefaultTypeInternal; extern GetArtifactRequestDefaultTypeInternal _GetArtifactRequest_default_instance_; class GetArtifactResponse; class GetArtifactResponseDefaultTypeInternal; extern GetArtifactResponseDefaultTypeInternal _GetArtifactResponse_default_instance_; -class ListArtifactNamesRequest; -class ListArtifactNamesRequestDefaultTypeInternal; -extern ListArtifactNamesRequestDefaultTypeInternal _ListArtifactNamesRequest_default_instance_; -class ListArtifactNamesResponse; -class ListArtifactNamesResponseDefaultTypeInternal; -extern ListArtifactNamesResponseDefaultTypeInternal _ListArtifactNamesResponse_default_instance_; class RegisterConsumerRequest; class RegisterConsumerRequestDefaultTypeInternal; extern RegisterConsumerRequestDefaultTypeInternal _RegisterConsumerRequest_default_instance_; @@ -134,6 +135,9 @@ extern SearchArtifactsRequestDefaultTypeInternal _SearchArtifactsRequest_default class SearchArtifactsResponse; class SearchArtifactsResponseDefaultTypeInternal; extern SearchArtifactsResponseDefaultTypeInternal _SearchArtifactsResponse_default_instance_; +class SearchOptions; +class SearchOptionsDefaultTypeInternal; +extern SearchOptionsDefaultTypeInternal _SearchOptions_default_instance_; } // namespace artifact } // namespace flyteidl namespace google { @@ -143,9 +147,8 @@ template<> ::flyteidl::artifact::AddTagResponse* Arena::CreateMaybeMessage<::fly template<> ::flyteidl::artifact::Artifact* Arena::CreateMaybeMessage<::flyteidl::artifact::Artifact>(Arena*); template<> ::flyteidl::artifact::ArtifactConsumer* Arena::CreateMaybeMessage<::flyteidl::artifact::ArtifactConsumer>(Arena*); template<> ::flyteidl::artifact::ArtifactProducer* Arena::CreateMaybeMessage<::flyteidl::artifact::ArtifactProducer>(Arena*); +template<> ::flyteidl::artifact::ArtifactSource* Arena::CreateMaybeMessage<::flyteidl::artifact::ArtifactSource>(Arena*); template<> ::flyteidl::artifact::ArtifactSpec* Arena::CreateMaybeMessage<::flyteidl::artifact::ArtifactSpec>(Arena*); -template<> ::flyteidl::artifact::CloudEventRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::CloudEventRequest>(Arena*); -template<> ::flyteidl::artifact::CloudEventResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::CloudEventResponse>(Arena*); template<> ::flyteidl::artifact::CreateArtifactRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::CreateArtifactRequest>(Arena*); template<> ::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse>(Arena*); template<> ::flyteidl::artifact::CreateArtifactResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::CreateArtifactResponse>(Arena*); @@ -153,20 +156,43 @@ template<> ::flyteidl::artifact::CreateTriggerRequest* Arena::CreateMaybeMessage template<> ::flyteidl::artifact::CreateTriggerResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::CreateTriggerResponse>(Arena*); template<> ::flyteidl::artifact::DeleteTriggerRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::DeleteTriggerRequest>(Arena*); template<> ::flyteidl::artifact::DeleteTriggerResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::DeleteTriggerResponse>(Arena*); +template<> ::flyteidl::artifact::ExecutionInputsRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::ExecutionInputsRequest>(Arena*); +template<> ::flyteidl::artifact::ExecutionInputsResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::ExecutionInputsResponse>(Arena*); +template<> ::flyteidl::artifact::FindByWorkflowExecRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::FindByWorkflowExecRequest>(Arena*); template<> ::flyteidl::artifact::GetArtifactRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::GetArtifactRequest>(Arena*); template<> ::flyteidl::artifact::GetArtifactResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::GetArtifactResponse>(Arena*); -template<> ::flyteidl::artifact::ListArtifactNamesRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::ListArtifactNamesRequest>(Arena*); -template<> ::flyteidl::artifact::ListArtifactNamesResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::ListArtifactNamesResponse>(Arena*); template<> ::flyteidl::artifact::RegisterConsumerRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::RegisterConsumerRequest>(Arena*); template<> ::flyteidl::artifact::RegisterProducerRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::RegisterProducerRequest>(Arena*); template<> ::flyteidl::artifact::RegisterResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::RegisterResponse>(Arena*); template<> ::flyteidl::artifact::SearchArtifactsRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::SearchArtifactsRequest>(Arena*); template<> ::flyteidl::artifact::SearchArtifactsResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::SearchArtifactsResponse>(Arena*); +template<> ::flyteidl::artifact::SearchOptions* Arena::CreateMaybeMessage<::flyteidl::artifact::SearchOptions>(Arena*); } // namespace protobuf } // namespace google namespace flyteidl { namespace artifact { +enum FindByWorkflowExecRequest_Direction { + FindByWorkflowExecRequest_Direction_INPUTS = 0, + FindByWorkflowExecRequest_Direction_OUTPUTS = 1, + FindByWorkflowExecRequest_Direction_FindByWorkflowExecRequest_Direction_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + FindByWorkflowExecRequest_Direction_FindByWorkflowExecRequest_Direction_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool FindByWorkflowExecRequest_Direction_IsValid(int value); +const FindByWorkflowExecRequest_Direction FindByWorkflowExecRequest_Direction_Direction_MIN = FindByWorkflowExecRequest_Direction_INPUTS; +const FindByWorkflowExecRequest_Direction FindByWorkflowExecRequest_Direction_Direction_MAX = FindByWorkflowExecRequest_Direction_OUTPUTS; +const int FindByWorkflowExecRequest_Direction_Direction_ARRAYSIZE = FindByWorkflowExecRequest_Direction_Direction_MAX + 1; + +const ::google::protobuf::EnumDescriptor* FindByWorkflowExecRequest_Direction_descriptor(); +inline const ::std::string& FindByWorkflowExecRequest_Direction_Name(FindByWorkflowExecRequest_Direction value) { + return ::google::protobuf::internal::NameOfEnum( + FindByWorkflowExecRequest_Direction_descriptor(), value); +} +inline bool FindByWorkflowExecRequest_Direction_Parse( + const ::std::string& name, FindByWorkflowExecRequest_Direction* value) { + return ::google::protobuf::internal::ParseNamedEnum( + FindByWorkflowExecRequest_Direction_descriptor(), name, value); +} // =================================================================== class Artifact final : @@ -304,6 +330,15 @@ class Artifact final : ::flyteidl::artifact::ArtifactSpec* mutable_spec(); void set_allocated_spec(::flyteidl::artifact::ArtifactSpec* spec); + // .flyteidl.artifact.ArtifactSource source = 4; + bool has_source() const; + void clear_source(); + static const int kSourceFieldNumber = 4; + const ::flyteidl::artifact::ArtifactSource& source() const; + ::flyteidl::artifact::ArtifactSource* release_source(); + ::flyteidl::artifact::ArtifactSource* mutable_source(); + void set_allocated_source(::flyteidl::artifact::ArtifactSource* source); + // @@protoc_insertion_point(class_scope:flyteidl.artifact.Artifact) private: class HasBitSetters; @@ -312,6 +347,7 @@ class Artifact final : ::google::protobuf::RepeatedPtrField<::std::string> tags_; ::flyteidl::core::ArtifactID* artifact_id_; ::flyteidl::artifact::ArtifactSpec* spec_; + ::flyteidl::artifact::ArtifactSource* source_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; }; @@ -492,6 +528,15 @@ class CreateArtifactRequest final : ::flyteidl::artifact::ArtifactSpec* mutable_spec(); void set_allocated_spec(::flyteidl::artifact::ArtifactSpec* spec); + // .flyteidl.artifact.ArtifactSource source = 6; + bool has_source() const; + void clear_source(); + static const int kSourceFieldNumber = 6; + const ::flyteidl::artifact::ArtifactSource& source() const; + ::flyteidl::artifact::ArtifactSource* release_source(); + ::flyteidl::artifact::ArtifactSource* mutable_source(); + void set_allocated_source(::flyteidl::artifact::ArtifactSource* source); + // @@protoc_insertion_point(class_scope:flyteidl.artifact.CreateArtifactRequest) private: class HasBitSetters; @@ -507,6 +552,169 @@ class CreateArtifactRequest final : ::google::protobuf::internal::ArenaStringPtr tag_; ::flyteidl::core::ArtifactKey* artifact_key_; ::flyteidl::artifact::ArtifactSpec* spec_; + ::flyteidl::artifact::ArtifactSource* source_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; +}; +// ------------------------------------------------------------------- + +class ArtifactSource final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.ArtifactSource) */ { + public: + ArtifactSource(); + virtual ~ArtifactSource(); + + ArtifactSource(const ArtifactSource& from); + + inline ArtifactSource& operator=(const ArtifactSource& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ArtifactSource(ArtifactSource&& from) noexcept + : ArtifactSource() { + *this = ::std::move(from); + } + + inline ArtifactSource& operator=(ArtifactSource&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ArtifactSource& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ArtifactSource* internal_default_instance() { + return reinterpret_cast( + &_ArtifactSource_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(ArtifactSource* other); + friend void swap(ArtifactSource& a, ArtifactSource& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ArtifactSource* New() const final { + return CreateMaybeMessage(nullptr); + } + + ArtifactSource* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ArtifactSource& from); + void MergeFrom(const ArtifactSource& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ArtifactSource* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string node_id = 2; + void clear_node_id(); + static const int kNodeIdFieldNumber = 2; + const ::std::string& node_id() const; + void set_node_id(const ::std::string& value); + #if LANG_CXX11 + void set_node_id(::std::string&& value); + #endif + void set_node_id(const char* value); + void set_node_id(const char* value, size_t size); + ::std::string* mutable_node_id(); + ::std::string* release_node_id(); + void set_allocated_node_id(::std::string* node_id); + + // string principal = 5; + void clear_principal(); + static const int kPrincipalFieldNumber = 5; + const ::std::string& principal() const; + void set_principal(const ::std::string& value); + #if LANG_CXX11 + void set_principal(::std::string&& value); + #endif + void set_principal(const char* value); + void set_principal(const char* value, size_t size); + ::std::string* mutable_principal(); + ::std::string* release_principal(); + void set_allocated_principal(::std::string* principal); + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; + bool has_workflow_execution() const; + void clear_workflow_execution(); + static const int kWorkflowExecutionFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_execution() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_workflow_execution(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_workflow_execution(); + void set_allocated_workflow_execution(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution); + + // .flyteidl.core.Identifier task_id = 3; + bool has_task_id() const; + void clear_task_id(); + static const int kTaskIdFieldNumber = 3; + const ::flyteidl::core::Identifier& task_id() const; + ::flyteidl::core::Identifier* release_task_id(); + ::flyteidl::core::Identifier* mutable_task_id(); + void set_allocated_task_id(::flyteidl::core::Identifier* task_id); + + // uint32 retry_attempt = 4; + void clear_retry_attempt(); + static const int kRetryAttemptFieldNumber = 4; + ::google::protobuf::uint32 retry_attempt() const; + void set_retry_attempt(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.artifact.ArtifactSource) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr node_id_; + ::google::protobuf::internal::ArenaStringPtr principal_; + ::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_; + ::flyteidl::core::Identifier* task_id_; + ::google::protobuf::uint32 retry_attempt_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; }; @@ -550,7 +758,7 @@ class ArtifactSpec final : &_ArtifactSpec_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 4; void Swap(ArtifactSpec* other); friend void swap(ArtifactSpec& a, ArtifactSpec& b) { @@ -607,23 +815,9 @@ class ArtifactSpec final : // accessors ------------------------------------------------------- - // string principal = 7; - void clear_principal(); - static const int kPrincipalFieldNumber = 7; - const ::std::string& principal() const; - void set_principal(const ::std::string& value); - #if LANG_CXX11 - void set_principal(::std::string&& value); - #endif - void set_principal(const char* value); - void set_principal(const char* value, size_t size); - ::std::string* mutable_principal(); - ::std::string* release_principal(); - void set_allocated_principal(::std::string* principal); - - // string short_description = 8; + // string short_description = 3; void clear_short_description(); - static const int kShortDescriptionFieldNumber = 8; + static const int kShortDescriptionFieldNumber = 3; const ::std::string& short_description() const; void set_short_description(const ::std::string& value); #if LANG_CXX11 @@ -635,9 +829,9 @@ class ArtifactSpec final : ::std::string* release_short_description(); void set_allocated_short_description(::std::string* short_description); - // string metadata_type = 11; + // string metadata_type = 5; void clear_metadata_type(); - static const int kMetadataTypeFieldNumber = 11; + static const int kMetadataTypeFieldNumber = 5; const ::std::string& metadata_type() const; void set_metadata_type(const ::std::string& value); #if LANG_CXX11 @@ -667,28 +861,10 @@ class ArtifactSpec final : ::flyteidl::core::LiteralType* mutable_type(); void set_allocated_type(::flyteidl::core::LiteralType* type); - // .flyteidl.core.TaskExecutionIdentifier task_execution = 5; - bool has_task_execution() const; - void clear_task_execution(); - static const int kTaskExecutionFieldNumber = 5; - const ::flyteidl::core::TaskExecutionIdentifier& task_execution() const; - ::flyteidl::core::TaskExecutionIdentifier* release_task_execution(); - ::flyteidl::core::TaskExecutionIdentifier* mutable_task_execution(); - void set_allocated_task_execution(::flyteidl::core::TaskExecutionIdentifier* task_execution); - - // .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - bool has_execution() const; - void clear_execution(); - static const int kExecutionFieldNumber = 6; - const ::flyteidl::core::WorkflowExecutionIdentifier& execution() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_execution(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_execution(); - void set_allocated_execution(::flyteidl::core::WorkflowExecutionIdentifier* execution); - - // .google.protobuf.Any user_metadata = 10; + // .google.protobuf.Any user_metadata = 4; bool has_user_metadata() const; void clear_user_metadata(); - static const int kUserMetadataFieldNumber = 10; + static const int kUserMetadataFieldNumber = 4; const ::google::protobuf::Any& user_metadata() const; ::google::protobuf::Any* release_user_metadata(); ::google::protobuf::Any* mutable_user_metadata(); @@ -699,13 +875,10 @@ class ArtifactSpec final : class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr principal_; ::google::protobuf::internal::ArenaStringPtr short_description_; ::google::protobuf::internal::ArenaStringPtr metadata_type_; ::flyteidl::core::Literal* value_; ::flyteidl::core::LiteralType* type_; - ::flyteidl::core::TaskExecutionIdentifier* task_execution_; - ::flyteidl::core::WorkflowExecutionIdentifier* execution_; ::google::protobuf::Any* user_metadata_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; @@ -750,7 +923,7 @@ class CreateArtifactResponse final : &_CreateArtifactResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 5; void Swap(CreateArtifactResponse* other); friend void swap(CreateArtifactResponse& a, CreateArtifactResponse& b) { @@ -865,7 +1038,7 @@ class GetArtifactRequest final : &_GetArtifactRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 6; void Swap(GetArtifactRequest* other); friend void swap(GetArtifactRequest& a, GetArtifactRequest& b) { @@ -987,7 +1160,7 @@ class GetArtifactResponse final : &_GetArtifactResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 7; void Swap(GetArtifactResponse* other); friend void swap(GetArtifactResponse& a, GetArtifactResponse& b) { @@ -1064,25 +1237,25 @@ class GetArtifactResponse final : }; // ------------------------------------------------------------------- -class ListArtifactNamesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.ListArtifactNamesRequest) */ { +class SearchOptions final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.SearchOptions) */ { public: - ListArtifactNamesRequest(); - virtual ~ListArtifactNamesRequest(); + SearchOptions(); + virtual ~SearchOptions(); - ListArtifactNamesRequest(const ListArtifactNamesRequest& from); + SearchOptions(const SearchOptions& from); - inline ListArtifactNamesRequest& operator=(const ListArtifactNamesRequest& from) { + inline SearchOptions& operator=(const SearchOptions& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - ListArtifactNamesRequest(ListArtifactNamesRequest&& from) noexcept - : ListArtifactNamesRequest() { + SearchOptions(SearchOptions&& from) noexcept + : SearchOptions() { *this = ::std::move(from); } - inline ListArtifactNamesRequest& operator=(ListArtifactNamesRequest&& from) noexcept { + inline SearchOptions& operator=(SearchOptions&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1094,34 +1267,34 @@ class ListArtifactNamesRequest final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const ListArtifactNamesRequest& default_instance(); + static const SearchOptions& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ListArtifactNamesRequest* internal_default_instance() { - return reinterpret_cast( - &_ListArtifactNamesRequest_default_instance_); + static inline const SearchOptions* internal_default_instance() { + return reinterpret_cast( + &_SearchOptions_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 8; - void Swap(ListArtifactNamesRequest* other); - friend void swap(ListArtifactNamesRequest& a, ListArtifactNamesRequest& b) { + void Swap(SearchOptions* other); + friend void swap(SearchOptions& a, SearchOptions& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline ListArtifactNamesRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline SearchOptions* New() const final { + return CreateMaybeMessage(nullptr); } - ListArtifactNamesRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + SearchOptions* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ListArtifactNamesRequest& from); - void MergeFrom(const ListArtifactNamesRequest& from); + void CopyFrom(const SearchOptions& from); + void MergeFrom(const SearchOptions& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1143,7 +1316,7 @@ class ListArtifactNamesRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ListArtifactNamesRequest* other); + void InternalSwap(SearchOptions* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -1159,159 +1332,25 @@ class ListArtifactNamesRequest final : // accessors ------------------------------------------------------- - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 2; - void clear_domain(); - static const int kDomainFieldNumber = 2; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ListArtifactNamesRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class ListArtifactNamesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.ListArtifactNamesResponse) */ { - public: - ListArtifactNamesResponse(); - virtual ~ListArtifactNamesResponse(); - - ListArtifactNamesResponse(const ListArtifactNamesResponse& from); - - inline ListArtifactNamesResponse& operator=(const ListArtifactNamesResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ListArtifactNamesResponse(ListArtifactNamesResponse&& from) noexcept - : ListArtifactNamesResponse() { - *this = ::std::move(from); - } - - inline ListArtifactNamesResponse& operator=(ListArtifactNamesResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); - } - static const ListArtifactNamesResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ListArtifactNamesResponse* internal_default_instance() { - return reinterpret_cast( - &_ListArtifactNamesResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(ListArtifactNamesResponse* other); - friend void swap(ListArtifactNamesResponse& a, ListArtifactNamesResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ListArtifactNamesResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ListArtifactNamesResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ListArtifactNamesResponse& from); - void MergeFrom(const ListArtifactNamesResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ListArtifactNamesResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- + // bool strict_partitions = 1; + void clear_strict_partitions(); + static const int kStrictPartitionsFieldNumber = 1; + bool strict_partitions() const; + void set_strict_partitions(bool value); - // accessors ------------------------------------------------------- + // bool latest_by_key = 2; + void clear_latest_by_key(); + static const int kLatestByKeyFieldNumber = 2; + bool latest_by_key() const; + void set_latest_by_key(bool value); - // repeated .flyteidl.core.ArtifactKey artifact_keys = 1; - int artifact_keys_size() const; - void clear_artifact_keys(); - static const int kArtifactKeysFieldNumber = 1; - ::flyteidl::core::ArtifactKey* mutable_artifact_keys(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactKey >* - mutable_artifact_keys(); - const ::flyteidl::core::ArtifactKey& artifact_keys(int index) const; - ::flyteidl::core::ArtifactKey* add_artifact_keys(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactKey >& - artifact_keys() const; - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ListArtifactNamesResponse) + // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchOptions) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactKey > artifact_keys_; + bool strict_partitions_; + bool latest_by_key_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; }; @@ -1412,23 +1451,37 @@ class SearchArtifactsRequest final : // accessors ------------------------------------------------------- - // string filters = 2; - void clear_filters(); - static const int kFiltersFieldNumber = 2; - const ::std::string& filters() const; - void set_filters(const ::std::string& value); + // string principal = 3; + void clear_principal(); + static const int kPrincipalFieldNumber = 3; + const ::std::string& principal() const; + void set_principal(const ::std::string& value); + #if LANG_CXX11 + void set_principal(::std::string&& value); + #endif + void set_principal(const char* value); + void set_principal(const char* value, size_t size); + ::std::string* mutable_principal(); + ::std::string* release_principal(); + void set_allocated_principal(::std::string* principal); + + // string version = 4; + void clear_version(); + static const int kVersionFieldNumber = 4; + const ::std::string& version() const; + void set_version(const ::std::string& value); #if LANG_CXX11 - void set_filters(::std::string&& value); + void set_version(::std::string&& value); #endif - void set_filters(const char* value); - void set_filters(const char* value, size_t size); - ::std::string* mutable_filters(); - ::std::string* release_filters(); - void set_allocated_filters(::std::string* filters); + void set_version(const char* value); + void set_version(const char* value, size_t size); + ::std::string* mutable_version(); + ::std::string* release_version(); + void set_allocated_version(::std::string* version); - // string token = 3; + // string token = 6; void clear_token(); - static const int kTokenFieldNumber = 3; + static const int kTokenFieldNumber = 6; const ::std::string& token() const; void set_token(const ::std::string& value); #if LANG_CXX11 @@ -1449,9 +1502,27 @@ class SearchArtifactsRequest final : ::flyteidl::core::ArtifactKey* mutable_artifact_key(); void set_allocated_artifact_key(::flyteidl::core::ArtifactKey* artifact_key); - // int32 limit = 4; + // .flyteidl.core.Partitions partitions = 2; + bool has_partitions() const; + void clear_partitions(); + static const int kPartitionsFieldNumber = 2; + const ::flyteidl::core::Partitions& partitions() const; + ::flyteidl::core::Partitions* release_partitions(); + ::flyteidl::core::Partitions* mutable_partitions(); + void set_allocated_partitions(::flyteidl::core::Partitions* partitions); + + // .flyteidl.artifact.SearchOptions options = 5; + bool has_options() const; + void clear_options(); + static const int kOptionsFieldNumber = 5; + const ::flyteidl::artifact::SearchOptions& options() const; + ::flyteidl::artifact::SearchOptions* release_options(); + ::flyteidl::artifact::SearchOptions* mutable_options(); + void set_allocated_options(::flyteidl::artifact::SearchOptions* options); + + // int32 limit = 7; void clear_limit(); - static const int kLimitFieldNumber = 4; + static const int kLimitFieldNumber = 7; ::google::protobuf::int32 limit() const; void set_limit(::google::protobuf::int32 value); @@ -1460,9 +1531,12 @@ class SearchArtifactsRequest final : class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr filters_; + ::google::protobuf::internal::ArenaStringPtr principal_; + ::google::protobuf::internal::ArenaStringPtr version_; ::google::protobuf::internal::ArenaStringPtr token_; ::flyteidl::core::ArtifactKey* artifact_key_; + ::flyteidl::core::Partitions* partitions_; + ::flyteidl::artifact::SearchOptions* options_; ::google::protobuf::int32 limit_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; @@ -1576,31 +1650,201 @@ class SearchArtifactsResponse final : const ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::Artifact >& artifacts() const; + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchArtifactsResponse) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::Artifact > artifacts_; + ::google::protobuf::internal::ArenaStringPtr token_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; }; // ------------------------------------------------------------------- -class AddTagRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.AddTagRequest) */ { +class FindByWorkflowExecRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.FindByWorkflowExecRequest) */ { public: - AddTagRequest(); - virtual ~AddTagRequest(); + FindByWorkflowExecRequest(); + virtual ~FindByWorkflowExecRequest(); - AddTagRequest(const AddTagRequest& from); + FindByWorkflowExecRequest(const FindByWorkflowExecRequest& from); - inline AddTagRequest& operator=(const AddTagRequest& from) { + inline FindByWorkflowExecRequest& operator=(const FindByWorkflowExecRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - AddTagRequest(AddTagRequest&& from) noexcept + FindByWorkflowExecRequest(FindByWorkflowExecRequest&& from) noexcept + : FindByWorkflowExecRequest() { + *this = ::std::move(from); + } + + inline FindByWorkflowExecRequest& operator=(FindByWorkflowExecRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const FindByWorkflowExecRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FindByWorkflowExecRequest* internal_default_instance() { + return reinterpret_cast( + &_FindByWorkflowExecRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(FindByWorkflowExecRequest* other); + friend void swap(FindByWorkflowExecRequest& a, FindByWorkflowExecRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline FindByWorkflowExecRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + FindByWorkflowExecRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const FindByWorkflowExecRequest& from); + void MergeFrom(const FindByWorkflowExecRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FindByWorkflowExecRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef FindByWorkflowExecRequest_Direction Direction; + static const Direction INPUTS = + FindByWorkflowExecRequest_Direction_INPUTS; + static const Direction OUTPUTS = + FindByWorkflowExecRequest_Direction_OUTPUTS; + static inline bool Direction_IsValid(int value) { + return FindByWorkflowExecRequest_Direction_IsValid(value); + } + static const Direction Direction_MIN = + FindByWorkflowExecRequest_Direction_Direction_MIN; + static const Direction Direction_MAX = + FindByWorkflowExecRequest_Direction_Direction_MAX; + static const int Direction_ARRAYSIZE = + FindByWorkflowExecRequest_Direction_Direction_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Direction_descriptor() { + return FindByWorkflowExecRequest_Direction_descriptor(); + } + static inline const ::std::string& Direction_Name(Direction value) { + return FindByWorkflowExecRequest_Direction_Name(value); + } + static inline bool Direction_Parse(const ::std::string& name, + Direction* value) { + return FindByWorkflowExecRequest_Direction_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; + bool has_exec_id() const; + void clear_exec_id(); + static const int kExecIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& exec_id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_exec_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_exec_id(); + void set_allocated_exec_id(::flyteidl::core::WorkflowExecutionIdentifier* exec_id); + + // .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; + void clear_direction(); + static const int kDirectionFieldNumber = 2; + ::flyteidl::artifact::FindByWorkflowExecRequest_Direction direction() const; + void set_direction(::flyteidl::artifact::FindByWorkflowExecRequest_Direction value); + + // bool fetch_specs = 3; + void clear_fetch_specs(); + static const int kFetchSpecsFieldNumber = 3; + bool fetch_specs() const; + void set_fetch_specs(bool value); + + // @@protoc_insertion_point(class_scope:flyteidl.artifact.FindByWorkflowExecRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* exec_id_; + int direction_; + bool fetch_specs_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; +}; +// ------------------------------------------------------------------- + +class AddTagRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.AddTagRequest) */ { + public: + AddTagRequest(); + virtual ~AddTagRequest(); + + AddTagRequest(const AddTagRequest& from); + + inline AddTagRequest& operator=(const AddTagRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + AddTagRequest(AddTagRequest&& from) noexcept : AddTagRequest() { *this = ::std::move(from); } @@ -1625,7 +1869,7 @@ class AddTagRequest final : &_AddTagRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; void Swap(AddTagRequest* other); friend void swap(AddTagRequest& a, AddTagRequest& b) { @@ -1762,7 +2006,7 @@ class AddTagResponse final : &_AddTagResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; void Swap(AddTagResponse* other); friend void swap(AddTagResponse& a, AddTagResponse& b) { @@ -1867,7 +2111,7 @@ class CreateTriggerRequest final : &_CreateTriggerRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; void Swap(CreateTriggerRequest* other); friend void swap(CreateTriggerRequest& a, CreateTriggerRequest& b) { @@ -1982,7 +2226,7 @@ class CreateTriggerResponse final : &_CreateTriggerResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; void Swap(CreateTriggerResponse* other); friend void swap(CreateTriggerResponse& a, CreateTriggerResponse& b) { @@ -2087,7 +2331,7 @@ class DeleteTriggerRequest final : &_DeleteTriggerRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; void Swap(DeleteTriggerRequest* other); friend void swap(DeleteTriggerRequest& a, DeleteTriggerRequest& b) { @@ -2202,7 +2446,7 @@ class DeleteTriggerResponse final : &_DeleteTriggerResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 17; void Swap(DeleteTriggerResponse* other); friend void swap(DeleteTriggerResponse& a, DeleteTriggerResponse& b) { @@ -2307,7 +2551,7 @@ class ArtifactProducer final : &_ArtifactProducer_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; void Swap(ArtifactProducer* other); friend void swap(ArtifactProducer& a, ArtifactProducer& b) { @@ -2432,7 +2676,7 @@ class RegisterProducerRequest final : &_RegisterProducerRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; void Swap(RegisterProducerRequest* other); friend void swap(RegisterProducerRequest& a, RegisterProducerRequest& b) { @@ -2550,7 +2794,7 @@ class ArtifactConsumer final : &_ArtifactConsumer_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 20; void Swap(ArtifactConsumer* other); friend void swap(ArtifactConsumer& a, ArtifactConsumer& b) { @@ -2675,7 +2919,7 @@ class RegisterConsumerRequest final : &_RegisterConsumerRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 21; void Swap(RegisterConsumerRequest* other); friend void swap(RegisterConsumerRequest& a, RegisterConsumerRequest& b) { @@ -2793,7 +3037,7 @@ class RegisterResponse final : &_RegisterResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 22; void Swap(RegisterResponse* other); friend void swap(RegisterResponse& a, RegisterResponse& b) { @@ -2860,25 +3104,25 @@ class RegisterResponse final : }; // ------------------------------------------------------------------- -class CloudEventRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.CloudEventRequest) */ { +class ExecutionInputsRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.ExecutionInputsRequest) */ { public: - CloudEventRequest(); - virtual ~CloudEventRequest(); + ExecutionInputsRequest(); + virtual ~ExecutionInputsRequest(); - CloudEventRequest(const CloudEventRequest& from); + ExecutionInputsRequest(const ExecutionInputsRequest& from); - inline CloudEventRequest& operator=(const CloudEventRequest& from) { + inline ExecutionInputsRequest& operator=(const ExecutionInputsRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - CloudEventRequest(CloudEventRequest&& from) noexcept - : CloudEventRequest() { + ExecutionInputsRequest(ExecutionInputsRequest&& from) noexcept + : ExecutionInputsRequest() { *this = ::std::move(from); } - inline CloudEventRequest& operator=(CloudEventRequest&& from) noexcept { + inline ExecutionInputsRequest& operator=(ExecutionInputsRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -2890,41 +3134,34 @@ class CloudEventRequest final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const CloudEventRequest& default_instance(); - - enum EventCase { - kWorkflowExecutionEvent = 1, - kTaskExecutionEvent = 2, - kNodeExecutionEvent = 3, - EVENT_NOT_SET = 0, - }; + static const ExecutionInputsRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CloudEventRequest* internal_default_instance() { - return reinterpret_cast( - &_CloudEventRequest_default_instance_); + static inline const ExecutionInputsRequest* internal_default_instance() { + return reinterpret_cast( + &_ExecutionInputsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 23; - void Swap(CloudEventRequest* other); - friend void swap(CloudEventRequest& a, CloudEventRequest& b) { + void Swap(ExecutionInputsRequest* other); + friend void swap(ExecutionInputsRequest& a, ExecutionInputsRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline CloudEventRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline ExecutionInputsRequest* New() const final { + return CreateMaybeMessage(nullptr); } - CloudEventRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + ExecutionInputsRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const CloudEventRequest& from); - void MergeFrom(const CloudEventRequest& from); + void CopyFrom(const ExecutionInputsRequest& from); + void MergeFrom(const ExecutionInputsRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2946,7 +3183,7 @@ class CloudEventRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(CloudEventRequest* other); + void InternalSwap(ExecutionInputsRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -2962,78 +3199,58 @@ class CloudEventRequest final : // accessors ------------------------------------------------------- - // .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; - bool has_workflow_execution_event() const; - void clear_workflow_execution_event(); - static const int kWorkflowExecutionEventFieldNumber = 1; - const ::flyteidl::event::CloudEventWorkflowExecution& workflow_execution_event() const; - ::flyteidl::event::CloudEventWorkflowExecution* release_workflow_execution_event(); - ::flyteidl::event::CloudEventWorkflowExecution* mutable_workflow_execution_event(); - void set_allocated_workflow_execution_event(::flyteidl::event::CloudEventWorkflowExecution* workflow_execution_event); - - // .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; - bool has_task_execution_event() const; - void clear_task_execution_event(); - static const int kTaskExecutionEventFieldNumber = 2; - const ::flyteidl::event::CloudEventTaskExecution& task_execution_event() const; - ::flyteidl::event::CloudEventTaskExecution* release_task_execution_event(); - ::flyteidl::event::CloudEventTaskExecution* mutable_task_execution_event(); - void set_allocated_task_execution_event(::flyteidl::event::CloudEventTaskExecution* task_execution_event); - - // .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; - bool has_node_execution_event() const; - void clear_node_execution_event(); - static const int kNodeExecutionEventFieldNumber = 3; - const ::flyteidl::event::CloudEventNodeExecution& node_execution_event() const; - ::flyteidl::event::CloudEventNodeExecution* release_node_execution_event(); - ::flyteidl::event::CloudEventNodeExecution* mutable_node_execution_event(); - void set_allocated_node_execution_event(::flyteidl::event::CloudEventNodeExecution* node_execution_event); - - void clear_event(); - EventCase event_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.artifact.CloudEventRequest) + // repeated .flyteidl.core.ArtifactID inputs = 2; + int inputs_size() const; + void clear_inputs(); + static const int kInputsFieldNumber = 2; + ::flyteidl::core::ArtifactID* mutable_inputs(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >* + mutable_inputs(); + const ::flyteidl::core::ArtifactID& inputs(int index) const; + ::flyteidl::core::ArtifactID* add_inputs(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& + inputs() const; + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + bool has_execution_id() const; + void clear_execution_id(); + static const int kExecutionIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_execution_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_execution_id(); + void set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id); + + // @@protoc_insertion_point(class_scope:flyteidl.artifact.ExecutionInputsRequest) private: class HasBitSetters; - void set_has_workflow_execution_event(); - void set_has_task_execution_event(); - void set_has_node_execution_event(); - - inline bool has_event() const; - inline void clear_has_event(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union EventUnion { - EventUnion() {} - ::flyteidl::event::CloudEventWorkflowExecution* workflow_execution_event_; - ::flyteidl::event::CloudEventTaskExecution* task_execution_event_; - ::flyteidl::event::CloudEventNodeExecution* node_execution_event_; - } event_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID > inputs_; + ::flyteidl::core::WorkflowExecutionIdentifier* execution_id_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; }; // ------------------------------------------------------------------- -class CloudEventResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.CloudEventResponse) */ { +class ExecutionInputsResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.ExecutionInputsResponse) */ { public: - CloudEventResponse(); - virtual ~CloudEventResponse(); + ExecutionInputsResponse(); + virtual ~ExecutionInputsResponse(); - CloudEventResponse(const CloudEventResponse& from); + ExecutionInputsResponse(const ExecutionInputsResponse& from); - inline CloudEventResponse& operator=(const CloudEventResponse& from) { + inline ExecutionInputsResponse& operator=(const ExecutionInputsResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - CloudEventResponse(CloudEventResponse&& from) noexcept - : CloudEventResponse() { + ExecutionInputsResponse(ExecutionInputsResponse&& from) noexcept + : ExecutionInputsResponse() { *this = ::std::move(from); } - inline CloudEventResponse& operator=(CloudEventResponse&& from) noexcept { + inline ExecutionInputsResponse& operator=(ExecutionInputsResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -3045,34 +3262,34 @@ class CloudEventResponse final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const CloudEventResponse& default_instance(); + static const ExecutionInputsResponse& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CloudEventResponse* internal_default_instance() { - return reinterpret_cast( - &_CloudEventResponse_default_instance_); + static inline const ExecutionInputsResponse* internal_default_instance() { + return reinterpret_cast( + &_ExecutionInputsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 24; - void Swap(CloudEventResponse* other); - friend void swap(CloudEventResponse& a, CloudEventResponse& b) { + void Swap(ExecutionInputsResponse* other); + friend void swap(ExecutionInputsResponse& a, ExecutionInputsResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline CloudEventResponse* New() const final { - return CreateMaybeMessage(nullptr); + inline ExecutionInputsResponse* New() const final { + return CreateMaybeMessage(nullptr); } - CloudEventResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + ExecutionInputsResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const CloudEventResponse& from); - void MergeFrom(const CloudEventResponse& from); + void CopyFrom(const ExecutionInputsResponse& from); + void MergeFrom(const ExecutionInputsResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -3094,7 +3311,7 @@ class CloudEventResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(CloudEventResponse* other); + void InternalSwap(ExecutionInputsResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -3110,7 +3327,7 @@ class CloudEventResponse final : // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:flyteidl.artifact.CloudEventResponse) + // @@protoc_insertion_point(class_scope:flyteidl.artifact.ExecutionInputsResponse) private: class HasBitSetters; @@ -3294,6 +3511,57 @@ Artifact::mutable_tags() { return &tags_; } +// .flyteidl.artifact.ArtifactSource source = 4; +inline bool Artifact::has_source() const { + return this != internal_default_instance() && source_ != nullptr; +} +inline void Artifact::clear_source() { + if (GetArenaNoVirtual() == nullptr && source_ != nullptr) { + delete source_; + } + source_ = nullptr; +} +inline const ::flyteidl::artifact::ArtifactSource& Artifact::source() const { + const ::flyteidl::artifact::ArtifactSource* p = source_; + // @@protoc_insertion_point(field_get:flyteidl.artifact.Artifact.source) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::artifact::_ArtifactSource_default_instance_); +} +inline ::flyteidl::artifact::ArtifactSource* Artifact::release_source() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.Artifact.source) + + ::flyteidl::artifact::ArtifactSource* temp = source_; + source_ = nullptr; + return temp; +} +inline ::flyteidl::artifact::ArtifactSource* Artifact::mutable_source() { + + if (source_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::artifact::ArtifactSource>(GetArenaNoVirtual()); + source_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.Artifact.source) + return source_; +} +inline void Artifact::set_allocated_source(::flyteidl::artifact::ArtifactSource* source) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete source_; + } + if (source) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + source = ::google::protobuf::internal::GetOwnedMessage( + message_arena, source, submessage_arena); + } + + } else { + + } + source_ = source; + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.Artifact.source) +} + // ------------------------------------------------------------------- // ------------------------------------------------------------------- @@ -3520,254 +3788,376 @@ inline void CreateArtifactRequest::set_allocated_tag(::std::string* tag) { // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.CreateArtifactRequest.tag) } -// ------------------------------------------------------------------- - -// ArtifactSpec - -// .flyteidl.core.Literal value = 1; -inline bool ArtifactSpec::has_value() const { - return this != internal_default_instance() && value_ != nullptr; +// .flyteidl.artifact.ArtifactSource source = 6; +inline bool CreateArtifactRequest::has_source() const { + return this != internal_default_instance() && source_ != nullptr; } -inline const ::flyteidl::core::Literal& ArtifactSpec::value() const { - const ::flyteidl::core::Literal* p = value_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSpec.value) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Literal_default_instance_); +inline void CreateArtifactRequest::clear_source() { + if (GetArenaNoVirtual() == nullptr && source_ != nullptr) { + delete source_; + } + source_ = nullptr; } -inline ::flyteidl::core::Literal* ArtifactSpec::release_value() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSpec.value) +inline const ::flyteidl::artifact::ArtifactSource& CreateArtifactRequest::source() const { + const ::flyteidl::artifact::ArtifactSource* p = source_; + // @@protoc_insertion_point(field_get:flyteidl.artifact.CreateArtifactRequest.source) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::artifact::_ArtifactSource_default_instance_); +} +inline ::flyteidl::artifact::ArtifactSource* CreateArtifactRequest::release_source() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.CreateArtifactRequest.source) - ::flyteidl::core::Literal* temp = value_; - value_ = nullptr; + ::flyteidl::artifact::ArtifactSource* temp = source_; + source_ = nullptr; return temp; } -inline ::flyteidl::core::Literal* ArtifactSpec::mutable_value() { +inline ::flyteidl::artifact::ArtifactSource* CreateArtifactRequest::mutable_source() { - if (value_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Literal>(GetArenaNoVirtual()); - value_ = p; + if (source_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::artifact::ArtifactSource>(GetArenaNoVirtual()); + source_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSpec.value) - return value_; + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.CreateArtifactRequest.source) + return source_; } -inline void ArtifactSpec::set_allocated_value(::flyteidl::core::Literal* value) { +inline void CreateArtifactRequest::set_allocated_source(::flyteidl::artifact::ArtifactSource* source) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_); + delete source_; } - if (value) { + if (source) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, value, submessage_arena); + source = ::google::protobuf::internal::GetOwnedMessage( + message_arena, source, submessage_arena); } } else { } - value_ = value; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSpec.value) + source_ = source; + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.CreateArtifactRequest.source) } -// .flyteidl.core.LiteralType type = 2; -inline bool ArtifactSpec::has_type() const { - return this != internal_default_instance() && type_ != nullptr; +// ------------------------------------------------------------------- + +// ArtifactSource + +// .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; +inline bool ArtifactSource::has_workflow_execution() const { + return this != internal_default_instance() && workflow_execution_ != nullptr; } -inline const ::flyteidl::core::LiteralType& ArtifactSpec::type() const { - const ::flyteidl::core::LiteralType* p = type_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSpec.type) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralType_default_instance_); +inline const ::flyteidl::core::WorkflowExecutionIdentifier& ArtifactSource::workflow_execution() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = workflow_execution_; + // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSource.workflow_execution) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); } -inline ::flyteidl::core::LiteralType* ArtifactSpec::release_type() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSpec.type) +inline ::flyteidl::core::WorkflowExecutionIdentifier* ArtifactSource::release_workflow_execution() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSource.workflow_execution) - ::flyteidl::core::LiteralType* temp = type_; - type_ = nullptr; + ::flyteidl::core::WorkflowExecutionIdentifier* temp = workflow_execution_; + workflow_execution_ = nullptr; return temp; } -inline ::flyteidl::core::LiteralType* ArtifactSpec::mutable_type() { +inline ::flyteidl::core::WorkflowExecutionIdentifier* ArtifactSource::mutable_workflow_execution() { - if (type_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); - type_ = p; + if (workflow_execution_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + workflow_execution_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSpec.type) - return type_; + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSource.workflow_execution) + return workflow_execution_; } -inline void ArtifactSpec::set_allocated_type(::flyteidl::core::LiteralType* type) { +inline void ArtifactSource::set_allocated_workflow_execution(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); + delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_execution_); } - if (type) { + if (workflow_execution) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, type, submessage_arena); + workflow_execution = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_execution, submessage_arena); } } else { } - type_ = type; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSpec.type) + workflow_execution_ = workflow_execution; + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSource.workflow_execution) } -// .flyteidl.core.TaskExecutionIdentifier task_execution = 5; -inline bool ArtifactSpec::has_task_execution() const { - return this != internal_default_instance() && task_execution_ != nullptr; +// string node_id = 2; +inline void ArtifactSource::clear_node_id() { + node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::flyteidl::core::TaskExecutionIdentifier& ArtifactSpec::task_execution() const { - const ::flyteidl::core::TaskExecutionIdentifier* p = task_execution_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSpec.task_execution) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +inline const ::std::string& ArtifactSource::node_id() const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSource.node_id) + return node_id_.GetNoArena(); } -inline ::flyteidl::core::TaskExecutionIdentifier* ArtifactSpec::release_task_execution() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSpec.task_execution) +inline void ArtifactSource::set_node_id(const ::std::string& value) { - ::flyteidl::core::TaskExecutionIdentifier* temp = task_execution_; - task_execution_ = nullptr; - return temp; + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.artifact.ArtifactSource.node_id) } -inline ::flyteidl::core::TaskExecutionIdentifier* ArtifactSpec::mutable_task_execution() { +#if LANG_CXX11 +inline void ArtifactSource::set_node_id(::std::string&& value) { - if (task_execution_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); - task_execution_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSpec.task_execution) - return task_execution_; + node_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.ArtifactSource.node_id) } -inline void ArtifactSpec::set_allocated_task_execution(::flyteidl::core::TaskExecutionIdentifier* task_execution) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_execution_); - } - if (task_execution) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - task_execution = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_execution, submessage_arena); - } +#endif +inline void ArtifactSource::set_node_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.artifact.ArtifactSource.node_id) +} +inline void ArtifactSource::set_node_id(const char* value, size_t size) { + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.ArtifactSource.node_id) +} +inline ::std::string* ArtifactSource::mutable_node_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSource.node_id) + return node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ArtifactSource::release_node_id() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSource.node_id) + + return node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ArtifactSource::set_allocated_node_id(::std::string* node_id) { + if (node_id != nullptr) { } else { } - task_execution_ = task_execution; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSpec.task_execution) + node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSource.node_id) } -// .flyteidl.core.WorkflowExecutionIdentifier execution = 6; -inline bool ArtifactSpec::has_execution() const { - return this != internal_default_instance() && execution_ != nullptr; +// .flyteidl.core.Identifier task_id = 3; +inline bool ArtifactSource::has_task_id() const { + return this != internal_default_instance() && task_id_ != nullptr; } -inline const ::flyteidl::core::WorkflowExecutionIdentifier& ArtifactSpec::execution() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = execution_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSpec.execution) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +inline const ::flyteidl::core::Identifier& ArtifactSource::task_id() const { + const ::flyteidl::core::Identifier* p = task_id_; + // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSource.task_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); } -inline ::flyteidl::core::WorkflowExecutionIdentifier* ArtifactSpec::release_execution() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSpec.execution) +inline ::flyteidl::core::Identifier* ArtifactSource::release_task_id() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSource.task_id) - ::flyteidl::core::WorkflowExecutionIdentifier* temp = execution_; - execution_ = nullptr; + ::flyteidl::core::Identifier* temp = task_id_; + task_id_ = nullptr; return temp; } -inline ::flyteidl::core::WorkflowExecutionIdentifier* ArtifactSpec::mutable_execution() { +inline ::flyteidl::core::Identifier* ArtifactSource::mutable_task_id() { - if (execution_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - execution_ = p; + if (task_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + task_id_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSpec.execution) - return execution_; + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSource.task_id) + return task_id_; } -inline void ArtifactSpec::set_allocated_execution(::flyteidl::core::WorkflowExecutionIdentifier* execution) { +inline void ArtifactSource::set_allocated_task_id(::flyteidl::core::Identifier* task_id) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(execution_); + delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_id_); } - if (execution) { + if (task_id) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - execution = ::google::protobuf::internal::GetOwnedMessage( - message_arena, execution, submessage_arena); + task_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_id, submessage_arena); } } else { } - execution_ = execution; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSpec.execution) + task_id_ = task_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSource.task_id) +} + +// uint32 retry_attempt = 4; +inline void ArtifactSource::clear_retry_attempt() { + retry_attempt_ = 0u; +} +inline ::google::protobuf::uint32 ArtifactSource::retry_attempt() const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSource.retry_attempt) + return retry_attempt_; +} +inline void ArtifactSource::set_retry_attempt(::google::protobuf::uint32 value) { + + retry_attempt_ = value; + // @@protoc_insertion_point(field_set:flyteidl.artifact.ArtifactSource.retry_attempt) } -// string principal = 7; -inline void ArtifactSpec::clear_principal() { +// string principal = 5; +inline void ArtifactSource::clear_principal() { principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& ArtifactSpec::principal() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSpec.principal) +inline const ::std::string& ArtifactSource::principal() const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSource.principal) return principal_.GetNoArena(); } -inline void ArtifactSpec::set_principal(const ::std::string& value) { +inline void ArtifactSource::set_principal(const ::std::string& value) { principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.artifact.ArtifactSpec.principal) + // @@protoc_insertion_point(field_set:flyteidl.artifact.ArtifactSource.principal) } #if LANG_CXX11 -inline void ArtifactSpec::set_principal(::std::string&& value) { +inline void ArtifactSource::set_principal(::std::string&& value) { principal_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.ArtifactSpec.principal) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.ArtifactSource.principal) } #endif -inline void ArtifactSpec::set_principal(const char* value) { +inline void ArtifactSource::set_principal(const char* value) { GOOGLE_DCHECK(value != nullptr); principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.ArtifactSpec.principal) + // @@protoc_insertion_point(field_set_char:flyteidl.artifact.ArtifactSource.principal) } -inline void ArtifactSpec::set_principal(const char* value, size_t size) { +inline void ArtifactSource::set_principal(const char* value, size_t size) { principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.ArtifactSpec.principal) + // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.ArtifactSource.principal) } -inline ::std::string* ArtifactSpec::mutable_principal() { +inline ::std::string* ArtifactSource::mutable_principal() { - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSpec.principal) + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSource.principal) return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* ArtifactSpec::release_principal() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSpec.principal) +inline ::std::string* ArtifactSource::release_principal() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSource.principal) return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ArtifactSpec::set_allocated_principal(::std::string* principal) { +inline void ArtifactSource::set_allocated_principal(::std::string* principal) { if (principal != nullptr) { } else { } principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSpec.principal) + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSource.principal) } -// string short_description = 8; -inline void ArtifactSpec::clear_short_description() { - short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ArtifactSpec::short_description() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSpec.short_description) - return short_description_.GetNoArena(); +// ------------------------------------------------------------------- + +// ArtifactSpec + +// .flyteidl.core.Literal value = 1; +inline bool ArtifactSpec::has_value() const { + return this != internal_default_instance() && value_ != nullptr; } -inline void ArtifactSpec::set_short_description(const ::std::string& value) { - - short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); +inline const ::flyteidl::core::Literal& ArtifactSpec::value() const { + const ::flyteidl::core::Literal* p = value_; + // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSpec.value) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Literal_default_instance_); +} +inline ::flyteidl::core::Literal* ArtifactSpec::release_value() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSpec.value) + + ::flyteidl::core::Literal* temp = value_; + value_ = nullptr; + return temp; +} +inline ::flyteidl::core::Literal* ArtifactSpec::mutable_value() { + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Literal>(GetArenaNoVirtual()); + value_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSpec.value) + return value_; +} +inline void ArtifactSpec::set_allocated_value(::flyteidl::core::Literal* value) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_); + } + if (value) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + value_ = value; + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSpec.value) +} + +// .flyteidl.core.LiteralType type = 2; +inline bool ArtifactSpec::has_type() const { + return this != internal_default_instance() && type_ != nullptr; +} +inline const ::flyteidl::core::LiteralType& ArtifactSpec::type() const { + const ::flyteidl::core::LiteralType* p = type_; + // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSpec.type) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralType_default_instance_); +} +inline ::flyteidl::core::LiteralType* ArtifactSpec::release_type() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSpec.type) + + ::flyteidl::core::LiteralType* temp = type_; + type_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralType* ArtifactSpec::mutable_type() { + + if (type_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); + type_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSpec.type) + return type_; +} +inline void ArtifactSpec::set_allocated_type(::flyteidl::core::LiteralType* type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); + } + if (type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, type, submessage_arena); + } + + } else { + + } + type_ = type; + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSpec.type) +} + +// string short_description = 3; +inline void ArtifactSpec::clear_short_description() { + short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ArtifactSpec::short_description() const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSpec.short_description) + return short_description_.GetNoArena(); +} +inline void ArtifactSpec::set_short_description(const ::std::string& value) { + + short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:flyteidl.artifact.ArtifactSpec.short_description) } #if LANG_CXX11 @@ -3810,7 +4200,7 @@ inline void ArtifactSpec::set_allocated_short_description(::std::string* short_d // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSpec.short_description) } -// .google.protobuf.Any user_metadata = 10; +// .google.protobuf.Any user_metadata = 4; inline bool ArtifactSpec::has_user_metadata() const { return this != internal_default_instance() && user_metadata_ != nullptr; } @@ -3855,7 +4245,7 @@ inline void ArtifactSpec::set_allocated_user_metadata(::google::protobuf::Any* u // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSpec.user_metadata) } -// string metadata_type = 11; +// string metadata_type = 5; inline void ArtifactSpec::clear_metadata_type() { metadata_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -4083,143 +4473,34 @@ inline void GetArtifactResponse::set_allocated_artifact(::flyteidl::artifact::Ar // ------------------------------------------------------------------- -// ListArtifactNamesRequest +// SearchOptions -// string project = 1; -inline void ListArtifactNamesRequest::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ListArtifactNamesRequest::project() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.ListArtifactNamesRequest.project) - return project_.GetNoArena(); -} -inline void ListArtifactNamesRequest::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.artifact.ListArtifactNamesRequest.project) -} -#if LANG_CXX11 -inline void ListArtifactNamesRequest::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.ListArtifactNamesRequest.project) -} -#endif -inline void ListArtifactNamesRequest::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.ListArtifactNamesRequest.project) -} -inline void ListArtifactNamesRequest::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.ListArtifactNamesRequest.project) +// bool strict_partitions = 1; +inline void SearchOptions::clear_strict_partitions() { + strict_partitions_ = false; } -inline ::std::string* ListArtifactNamesRequest::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ListArtifactNamesRequest.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline bool SearchOptions::strict_partitions() const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchOptions.strict_partitions) + return strict_partitions_; } -inline ::std::string* ListArtifactNamesRequest::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ListArtifactNamesRequest.project) +inline void SearchOptions::set_strict_partitions(bool value) { - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ListArtifactNamesRequest::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ListArtifactNamesRequest.project) + strict_partitions_ = value; + // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchOptions.strict_partitions) } -// string domain = 2; -inline void ListArtifactNamesRequest::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ListArtifactNamesRequest::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.ListArtifactNamesRequest.domain) - return domain_.GetNoArena(); -} -inline void ListArtifactNamesRequest::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.artifact.ListArtifactNamesRequest.domain) -} -#if LANG_CXX11 -inline void ListArtifactNamesRequest::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.ListArtifactNamesRequest.domain) +// bool latest_by_key = 2; +inline void SearchOptions::clear_latest_by_key() { + latest_by_key_ = false; } -#endif -inline void ListArtifactNamesRequest::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.ListArtifactNamesRequest.domain) -} -inline void ListArtifactNamesRequest::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.ListArtifactNamesRequest.domain) -} -inline ::std::string* ListArtifactNamesRequest::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ListArtifactNamesRequest.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline bool SearchOptions::latest_by_key() const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchOptions.latest_by_key) + return latest_by_key_; } -inline ::std::string* ListArtifactNamesRequest::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ListArtifactNamesRequest.domain) +inline void SearchOptions::set_latest_by_key(bool value) { - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ListArtifactNamesRequest::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ListArtifactNamesRequest.domain) -} - -// ------------------------------------------------------------------- - -// ListArtifactNamesResponse - -// repeated .flyteidl.core.ArtifactKey artifact_keys = 1; -inline int ListArtifactNamesResponse::artifact_keys_size() const { - return artifact_keys_.size(); -} -inline ::flyteidl::core::ArtifactKey* ListArtifactNamesResponse::mutable_artifact_keys(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ListArtifactNamesResponse.artifact_keys) - return artifact_keys_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactKey >* -ListArtifactNamesResponse::mutable_artifact_keys() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.artifact.ListArtifactNamesResponse.artifact_keys) - return &artifact_keys_; -} -inline const ::flyteidl::core::ArtifactKey& ListArtifactNamesResponse::artifact_keys(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.ListArtifactNamesResponse.artifact_keys) - return artifact_keys_.Get(index); -} -inline ::flyteidl::core::ArtifactKey* ListArtifactNamesResponse::add_artifact_keys() { - // @@protoc_insertion_point(field_add:flyteidl.artifact.ListArtifactNamesResponse.artifact_keys) - return artifact_keys_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactKey >& -ListArtifactNamesResponse::artifact_keys() const { - // @@protoc_insertion_point(field_list:flyteidl.artifact.ListArtifactNamesResponse.artifact_keys) - return artifact_keys_; + latest_by_key_ = value; + // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchOptions.latest_by_key) } // ------------------------------------------------------------------- @@ -4271,60 +4552,209 @@ inline void SearchArtifactsRequest::set_allocated_artifact_key(::flyteidl::core: // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.artifact_key) } -// string filters = 2; -inline void SearchArtifactsRequest::clear_filters() { - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// .flyteidl.core.Partitions partitions = 2; +inline bool SearchArtifactsRequest::has_partitions() const { + return this != internal_default_instance() && partitions_ != nullptr; +} +inline const ::flyteidl::core::Partitions& SearchArtifactsRequest::partitions() const { + const ::flyteidl::core::Partitions* p = partitions_; + // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.partitions) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Partitions_default_instance_); +} +inline ::flyteidl::core::Partitions* SearchArtifactsRequest::release_partitions() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsRequest.partitions) + + ::flyteidl::core::Partitions* temp = partitions_; + partitions_ = nullptr; + return temp; +} +inline ::flyteidl::core::Partitions* SearchArtifactsRequest::mutable_partitions() { + + if (partitions_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Partitions>(GetArenaNoVirtual()); + partitions_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsRequest.partitions) + return partitions_; +} +inline void SearchArtifactsRequest::set_allocated_partitions(::flyteidl::core::Partitions* partitions) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(partitions_); + } + if (partitions) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + partitions = ::google::protobuf::internal::GetOwnedMessage( + message_arena, partitions, submessage_arena); + } + + } else { + + } + partitions_ = partitions; + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.partitions) +} + +// string principal = 3; +inline void SearchArtifactsRequest::clear_principal() { + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SearchArtifactsRequest::principal() const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.principal) + return principal_.GetNoArena(); +} +inline void SearchArtifactsRequest::set_principal(const ::std::string& value) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchArtifactsRequest.principal) +} +#if LANG_CXX11 +inline void SearchArtifactsRequest::set_principal(::std::string&& value) { + + principal_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.SearchArtifactsRequest.principal) +} +#endif +inline void SearchArtifactsRequest::set_principal(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.artifact.SearchArtifactsRequest.principal) +} +inline void SearchArtifactsRequest::set_principal(const char* value, size_t size) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.SearchArtifactsRequest.principal) +} +inline ::std::string* SearchArtifactsRequest::mutable_principal() { + + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsRequest.principal) + return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SearchArtifactsRequest::release_principal() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsRequest.principal) + + return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SearchArtifactsRequest::set_allocated_principal(::std::string* principal) { + if (principal != nullptr) { + + } else { + + } + principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.principal) +} + +// string version = 4; +inline void SearchArtifactsRequest::clear_version() { + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& SearchArtifactsRequest::filters() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.filters) - return filters_.GetNoArena(); +inline const ::std::string& SearchArtifactsRequest::version() const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.version) + return version_.GetNoArena(); } -inline void SearchArtifactsRequest::set_filters(const ::std::string& value) { +inline void SearchArtifactsRequest::set_version(const ::std::string& value) { - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchArtifactsRequest.filters) + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchArtifactsRequest.version) } #if LANG_CXX11 -inline void SearchArtifactsRequest::set_filters(::std::string&& value) { +inline void SearchArtifactsRequest::set_version(::std::string&& value) { - filters_.SetNoArena( + version_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.SearchArtifactsRequest.filters) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.SearchArtifactsRequest.version) } #endif -inline void SearchArtifactsRequest::set_filters(const char* value) { +inline void SearchArtifactsRequest::set_version(const char* value) { GOOGLE_DCHECK(value != nullptr); - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.SearchArtifactsRequest.filters) + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.artifact.SearchArtifactsRequest.version) } -inline void SearchArtifactsRequest::set_filters(const char* value, size_t size) { +inline void SearchArtifactsRequest::set_version(const char* value, size_t size) { - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.SearchArtifactsRequest.filters) + // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.SearchArtifactsRequest.version) } -inline ::std::string* SearchArtifactsRequest::mutable_filters() { +inline ::std::string* SearchArtifactsRequest::mutable_version() { - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsRequest.filters) - return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsRequest.version) + return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* SearchArtifactsRequest::release_filters() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsRequest.filters) +inline ::std::string* SearchArtifactsRequest::release_version() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsRequest.version) - return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SearchArtifactsRequest::set_allocated_filters(::std::string* filters) { - if (filters != nullptr) { +inline void SearchArtifactsRequest::set_allocated_version(::std::string* version) { + if (version != nullptr) { } else { } - filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.filters) + version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.version) } -// string token = 3; +// .flyteidl.artifact.SearchOptions options = 5; +inline bool SearchArtifactsRequest::has_options() const { + return this != internal_default_instance() && options_ != nullptr; +} +inline void SearchArtifactsRequest::clear_options() { + if (GetArenaNoVirtual() == nullptr && options_ != nullptr) { + delete options_; + } + options_ = nullptr; +} +inline const ::flyteidl::artifact::SearchOptions& SearchArtifactsRequest::options() const { + const ::flyteidl::artifact::SearchOptions* p = options_; + // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.options) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::artifact::_SearchOptions_default_instance_); +} +inline ::flyteidl::artifact::SearchOptions* SearchArtifactsRequest::release_options() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsRequest.options) + + ::flyteidl::artifact::SearchOptions* temp = options_; + options_ = nullptr; + return temp; +} +inline ::flyteidl::artifact::SearchOptions* SearchArtifactsRequest::mutable_options() { + + if (options_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::artifact::SearchOptions>(GetArenaNoVirtual()); + options_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsRequest.options) + return options_; +} +inline void SearchArtifactsRequest::set_allocated_options(::flyteidl::artifact::SearchOptions* options) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete options_; + } + if (options) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + options = ::google::protobuf::internal::GetOwnedMessage( + message_arena, options, submessage_arena); + } + + } else { + + } + options_ = options; + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.options) +} + +// string token = 6; inline void SearchArtifactsRequest::clear_token() { token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -4377,7 +4807,7 @@ inline void SearchArtifactsRequest::set_allocated_token(::std::string* token) { // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.token) } -// int32 limit = 4; +// int32 limit = 7; inline void SearchArtifactsRequest::clear_limit() { limit_ = 0; } @@ -4425,6 +4855,136 @@ SearchArtifactsResponse::artifacts() const { return artifacts_; } +// string token = 2; +inline void SearchArtifactsResponse::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SearchArtifactsResponse::token() const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsResponse.token) + return token_.GetNoArena(); +} +inline void SearchArtifactsResponse::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchArtifactsResponse.token) +} +#if LANG_CXX11 +inline void SearchArtifactsResponse::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.SearchArtifactsResponse.token) +} +#endif +inline void SearchArtifactsResponse::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.artifact.SearchArtifactsResponse.token) +} +inline void SearchArtifactsResponse::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.SearchArtifactsResponse.token) +} +inline ::std::string* SearchArtifactsResponse::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsResponse.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SearchArtifactsResponse::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsResponse.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SearchArtifactsResponse::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsResponse.token) +} + +// ------------------------------------------------------------------- + +// FindByWorkflowExecRequest + +// .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; +inline bool FindByWorkflowExecRequest::has_exec_id() const { + return this != internal_default_instance() && exec_id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& FindByWorkflowExecRequest::exec_id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = exec_id_; + // @@protoc_insertion_point(field_get:flyteidl.artifact.FindByWorkflowExecRequest.exec_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* FindByWorkflowExecRequest::release_exec_id() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.FindByWorkflowExecRequest.exec_id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = exec_id_; + exec_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* FindByWorkflowExecRequest::mutable_exec_id() { + + if (exec_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + exec_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.FindByWorkflowExecRequest.exec_id) + return exec_id_; +} +inline void FindByWorkflowExecRequest::set_allocated_exec_id(::flyteidl::core::WorkflowExecutionIdentifier* exec_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(exec_id_); + } + if (exec_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + exec_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, exec_id, submessage_arena); + } + + } else { + + } + exec_id_ = exec_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.FindByWorkflowExecRequest.exec_id) +} + +// .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; +inline void FindByWorkflowExecRequest::clear_direction() { + direction_ = 0; +} +inline ::flyteidl::artifact::FindByWorkflowExecRequest_Direction FindByWorkflowExecRequest::direction() const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.FindByWorkflowExecRequest.direction) + return static_cast< ::flyteidl::artifact::FindByWorkflowExecRequest_Direction >(direction_); +} +inline void FindByWorkflowExecRequest::set_direction(::flyteidl::artifact::FindByWorkflowExecRequest_Direction value) { + + direction_ = value; + // @@protoc_insertion_point(field_set:flyteidl.artifact.FindByWorkflowExecRequest.direction) +} + +// bool fetch_specs = 3; +inline void FindByWorkflowExecRequest::clear_fetch_specs() { + fetch_specs_ = false; +} +inline bool FindByWorkflowExecRequest::fetch_specs() const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.FindByWorkflowExecRequest.fetch_specs) + return fetch_specs_; +} +inline void FindByWorkflowExecRequest::set_fetch_specs(bool value) { + + fetch_specs_ = value; + // @@protoc_insertion_point(field_set:flyteidl.artifact.FindByWorkflowExecRequest.fetch_specs) +} + // ------------------------------------------------------------------- // AddTagRequest @@ -4913,125 +5473,83 @@ RegisterConsumerRequest::consumers() const { // ------------------------------------------------------------------- -// CloudEventRequest +// ExecutionInputsRequest -// .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; -inline bool CloudEventRequest::has_workflow_execution_event() const { - return event_case() == kWorkflowExecutionEvent; -} -inline void CloudEventRequest::set_has_workflow_execution_event() { - _oneof_case_[0] = kWorkflowExecutionEvent; +// .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; +inline bool ExecutionInputsRequest::has_execution_id() const { + return this != internal_default_instance() && execution_id_ != nullptr; } -inline ::flyteidl::event::CloudEventWorkflowExecution* CloudEventRequest::release_workflow_execution_event() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.CloudEventRequest.workflow_execution_event) - if (has_workflow_execution_event()) { - clear_has_event(); - ::flyteidl::event::CloudEventWorkflowExecution* temp = event_.workflow_execution_event_; - event_.workflow_execution_event_ = nullptr; - return temp; - } else { - return nullptr; - } +inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionInputsRequest::execution_id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.artifact.ExecutionInputsRequest.execution_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); } -inline const ::flyteidl::event::CloudEventWorkflowExecution& CloudEventRequest::workflow_execution_event() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.CloudEventRequest.workflow_execution_event) - return has_workflow_execution_event() - ? *event_.workflow_execution_event_ - : *reinterpret_cast< ::flyteidl::event::CloudEventWorkflowExecution*>(&::flyteidl::event::_CloudEventWorkflowExecution_default_instance_); +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionInputsRequest::release_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.ExecutionInputsRequest.execution_id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = execution_id_; + execution_id_ = nullptr; + return temp; } -inline ::flyteidl::event::CloudEventWorkflowExecution* CloudEventRequest::mutable_workflow_execution_event() { - if (!has_workflow_execution_event()) { - clear_event(); - set_has_workflow_execution_event(); - event_.workflow_execution_event_ = CreateMaybeMessage< ::flyteidl::event::CloudEventWorkflowExecution >( - GetArenaNoVirtual()); +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionInputsRequest::mutable_execution_id() { + + if (execution_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + execution_id_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.CloudEventRequest.workflow_execution_event) - return event_.workflow_execution_event_; -} - -// .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; -inline bool CloudEventRequest::has_task_execution_event() const { - return event_case() == kTaskExecutionEvent; + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ExecutionInputsRequest.execution_id) + return execution_id_; } -inline void CloudEventRequest::set_has_task_execution_event() { - _oneof_case_[0] = kTaskExecutionEvent; -} -inline ::flyteidl::event::CloudEventTaskExecution* CloudEventRequest::release_task_execution_event() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.CloudEventRequest.task_execution_event) - if (has_task_execution_event()) { - clear_has_event(); - ::flyteidl::event::CloudEventTaskExecution* temp = event_.task_execution_event_; - event_.task_execution_event_ = nullptr; - return temp; - } else { - return nullptr; +inline void ExecutionInputsRequest::set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(execution_id_); } -} -inline const ::flyteidl::event::CloudEventTaskExecution& CloudEventRequest::task_execution_event() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.CloudEventRequest.task_execution_event) - return has_task_execution_event() - ? *event_.task_execution_event_ - : *reinterpret_cast< ::flyteidl::event::CloudEventTaskExecution*>(&::flyteidl::event::_CloudEventTaskExecution_default_instance_); -} -inline ::flyteidl::event::CloudEventTaskExecution* CloudEventRequest::mutable_task_execution_event() { - if (!has_task_execution_event()) { - clear_event(); - set_has_task_execution_event(); - event_.task_execution_event_ = CreateMaybeMessage< ::flyteidl::event::CloudEventTaskExecution >( - GetArenaNoVirtual()); + if (execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, execution_id, submessage_arena); + } + + } else { + } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.CloudEventRequest.task_execution_event) - return event_.task_execution_event_; + execution_id_ = execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ExecutionInputsRequest.execution_id) } -// .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; -inline bool CloudEventRequest::has_node_execution_event() const { - return event_case() == kNodeExecutionEvent; +// repeated .flyteidl.core.ArtifactID inputs = 2; +inline int ExecutionInputsRequest::inputs_size() const { + return inputs_.size(); } -inline void CloudEventRequest::set_has_node_execution_event() { - _oneof_case_[0] = kNodeExecutionEvent; +inline ::flyteidl::core::ArtifactID* ExecutionInputsRequest::mutable_inputs(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ExecutionInputsRequest.inputs) + return inputs_.Mutable(index); } -inline ::flyteidl::event::CloudEventNodeExecution* CloudEventRequest::release_node_execution_event() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.CloudEventRequest.node_execution_event) - if (has_node_execution_event()) { - clear_has_event(); - ::flyteidl::event::CloudEventNodeExecution* temp = event_.node_execution_event_; - event_.node_execution_event_ = nullptr; - return temp; - } else { - return nullptr; - } +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >* +ExecutionInputsRequest::mutable_inputs() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.artifact.ExecutionInputsRequest.inputs) + return &inputs_; } -inline const ::flyteidl::event::CloudEventNodeExecution& CloudEventRequest::node_execution_event() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.CloudEventRequest.node_execution_event) - return has_node_execution_event() - ? *event_.node_execution_event_ - : *reinterpret_cast< ::flyteidl::event::CloudEventNodeExecution*>(&::flyteidl::event::_CloudEventNodeExecution_default_instance_); +inline const ::flyteidl::core::ArtifactID& ExecutionInputsRequest::inputs(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.ExecutionInputsRequest.inputs) + return inputs_.Get(index); } -inline ::flyteidl::event::CloudEventNodeExecution* CloudEventRequest::mutable_node_execution_event() { - if (!has_node_execution_event()) { - clear_event(); - set_has_node_execution_event(); - event_.node_execution_event_ = CreateMaybeMessage< ::flyteidl::event::CloudEventNodeExecution >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.CloudEventRequest.node_execution_event) - return event_.node_execution_event_; +inline ::flyteidl::core::ArtifactID* ExecutionInputsRequest::add_inputs() { + // @@protoc_insertion_point(field_add:flyteidl.artifact.ExecutionInputsRequest.inputs) + return inputs_.Add(); } - -inline bool CloudEventRequest::has_event() const { - return event_case() != EVENT_NOT_SET; -} -inline void CloudEventRequest::clear_has_event() { - _oneof_case_[0] = EVENT_NOT_SET; -} -inline CloudEventRequest::EventCase CloudEventRequest::event_case() const { - return CloudEventRequest::EventCase(_oneof_case_[0]); +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& +ExecutionInputsRequest::inputs() const { + // @@protoc_insertion_point(field_list:flyteidl.artifact.ExecutionInputsRequest.inputs) + return inputs_; } + // ------------------------------------------------------------------- -// CloudEventResponse +// ExecutionInputsResponse #ifdef __GNUC__ #pragma GCC diagnostic pop @@ -5082,12 +5600,26 @@ inline CloudEventRequest::EventCase CloudEventRequest::event_case() const { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) } // namespace artifact } // namespace flyteidl +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::artifact::FindByWorkflowExecRequest_Direction> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::artifact::FindByWorkflowExecRequest_Direction>() { + return ::flyteidl::artifact::FindByWorkflowExecRequest_Direction_descriptor(); +} + +} // namespace protobuf +} // namespace google + // @@protoc_insertion_point(global_scope) #include diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.cc index ba0ec136c9..5200354c7b 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.cc @@ -140,6 +140,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fevent_2fcloudevents_2epr PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, input_data_), PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, artifact_ids_), PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, reference_execution_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, principal_), PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, launch_plan_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventNodeExecution, _internal_metadata_), @@ -152,6 +153,7 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fevent_2fcloudevents_2epr PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventNodeExecution, output_interface_), PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventNodeExecution, input_data_), PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventNodeExecution, artifact_ids_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventNodeExecution, principal_), PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventNodeExecution, launch_plan_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventTaskExecution, _internal_metadata_), @@ -169,12 +171,13 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fevent_2fcloudevents_2epr PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventExecutionStart, workflow_id_), PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventExecutionStart, artifact_ids_), PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventExecutionStart, artifact_keys_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventExecutionStart, principal_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::event::CloudEventWorkflowExecution)}, - { 12, -1, sizeof(::flyteidl::event::CloudEventNodeExecution)}, - { 24, -1, sizeof(::flyteidl::event::CloudEventTaskExecution)}, - { 30, -1, sizeof(::flyteidl::event::CloudEventExecutionStart)}, + { 13, -1, sizeof(::flyteidl::event::CloudEventNodeExecution)}, + { 26, -1, sizeof(::flyteidl::event::CloudEventTaskExecution)}, + { 32, -1, sizeof(::flyteidl::event::CloudEventExecutionStart)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { @@ -196,7 +199,7 @@ const char descriptor_table_protodef_flyteidl_2fevent_2fcloudevents_2eproto[] = "flyteidl/core/literals.proto\032\035flyteidl/c" "ore/interface.proto\032\037flyteidl/core/artif" "act_id.proto\032\036flyteidl/core/identifier.p" - "roto\032\037google/protobuf/timestamp.proto\"\235\003" + "roto\032\037google/protobuf/timestamp.proto\"\260\003" "\n\033CloudEventWorkflowExecution\0229\n\traw_eve" "nt\030\001 \001(\0132&.flyteidl.event.WorkflowExecut" "ionEvent\022.\n\013output_data\030\002 \001(\0132\031.flyteidl" @@ -206,33 +209,35 @@ const char descriptor_table_protodef_flyteidl_2fevent_2fcloudevents_2eproto[] = "\022/\n\014artifact_ids\030\005 \003(\0132\031.flyteidl.core.A" "rtifactID\022G\n\023reference_execution\030\006 \001(\0132*" ".flyteidl.core.WorkflowExecutionIdentifi" - "er\0221\n\016launch_plan_id\030\007 \001(\0132\031.flyteidl.co" - "re.Identifier\"\212\003\n\027CloudEventNodeExecutio" - "n\0225\n\traw_event\030\001 \001(\0132\".flyteidl.event.No" - "deExecutionEvent\022<\n\014task_exec_id\030\002 \001(\0132&" - ".flyteidl.core.TaskExecutionIdentifier\022." - "\n\013output_data\030\003 \001(\0132\031.flyteidl.core.Lite" - "ralMap\0227\n\020output_interface\030\004 \001(\0132\035.flyte" - "idl.core.TypedInterface\022-\n\ninput_data\030\005 " - "\001(\0132\031.flyteidl.core.LiteralMap\022/\n\014artifa" - "ct_ids\030\006 \003(\0132\031.flyteidl.core.ArtifactID\022" - "1\n\016launch_plan_id\030\007 \001(\0132\031.flyteidl.core." - "Identifier\"P\n\027CloudEventTaskExecution\0225\n" - "\traw_event\030\001 \001(\0132\".flyteidl.event.TaskEx" - "ecutionEvent\"\207\002\n\030CloudEventExecutionStar" - "t\022@\n\014execution_id\030\001 \001(\0132*.flyteidl.core." - "WorkflowExecutionIdentifier\0221\n\016launch_pl" - "an_id\030\002 \001(\0132\031.flyteidl.core.Identifier\022." - "\n\013workflow_id\030\003 \001(\0132\031.flyteidl.core.Iden" - "tifier\022/\n\014artifact_ids\030\004 \003(\0132\031.flyteidl." - "core.ArtifactID\022\025\n\rartifact_keys\030\005 \003(\tB=" - "Z;github.com/flyteorg/flyte/flyteidl/gen" - "/pb-go/flyteidl/eventb\006proto3" + "er\022\021\n\tprincipal\030\007 \001(\t\0221\n\016launch_plan_id\030" + "\010 \001(\0132\031.flyteidl.core.Identifier\"\235\003\n\027Clo" + "udEventNodeExecution\0225\n\traw_event\030\001 \001(\0132" + "\".flyteidl.event.NodeExecutionEvent\022<\n\014t" + "ask_exec_id\030\002 \001(\0132&.flyteidl.core.TaskEx" + "ecutionIdentifier\022.\n\013output_data\030\003 \001(\0132\031" + ".flyteidl.core.LiteralMap\0227\n\020output_inte" + "rface\030\004 \001(\0132\035.flyteidl.core.TypedInterfa" + "ce\022-\n\ninput_data\030\005 \001(\0132\031.flyteidl.core.L" + "iteralMap\022/\n\014artifact_ids\030\006 \003(\0132\031.flytei" + "dl.core.ArtifactID\022\021\n\tprincipal\030\007 \001(\t\0221\n" + "\016launch_plan_id\030\010 \001(\0132\031.flyteidl.core.Id" + "entifier\"P\n\027CloudEventTaskExecution\0225\n\tr" + "aw_event\030\001 \001(\0132\".flyteidl.event.TaskExec" + "utionEvent\"\232\002\n\030CloudEventExecutionStart\022" + "@\n\014execution_id\030\001 \001(\0132*.flyteidl.core.Wo" + "rkflowExecutionIdentifier\0221\n\016launch_plan" + "_id\030\002 \001(\0132\031.flyteidl.core.Identifier\022.\n\013" + "workflow_id\030\003 \001(\0132\031.flyteidl.core.Identi" + "fier\022/\n\014artifact_ids\030\004 \003(\0132\031.flyteidl.co" + "re.ArtifactID\022\025\n\rartifact_keys\030\005 \003(\t\022\021\n\t" + "principal\030\006 \001(\tB=Z;github.com/flyteorg/f" + "lyte/flyteidl/gen/pb-go/flyteidl/eventb\006" + "proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fevent_2fcloudevents_2eproto = { false, InitDefaults_flyteidl_2fevent_2fcloudevents_2eproto, descriptor_table_protodef_flyteidl_2fevent_2fcloudevents_2eproto, - "flyteidl/event/cloudevents.proto", &assign_descriptors_table_flyteidl_2fevent_2fcloudevents_2eproto, 1469, + "flyteidl/event/cloudevents.proto", &assign_descriptors_table_flyteidl_2fevent_2fcloudevents_2eproto, 1526, }; void AddDescriptors_flyteidl_2fevent_2fcloudevents_2eproto() { @@ -349,6 +354,7 @@ const int CloudEventWorkflowExecution::kOutputInterfaceFieldNumber; const int CloudEventWorkflowExecution::kInputDataFieldNumber; const int CloudEventWorkflowExecution::kArtifactIdsFieldNumber; const int CloudEventWorkflowExecution::kReferenceExecutionFieldNumber; +const int CloudEventWorkflowExecution::kPrincipalFieldNumber; const int CloudEventWorkflowExecution::kLaunchPlanIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 @@ -362,6 +368,10 @@ CloudEventWorkflowExecution::CloudEventWorkflowExecution(const CloudEventWorkflo _internal_metadata_(nullptr), artifact_ids_(from.artifact_ids_) { _internal_metadata_.MergeFrom(from._internal_metadata_); + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.principal().size() > 0) { + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } if (from.has_raw_event()) { raw_event_ = new ::flyteidl::event::WorkflowExecutionEvent(*from.raw_event_); } else { @@ -398,6 +408,7 @@ CloudEventWorkflowExecution::CloudEventWorkflowExecution(const CloudEventWorkflo void CloudEventWorkflowExecution::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_CloudEventWorkflowExecution_flyteidl_2fevent_2fcloudevents_2eproto.base); + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&raw_event_, 0, static_cast( reinterpret_cast(&launch_plan_id_) - reinterpret_cast(&raw_event_)) + sizeof(launch_plan_id_)); @@ -409,6 +420,7 @@ CloudEventWorkflowExecution::~CloudEventWorkflowExecution() { } void CloudEventWorkflowExecution::SharedDtor() { + principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete raw_event_; if (this != internal_default_instance()) delete output_data_; if (this != internal_default_instance()) delete output_interface_; @@ -433,6 +445,7 @@ void CloudEventWorkflowExecution::Clear() { (void) cached_has_bits; artifact_ids_.Clear(); + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == nullptr && raw_event_ != nullptr) { delete raw_event_; } @@ -554,11 +567,27 @@ const char* CloudEventWorkflowExecution::_InternalParse(const char* begin, const {parser_till_end, object}, ptr - size, ptr)); break; } - // .flyteidl.core.Identifier launch_plan_id = 7; + // string principal = 7; case 7: { if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.CloudEventWorkflowExecution.principal"); + object = msg->mutable_principal(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.Identifier launch_plan_id = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::Identifier::_InternalParse; object = msg->mutable_launch_plan_id(); if (size > end - ptr) goto len_delim_till_end; @@ -582,6 +611,10 @@ const char* CloudEventWorkflowExecution::_InternalParse(const char* begin, const } // switch } // while return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); @@ -663,9 +696,24 @@ bool CloudEventWorkflowExecution::MergePartialFromCodedStream( break; } - // .flyteidl.core.Identifier launch_plan_id = 7; + // string principal = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_principal())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.CloudEventWorkflowExecution.principal")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Identifier launch_plan_id = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_launch_plan_id())); } else { @@ -740,10 +788,20 @@ void CloudEventWorkflowExecution::SerializeWithCachedSizes( 6, HasBitSetters::reference_execution(this), output); } - // .flyteidl.core.Identifier launch_plan_id = 7; + // string principal = 7; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.CloudEventWorkflowExecution.principal"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 7, this->principal(), output); + } + + // .flyteidl.core.Identifier launch_plan_id = 8; if (this->has_launch_plan_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::launch_plan_id(this), output); + 8, HasBitSetters::launch_plan_id(this), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -802,11 +860,22 @@ ::google::protobuf::uint8* CloudEventWorkflowExecution::InternalSerializeWithCac 6, HasBitSetters::reference_execution(this), target); } - // .flyteidl.core.Identifier launch_plan_id = 7; + // string principal = 7; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.CloudEventWorkflowExecution.principal"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 7, this->principal(), target); + } + + // .flyteidl.core.Identifier launch_plan_id = 8; if (this->has_launch_plan_id()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 7, HasBitSetters::launch_plan_id(this), target); + 8, HasBitSetters::launch_plan_id(this), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -841,6 +910,13 @@ size_t CloudEventWorkflowExecution::ByteSizeLong() const { } } + // string principal = 7; + if (this->principal().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->principal()); + } + // .flyteidl.event.WorkflowExecutionEvent raw_event = 1; if (this->has_raw_event()) { total_size += 1 + @@ -876,7 +952,7 @@ size_t CloudEventWorkflowExecution::ByteSizeLong() const { *reference_execution_); } - // .flyteidl.core.Identifier launch_plan_id = 7; + // .flyteidl.core.Identifier launch_plan_id = 8; if (this->has_launch_plan_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( @@ -911,6 +987,10 @@ void CloudEventWorkflowExecution::MergeFrom(const CloudEventWorkflowExecution& f (void) cached_has_bits; artifact_ids_.MergeFrom(from.artifact_ids_); + if (from.principal().size() > 0) { + + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } if (from.has_raw_event()) { mutable_raw_event()->::flyteidl::event::WorkflowExecutionEvent::MergeFrom(from.raw_event()); } @@ -957,6 +1037,8 @@ void CloudEventWorkflowExecution::InternalSwap(CloudEventWorkflowExecution* othe using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); CastToBase(&artifact_ids_)->InternalSwap(CastToBase(&other->artifact_ids_)); + principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); swap(raw_event_, other->raw_event_); swap(output_data_, other->output_data_); swap(output_interface_, other->output_interface_); @@ -1067,6 +1149,7 @@ const int CloudEventNodeExecution::kOutputDataFieldNumber; const int CloudEventNodeExecution::kOutputInterfaceFieldNumber; const int CloudEventNodeExecution::kInputDataFieldNumber; const int CloudEventNodeExecution::kArtifactIdsFieldNumber; +const int CloudEventNodeExecution::kPrincipalFieldNumber; const int CloudEventNodeExecution::kLaunchPlanIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 @@ -1080,6 +1163,10 @@ CloudEventNodeExecution::CloudEventNodeExecution(const CloudEventNodeExecution& _internal_metadata_(nullptr), artifact_ids_(from.artifact_ids_) { _internal_metadata_.MergeFrom(from._internal_metadata_); + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.principal().size() > 0) { + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } if (from.has_raw_event()) { raw_event_ = new ::flyteidl::event::NodeExecutionEvent(*from.raw_event_); } else { @@ -1116,6 +1203,7 @@ CloudEventNodeExecution::CloudEventNodeExecution(const CloudEventNodeExecution& void CloudEventNodeExecution::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_CloudEventNodeExecution_flyteidl_2fevent_2fcloudevents_2eproto.base); + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&raw_event_, 0, static_cast( reinterpret_cast(&launch_plan_id_) - reinterpret_cast(&raw_event_)) + sizeof(launch_plan_id_)); @@ -1127,6 +1215,7 @@ CloudEventNodeExecution::~CloudEventNodeExecution() { } void CloudEventNodeExecution::SharedDtor() { + principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete raw_event_; if (this != internal_default_instance()) delete task_exec_id_; if (this != internal_default_instance()) delete output_data_; @@ -1151,6 +1240,7 @@ void CloudEventNodeExecution::Clear() { (void) cached_has_bits; artifact_ids_.Clear(); + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == nullptr && raw_event_ != nullptr) { delete raw_event_; } @@ -1272,11 +1362,27 @@ const char* CloudEventNodeExecution::_InternalParse(const char* begin, const cha } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); break; } - // .flyteidl.core.Identifier launch_plan_id = 7; + // string principal = 7; case 7: { if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.CloudEventNodeExecution.principal"); + object = msg->mutable_principal(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.Identifier launch_plan_id = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); parser_till_end = ::flyteidl::core::Identifier::_InternalParse; object = msg->mutable_launch_plan_id(); if (size > end - ptr) goto len_delim_till_end; @@ -1300,6 +1406,10 @@ const char* CloudEventNodeExecution::_InternalParse(const char* begin, const cha } // switch } // while return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); @@ -1381,9 +1491,24 @@ bool CloudEventNodeExecution::MergePartialFromCodedStream( break; } - // .flyteidl.core.Identifier launch_plan_id = 7; + // string principal = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_principal())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.CloudEventNodeExecution.principal")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Identifier launch_plan_id = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_launch_plan_id())); } else { @@ -1458,10 +1583,20 @@ void CloudEventNodeExecution::SerializeWithCachedSizes( output); } - // .flyteidl.core.Identifier launch_plan_id = 7; + // string principal = 7; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.CloudEventNodeExecution.principal"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 7, this->principal(), output); + } + + // .flyteidl.core.Identifier launch_plan_id = 8; if (this->has_launch_plan_id()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::launch_plan_id(this), output); + 8, HasBitSetters::launch_plan_id(this), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -1520,11 +1655,22 @@ ::google::protobuf::uint8* CloudEventNodeExecution::InternalSerializeWithCachedS 6, this->artifact_ids(static_cast(i)), target); } - // .flyteidl.core.Identifier launch_plan_id = 7; + // string principal = 7; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.CloudEventNodeExecution.principal"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 7, this->principal(), target); + } + + // .flyteidl.core.Identifier launch_plan_id = 8; if (this->has_launch_plan_id()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 7, HasBitSetters::launch_plan_id(this), target); + 8, HasBitSetters::launch_plan_id(this), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -1559,6 +1705,13 @@ size_t CloudEventNodeExecution::ByteSizeLong() const { } } + // string principal = 7; + if (this->principal().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->principal()); + } + // .flyteidl.event.NodeExecutionEvent raw_event = 1; if (this->has_raw_event()) { total_size += 1 + @@ -1594,7 +1747,7 @@ size_t CloudEventNodeExecution::ByteSizeLong() const { *input_data_); } - // .flyteidl.core.Identifier launch_plan_id = 7; + // .flyteidl.core.Identifier launch_plan_id = 8; if (this->has_launch_plan_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( @@ -1629,6 +1782,10 @@ void CloudEventNodeExecution::MergeFrom(const CloudEventNodeExecution& from) { (void) cached_has_bits; artifact_ids_.MergeFrom(from.artifact_ids_); + if (from.principal().size() > 0) { + + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } if (from.has_raw_event()) { mutable_raw_event()->::flyteidl::event::NodeExecutionEvent::MergeFrom(from.raw_event()); } @@ -1675,6 +1832,8 @@ void CloudEventNodeExecution::InternalSwap(CloudEventNodeExecution* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); CastToBase(&artifact_ids_)->InternalSwap(CastToBase(&other->artifact_ids_)); + principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); swap(raw_event_, other->raw_event_); swap(task_exec_id_, other->task_exec_id_); swap(output_data_, other->output_data_); @@ -2038,6 +2197,7 @@ const int CloudEventExecutionStart::kLaunchPlanIdFieldNumber; const int CloudEventExecutionStart::kWorkflowIdFieldNumber; const int CloudEventExecutionStart::kArtifactIdsFieldNumber; const int CloudEventExecutionStart::kArtifactKeysFieldNumber; +const int CloudEventExecutionStart::kPrincipalFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CloudEventExecutionStart::CloudEventExecutionStart() @@ -2051,6 +2211,10 @@ CloudEventExecutionStart::CloudEventExecutionStart(const CloudEventExecutionStar artifact_ids_(from.artifact_ids_), artifact_keys_(from.artifact_keys_) { _internal_metadata_.MergeFrom(from._internal_metadata_); + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.principal().size() > 0) { + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } if (from.has_execution_id()) { execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_id_); } else { @@ -2072,6 +2236,7 @@ CloudEventExecutionStart::CloudEventExecutionStart(const CloudEventExecutionStar void CloudEventExecutionStart::SharedCtor() { ::google::protobuf::internal::InitSCC( &scc_info_CloudEventExecutionStart_flyteidl_2fevent_2fcloudevents_2eproto.base); + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&execution_id_, 0, static_cast( reinterpret_cast(&workflow_id_) - reinterpret_cast(&execution_id_)) + sizeof(workflow_id_)); @@ -2083,6 +2248,7 @@ CloudEventExecutionStart::~CloudEventExecutionStart() { } void CloudEventExecutionStart::SharedDtor() { + principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete execution_id_; if (this != internal_default_instance()) delete launch_plan_id_; if (this != internal_default_instance()) delete workflow_id_; @@ -2105,6 +2271,7 @@ void CloudEventExecutionStart::Clear() { artifact_ids_.Clear(); artifact_keys_.Clear(); + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { delete execution_id_; } @@ -2207,6 +2374,22 @@ const char* CloudEventExecutionStart::_InternalParse(const char* begin, const ch } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); break; } + // string principal = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.CloudEventExecutionStart.principal"); + object = msg->mutable_principal(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -2301,6 +2484,21 @@ bool CloudEventExecutionStart::MergePartialFromCodedStream( break; } + // string principal = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_principal())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.CloudEventExecutionStart.principal")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: if (tag == 0) { @@ -2365,6 +2563,16 @@ void CloudEventExecutionStart::SerializeWithCachedSizes( 5, this->artifact_keys(i), output); } + // string principal = 6; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.CloudEventExecutionStart.principal"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->principal(), output); + } + if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); @@ -2417,6 +2625,17 @@ ::google::protobuf::uint8* CloudEventExecutionStart::InternalSerializeWithCached WriteStringToArray(5, this->artifact_keys(i), target); } + // string principal = 6; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.CloudEventExecutionStart.principal"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->principal(), target); + } + if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); @@ -2457,6 +2676,13 @@ size_t CloudEventExecutionStart::ByteSizeLong() const { this->artifact_keys(i)); } + // string principal = 6; + if (this->principal().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->principal()); + } + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; if (this->has_execution_id()) { total_size += 1 + @@ -2507,6 +2733,10 @@ void CloudEventExecutionStart::MergeFrom(const CloudEventExecutionStart& from) { artifact_ids_.MergeFrom(from.artifact_ids_); artifact_keys_.MergeFrom(from.artifact_keys_); + if (from.principal().size() > 0) { + + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } if (from.has_execution_id()) { mutable_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution_id()); } @@ -2545,6 +2775,8 @@ void CloudEventExecutionStart::InternalSwap(CloudEventExecutionStart* other) { _internal_metadata_.Swap(&other->_internal_metadata_); CastToBase(&artifact_ids_)->InternalSwap(CastToBase(&other->artifact_ids_)); artifact_keys_.InternalSwap(CastToBase(&other->artifact_keys_)); + principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); swap(execution_id_, other->execution_id_); swap(launch_plan_id_, other->launch_plan_id_); swap(workflow_id_, other->workflow_id_); diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.h b/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.h index c9167e0fa6..999d5a1137 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.h @@ -190,6 +190,20 @@ class CloudEventWorkflowExecution final : const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& artifact_ids() const; + // string principal = 7; + void clear_principal(); + static const int kPrincipalFieldNumber = 7; + const ::std::string& principal() const; + void set_principal(const ::std::string& value); + #if LANG_CXX11 + void set_principal(::std::string&& value); + #endif + void set_principal(const char* value); + void set_principal(const char* value, size_t size); + ::std::string* mutable_principal(); + ::std::string* release_principal(); + void set_allocated_principal(::std::string* principal); + // .flyteidl.event.WorkflowExecutionEvent raw_event = 1; bool has_raw_event() const; void clear_raw_event(); @@ -235,10 +249,10 @@ class CloudEventWorkflowExecution final : ::flyteidl::core::WorkflowExecutionIdentifier* mutable_reference_execution(); void set_allocated_reference_execution(::flyteidl::core::WorkflowExecutionIdentifier* reference_execution); - // .flyteidl.core.Identifier launch_plan_id = 7; + // .flyteidl.core.Identifier launch_plan_id = 8; bool has_launch_plan_id() const; void clear_launch_plan_id(); - static const int kLaunchPlanIdFieldNumber = 7; + static const int kLaunchPlanIdFieldNumber = 8; const ::flyteidl::core::Identifier& launch_plan_id() const; ::flyteidl::core::Identifier* release_launch_plan_id(); ::flyteidl::core::Identifier* mutable_launch_plan_id(); @@ -250,6 +264,7 @@ class CloudEventWorkflowExecution final : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID > artifact_ids_; + ::google::protobuf::internal::ArenaStringPtr principal_; ::flyteidl::event::WorkflowExecutionEvent* raw_event_; ::flyteidl::core::LiteralMap* output_data_; ::flyteidl::core::TypedInterface* output_interface_; @@ -368,6 +383,20 @@ class CloudEventNodeExecution final : const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& artifact_ids() const; + // string principal = 7; + void clear_principal(); + static const int kPrincipalFieldNumber = 7; + const ::std::string& principal() const; + void set_principal(const ::std::string& value); + #if LANG_CXX11 + void set_principal(::std::string&& value); + #endif + void set_principal(const char* value); + void set_principal(const char* value, size_t size); + ::std::string* mutable_principal(); + ::std::string* release_principal(); + void set_allocated_principal(::std::string* principal); + // .flyteidl.event.NodeExecutionEvent raw_event = 1; bool has_raw_event() const; void clear_raw_event(); @@ -413,10 +442,10 @@ class CloudEventNodeExecution final : ::flyteidl::core::LiteralMap* mutable_input_data(); void set_allocated_input_data(::flyteidl::core::LiteralMap* input_data); - // .flyteidl.core.Identifier launch_plan_id = 7; + // .flyteidl.core.Identifier launch_plan_id = 8; bool has_launch_plan_id() const; void clear_launch_plan_id(); - static const int kLaunchPlanIdFieldNumber = 7; + static const int kLaunchPlanIdFieldNumber = 8; const ::flyteidl::core::Identifier& launch_plan_id() const; ::flyteidl::core::Identifier* release_launch_plan_id(); ::flyteidl::core::Identifier* mutable_launch_plan_id(); @@ -428,6 +457,7 @@ class CloudEventNodeExecution final : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID > artifact_ids_; + ::google::protobuf::internal::ArenaStringPtr principal_; ::flyteidl::event::NodeExecutionEvent* raw_event_; ::flyteidl::core::TaskExecutionIdentifier* task_exec_id_; ::flyteidl::core::LiteralMap* output_data_; @@ -683,6 +713,20 @@ class CloudEventExecutionStart final : const ::google::protobuf::RepeatedPtrField<::std::string>& artifact_keys() const; ::google::protobuf::RepeatedPtrField<::std::string>* mutable_artifact_keys(); + // string principal = 6; + void clear_principal(); + static const int kPrincipalFieldNumber = 6; + const ::std::string& principal() const; + void set_principal(const ::std::string& value); + #if LANG_CXX11 + void set_principal(::std::string&& value); + #endif + void set_principal(const char* value); + void set_principal(const char* value, size_t size); + ::std::string* mutable_principal(); + ::std::string* release_principal(); + void set_allocated_principal(::std::string* principal); + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; bool has_execution_id() const; void clear_execution_id(); @@ -717,6 +761,7 @@ class CloudEventExecutionStart final : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID > artifact_ids_; ::google::protobuf::RepeatedPtrField<::std::string> artifact_keys_; + ::google::protobuf::internal::ArenaStringPtr principal_; ::flyteidl::core::WorkflowExecutionIdentifier* execution_id_; ::flyteidl::core::Identifier* launch_plan_id_; ::flyteidl::core::Identifier* workflow_id_; @@ -986,7 +1031,60 @@ inline void CloudEventWorkflowExecution::set_allocated_reference_execution(::fly // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventWorkflowExecution.reference_execution) } -// .flyteidl.core.Identifier launch_plan_id = 7; +// string principal = 7; +inline void CloudEventWorkflowExecution::clear_principal() { + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CloudEventWorkflowExecution::principal() const { + // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventWorkflowExecution.principal) + return principal_.GetNoArena(); +} +inline void CloudEventWorkflowExecution::set_principal(const ::std::string& value) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.CloudEventWorkflowExecution.principal) +} +#if LANG_CXX11 +inline void CloudEventWorkflowExecution::set_principal(::std::string&& value) { + + principal_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.CloudEventWorkflowExecution.principal) +} +#endif +inline void CloudEventWorkflowExecution::set_principal(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.CloudEventWorkflowExecution.principal) +} +inline void CloudEventWorkflowExecution::set_principal(const char* value, size_t size) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.CloudEventWorkflowExecution.principal) +} +inline ::std::string* CloudEventWorkflowExecution::mutable_principal() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventWorkflowExecution.principal) + return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CloudEventWorkflowExecution::release_principal() { + // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventWorkflowExecution.principal) + + return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CloudEventWorkflowExecution::set_allocated_principal(::std::string* principal) { + if (principal != nullptr) { + + } else { + + } + principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventWorkflowExecution.principal) +} + +// .flyteidl.core.Identifier launch_plan_id = 8; inline bool CloudEventWorkflowExecution::has_launch_plan_id() const { return this != internal_default_instance() && launch_plan_id_ != nullptr; } @@ -1287,7 +1385,60 @@ CloudEventNodeExecution::artifact_ids() const { return artifact_ids_; } -// .flyteidl.core.Identifier launch_plan_id = 7; +// string principal = 7; +inline void CloudEventNodeExecution::clear_principal() { + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CloudEventNodeExecution::principal() const { + // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventNodeExecution.principal) + return principal_.GetNoArena(); +} +inline void CloudEventNodeExecution::set_principal(const ::std::string& value) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.CloudEventNodeExecution.principal) +} +#if LANG_CXX11 +inline void CloudEventNodeExecution::set_principal(::std::string&& value) { + + principal_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.CloudEventNodeExecution.principal) +} +#endif +inline void CloudEventNodeExecution::set_principal(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.CloudEventNodeExecution.principal) +} +inline void CloudEventNodeExecution::set_principal(const char* value, size_t size) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.CloudEventNodeExecution.principal) +} +inline ::std::string* CloudEventNodeExecution::mutable_principal() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventNodeExecution.principal) + return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CloudEventNodeExecution::release_principal() { + // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventNodeExecution.principal) + + return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CloudEventNodeExecution::set_allocated_principal(::std::string* principal) { + if (principal != nullptr) { + + } else { + + } + principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventNodeExecution.principal) +} + +// .flyteidl.core.Identifier launch_plan_id = 8; inline bool CloudEventNodeExecution::has_launch_plan_id() const { return this != internal_default_instance() && launch_plan_id_ != nullptr; } @@ -1616,6 +1767,59 @@ CloudEventExecutionStart::mutable_artifact_keys() { return &artifact_keys_; } +// string principal = 6; +inline void CloudEventExecutionStart::clear_principal() { + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CloudEventExecutionStart::principal() const { + // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventExecutionStart.principal) + return principal_.GetNoArena(); +} +inline void CloudEventExecutionStart::set_principal(const ::std::string& value) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.CloudEventExecutionStart.principal) +} +#if LANG_CXX11 +inline void CloudEventExecutionStart::set_principal(::std::string&& value) { + + principal_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.CloudEventExecutionStart.principal) +} +#endif +inline void CloudEventExecutionStart::set_principal(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.CloudEventExecutionStart.principal) +} +inline void CloudEventExecutionStart::set_principal(const char* value, size_t size) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.CloudEventExecutionStart.principal) +} +inline ::std::string* CloudEventExecutionStart::mutable_principal() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventExecutionStart.principal) + return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CloudEventExecutionStart::release_principal() { + // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventExecutionStart.principal) + + return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CloudEventExecutionStart::set_allocated_principal(::std::string* principal) { + if (principal != nullptr) { + + } else { + + } + principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventExecutionStart.principal) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ diff --git a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.go b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.go index d89de7c874..eebe9c5ae7 100644 --- a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.go @@ -8,7 +8,7 @@ import ( fmt "fmt" admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - event "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event" + _ "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event" proto "github.com/golang/protobuf/proto" any "github.com/golang/protobuf/ptypes/any" _ "google.golang.org/genproto/googleapis/api/annotations" @@ -29,14 +29,40 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +type FindByWorkflowExecRequest_Direction int32 + +const ( + FindByWorkflowExecRequest_INPUTS FindByWorkflowExecRequest_Direction = 0 + FindByWorkflowExecRequest_OUTPUTS FindByWorkflowExecRequest_Direction = 1 +) + +var FindByWorkflowExecRequest_Direction_name = map[int32]string{ + 0: "INPUTS", + 1: "OUTPUTS", +} + +var FindByWorkflowExecRequest_Direction_value = map[string]int32{ + "INPUTS": 0, + "OUTPUTS": 1, +} + +func (x FindByWorkflowExecRequest_Direction) String() string { + return proto.EnumName(FindByWorkflowExecRequest_Direction_name, int32(x)) +} + +func (FindByWorkflowExecRequest_Direction) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_804518da5936dedb, []int{10, 0} +} + type Artifact struct { ArtifactId *core.ArtifactID `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` Spec *ArtifactSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` // references the tag field in ArtifactTag - Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` + Source *ArtifactSource `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Artifact) Reset() { *m = Artifact{} } @@ -85,6 +111,13 @@ func (m *Artifact) GetTags() []string { return nil } +func (m *Artifact) GetSource() *ArtifactSource { + if m != nil { + return m.Source + } + return nil +} + type CreateArtifactRequest struct { // Specify just project/domain on creation ArtifactKey *core.ArtifactKey `protobuf:"bytes,1,opt,name=artifact_key,json=artifactKey,proto3" json:"artifact_key,omitempty"` @@ -92,6 +125,7 @@ type CreateArtifactRequest struct { Spec *ArtifactSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` Partitions map[string]string `protobuf:"bytes,4,rep,name=partitions,proto3" json:"partitions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` Tag string `protobuf:"bytes,5,opt,name=tag,proto3" json:"tag,omitempty"` + Source *ArtifactSource `protobuf:"bytes,6,opt,name=source,proto3" json:"source,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -157,23 +191,95 @@ func (m *CreateArtifactRequest) GetTag() string { return "" } +func (m *CreateArtifactRequest) GetSource() *ArtifactSource { + if m != nil { + return m.Source + } + return nil +} + +type ArtifactSource struct { + WorkflowExecution *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + TaskId *core.Identifier `protobuf:"bytes,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + RetryAttempt uint32 `protobuf:"varint,4,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` + // Uploads, either from the UI or from the CLI, or FlyteRemote, will have this. + Principal string `protobuf:"bytes,5,opt,name=principal,proto3" json:"principal,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ArtifactSource) Reset() { *m = ArtifactSource{} } +func (m *ArtifactSource) String() string { return proto.CompactTextString(m) } +func (*ArtifactSource) ProtoMessage() {} +func (*ArtifactSource) Descriptor() ([]byte, []int) { + return fileDescriptor_804518da5936dedb, []int{2} +} + +func (m *ArtifactSource) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ArtifactSource.Unmarshal(m, b) +} +func (m *ArtifactSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ArtifactSource.Marshal(b, m, deterministic) +} +func (m *ArtifactSource) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArtifactSource.Merge(m, src) +} +func (m *ArtifactSource) XXX_Size() int { + return xxx_messageInfo_ArtifactSource.Size(m) +} +func (m *ArtifactSource) XXX_DiscardUnknown() { + xxx_messageInfo_ArtifactSource.DiscardUnknown(m) +} + +var xxx_messageInfo_ArtifactSource proto.InternalMessageInfo + +func (m *ArtifactSource) GetWorkflowExecution() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.WorkflowExecution + } + return nil +} + +func (m *ArtifactSource) GetNodeId() string { + if m != nil { + return m.NodeId + } + return "" +} + +func (m *ArtifactSource) GetTaskId() *core.Identifier { + if m != nil { + return m.TaskId + } + return nil +} + +func (m *ArtifactSource) GetRetryAttempt() uint32 { + if m != nil { + return m.RetryAttempt + } + return 0 +} + +func (m *ArtifactSource) GetPrincipal() string { + if m != nil { + return m.Principal + } + return "" +} + type ArtifactSpec struct { Value *core.Literal `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but // forgets to change the name, that is okay. And the reason why this is a separate field is because adding the // type to all Literals is a lot of work. - Type *core.LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - // 3. These fields should be removed. - // Outputs of tasks will have this. - TaskExecution *core.TaskExecutionIdentifier `protobuf:"bytes,5,opt,name=task_execution,json=taskExecution,proto3" json:"task_execution,omitempty"` - // Workflow outputs will have this. - Execution *core.WorkflowExecutionIdentifier `protobuf:"bytes,6,opt,name=execution,proto3" json:"execution,omitempty"` - // Uploads, either from the UI or from the CLI, or FlyteRemote, will have this. - Principal string `protobuf:"bytes,7,opt,name=principal,proto3" json:"principal,omitempty"` - ShortDescription string `protobuf:"bytes,8,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` + Type *core.LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + ShortDescription string `protobuf:"bytes,3,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` // Additional user metadata - UserMetadata *any.Any `protobuf:"bytes,10,opt,name=user_metadata,json=userMetadata,proto3" json:"user_metadata,omitempty"` - MetadataType string `protobuf:"bytes,11,opt,name=metadata_type,json=metadataType,proto3" json:"metadata_type,omitempty"` + UserMetadata *any.Any `protobuf:"bytes,4,opt,name=user_metadata,json=userMetadata,proto3" json:"user_metadata,omitempty"` + MetadataType string `protobuf:"bytes,5,opt,name=metadata_type,json=metadataType,proto3" json:"metadata_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -183,7 +289,7 @@ func (m *ArtifactSpec) Reset() { *m = ArtifactSpec{} } func (m *ArtifactSpec) String() string { return proto.CompactTextString(m) } func (*ArtifactSpec) ProtoMessage() {} func (*ArtifactSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{2} + return fileDescriptor_804518da5936dedb, []int{3} } func (m *ArtifactSpec) XXX_Unmarshal(b []byte) error { @@ -218,27 +324,6 @@ func (m *ArtifactSpec) GetType() *core.LiteralType { return nil } -func (m *ArtifactSpec) GetTaskExecution() *core.TaskExecutionIdentifier { - if m != nil { - return m.TaskExecution - } - return nil -} - -func (m *ArtifactSpec) GetExecution() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.Execution - } - return nil -} - -func (m *ArtifactSpec) GetPrincipal() string { - if m != nil { - return m.Principal - } - return "" -} - func (m *ArtifactSpec) GetShortDescription() string { if m != nil { return m.ShortDescription @@ -271,7 +356,7 @@ func (m *CreateArtifactResponse) Reset() { *m = CreateArtifactResponse{} func (m *CreateArtifactResponse) String() string { return proto.CompactTextString(m) } func (*CreateArtifactResponse) ProtoMessage() {} func (*CreateArtifactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{3} + return fileDescriptor_804518da5936dedb, []int{4} } func (m *CreateArtifactResponse) XXX_Unmarshal(b []byte) error { @@ -312,7 +397,7 @@ func (m *GetArtifactRequest) Reset() { *m = GetArtifactRequest{} } func (m *GetArtifactRequest) String() string { return proto.CompactTextString(m) } func (*GetArtifactRequest) ProtoMessage() {} func (*GetArtifactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{4} + return fileDescriptor_804518da5936dedb, []int{5} } func (m *GetArtifactRequest) XXX_Unmarshal(b []byte) error { @@ -358,7 +443,7 @@ func (m *GetArtifactResponse) Reset() { *m = GetArtifactResponse{} } func (m *GetArtifactResponse) String() string { return proto.CompactTextString(m) } func (*GetArtifactResponse) ProtoMessage() {} func (*GetArtifactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{5} + return fileDescriptor_804518da5936dedb, []int{6} } func (m *GetArtifactResponse) XXX_Unmarshal(b []byte) error { @@ -386,97 +471,64 @@ func (m *GetArtifactResponse) GetArtifact() *Artifact { return nil } -type ListArtifactNamesRequest struct { - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` +type SearchOptions struct { + // If true, this means a strict partition search. meaning if you don't specify the partition + // field, that will mean, non-partitioned, rather than any partition. + StrictPartitions bool `protobuf:"varint,1,opt,name=strict_partitions,json=strictPartitions,proto3" json:"strict_partitions,omitempty"` + // If true, only one artifact per key will be returned. It will be the latest one by creation time. + LatestByKey bool `protobuf:"varint,2,opt,name=latest_by_key,json=latestByKey,proto3" json:"latest_by_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *ListArtifactNamesRequest) Reset() { *m = ListArtifactNamesRequest{} } -func (m *ListArtifactNamesRequest) String() string { return proto.CompactTextString(m) } -func (*ListArtifactNamesRequest) ProtoMessage() {} -func (*ListArtifactNamesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{6} +func (m *SearchOptions) Reset() { *m = SearchOptions{} } +func (m *SearchOptions) String() string { return proto.CompactTextString(m) } +func (*SearchOptions) ProtoMessage() {} +func (*SearchOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_804518da5936dedb, []int{7} } -func (m *ListArtifactNamesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListArtifactNamesRequest.Unmarshal(m, b) +func (m *SearchOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SearchOptions.Unmarshal(m, b) } -func (m *ListArtifactNamesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListArtifactNamesRequest.Marshal(b, m, deterministic) +func (m *SearchOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SearchOptions.Marshal(b, m, deterministic) } -func (m *ListArtifactNamesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListArtifactNamesRequest.Merge(m, src) +func (m *SearchOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchOptions.Merge(m, src) } -func (m *ListArtifactNamesRequest) XXX_Size() int { - return xxx_messageInfo_ListArtifactNamesRequest.Size(m) +func (m *SearchOptions) XXX_Size() int { + return xxx_messageInfo_SearchOptions.Size(m) } -func (m *ListArtifactNamesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListArtifactNamesRequest.DiscardUnknown(m) +func (m *SearchOptions) XXX_DiscardUnknown() { + xxx_messageInfo_SearchOptions.DiscardUnknown(m) } -var xxx_messageInfo_ListArtifactNamesRequest proto.InternalMessageInfo +var xxx_messageInfo_SearchOptions proto.InternalMessageInfo -func (m *ListArtifactNamesRequest) GetProject() string { +func (m *SearchOptions) GetStrictPartitions() bool { if m != nil { - return m.Project + return m.StrictPartitions } - return "" -} - -func (m *ListArtifactNamesRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -type ListArtifactNamesResponse struct { - ArtifactKeys []*core.ArtifactKey `protobuf:"bytes,1,rep,name=artifact_keys,json=artifactKeys,proto3" json:"artifact_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListArtifactNamesResponse) Reset() { *m = ListArtifactNamesResponse{} } -func (m *ListArtifactNamesResponse) String() string { return proto.CompactTextString(m) } -func (*ListArtifactNamesResponse) ProtoMessage() {} -func (*ListArtifactNamesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{7} -} - -func (m *ListArtifactNamesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListArtifactNamesResponse.Unmarshal(m, b) -} -func (m *ListArtifactNamesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListArtifactNamesResponse.Marshal(b, m, deterministic) -} -func (m *ListArtifactNamesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListArtifactNamesResponse.Merge(m, src) -} -func (m *ListArtifactNamesResponse) XXX_Size() int { - return xxx_messageInfo_ListArtifactNamesResponse.Size(m) -} -func (m *ListArtifactNamesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListArtifactNamesResponse.DiscardUnknown(m) + return false } -var xxx_messageInfo_ListArtifactNamesResponse proto.InternalMessageInfo - -func (m *ListArtifactNamesResponse) GetArtifactKeys() []*core.ArtifactKey { +func (m *SearchOptions) GetLatestByKey() bool { if m != nil { - return m.ArtifactKeys + return m.LatestByKey } - return nil + return false } type SearchArtifactsRequest struct { ArtifactKey *core.ArtifactKey `protobuf:"bytes,1,opt,name=artifact_key,json=artifactKey,proto3" json:"artifact_key,omitempty"` - Filters string `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` - Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` - Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` + Partitions *core.Partitions `protobuf:"bytes,2,opt,name=partitions,proto3" json:"partitions,omitempty"` + Principal string `protobuf:"bytes,3,opt,name=principal,proto3" json:"principal,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + Options *SearchOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` + Token string `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"` + Limit int32 `protobuf:"varint,7,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -514,13 +566,34 @@ func (m *SearchArtifactsRequest) GetArtifactKey() *core.ArtifactKey { return nil } -func (m *SearchArtifactsRequest) GetFilters() string { +func (m *SearchArtifactsRequest) GetPartitions() *core.Partitions { if m != nil { - return m.Filters + return m.Partitions + } + return nil +} + +func (m *SearchArtifactsRequest) GetPrincipal() string { + if m != nil { + return m.Principal + } + return "" +} + +func (m *SearchArtifactsRequest) GetVersion() string { + if m != nil { + return m.Version } return "" } +func (m *SearchArtifactsRequest) GetOptions() *SearchOptions { + if m != nil { + return m.Options + } + return nil +} + func (m *SearchArtifactsRequest) GetToken() string { if m != nil { return m.Token @@ -536,10 +609,13 @@ func (m *SearchArtifactsRequest) GetLimit() int32 { } type SearchArtifactsResponse struct { - Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // If artifact specs are not requested, the resultant artifacts may be empty. + Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"` + // continuation token if relevant. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SearchArtifactsResponse) Reset() { *m = SearchArtifactsResponse{} } @@ -574,6 +650,69 @@ func (m *SearchArtifactsResponse) GetArtifacts() []*Artifact { return nil } +func (m *SearchArtifactsResponse) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +type FindByWorkflowExecRequest struct { + ExecId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` + Direction FindByWorkflowExecRequest_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=flyteidl.artifact.FindByWorkflowExecRequest_Direction" json:"direction,omitempty"` + // If set to true, actually fetch the artifact body. By default only the IDs are returned. + FetchSpecs bool `protobuf:"varint,3,opt,name=fetch_specs,json=fetchSpecs,proto3" json:"fetch_specs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FindByWorkflowExecRequest) Reset() { *m = FindByWorkflowExecRequest{} } +func (m *FindByWorkflowExecRequest) String() string { return proto.CompactTextString(m) } +func (*FindByWorkflowExecRequest) ProtoMessage() {} +func (*FindByWorkflowExecRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_804518da5936dedb, []int{10} +} + +func (m *FindByWorkflowExecRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FindByWorkflowExecRequest.Unmarshal(m, b) +} +func (m *FindByWorkflowExecRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FindByWorkflowExecRequest.Marshal(b, m, deterministic) +} +func (m *FindByWorkflowExecRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FindByWorkflowExecRequest.Merge(m, src) +} +func (m *FindByWorkflowExecRequest) XXX_Size() int { + return xxx_messageInfo_FindByWorkflowExecRequest.Size(m) +} +func (m *FindByWorkflowExecRequest) XXX_DiscardUnknown() { + xxx_messageInfo_FindByWorkflowExecRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_FindByWorkflowExecRequest proto.InternalMessageInfo + +func (m *FindByWorkflowExecRequest) GetExecId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.ExecId + } + return nil +} + +func (m *FindByWorkflowExecRequest) GetDirection() FindByWorkflowExecRequest_Direction { + if m != nil { + return m.Direction + } + return FindByWorkflowExecRequest_INPUTS +} + +func (m *FindByWorkflowExecRequest) GetFetchSpecs() bool { + if m != nil { + return m.FetchSpecs + } + return false +} + // Aliases identify a particular version of an artifact. They are different than tags in that they // have to be unique for a given artifact project/domain/name. That is, for a given project/domain/name/kind, // at most one version can have any given value at any point. @@ -591,7 +730,7 @@ func (m *AddTagRequest) Reset() { *m = AddTagRequest{} } func (m *AddTagRequest) String() string { return proto.CompactTextString(m) } func (*AddTagRequest) ProtoMessage() {} func (*AddTagRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{10} + return fileDescriptor_804518da5936dedb, []int{11} } func (m *AddTagRequest) XXX_Unmarshal(b []byte) error { @@ -643,7 +782,7 @@ func (m *AddTagResponse) Reset() { *m = AddTagResponse{} } func (m *AddTagResponse) String() string { return proto.CompactTextString(m) } func (*AddTagResponse) ProtoMessage() {} func (*AddTagResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{11} + return fileDescriptor_804518da5936dedb, []int{12} } func (m *AddTagResponse) XXX_Unmarshal(b []byte) error { @@ -675,7 +814,7 @@ func (m *CreateTriggerRequest) Reset() { *m = CreateTriggerRequest{} } func (m *CreateTriggerRequest) String() string { return proto.CompactTextString(m) } func (*CreateTriggerRequest) ProtoMessage() {} func (*CreateTriggerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{12} + return fileDescriptor_804518da5936dedb, []int{13} } func (m *CreateTriggerRequest) XXX_Unmarshal(b []byte) error { @@ -713,7 +852,7 @@ func (m *CreateTriggerResponse) Reset() { *m = CreateTriggerResponse{} } func (m *CreateTriggerResponse) String() string { return proto.CompactTextString(m) } func (*CreateTriggerResponse) ProtoMessage() {} func (*CreateTriggerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{13} + return fileDescriptor_804518da5936dedb, []int{14} } func (m *CreateTriggerResponse) XXX_Unmarshal(b []byte) error { @@ -745,7 +884,7 @@ func (m *DeleteTriggerRequest) Reset() { *m = DeleteTriggerRequest{} } func (m *DeleteTriggerRequest) String() string { return proto.CompactTextString(m) } func (*DeleteTriggerRequest) ProtoMessage() {} func (*DeleteTriggerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{14} + return fileDescriptor_804518da5936dedb, []int{15} } func (m *DeleteTriggerRequest) XXX_Unmarshal(b []byte) error { @@ -783,7 +922,7 @@ func (m *DeleteTriggerResponse) Reset() { *m = DeleteTriggerResponse{} } func (m *DeleteTriggerResponse) String() string { return proto.CompactTextString(m) } func (*DeleteTriggerResponse) ProtoMessage() {} func (*DeleteTriggerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{15} + return fileDescriptor_804518da5936dedb, []int{16} } func (m *DeleteTriggerResponse) XXX_Unmarshal(b []byte) error { @@ -818,7 +957,7 @@ func (m *ArtifactProducer) Reset() { *m = ArtifactProducer{} } func (m *ArtifactProducer) String() string { return proto.CompactTextString(m) } func (*ArtifactProducer) ProtoMessage() {} func (*ArtifactProducer) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{16} + return fileDescriptor_804518da5936dedb, []int{17} } func (m *ArtifactProducer) XXX_Unmarshal(b []byte) error { @@ -864,7 +1003,7 @@ func (m *RegisterProducerRequest) Reset() { *m = RegisterProducerRequest func (m *RegisterProducerRequest) String() string { return proto.CompactTextString(m) } func (*RegisterProducerRequest) ProtoMessage() {} func (*RegisterProducerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{17} + return fileDescriptor_804518da5936dedb, []int{18} } func (m *RegisterProducerRequest) XXX_Unmarshal(b []byte) error { @@ -905,7 +1044,7 @@ func (m *ArtifactConsumer) Reset() { *m = ArtifactConsumer{} } func (m *ArtifactConsumer) String() string { return proto.CompactTextString(m) } func (*ArtifactConsumer) ProtoMessage() {} func (*ArtifactConsumer) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{18} + return fileDescriptor_804518da5936dedb, []int{19} } func (m *ArtifactConsumer) XXX_Unmarshal(b []byte) error { @@ -951,7 +1090,7 @@ func (m *RegisterConsumerRequest) Reset() { *m = RegisterConsumerRequest func (m *RegisterConsumerRequest) String() string { return proto.CompactTextString(m) } func (*RegisterConsumerRequest) ProtoMessage() {} func (*RegisterConsumerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{19} + return fileDescriptor_804518da5936dedb, []int{20} } func (m *RegisterConsumerRequest) XXX_Unmarshal(b []byte) error { @@ -989,7 +1128,7 @@ func (m *RegisterResponse) Reset() { *m = RegisterResponse{} } func (m *RegisterResponse) String() string { return proto.CompactTextString(m) } func (*RegisterResponse) ProtoMessage() {} func (*RegisterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{20} + return fileDescriptor_804518da5936dedb, []int{21} } func (m *RegisterResponse) XXX_Unmarshal(b []byte) error { @@ -1010,144 +1149,99 @@ func (m *RegisterResponse) XXX_DiscardUnknown() { var xxx_messageInfo_RegisterResponse proto.InternalMessageInfo -type CloudEventRequest struct { - // Types that are valid to be assigned to Event: - // *CloudEventRequest_WorkflowExecutionEvent - // *CloudEventRequest_TaskExecutionEvent - // *CloudEventRequest_NodeExecutionEvent - Event isCloudEventRequest_Event `protobuf_oneof:"event"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CloudEventRequest) Reset() { *m = CloudEventRequest{} } -func (m *CloudEventRequest) String() string { return proto.CompactTextString(m) } -func (*CloudEventRequest) ProtoMessage() {} -func (*CloudEventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{21} +type ExecutionInputsRequest struct { + ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` + // can make this a map in the future, currently no need. + Inputs []*core.ArtifactID `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CloudEventRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CloudEventRequest.Unmarshal(m, b) -} -func (m *CloudEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CloudEventRequest.Marshal(b, m, deterministic) -} -func (m *CloudEventRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloudEventRequest.Merge(m, src) -} -func (m *CloudEventRequest) XXX_Size() int { - return xxx_messageInfo_CloudEventRequest.Size(m) -} -func (m *CloudEventRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CloudEventRequest.DiscardUnknown(m) +func (m *ExecutionInputsRequest) Reset() { *m = ExecutionInputsRequest{} } +func (m *ExecutionInputsRequest) String() string { return proto.CompactTextString(m) } +func (*ExecutionInputsRequest) ProtoMessage() {} +func (*ExecutionInputsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_804518da5936dedb, []int{22} } -var xxx_messageInfo_CloudEventRequest proto.InternalMessageInfo - -type isCloudEventRequest_Event interface { - isCloudEventRequest_Event() +func (m *ExecutionInputsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionInputsRequest.Unmarshal(m, b) } - -type CloudEventRequest_WorkflowExecutionEvent struct { - WorkflowExecutionEvent *event.CloudEventWorkflowExecution `protobuf:"bytes,1,opt,name=workflow_execution_event,json=workflowExecutionEvent,proto3,oneof"` +func (m *ExecutionInputsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionInputsRequest.Marshal(b, m, deterministic) } - -type CloudEventRequest_TaskExecutionEvent struct { - TaskExecutionEvent *event.CloudEventTaskExecution `protobuf:"bytes,2,opt,name=task_execution_event,json=taskExecutionEvent,proto3,oneof"` +func (m *ExecutionInputsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionInputsRequest.Merge(m, src) } - -type CloudEventRequest_NodeExecutionEvent struct { - NodeExecutionEvent *event.CloudEventNodeExecution `protobuf:"bytes,3,opt,name=node_execution_event,json=nodeExecutionEvent,proto3,oneof"` +func (m *ExecutionInputsRequest) XXX_Size() int { + return xxx_messageInfo_ExecutionInputsRequest.Size(m) } - -func (*CloudEventRequest_WorkflowExecutionEvent) isCloudEventRequest_Event() {} - -func (*CloudEventRequest_TaskExecutionEvent) isCloudEventRequest_Event() {} - -func (*CloudEventRequest_NodeExecutionEvent) isCloudEventRequest_Event() {} - -func (m *CloudEventRequest) GetEvent() isCloudEventRequest_Event { - if m != nil { - return m.Event - } - return nil +func (m *ExecutionInputsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionInputsRequest.DiscardUnknown(m) } -func (m *CloudEventRequest) GetWorkflowExecutionEvent() *event.CloudEventWorkflowExecution { - if x, ok := m.GetEvent().(*CloudEventRequest_WorkflowExecutionEvent); ok { - return x.WorkflowExecutionEvent - } - return nil -} +var xxx_messageInfo_ExecutionInputsRequest proto.InternalMessageInfo -func (m *CloudEventRequest) GetTaskExecutionEvent() *event.CloudEventTaskExecution { - if x, ok := m.GetEvent().(*CloudEventRequest_TaskExecutionEvent); ok { - return x.TaskExecutionEvent +func (m *ExecutionInputsRequest) GetExecutionId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.ExecutionId } return nil } -func (m *CloudEventRequest) GetNodeExecutionEvent() *event.CloudEventNodeExecution { - if x, ok := m.GetEvent().(*CloudEventRequest_NodeExecutionEvent); ok { - return x.NodeExecutionEvent +func (m *ExecutionInputsRequest) GetInputs() []*core.ArtifactID { + if m != nil { + return m.Inputs } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*CloudEventRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*CloudEventRequest_WorkflowExecutionEvent)(nil), - (*CloudEventRequest_TaskExecutionEvent)(nil), - (*CloudEventRequest_NodeExecutionEvent)(nil), - } -} - -type CloudEventResponse struct { +type ExecutionInputsResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *CloudEventResponse) Reset() { *m = CloudEventResponse{} } -func (m *CloudEventResponse) String() string { return proto.CompactTextString(m) } -func (*CloudEventResponse) ProtoMessage() {} -func (*CloudEventResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{22} +func (m *ExecutionInputsResponse) Reset() { *m = ExecutionInputsResponse{} } +func (m *ExecutionInputsResponse) String() string { return proto.CompactTextString(m) } +func (*ExecutionInputsResponse) ProtoMessage() {} +func (*ExecutionInputsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_804518da5936dedb, []int{23} } -func (m *CloudEventResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CloudEventResponse.Unmarshal(m, b) +func (m *ExecutionInputsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionInputsResponse.Unmarshal(m, b) } -func (m *CloudEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CloudEventResponse.Marshal(b, m, deterministic) +func (m *ExecutionInputsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionInputsResponse.Marshal(b, m, deterministic) } -func (m *CloudEventResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloudEventResponse.Merge(m, src) +func (m *ExecutionInputsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionInputsResponse.Merge(m, src) } -func (m *CloudEventResponse) XXX_Size() int { - return xxx_messageInfo_CloudEventResponse.Size(m) +func (m *ExecutionInputsResponse) XXX_Size() int { + return xxx_messageInfo_ExecutionInputsResponse.Size(m) } -func (m *CloudEventResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CloudEventResponse.DiscardUnknown(m) +func (m *ExecutionInputsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionInputsResponse.DiscardUnknown(m) } -var xxx_messageInfo_CloudEventResponse proto.InternalMessageInfo +var xxx_messageInfo_ExecutionInputsResponse proto.InternalMessageInfo func init() { + proto.RegisterEnum("flyteidl.artifact.FindByWorkflowExecRequest_Direction", FindByWorkflowExecRequest_Direction_name, FindByWorkflowExecRequest_Direction_value) proto.RegisterType((*Artifact)(nil), "flyteidl.artifact.Artifact") proto.RegisterType((*CreateArtifactRequest)(nil), "flyteidl.artifact.CreateArtifactRequest") proto.RegisterMapType((map[string]string)(nil), "flyteidl.artifact.CreateArtifactRequest.PartitionsEntry") + proto.RegisterType((*ArtifactSource)(nil), "flyteidl.artifact.ArtifactSource") proto.RegisterType((*ArtifactSpec)(nil), "flyteidl.artifact.ArtifactSpec") proto.RegisterType((*CreateArtifactResponse)(nil), "flyteidl.artifact.CreateArtifactResponse") proto.RegisterType((*GetArtifactRequest)(nil), "flyteidl.artifact.GetArtifactRequest") proto.RegisterType((*GetArtifactResponse)(nil), "flyteidl.artifact.GetArtifactResponse") - proto.RegisterType((*ListArtifactNamesRequest)(nil), "flyteidl.artifact.ListArtifactNamesRequest") - proto.RegisterType((*ListArtifactNamesResponse)(nil), "flyteidl.artifact.ListArtifactNamesResponse") + proto.RegisterType((*SearchOptions)(nil), "flyteidl.artifact.SearchOptions") proto.RegisterType((*SearchArtifactsRequest)(nil), "flyteidl.artifact.SearchArtifactsRequest") proto.RegisterType((*SearchArtifactsResponse)(nil), "flyteidl.artifact.SearchArtifactsResponse") + proto.RegisterType((*FindByWorkflowExecRequest)(nil), "flyteidl.artifact.FindByWorkflowExecRequest") proto.RegisterType((*AddTagRequest)(nil), "flyteidl.artifact.AddTagRequest") proto.RegisterType((*AddTagResponse)(nil), "flyteidl.artifact.AddTagResponse") proto.RegisterType((*CreateTriggerRequest)(nil), "flyteidl.artifact.CreateTriggerRequest") @@ -1159,105 +1253,118 @@ func init() { proto.RegisterType((*ArtifactConsumer)(nil), "flyteidl.artifact.ArtifactConsumer") proto.RegisterType((*RegisterConsumerRequest)(nil), "flyteidl.artifact.RegisterConsumerRequest") proto.RegisterType((*RegisterResponse)(nil), "flyteidl.artifact.RegisterResponse") - proto.RegisterType((*CloudEventRequest)(nil), "flyteidl.artifact.CloudEventRequest") - proto.RegisterType((*CloudEventResponse)(nil), "flyteidl.artifact.CloudEventResponse") + proto.RegisterType((*ExecutionInputsRequest)(nil), "flyteidl.artifact.ExecutionInputsRequest") + proto.RegisterType((*ExecutionInputsResponse)(nil), "flyteidl.artifact.ExecutionInputsResponse") } func init() { proto.RegisterFile("flyteidl/artifact/artifacts.proto", fileDescriptor_804518da5936dedb) } var fileDescriptor_804518da5936dedb = []byte{ - // 1450 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x4f, 0x6f, 0xdc, 0x44, - 0x1b, 0x8f, 0xb3, 0xf9, 0xb7, 0x4f, 0xb2, 0x6d, 0x32, 0xcd, 0x9b, 0x3a, 0xdb, 0xbe, 0x6f, 0xb7, - 0xae, 0xde, 0x76, 0x69, 0xc1, 0x16, 0x29, 0x82, 0xb6, 0xa8, 0x40, 0xfa, 0x47, 0x34, 0x34, 0x6d, - 0x53, 0x37, 0x02, 0x14, 0x2a, 0xad, 0x66, 0xed, 0x59, 0xc7, 0xc4, 0x6b, 0xbb, 0xe3, 0xd9, 0x84, - 0x55, 0x55, 0x15, 0xf5, 0x8a, 0x44, 0x11, 0x1c, 0x38, 0x71, 0x46, 0xe2, 0xc4, 0x9d, 0x03, 0x9f, - 0x00, 0x09, 0x89, 0xaf, 0x80, 0xc4, 0x8d, 0xcf, 0x80, 0x3c, 0x9e, 0xb1, 0xbd, 0xbb, 0xde, 0xcd, - 0x8a, 0x70, 0xe0, 0xe6, 0x79, 0xe6, 0xf7, 0xfc, 0x9d, 0x67, 0x9e, 0xdf, 0xec, 0xc2, 0xd9, 0x96, - 0xd7, 0x65, 0xc4, 0xb5, 0x3d, 0x03, 0x53, 0xe6, 0xb6, 0xb0, 0xc5, 0xd2, 0x8f, 0x48, 0x0f, 0x69, - 0xc0, 0x02, 0xb4, 0x24, 0x21, 0xba, 0xdc, 0xa9, 0xae, 0x3a, 0x41, 0xe0, 0x78, 0xc4, 0xe0, 0x80, - 0x66, 0xa7, 0x65, 0x60, 0xbf, 0x9b, 0xa0, 0xab, 0xa7, 0xc5, 0x16, 0x0e, 0x5d, 0x03, 0xfb, 0x7e, - 0xc0, 0x30, 0x73, 0x03, 0x5f, 0xd8, 0xaa, 0xd6, 0x32, 0x77, 0x76, 0xdb, 0xf5, 0x0d, 0x0f, 0x77, - 0x7c, 0x6b, 0xb7, 0x11, 0x7a, 0xd8, 0x97, 0xfa, 0x29, 0xc2, 0x0a, 0x28, 0x31, 0x3c, 0x97, 0x11, - 0x8a, 0x3d, 0xa9, 0xbf, 0xda, 0xbb, 0xcb, 0xba, 0x21, 0x91, 0x5b, 0xff, 0xeb, 0xdd, 0x72, 0x6d, - 0xe2, 0x33, 0xb7, 0xe5, 0x12, 0x2a, 0xf6, 0xcf, 0xf4, 0xee, 0xcb, 0x5c, 0x1a, 0xae, 0x2d, 0x00, - 0xff, 0xed, 0x33, 0xe0, 0x33, 0x42, 0x5b, 0xd8, 0x22, 0x03, 0xa1, 0x93, 0x7d, 0xe2, 0x33, 0xc3, - 0xf2, 0x82, 0x8e, 0xcd, 0x3f, 0x45, 0x04, 0xda, 0x4b, 0x05, 0xe6, 0xd6, 0x85, 0x59, 0x74, 0x0d, - 0xe6, 0x73, 0x2e, 0x54, 0xa5, 0xa6, 0xd4, 0xe7, 0xd7, 0x56, 0xf5, 0xb4, 0x96, 0xb1, 0x0f, 0x5d, - 0xa2, 0x37, 0x6e, 0x99, 0x20, 0xd1, 0x1b, 0x36, 0xba, 0x0c, 0x53, 0x51, 0x48, 0x2c, 0x75, 0x92, - 0x2b, 0x9d, 0xd1, 0x07, 0x0e, 0x20, 0x55, 0x7c, 0x14, 0x12, 0xcb, 0xe4, 0x60, 0x84, 0x60, 0x8a, - 0x61, 0x27, 0x52, 0x4b, 0xb5, 0x52, 0xbd, 0x6c, 0xf2, 0x6f, 0xed, 0xd7, 0x49, 0xf8, 0xcf, 0x4d, - 0x4a, 0x30, 0x23, 0x52, 0xc1, 0x24, 0x4f, 0x3a, 0x24, 0x62, 0xe8, 0x3a, 0x2c, 0xa4, 0xe1, 0xed, - 0x91, 0xae, 0x88, 0xaf, 0x3a, 0x24, 0xbe, 0xbb, 0xa4, 0x6b, 0xa6, 0xe9, 0xdc, 0x25, 0x5d, 0xa4, - 0xc2, 0xec, 0x3e, 0xa1, 0x91, 0x1b, 0xf8, 0x6a, 0xa9, 0xa6, 0xd4, 0xcb, 0xa6, 0x5c, 0xfe, 0xbd, - 0xd8, 0x3f, 0x06, 0x08, 0xe3, 0x7d, 0xde, 0x2a, 0xea, 0x54, 0xad, 0x54, 0x9f, 0x5f, 0xbb, 0x52, - 0xa0, 0x5a, 0x98, 0x8b, 0xbe, 0x95, 0xaa, 0xde, 0xf6, 0x19, 0xed, 0x9a, 0x39, 0x5b, 0x68, 0x11, - 0x4a, 0x0c, 0x3b, 0xea, 0x34, 0x0f, 0x32, 0xfe, 0xac, 0x5e, 0x87, 0xe3, 0x7d, 0x0a, 0x31, 0x48, - 0xd6, 0xa0, 0x6c, 0xc6, 0x9f, 0x68, 0x19, 0xa6, 0xf7, 0xb1, 0xd7, 0x21, 0x3c, 0x8d, 0xb2, 0x99, - 0x2c, 0xae, 0x4d, 0x5e, 0x51, 0xb4, 0x1f, 0x4b, 0xb0, 0x90, 0xcf, 0x00, 0xbd, 0x2a, 0xa1, 0x49, - 0x09, 0x57, 0xfa, 0x4a, 0xb8, 0x99, 0x34, 0xb0, 0x30, 0x81, 0x74, 0x98, 0x8a, 0x9b, 0x56, 0x94, - 0xa7, 0x5a, 0x0c, 0xde, 0xee, 0x86, 0xc4, 0xe4, 0x38, 0x74, 0x0f, 0x8e, 0x31, 0x1c, 0xed, 0x35, - 0xc8, 0x67, 0xc4, 0xea, 0xc4, 0x21, 0xf3, 0x54, 0xe6, 0xd7, 0xce, 0xf7, 0x69, 0x6e, 0xe3, 0x68, - 0xef, 0xb6, 0xc4, 0x6c, 0xa4, 0xbd, 0x6f, 0x56, 0x58, 0x7e, 0x03, 0xdd, 0x81, 0x72, 0x66, 0x69, - 0x86, 0x5b, 0xba, 0xd8, 0x67, 0xe9, 0xa3, 0x80, 0xee, 0xb5, 0xbc, 0xe0, 0xa0, 0xc8, 0x5a, 0xa6, - 0x8c, 0x4e, 0x43, 0x39, 0xa4, 0xae, 0x6f, 0xb9, 0x21, 0xf6, 0xd4, 0x59, 0x5e, 0xa5, 0x4c, 0x80, - 0x2e, 0xc1, 0x52, 0xb4, 0x1b, 0x50, 0xd6, 0xb0, 0x49, 0x64, 0x51, 0x37, 0xe4, 0xfe, 0xe6, 0x38, - 0x6a, 0x91, 0x6f, 0xdc, 0xca, 0xe4, 0xe8, 0x2a, 0x54, 0x3a, 0x11, 0xa1, 0x8d, 0x36, 0x61, 0xd8, - 0xc6, 0x0c, 0xab, 0xc0, 0x03, 0x5b, 0xd6, 0x93, 0x51, 0xa2, 0xcb, 0x29, 0xa3, 0xaf, 0xfb, 0x5d, - 0x73, 0x21, 0x86, 0xde, 0x13, 0x48, 0x74, 0x0e, 0x2a, 0x52, 0xab, 0xc1, 0xeb, 0x3a, 0xcf, 0x7d, - 0x2c, 0x48, 0x61, 0x5c, 0x49, 0xed, 0x21, 0xac, 0xf4, 0x37, 0x4e, 0x14, 0x06, 0x7e, 0x44, 0xd0, - 0x5b, 0x30, 0x27, 0x7b, 0x4b, 0x1c, 0xdf, 0xa9, 0x11, 0x0d, 0x6b, 0xa6, 0x60, 0xad, 0x09, 0xe8, - 0x7d, 0xc2, 0xfa, 0x2f, 0xd5, 0x1a, 0x4c, 0x3f, 0xe9, 0x10, 0x2a, 0x6f, 0xd3, 0xe9, 0x21, 0xb7, - 0xe9, 0x61, 0x8c, 0x31, 0x13, 0x68, 0x7c, 0x93, 0x6c, 0xc2, 0xb0, 0xeb, 0x45, 0xbc, 0x27, 0xe6, - 0x4c, 0xb9, 0xd4, 0xee, 0xc3, 0x89, 0x1e, 0x1f, 0x47, 0x8d, 0x79, 0x13, 0xd4, 0x4d, 0x37, 0x4a, - 0x0d, 0xde, 0xc7, 0x6d, 0x12, 0xc9, 0xc8, 0x55, 0x98, 0x0d, 0x69, 0xf0, 0x29, 0x11, 0x36, 0xcb, - 0xa6, 0x5c, 0xa2, 0x15, 0x98, 0xb1, 0x83, 0x36, 0x76, 0x7d, 0x71, 0x15, 0xc4, 0x4a, 0x7b, 0x0c, - 0xab, 0x05, 0xd6, 0x44, 0x8c, 0xef, 0x42, 0x25, 0x3f, 0x5d, 0x22, 0x55, 0xe1, 0x57, 0x7a, 0xd4, - 0x78, 0x59, 0xc8, 0x8d, 0x97, 0x48, 0xfb, 0x4e, 0x81, 0x95, 0x47, 0x04, 0x53, 0x6b, 0x57, 0x62, - 0xa2, 0x7f, 0x6e, 0x72, 0xb5, 0x5c, 0x8f, 0x11, 0x1a, 0x89, 0x84, 0xe4, 0x32, 0xbe, 0xf3, 0x2c, - 0xd8, 0x23, 0x72, 0xa2, 0x25, 0x8b, 0x58, 0xea, 0xb9, 0x6d, 0x97, 0xa9, 0x53, 0x35, 0xa5, 0x3e, - 0x6d, 0x26, 0x0b, 0x6d, 0x1b, 0x4e, 0x0e, 0x84, 0x27, 0x72, 0xbf, 0x0a, 0xe5, 0x94, 0x41, 0x45, - 0xde, 0x23, 0x0f, 0x28, 0x43, 0x6b, 0xcf, 0xa1, 0xb2, 0x6e, 0xdb, 0xdb, 0xd8, 0x91, 0xb9, 0x1e, - 0x85, 0x44, 0x0a, 0x47, 0x58, 0x7c, 0x6d, 0x83, 0x7d, 0x42, 0x0f, 0xa8, 0xcb, 0x08, 0x4f, 0x74, - 0xce, 0xcc, 0x04, 0xda, 0x22, 0x1c, 0x93, 0x01, 0x24, 0xd9, 0x68, 0x4d, 0x58, 0x4e, 0xee, 0xce, - 0x36, 0x75, 0x1d, 0x87, 0x50, 0x19, 0xd9, 0x07, 0x70, 0x82, 0x25, 0x92, 0x46, 0x8e, 0xc3, 0x07, - 0x0f, 0x83, 0xd3, 0xbc, 0xbe, 0xc9, 0x21, 0x5b, 0x1e, 0xf6, 0xcd, 0x25, 0xa1, 0x96, 0x89, 0xb4, - 0x93, 0x92, 0xa4, 0x52, 0x1f, 0xc2, 0xf9, 0x16, 0x2c, 0xdf, 0x22, 0x1e, 0x19, 0x70, 0x7e, 0x05, - 0x40, 0x3a, 0x1f, 0x5a, 0x95, 0xfc, 0xd4, 0x12, 0xe0, 0x0d, 0x3b, 0x76, 0xd5, 0x67, 0x51, 0xb8, - 0xfa, 0x5c, 0x81, 0x45, 0x59, 0xc8, 0x2d, 0x1a, 0xd8, 0x1d, 0x8b, 0x50, 0xf4, 0x26, 0x94, 0x63, - 0x23, 0xac, 0x3b, 0x96, 0x9b, 0xb9, 0x04, 0xbb, 0x61, 0xa3, 0x37, 0x60, 0x36, 0xe8, 0xb0, 0xb0, - 0xc3, 0xa2, 0x21, 0x73, 0xfe, 0x43, 0x4c, 0x5d, 0xdc, 0xf4, 0xc8, 0x3d, 0x1c, 0x9a, 0x12, 0xaa, - 0x3d, 0x86, 0x93, 0x26, 0x71, 0xdc, 0x88, 0x11, 0x2a, 0x23, 0x90, 0x09, 0xaf, 0xc7, 0xc3, 0x36, - 0x11, 0xc9, 0x9e, 0x3a, 0x37, 0xa2, 0xa7, 0x52, 0xf5, 0x4c, 0x4b, 0x7b, 0x9e, 0xe5, 0x77, 0x33, - 0xf0, 0xa3, 0x4e, 0xfb, 0x08, 0xf9, 0x5d, 0x86, 0x19, 0xd7, 0xcf, 0xa5, 0x77, 0xaa, 0x4f, 0x69, - 0x0b, 0x53, 0xdc, 0x26, 0x8c, 0xd0, 0x38, 0x3f, 0x01, 0xcd, 0xa7, 0x27, 0x03, 0xc8, 0xa5, 0x67, - 0x09, 0xd1, 0x38, 0xe9, 0xa5, 0xea, 0x99, 0x96, 0x86, 0x60, 0x51, 0x5a, 0x4f, 0xcf, 0xf4, 0xe7, - 0x49, 0x58, 0xba, 0x19, 0xbf, 0xd2, 0x6e, 0xc7, 0xaf, 0x34, 0xe9, 0xcc, 0x01, 0xf5, 0x40, 0x50, - 0x5c, 0xc6, 0xaa, 0x0d, 0xfe, 0x90, 0x13, 0x35, 0xb8, 0x94, 0xf9, 0xe6, 0x62, 0x3d, 0x33, 0x32, - 0x40, 0x8e, 0x77, 0x26, 0xcc, 0x95, 0x83, 0x7e, 0x21, 0x87, 0xa2, 0x4f, 0x60, 0xb9, 0x97, 0xba, - 0x85, 0x93, 0xa4, 0x66, 0x17, 0x86, 0x3b, 0xe9, 0xe1, 0xf2, 0x3b, 0x13, 0x26, 0xea, 0xe1, 0xf0, - 0xd4, 0xb8, 0x1f, 0xd8, 0x64, 0xc0, 0x78, 0xe9, 0x30, 0xe3, 0xf7, 0x03, 0x9b, 0xf4, 0x18, 0xf7, - 0xf3, 0x02, 0x0e, 0xb9, 0x31, 0x0b, 0xd3, 0x5c, 0x4d, 0x5b, 0x06, 0x94, 0x2f, 0x60, 0x52, 0xd7, - 0xb5, 0x9f, 0xe6, 0xb3, 0x5e, 0x4a, 0x8a, 0x4e, 0xbb, 0xc8, 0x81, 0x63, 0xbd, 0x24, 0x8b, 0xea, - 0xe3, 0x3e, 0xe0, 0xaa, 0xaf, 0x8c, 0x81, 0x14, 0x67, 0x3a, 0x81, 0x7e, 0x99, 0x82, 0xf9, 0x1c, - 0x2f, 0xa2, 0xff, 0x17, 0x28, 0x0f, 0x72, 0x73, 0xf5, 0xfc, 0x61, 0x30, 0xe1, 0xe0, 0xcf, 0xd2, - 0x8b, 0xdf, 0x7e, 0xff, 0x66, 0xf2, 0x8f, 0x12, 0x42, 0x46, 0xfc, 0x82, 0x30, 0xf6, 0x5f, 0xcf, - 0x7e, 0x11, 0xed, 0xfc, 0xa0, 0xa0, 0xef, 0x95, 0x01, 0xb9, 0xe1, 0xda, 0xc6, 0x53, 0x4e, 0xe7, - 0x7a, 0xfe, 0x67, 0x45, 0x9e, 0xa6, 0x74, 0xc1, 0xa7, 0xcf, 0x0e, 0x05, 0x26, 0xfc, 0x7a, 0x38, - 0xce, 0xc7, 0x6d, 0x52, 0x88, 0x12, 0x2f, 0xf1, 0x67, 0x3b, 0x5f, 0x2a, 0xe8, 0x8b, 0x7f, 0x53, - 0xb0, 0x3b, 0x5f, 0x2b, 0xe8, 0x65, 0x41, 0x40, 0x0c, 0x3b, 0x03, 0x06, 0x18, 0x76, 0xc6, 0x0c, - 0x69, 0x00, 0x39, 0x2c, 0xa6, 0x01, 0x20, 0x0f, 0x0a, 0xbd, 0x98, 0x84, 0xe3, 0x7d, 0x5c, 0x8e, - 0x8a, 0x1a, 0xb2, 0xf8, 0x39, 0x52, 0xbd, 0x38, 0x0e, 0x54, 0xf4, 0xd6, 0xb7, 0x0a, 0xef, 0xad, - 0xaf, 0x14, 0xf4, 0x20, 0xad, 0x02, 0x0f, 0xd2, 0x78, 0x3a, 0x24, 0xd7, 0xe2, 0xc4, 0x0a, 0x4a, - 0x7b, 0x1d, 0xbd, 0x7d, 0x04, 0x93, 0xc8, 0x86, 0x4a, 0x0f, 0x05, 0xa3, 0x0b, 0x43, 0xaf, 0x64, - 0x2f, 0x17, 0x57, 0xeb, 0x87, 0x03, 0xd3, 0xab, 0x6b, 0x43, 0xa5, 0x87, 0x7d, 0x0b, 0xbd, 0x14, - 0x31, 0x7e, 0xa1, 0x97, 0x62, 0x22, 0x9f, 0x40, 0x0f, 0x60, 0x26, 0x79, 0xc4, 0xa0, 0x5a, 0x11, - 0x89, 0xe4, 0x1f, 0x58, 0xd5, 0xb3, 0x23, 0x10, 0xa9, 0x41, 0x92, 0x71, 0x4b, 0xfa, 0x34, 0x28, - 0x3a, 0xf6, 0x21, 0xec, 0x5d, 0x3d, 0x37, 0x02, 0x5b, 0xec, 0x26, 0x65, 0xe8, 0x51, 0x6e, 0xfa, - 0x58, 0x74, 0x4c, 0x37, 0x37, 0xde, 0xdb, 0x79, 0xc7, 0x71, 0xd9, 0x6e, 0xa7, 0xa9, 0x5b, 0x41, - 0xdb, 0xe0, 0x2a, 0x01, 0x75, 0x92, 0x0f, 0x23, 0xfd, 0x8f, 0xc3, 0x21, 0xbe, 0x11, 0x36, 0x5f, - 0x73, 0x02, 0x63, 0xe0, 0x0f, 0xa2, 0xe6, 0x0c, 0xff, 0x41, 0x76, 0xf9, 0xaf, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xa9, 0x47, 0x45, 0x10, 0x3c, 0x12, 0x00, 0x00, + // 1649 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcd, 0x6f, 0x1b, 0x45, + 0x1b, 0xcf, 0xc6, 0x89, 0x1d, 0x3f, 0x8e, 0xd3, 0x64, 0x9a, 0x37, 0x71, 0xdc, 0xbe, 0x6f, 0xd3, + 0xed, 0xfb, 0x91, 0xf6, 0x2d, 0x5e, 0x35, 0x45, 0xa5, 0x29, 0x2a, 0x22, 0x6d, 0x0a, 0x32, 0xfd, + 0x4a, 0x37, 0x69, 0x81, 0x08, 0xc9, 0x8c, 0x77, 0x27, 0xce, 0x36, 0xeb, 0xdd, 0xed, 0xec, 0x38, + 0x61, 0x55, 0x55, 0x45, 0x88, 0x5b, 0x25, 0x90, 0xca, 0x09, 0xfe, 0x01, 0x24, 0x8e, 0xfc, 0x11, + 0x1c, 0x90, 0x38, 0xf1, 0x2f, 0x20, 0x71, 0xe3, 0xc6, 0x01, 0x21, 0x24, 0x34, 0xb3, 0x3b, 0xbb, + 0x6b, 0x7b, 0xed, 0x24, 0x2d, 0x07, 0x6e, 0x3b, 0xcf, 0xfc, 0x9e, 0xcf, 0x79, 0xbe, 0x6c, 0x38, + 0xbd, 0x6d, 0x07, 0x8c, 0x58, 0xa6, 0xad, 0x61, 0xca, 0xac, 0x6d, 0x6c, 0xb0, 0xf8, 0xc3, 0xaf, + 0x79, 0xd4, 0x65, 0x2e, 0x9a, 0x91, 0x90, 0x9a, 0xbc, 0xa9, 0x2e, 0xb4, 0x5c, 0xb7, 0x65, 0x13, + 0x4d, 0x00, 0x9a, 0x9d, 0x6d, 0x0d, 0x3b, 0x41, 0x88, 0xae, 0x9e, 0x8c, 0xae, 0xb0, 0x67, 0x69, + 0xd8, 0x71, 0x5c, 0x86, 0x99, 0xe5, 0x3a, 0x91, 0xac, 0xea, 0x62, 0xa2, 0xce, 0x6c, 0x5b, 0x8e, + 0x66, 0xe3, 0x8e, 0x63, 0xec, 0x34, 0x3c, 0x1b, 0x3b, 0x92, 0x3f, 0x46, 0x18, 0x2e, 0x25, 0x9a, + 0x6d, 0x31, 0x42, 0xb1, 0x2d, 0xf9, 0x17, 0xba, 0x6f, 0x59, 0xe0, 0x11, 0x79, 0xf5, 0xaf, 0xee, + 0x2b, 0xcb, 0x24, 0x0e, 0xb3, 0xb6, 0x2d, 0x42, 0xa3, 0xfb, 0x53, 0xdd, 0xf7, 0xd2, 0x97, 0x86, + 0x65, 0x46, 0x80, 0x7f, 0xf6, 0x08, 0x70, 0x18, 0xa1, 0xdb, 0xd8, 0x20, 0x7d, 0xa6, 0x93, 0x3d, + 0xe2, 0x30, 0xcd, 0xb0, 0xdd, 0x8e, 0x29, 0x3e, 0x23, 0x0b, 0xd4, 0xef, 0x15, 0x98, 0x58, 0x8d, + 0xc4, 0xa2, 0x2b, 0x50, 0x4a, 0xa9, 0xa8, 0x28, 0x8b, 0xca, 0x52, 0x69, 0x79, 0xa1, 0x16, 0xc7, + 0x92, 0xeb, 0xa8, 0x49, 0x74, 0x7d, 0x4d, 0x07, 0x89, 0xae, 0x9b, 0xe8, 0x22, 0x8c, 0xf9, 0x1e, + 0x31, 0x2a, 0xa3, 0x82, 0xe9, 0x54, 0xad, 0xef, 0x01, 0x62, 0xc6, 0x0d, 0x8f, 0x18, 0xba, 0x00, + 0x23, 0x04, 0x63, 0x0c, 0xb7, 0xfc, 0x4a, 0x6e, 0x31, 0xb7, 0x54, 0xd4, 0xc5, 0x37, 0x5a, 0x81, + 0xbc, 0xef, 0x76, 0xa8, 0x41, 0x2a, 0x63, 0x42, 0xd4, 0xe9, 0x61, 0xa2, 0x04, 0x50, 0x8f, 0x18, + 0xd4, 0x67, 0x39, 0xf8, 0xc7, 0x75, 0x4a, 0x30, 0x23, 0x12, 0xa0, 0x93, 0x47, 0x1d, 0xe2, 0x33, + 0x74, 0x15, 0x26, 0x63, 0xcf, 0x76, 0x49, 0x10, 0xb9, 0x56, 0x1d, 0xe0, 0xda, 0x4d, 0x12, 0xe8, + 0x71, 0x24, 0x6e, 0x92, 0x00, 0x55, 0xa0, 0xb0, 0x47, 0xa8, 0x6f, 0xb9, 0x4e, 0x25, 0xb7, 0xa8, + 0x2c, 0x15, 0x75, 0x79, 0x7c, 0x31, 0xb7, 0xdf, 0x03, 0xf0, 0xf8, 0xbd, 0xc8, 0xb2, 0xca, 0xd8, + 0x62, 0x6e, 0xa9, 0xb4, 0x7c, 0x39, 0x83, 0x35, 0xd3, 0x97, 0xda, 0x7a, 0xcc, 0x7a, 0xc3, 0x61, + 0x34, 0xd0, 0x53, 0xb2, 0xd0, 0x34, 0xe4, 0x18, 0x6e, 0x55, 0xc6, 0x85, 0x91, 0xfc, 0x33, 0x15, + 0xce, 0xfc, 0x11, 0xc3, 0x59, 0xbd, 0x0a, 0xc7, 0x7a, 0x74, 0x71, 0xf9, 0x32, 0x7c, 0x45, 0x9d, + 0x7f, 0xa2, 0x59, 0x18, 0xdf, 0xc3, 0x76, 0x87, 0x88, 0x08, 0x14, 0xf5, 0xf0, 0x70, 0x65, 0xf4, + 0xb2, 0xa2, 0xfe, 0xae, 0xc0, 0x54, 0xb7, 0x64, 0xf4, 0x3e, 0xa0, 0x7d, 0x97, 0xee, 0x6e, 0xdb, + 0xee, 0x7e, 0x83, 0x7c, 0x44, 0x8c, 0x0e, 0x17, 0x1d, 0x3d, 0xc6, 0xb9, 0x9e, 0xc7, 0x78, 0x37, + 0x02, 0xde, 0x90, 0xb8, 0x7a, 0x5c, 0x1d, 0xfa, 0xcc, 0x7e, 0xef, 0x25, 0x9a, 0x87, 0x82, 0xe3, + 0x9a, 0x84, 0xe7, 0x6d, 0x68, 0x49, 0x9e, 0x1f, 0xeb, 0x26, 0x5a, 0x86, 0x02, 0xc3, 0xfe, 0x2e, + 0xbf, 0xc8, 0x65, 0x26, 0x74, 0x4a, 0x6e, 0x9e, 0x23, 0xeb, 0x26, 0x3a, 0x03, 0x65, 0x4a, 0x18, + 0x0d, 0x1a, 0x98, 0x31, 0xd2, 0xf6, 0x98, 0x48, 0xc5, 0xb2, 0x3e, 0x29, 0x88, 0xab, 0x21, 0x0d, + 0x9d, 0x84, 0xa2, 0x47, 0x2d, 0xc7, 0xb0, 0x3c, 0x6c, 0x47, 0x11, 0x4f, 0x08, 0xea, 0x6f, 0x0a, + 0x4c, 0xa6, 0x9f, 0x1e, 0x9d, 0x97, 0x81, 0x0a, 0xdd, 0x9d, 0xeb, 0xb1, 0xe2, 0x56, 0xd8, 0x34, + 0xa2, 0x00, 0xa2, 0x1a, 0x8c, 0xf1, 0x46, 0x11, 0xe5, 0x55, 0x35, 0x1b, 0xbc, 0x19, 0x78, 0x44, + 0x17, 0x38, 0xf4, 0x7f, 0x98, 0xf1, 0x77, 0x5c, 0xca, 0x1a, 0x26, 0xf1, 0x0d, 0x6a, 0x79, 0x2c, + 0xc9, 0xd5, 0x69, 0x71, 0xb1, 0x96, 0xd0, 0xd1, 0x0a, 0x94, 0x3b, 0x3e, 0xa1, 0x8d, 0x36, 0x61, + 0xd8, 0xc4, 0x0c, 0x47, 0x95, 0x36, 0x5b, 0x0b, 0xfb, 0x60, 0x4d, 0xb6, 0xc8, 0xda, 0xaa, 0x13, + 0xe8, 0x93, 0x1c, 0x7a, 0x3b, 0x42, 0xf2, 0xc8, 0x48, 0xae, 0x86, 0x30, 0x30, 0x74, 0x7c, 0x52, + 0x12, 0xb9, 0x49, 0xea, 0x3d, 0x98, 0xeb, 0x4d, 0x5d, 0xdf, 0x73, 0x1d, 0x9f, 0xa0, 0xd7, 0x60, + 0x42, 0x66, 0x5d, 0x14, 0x87, 0x13, 0x43, 0xf2, 0x51, 0x8f, 0xc1, 0x6a, 0x13, 0xd0, 0xdb, 0x84, + 0xf5, 0x96, 0xf5, 0x32, 0x8c, 0x3f, 0xea, 0x10, 0x2a, 0xeb, 0xf9, 0xe4, 0x80, 0x7a, 0xbe, 0xc7, + 0x31, 0x7a, 0x08, 0xe5, 0xb5, 0x6c, 0x12, 0x86, 0x2d, 0xdb, 0x17, 0xc1, 0x9d, 0xd0, 0xe5, 0x51, + 0xbd, 0x03, 0xc7, 0xbb, 0x74, 0xbc, 0xac, 0xcd, 0x1f, 0x42, 0x79, 0x83, 0x60, 0x6a, 0xec, 0xdc, + 0xf5, 0xc2, 0xea, 0xe4, 0x8f, 0xc4, 0xa8, 0x65, 0xb0, 0x46, 0xaa, 0xfc, 0x15, 0x61, 0xc4, 0x74, + 0x78, 0x91, 0xd4, 0x1b, 0x52, 0xa1, 0x6c, 0x63, 0x46, 0x7c, 0xd6, 0x68, 0x06, 0xa2, 0x67, 0x85, + 0xd6, 0x96, 0x42, 0xe2, 0xb5, 0xe0, 0x26, 0x09, 0xd4, 0x6f, 0x47, 0x61, 0x2e, 0x54, 0x21, 0xd5, + 0xfb, 0x7f, 0x51, 0xc7, 0x5b, 0xe9, 0x6a, 0x51, 0xa3, 0x99, 0x85, 0x93, 0x18, 0xdb, 0xd5, 0x83, + 0xba, 0xea, 0x22, 0xd7, 0x53, 0x17, 0xe9, 0x56, 0x3a, 0xd6, 0xdd, 0x4a, 0xaf, 0x40, 0xc1, 0x0d, + 0x03, 0x25, 0x92, 0xaa, 0xb4, 0xbc, 0x98, 0x11, 0xe6, 0xae, 0x80, 0xea, 0x92, 0x81, 0x77, 0x21, + 0xe6, 0xee, 0x12, 0x47, 0x34, 0xb9, 0xa2, 0x1e, 0x1e, 0x38, 0xd5, 0xb6, 0xda, 0x16, 0xab, 0x14, + 0x16, 0x95, 0xa5, 0x71, 0x3d, 0x3c, 0xa8, 0x0f, 0x61, 0xbe, 0x2f, 0x66, 0xd1, 0x53, 0xaf, 0x40, + 0x31, 0xde, 0x24, 0x2a, 0x8a, 0xe8, 0xcb, 0x43, 0xdf, 0x3a, 0x41, 0x27, 0x16, 0x8c, 0xa6, 0x2c, + 0x50, 0xff, 0x50, 0x60, 0xe1, 0x2d, 0xcb, 0x31, 0xaf, 0x05, 0xe9, 0x76, 0x26, 0xdf, 0xe8, 0x3a, + 0x14, 0x78, 0x17, 0x4c, 0x66, 0xed, 0x51, 0x7a, 0x60, 0x9e, 0xb3, 0xd6, 0x4d, 0xb4, 0x09, 0x45, + 0xd3, 0xa2, 0xc4, 0x10, 0x15, 0xcf, 0x95, 0x4f, 0x2d, 0x5f, 0xca, 0xb0, 0x79, 0xa0, 0x15, 0xb5, + 0x35, 0xc9, 0xad, 0x27, 0x82, 0xd0, 0x29, 0x28, 0x6d, 0x13, 0x66, 0xec, 0x34, 0xf8, 0xc0, 0xf2, + 0xc5, 0x33, 0x4e, 0xe8, 0x20, 0x48, 0xbc, 0x9b, 0xf9, 0xea, 0xbf, 0xa1, 0x18, 0x33, 0x22, 0x80, + 0x7c, 0xfd, 0xce, 0xfa, 0xfd, 0xcd, 0x8d, 0xe9, 0x11, 0x54, 0x82, 0xc2, 0xdd, 0xfb, 0x9b, 0xe2, + 0xa0, 0xa8, 0x4f, 0xa1, 0xbc, 0x6a, 0x9a, 0x9b, 0xb8, 0x25, 0x5d, 0x7e, 0x99, 0x15, 0x23, 0x73, + 0xd4, 0xf0, 0x74, 0x73, 0xf7, 0x08, 0xdd, 0xa7, 0x16, 0x23, 0x91, 0x9d, 0x09, 0x41, 0x9d, 0x86, + 0x29, 0x69, 0x40, 0xf8, 0xc6, 0x6a, 0x13, 0x66, 0xc3, 0xe6, 0xb4, 0x49, 0xad, 0x56, 0x8b, 0x50, + 0x69, 0xd9, 0x3b, 0x70, 0x9c, 0x85, 0x94, 0x46, 0x6a, 0xc3, 0xeb, 0xaf, 0x1b, 0xb1, 0x04, 0xd6, + 0x6e, 0x09, 0xc8, 0xba, 0x8d, 0x1d, 0x7d, 0x26, 0x62, 0x4b, 0x48, 0xea, 0xbc, 0xdc, 0x43, 0x62, + 0x1d, 0x91, 0xf2, 0x75, 0x98, 0x5d, 0x23, 0x36, 0xe9, 0x53, 0x7e, 0x19, 0x40, 0x2a, 0x1f, 0x18, + 0x95, 0xd4, 0xdb, 0x17, 0x23, 0x70, 0xdd, 0xe4, 0xaa, 0x7a, 0x24, 0x46, 0xaa, 0x3e, 0x56, 0x60, + 0x5a, 0x06, 0x72, 0x9d, 0xba, 0x66, 0xc7, 0x20, 0x14, 0x5d, 0x82, 0x22, 0x17, 0xc2, 0x82, 0x43, + 0xa9, 0x99, 0x08, 0xb1, 0x75, 0x13, 0xbd, 0x0a, 0x05, 0xb7, 0xc3, 0xbc, 0x0e, 0xf3, 0x07, 0x4c, + 0xa4, 0x07, 0x98, 0x5a, 0xb8, 0x69, 0x93, 0xdb, 0xd8, 0xd3, 0x25, 0x54, 0xfd, 0x00, 0xe6, 0x75, + 0xd2, 0xb2, 0x7c, 0x46, 0xa8, 0xb4, 0x40, 0x3a, 0xbc, 0xca, 0x9b, 0x44, 0x48, 0x92, 0x95, 0x76, + 0x66, 0x48, 0xa5, 0xc5, 0xec, 0x09, 0x97, 0xfa, 0x34, 0xf1, 0xef, 0xba, 0xeb, 0xf8, 0x9d, 0xf6, + 0x4b, 0xf8, 0x77, 0x11, 0xf2, 0x96, 0x93, 0x72, 0xef, 0x44, 0x7f, 0xab, 0xc3, 0x6d, 0xc2, 0x08, + 0xe5, 0xfe, 0x45, 0xd0, 0xb4, 0x7b, 0xd2, 0x80, 0x94, 0x7b, 0x46, 0x44, 0x3a, 0x8c, 0x7b, 0x31, + 0x7b, 0xc2, 0xa5, 0x22, 0x98, 0x96, 0xd2, 0xe3, 0x37, 0xfd, 0x4a, 0x81, 0xb9, 0xa4, 0x17, 0x08, + 0x2b, 0xa4, 0xc6, 0xdb, 0x30, 0x19, 0x6f, 0x54, 0x2f, 0xd6, 0x50, 0x4a, 0x24, 0x21, 0xa2, 0x0b, + 0xa9, 0x80, 0xe4, 0x86, 0x97, 0xa8, 0x0c, 0xc7, 0x02, 0xcc, 0xf7, 0xd9, 0x16, 0xda, 0xbd, 0xfc, + 0x6b, 0x39, 0x79, 0xab, 0xd0, 0x29, 0x1a, 0xa0, 0x16, 0x4c, 0x75, 0x6f, 0x09, 0x68, 0xe9, 0xb0, + 0x3b, 0x70, 0xf5, 0xec, 0x21, 0x90, 0x51, 0xcc, 0x46, 0xd0, 0x0f, 0x63, 0x50, 0x4a, 0x0d, 0x76, + 0xf4, 0x9f, 0x0c, 0xe6, 0xfe, 0xe5, 0xa2, 0xfa, 0xdf, 0x83, 0x60, 0x91, 0x82, 0x5f, 0x72, 0x9f, + 0xfc, 0xf8, 0xd3, 0x17, 0xa3, 0x3f, 0xe7, 0x10, 0xd2, 0xf8, 0x0a, 0xa4, 0xed, 0x5d, 0x48, 0x7e, + 0x8f, 0x6e, 0x7d, 0xa3, 0xa0, 0xaf, 0x95, 0x3e, 0xba, 0x66, 0x99, 0xda, 0x63, 0xb1, 0x8f, 0xd4, + 0xd2, 0x3f, 0xea, 0xd2, 0x13, 0x9b, 0x6f, 0x61, 0x0f, 0x89, 0xc1, 0x9e, 0x1c, 0x08, 0x34, 0xdd, + 0x36, 0xb6, 0x9c, 0x83, 0x71, 0x0e, 0x6e, 0x93, 0x4c, 0x54, 0x34, 0x81, 0x9f, 0x6c, 0x7d, 0xa6, + 0xa0, 0x67, 0x7f, 0x27, 0x63, 0xb7, 0x9e, 0x2b, 0xe8, 0xf3, 0x0c, 0x83, 0x18, 0x6e, 0xf5, 0x09, + 0x60, 0xb8, 0x75, 0x48, 0x93, 0xfa, 0x90, 0x83, 0x6c, 0xea, 0x03, 0x0a, 0xa3, 0xd0, 0xa7, 0xa3, + 0x70, 0xac, 0x67, 0x83, 0x40, 0x67, 0x07, 0xee, 0x2a, 0xbd, 0x9b, 0x59, 0xf5, 0xdc, 0x61, 0xa0, + 0x51, 0x6e, 0x7d, 0xa9, 0x88, 0xdc, 0x7a, 0xae, 0xa0, 0x7b, 0x71, 0x14, 0x84, 0x91, 0x9a, 0xaf, + 0x3d, 0x1e, 0xe0, 0x6d, 0xb6, 0x6b, 0x19, 0xc1, 0xbd, 0x8a, 0x5e, 0xef, 0x11, 0x7a, 0x14, 0x91, + 0xc8, 0x84, 0x72, 0xd7, 0x90, 0x43, 0xff, 0x1b, 0x58, 0x94, 0xdd, 0xd3, 0xae, 0xba, 0x74, 0x30, + 0x30, 0x2e, 0x5e, 0x13, 0xca, 0x5d, 0xf3, 0x2d, 0x53, 0x4b, 0xd6, 0x4c, 0xcd, 0xd4, 0x92, 0x3d, + 0x2a, 0x47, 0xd0, 0x5d, 0xc8, 0x87, 0x6b, 0x02, 0xca, 0x5a, 0x3a, 0xbb, 0x56, 0x98, 0xea, 0xe9, + 0x21, 0x88, 0x58, 0x20, 0x49, 0xba, 0x77, 0x3c, 0x7c, 0xb3, 0x1e, 0x7e, 0xc0, 0x7c, 0xac, 0x9e, + 0x19, 0x82, 0xcd, 0x56, 0x13, 0xcf, 0xc0, 0x61, 0x6a, 0x7a, 0xe6, 0xd4, 0x61, 0xd5, 0xb4, 0x01, + 0x6d, 0x10, 0xd6, 0xd3, 0xdd, 0x33, 0x73, 0x3e, 0x7b, 0x3a, 0x65, 0xe6, 0xfc, 0x80, 0x61, 0xa1, + 0x8e, 0xa0, 0xef, 0x14, 0x40, 0xfd, 0xfb, 0x2a, 0x3a, 0x7f, 0x94, 0xb5, 0xf6, 0x48, 0x65, 0xf6, + 0x40, 0x54, 0xd9, 0x3a, 0xba, 0xd3, 0x53, 0x0f, 0x44, 0x7b, 0x1c, 0x2d, 0xe8, 0xa9, 0x62, 0x90, + 0x94, 0xb8, 0xb4, 0x24, 0x21, 0xea, 0xaf, 0xf1, 0x12, 0xfd, 0xe4, 0xda, 0x9b, 0x5b, 0x6f, 0xb4, + 0x2c, 0xb6, 0xd3, 0x69, 0xd6, 0x0c, 0xb7, 0xad, 0x09, 0x7b, 0x5c, 0xda, 0x0a, 0x3f, 0xb4, 0xf8, + 0xbf, 0xb9, 0x16, 0x71, 0x34, 0xaf, 0xf9, 0x4a, 0xcb, 0xd5, 0xfa, 0xfe, 0xd8, 0x6c, 0xe6, 0xc5, + 0x6f, 0xf1, 0x8b, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0x2e, 0xc7, 0x43, 0x9d, 0xf4, 0x14, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1280,6 +1387,8 @@ type ArtifactRegistryClient interface { AddTag(ctx context.Context, in *AddTagRequest, opts ...grpc.CallOption) (*AddTagResponse, error) RegisterProducer(ctx context.Context, in *RegisterProducerRequest, opts ...grpc.CallOption) (*RegisterResponse, error) RegisterConsumer(ctx context.Context, in *RegisterConsumerRequest, opts ...grpc.CallOption) (*RegisterResponse, error) + SetExecutionInputs(ctx context.Context, in *ExecutionInputsRequest, opts ...grpc.CallOption) (*ExecutionInputsResponse, error) + FindByWorkflowExec(ctx context.Context, in *FindByWorkflowExecRequest, opts ...grpc.CallOption) (*SearchArtifactsResponse, error) } type artifactRegistryClient struct { @@ -1362,6 +1471,24 @@ func (c *artifactRegistryClient) RegisterConsumer(ctx context.Context, in *Regis return out, nil } +func (c *artifactRegistryClient) SetExecutionInputs(ctx context.Context, in *ExecutionInputsRequest, opts ...grpc.CallOption) (*ExecutionInputsResponse, error) { + out := new(ExecutionInputsResponse) + err := c.cc.Invoke(ctx, "/flyteidl.artifact.ArtifactRegistry/SetExecutionInputs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *artifactRegistryClient) FindByWorkflowExec(ctx context.Context, in *FindByWorkflowExecRequest, opts ...grpc.CallOption) (*SearchArtifactsResponse, error) { + out := new(SearchArtifactsResponse) + err := c.cc.Invoke(ctx, "/flyteidl.artifact.ArtifactRegistry/FindByWorkflowExec", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // ArtifactRegistryServer is the server API for ArtifactRegistry service. type ArtifactRegistryServer interface { CreateArtifact(context.Context, *CreateArtifactRequest) (*CreateArtifactResponse, error) @@ -1372,6 +1499,8 @@ type ArtifactRegistryServer interface { AddTag(context.Context, *AddTagRequest) (*AddTagResponse, error) RegisterProducer(context.Context, *RegisterProducerRequest) (*RegisterResponse, error) RegisterConsumer(context.Context, *RegisterConsumerRequest) (*RegisterResponse, error) + SetExecutionInputs(context.Context, *ExecutionInputsRequest) (*ExecutionInputsResponse, error) + FindByWorkflowExec(context.Context, *FindByWorkflowExecRequest) (*SearchArtifactsResponse, error) } // UnimplementedArtifactRegistryServer can be embedded to have forward compatible implementations. @@ -1402,6 +1531,12 @@ func (*UnimplementedArtifactRegistryServer) RegisterProducer(ctx context.Context func (*UnimplementedArtifactRegistryServer) RegisterConsumer(ctx context.Context, req *RegisterConsumerRequest) (*RegisterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RegisterConsumer not implemented") } +func (*UnimplementedArtifactRegistryServer) SetExecutionInputs(ctx context.Context, req *ExecutionInputsRequest) (*ExecutionInputsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetExecutionInputs not implemented") +} +func (*UnimplementedArtifactRegistryServer) FindByWorkflowExec(ctx context.Context, req *FindByWorkflowExecRequest) (*SearchArtifactsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindByWorkflowExec not implemented") +} func RegisterArtifactRegistryServer(s *grpc.Server, srv ArtifactRegistryServer) { s.RegisterService(&_ArtifactRegistry_serviceDesc, srv) @@ -1551,6 +1686,42 @@ func _ArtifactRegistry_RegisterConsumer_Handler(srv interface{}, ctx context.Con return interceptor(ctx, in, info, handler) } +func _ArtifactRegistry_SetExecutionInputs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExecutionInputsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArtifactRegistryServer).SetExecutionInputs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.artifact.ArtifactRegistry/SetExecutionInputs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArtifactRegistryServer).SetExecutionInputs(ctx, req.(*ExecutionInputsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArtifactRegistry_FindByWorkflowExec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindByWorkflowExecRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArtifactRegistryServer).FindByWorkflowExec(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.artifact.ArtifactRegistry/FindByWorkflowExec", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArtifactRegistryServer).FindByWorkflowExec(ctx, req.(*FindByWorkflowExecRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _ArtifactRegistry_serviceDesc = grpc.ServiceDesc{ ServiceName: "flyteidl.artifact.ArtifactRegistry", HandlerType: (*ArtifactRegistryServer)(nil), @@ -1587,6 +1758,14 @@ var _ArtifactRegistry_serviceDesc = grpc.ServiceDesc{ MethodName: "RegisterConsumer", Handler: _ArtifactRegistry_RegisterConsumer_Handler, }, + { + MethodName: "SetExecutionInputs", + Handler: _ArtifactRegistry_SetExecutionInputs_Handler, + }, + { + MethodName: "FindByWorkflowExec", + Handler: _ArtifactRegistry_FindByWorkflowExec_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "flyteidl/artifact/artifacts.proto", diff --git a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.gw.go index 8c5f610e15..5a95a5447a 100644 --- a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.gw.go +++ b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.gw.go @@ -348,6 +348,80 @@ func request_ArtifactRegistry_SearchArtifacts_1(ctx context.Context, marshaler r } +var ( + filter_ArtifactRegistry_FindByWorkflowExec_0 = &utilities.DoubleArray{Encoding: map[string]int{"exec_id": 0, "project": 1, "domain": 2, "name": 3, "direction": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 1, 3, 4, 5, 6}} +) + +func request_ArtifactRegistry_FindByWorkflowExec_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq FindByWorkflowExecRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["exec_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "exec_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "exec_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "exec_id.project", err) + } + + val, ok = pathParams["exec_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "exec_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "exec_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "exec_id.domain", err) + } + + val, ok = pathParams["exec_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "exec_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "exec_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "exec_id.name", err) + } + + val, ok = pathParams["direction"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "direction") + } + + e, err = runtime.Enum(val, FindByWorkflowExecRequest_Direction_value) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "direction", err) + } + + protoReq.Direction = FindByWorkflowExecRequest_Direction(e) + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArtifactRegistry_FindByWorkflowExec_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.FindByWorkflowExec(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + // RegisterArtifactRegistryHandlerFromEndpoint is same as RegisterArtifactRegistryHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterArtifactRegistryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { @@ -506,6 +580,26 @@ func RegisterArtifactRegistryHandlerClient(ctx context.Context, mux *runtime.Ser }) + mux.Handle("GET", pattern_ArtifactRegistry_FindByWorkflowExec_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ArtifactRegistry_FindByWorkflowExec_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ArtifactRegistry_FindByWorkflowExec_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -518,9 +612,11 @@ var ( pattern_ArtifactRegistry_GetArtifact_3 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"data", "v1", "artifact", "tag", "query.artifact_tag.artifact_key.project", "query.artifact_tag.artifact_key.domain", "query.artifact_tag.artifact_key.name"}, "")) - pattern_ArtifactRegistry_SearchArtifacts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"data", "v1", "query", "artifact_key.project", "artifact_key.domain", "artifact_key.name"}, "")) + pattern_ArtifactRegistry_SearchArtifacts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"data", "v1", "query", "s", "artifact_key.project", "artifact_key.domain", "artifact_key.name"}, "")) pattern_ArtifactRegistry_SearchArtifacts_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"data", "v1", "query", "artifact_key.project", "artifact_key.domain"}, "")) + + pattern_ArtifactRegistry_FindByWorkflowExec_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"data", "v1", "query", "e", "exec_id.project", "exec_id.domain", "exec_id.name", "direction"}, "")) ) var ( @@ -535,4 +631,6 @@ var ( forward_ArtifactRegistry_SearchArtifacts_0 = runtime.ForwardResponseMessage forward_ArtifactRegistry_SearchArtifacts_1 = runtime.ForwardResponseMessage + + forward_ArtifactRegistry_FindByWorkflowExec_0 = runtime.ForwardResponseMessage ) diff --git a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.validate.go index 1304d0c192..524cb6e597 100644 --- a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.validate.go +++ b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.validate.go @@ -63,6 +63,16 @@ func (m *Artifact) Validate() error { } } + if v, ok := interface{}(m.GetSource()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactValidationError{ + field: "Source", + reason: "embedded message failed validation", + cause: err, + } + } + } + return nil } @@ -154,6 +164,16 @@ func (m *CreateArtifactRequest) Validate() error { // no validation rules for Tag + if v, ok := interface{}(m.GetSource()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateArtifactRequestValidationError{ + field: "Source", + reason: "embedded message failed validation", + cause: err, + } + } + } + return nil } @@ -213,56 +233,125 @@ var _ interface { ErrorName() string } = CreateArtifactRequestValidationError{} -// Validate checks the field values on ArtifactSpec with the rules defined in +// Validate checks the field values on ArtifactSource with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned. -func (m *ArtifactSpec) Validate() error { +func (m *ArtifactSource) Validate() error { if m == nil { return nil } - if v, ok := interface{}(m.GetValue()).(interface{ Validate() error }); ok { + if v, ok := interface{}(m.GetWorkflowExecution()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { - return ArtifactSpecValidationError{ - field: "Value", + return ArtifactSourceValidationError{ + field: "WorkflowExecution", reason: "embedded message failed validation", cause: err, } } } - if v, ok := interface{}(m.GetType()).(interface{ Validate() error }); ok { + // no validation rules for NodeId + + if v, ok := interface{}(m.GetTaskId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { - return ArtifactSpecValidationError{ - field: "Type", + return ArtifactSourceValidationError{ + field: "TaskId", reason: "embedded message failed validation", cause: err, } } } - if v, ok := interface{}(m.GetTaskExecution()).(interface{ Validate() error }); ok { + // no validation rules for RetryAttempt + + // no validation rules for Principal + + return nil +} + +// ArtifactSourceValidationError is the validation error returned by +// ArtifactSource.Validate if the designated constraints aren't met. +type ArtifactSourceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ArtifactSourceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ArtifactSourceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ArtifactSourceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ArtifactSourceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ArtifactSourceValidationError) ErrorName() string { return "ArtifactSourceValidationError" } + +// Error satisfies the builtin error interface +func (e ArtifactSourceValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sArtifactSource.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ArtifactSourceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ArtifactSourceValidationError{} + +// Validate checks the field values on ArtifactSpec with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ArtifactSpec) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetValue()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ArtifactSpecValidationError{ - field: "TaskExecution", + field: "Value", reason: "embedded message failed validation", cause: err, } } } - if v, ok := interface{}(m.GetExecution()).(interface{ Validate() error }); ok { + if v, ok := interface{}(m.GetType()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ArtifactSpecValidationError{ - field: "Execution", + field: "Type", reason: "embedded message failed validation", cause: err, } } } - // no validation rules for Principal - // no validation rules for ShortDescription if v, ok := interface{}(m.GetUserMetadata()).(interface{ Validate() error }); ok { @@ -567,24 +656,24 @@ var _ interface { ErrorName() string } = GetArtifactResponseValidationError{} -// Validate checks the field values on ListArtifactNamesRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ListArtifactNamesRequest) Validate() error { +// Validate checks the field values on SearchOptions with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *SearchOptions) Validate() error { if m == nil { return nil } - // no validation rules for Project + // no validation rules for StrictPartitions - // no validation rules for Domain + // no validation rules for LatestByKey return nil } -// ListArtifactNamesRequestValidationError is the validation error returned by -// ListArtifactNamesRequest.Validate if the designated constraints aren't met. -type ListArtifactNamesRequestValidationError struct { +// SearchOptionsValidationError is the validation error returned by +// SearchOptions.Validate if the designated constraints aren't met. +type SearchOptionsValidationError struct { field string reason string cause error @@ -592,24 +681,22 @@ type ListArtifactNamesRequestValidationError struct { } // Field function returns field value. -func (e ListArtifactNamesRequestValidationError) Field() string { return e.field } +func (e SearchOptionsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e ListArtifactNamesRequestValidationError) Reason() string { return e.reason } +func (e SearchOptionsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e ListArtifactNamesRequestValidationError) Cause() error { return e.cause } +func (e SearchOptionsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e ListArtifactNamesRequestValidationError) Key() bool { return e.key } +func (e SearchOptionsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e ListArtifactNamesRequestValidationError) ErrorName() string { - return "ListArtifactNamesRequestValidationError" -} +func (e SearchOptionsValidationError) ErrorName() string { return "SearchOptionsValidationError" } // Error satisfies the builtin error interface -func (e ListArtifactNamesRequestValidationError) Error() string { +func (e SearchOptionsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -621,14 +708,14 @@ func (e ListArtifactNamesRequestValidationError) Error() string { } return fmt.Sprintf( - "invalid %sListArtifactNamesRequest.%s: %s%s", + "invalid %sSearchOptions.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = ListArtifactNamesRequestValidationError{} +var _ error = SearchOptionsValidationError{} var _ interface { Field() string @@ -636,37 +723,60 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = ListArtifactNamesRequestValidationError{} +} = SearchOptionsValidationError{} -// Validate checks the field values on ListArtifactNamesResponse with the rules +// Validate checks the field values on SearchArtifactsRequest with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned. -func (m *ListArtifactNamesResponse) Validate() error { +func (m *SearchArtifactsRequest) Validate() error { if m == nil { return nil } - for idx, item := range m.GetArtifactKeys() { - _, _ = idx, item + if v, ok := interface{}(m.GetArtifactKey()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SearchArtifactsRequestValidationError{ + field: "ArtifactKey", + reason: "embedded message failed validation", + cause: err, + } + } + } - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ListArtifactNamesResponseValidationError{ - field: fmt.Sprintf("ArtifactKeys[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } + if v, ok := interface{}(m.GetPartitions()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SearchArtifactsRequestValidationError{ + field: "Partitions", + reason: "embedded message failed validation", + cause: err, } } + } + + // no validation rules for Principal + // no validation rules for Version + + if v, ok := interface{}(m.GetOptions()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SearchArtifactsRequestValidationError{ + field: "Options", + reason: "embedded message failed validation", + cause: err, + } + } } + // no validation rules for Token + + // no validation rules for Limit + return nil } -// ListArtifactNamesResponseValidationError is the validation error returned by -// ListArtifactNamesResponse.Validate if the designated constraints aren't met. -type ListArtifactNamesResponseValidationError struct { +// SearchArtifactsRequestValidationError is the validation error returned by +// SearchArtifactsRequest.Validate if the designated constraints aren't met. +type SearchArtifactsRequestValidationError struct { field string reason string cause error @@ -674,24 +784,24 @@ type ListArtifactNamesResponseValidationError struct { } // Field function returns field value. -func (e ListArtifactNamesResponseValidationError) Field() string { return e.field } +func (e SearchArtifactsRequestValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e ListArtifactNamesResponseValidationError) Reason() string { return e.reason } +func (e SearchArtifactsRequestValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e ListArtifactNamesResponseValidationError) Cause() error { return e.cause } +func (e SearchArtifactsRequestValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e ListArtifactNamesResponseValidationError) Key() bool { return e.key } +func (e SearchArtifactsRequestValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e ListArtifactNamesResponseValidationError) ErrorName() string { - return "ListArtifactNamesResponseValidationError" +func (e SearchArtifactsRequestValidationError) ErrorName() string { + return "SearchArtifactsRequestValidationError" } // Error satisfies the builtin error interface -func (e ListArtifactNamesResponseValidationError) Error() string { +func (e SearchArtifactsRequestValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -703,14 +813,14 @@ func (e ListArtifactNamesResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sListArtifactNamesResponse.%s: %s%s", + "invalid %sSearchArtifactsRequest.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = ListArtifactNamesResponseValidationError{} +var _ error = SearchArtifactsRequestValidationError{} var _ interface { Field() string @@ -718,38 +828,39 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = ListArtifactNamesResponseValidationError{} +} = SearchArtifactsRequestValidationError{} -// Validate checks the field values on SearchArtifactsRequest with the rules +// Validate checks the field values on SearchArtifactsResponse with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned. -func (m *SearchArtifactsRequest) Validate() error { +func (m *SearchArtifactsResponse) Validate() error { if m == nil { return nil } - if v, ok := interface{}(m.GetArtifactKey()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return SearchArtifactsRequestValidationError{ - field: "ArtifactKey", - reason: "embedded message failed validation", - cause: err, + for idx, item := range m.GetArtifacts() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SearchArtifactsResponseValidationError{ + field: fmt.Sprintf("Artifacts[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } } } - } - // no validation rules for Filters + } // no validation rules for Token - // no validation rules for Limit - return nil } -// SearchArtifactsRequestValidationError is the validation error returned by -// SearchArtifactsRequest.Validate if the designated constraints aren't met. -type SearchArtifactsRequestValidationError struct { +// SearchArtifactsResponseValidationError is the validation error returned by +// SearchArtifactsResponse.Validate if the designated constraints aren't met. +type SearchArtifactsResponseValidationError struct { field string reason string cause error @@ -757,24 +868,24 @@ type SearchArtifactsRequestValidationError struct { } // Field function returns field value. -func (e SearchArtifactsRequestValidationError) Field() string { return e.field } +func (e SearchArtifactsResponseValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e SearchArtifactsRequestValidationError) Reason() string { return e.reason } +func (e SearchArtifactsResponseValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e SearchArtifactsRequestValidationError) Cause() error { return e.cause } +func (e SearchArtifactsResponseValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e SearchArtifactsRequestValidationError) Key() bool { return e.key } +func (e SearchArtifactsResponseValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e SearchArtifactsRequestValidationError) ErrorName() string { - return "SearchArtifactsRequestValidationError" +func (e SearchArtifactsResponseValidationError) ErrorName() string { + return "SearchArtifactsResponseValidationError" } // Error satisfies the builtin error interface -func (e SearchArtifactsRequestValidationError) Error() string { +func (e SearchArtifactsResponseValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -786,14 +897,14 @@ func (e SearchArtifactsRequestValidationError) Error() string { } return fmt.Sprintf( - "invalid %sSearchArtifactsRequest.%s: %s%s", + "invalid %sSearchArtifactsResponse.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = SearchArtifactsRequestValidationError{} +var _ error = SearchArtifactsResponseValidationError{} var _ interface { Field() string @@ -801,37 +912,36 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = SearchArtifactsRequestValidationError{} +} = SearchArtifactsResponseValidationError{} -// Validate checks the field values on SearchArtifactsResponse with the rules +// Validate checks the field values on FindByWorkflowExecRequest with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned. -func (m *SearchArtifactsResponse) Validate() error { +func (m *FindByWorkflowExecRequest) Validate() error { if m == nil { return nil } - for idx, item := range m.GetArtifacts() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return SearchArtifactsResponseValidationError{ - field: fmt.Sprintf("Artifacts[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } + if v, ok := interface{}(m.GetExecId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FindByWorkflowExecRequestValidationError{ + field: "ExecId", + reason: "embedded message failed validation", + cause: err, } } - } + // no validation rules for Direction + + // no validation rules for FetchSpecs + return nil } -// SearchArtifactsResponseValidationError is the validation error returned by -// SearchArtifactsResponse.Validate if the designated constraints aren't met. -type SearchArtifactsResponseValidationError struct { +// FindByWorkflowExecRequestValidationError is the validation error returned by +// FindByWorkflowExecRequest.Validate if the designated constraints aren't met. +type FindByWorkflowExecRequestValidationError struct { field string reason string cause error @@ -839,24 +949,24 @@ type SearchArtifactsResponseValidationError struct { } // Field function returns field value. -func (e SearchArtifactsResponseValidationError) Field() string { return e.field } +func (e FindByWorkflowExecRequestValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e SearchArtifactsResponseValidationError) Reason() string { return e.reason } +func (e FindByWorkflowExecRequestValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e SearchArtifactsResponseValidationError) Cause() error { return e.cause } +func (e FindByWorkflowExecRequestValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e SearchArtifactsResponseValidationError) Key() bool { return e.key } +func (e FindByWorkflowExecRequestValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e SearchArtifactsResponseValidationError) ErrorName() string { - return "SearchArtifactsResponseValidationError" +func (e FindByWorkflowExecRequestValidationError) ErrorName() string { + return "FindByWorkflowExecRequestValidationError" } // Error satisfies the builtin error interface -func (e SearchArtifactsResponseValidationError) Error() string { +func (e FindByWorkflowExecRequestValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -868,14 +978,14 @@ func (e SearchArtifactsResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sSearchArtifactsResponse.%s: %s%s", + "invalid %sFindByWorkflowExecRequest.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = SearchArtifactsResponseValidationError{} +var _ error = FindByWorkflowExecRequestValidationError{} var _ interface { Field() string @@ -883,7 +993,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = SearchArtifactsResponseValidationError{} +} = FindByWorkflowExecRequestValidationError{} // Validate checks the field values on AddTagRequest with the rules defined in // the proto definition for this message. If any rules are violated, an error @@ -1716,46 +1826,31 @@ var _ interface { ErrorName() string } = RegisterResponseValidationError{} -// Validate checks the field values on CloudEventRequest with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *CloudEventRequest) Validate() error { +// Validate checks the field values on ExecutionInputsRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionInputsRequest) Validate() error { if m == nil { return nil } - switch m.Event.(type) { - - case *CloudEventRequest_WorkflowExecutionEvent: - - if v, ok := interface{}(m.GetWorkflowExecutionEvent()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CloudEventRequestValidationError{ - field: "WorkflowExecutionEvent", - reason: "embedded message failed validation", - cause: err, - } - } - } - - case *CloudEventRequest_TaskExecutionEvent: - - if v, ok := interface{}(m.GetTaskExecutionEvent()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CloudEventRequestValidationError{ - field: "TaskExecutionEvent", - reason: "embedded message failed validation", - cause: err, - } + if v, ok := interface{}(m.GetExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionInputsRequestValidationError{ + field: "ExecutionId", + reason: "embedded message failed validation", + cause: err, } } + } - case *CloudEventRequest_NodeExecutionEvent: + for idx, item := range m.GetInputs() { + _, _ = idx, item - if v, ok := interface{}(m.GetNodeExecutionEvent()).(interface{ Validate() error }); ok { + if v, ok := interface{}(item).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { - return CloudEventRequestValidationError{ - field: "NodeExecutionEvent", + return ExecutionInputsRequestValidationError{ + field: fmt.Sprintf("Inputs[%v]", idx), reason: "embedded message failed validation", cause: err, } @@ -1767,9 +1862,9 @@ func (m *CloudEventRequest) Validate() error { return nil } -// CloudEventRequestValidationError is the validation error returned by -// CloudEventRequest.Validate if the designated constraints aren't met. -type CloudEventRequestValidationError struct { +// ExecutionInputsRequestValidationError is the validation error returned by +// ExecutionInputsRequest.Validate if the designated constraints aren't met. +type ExecutionInputsRequestValidationError struct { field string reason string cause error @@ -1777,24 +1872,24 @@ type CloudEventRequestValidationError struct { } // Field function returns field value. -func (e CloudEventRequestValidationError) Field() string { return e.field } +func (e ExecutionInputsRequestValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e CloudEventRequestValidationError) Reason() string { return e.reason } +func (e ExecutionInputsRequestValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e CloudEventRequestValidationError) Cause() error { return e.cause } +func (e ExecutionInputsRequestValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e CloudEventRequestValidationError) Key() bool { return e.key } +func (e ExecutionInputsRequestValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e CloudEventRequestValidationError) ErrorName() string { - return "CloudEventRequestValidationError" +func (e ExecutionInputsRequestValidationError) ErrorName() string { + return "ExecutionInputsRequestValidationError" } // Error satisfies the builtin error interface -func (e CloudEventRequestValidationError) Error() string { +func (e ExecutionInputsRequestValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -1806,14 +1901,14 @@ func (e CloudEventRequestValidationError) Error() string { } return fmt.Sprintf( - "invalid %sCloudEventRequest.%s: %s%s", + "invalid %sExecutionInputsRequest.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = CloudEventRequestValidationError{} +var _ error = ExecutionInputsRequestValidationError{} var _ interface { Field() string @@ -1821,12 +1916,12 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = CloudEventRequestValidationError{} +} = ExecutionInputsRequestValidationError{} -// Validate checks the field values on CloudEventResponse with the rules +// Validate checks the field values on ExecutionInputsResponse with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned. -func (m *CloudEventResponse) Validate() error { +func (m *ExecutionInputsResponse) Validate() error { if m == nil { return nil } @@ -1834,9 +1929,9 @@ func (m *CloudEventResponse) Validate() error { return nil } -// CloudEventResponseValidationError is the validation error returned by -// CloudEventResponse.Validate if the designated constraints aren't met. -type CloudEventResponseValidationError struct { +// ExecutionInputsResponseValidationError is the validation error returned by +// ExecutionInputsResponse.Validate if the designated constraints aren't met. +type ExecutionInputsResponseValidationError struct { field string reason string cause error @@ -1844,24 +1939,24 @@ type CloudEventResponseValidationError struct { } // Field function returns field value. -func (e CloudEventResponseValidationError) Field() string { return e.field } +func (e ExecutionInputsResponseValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e CloudEventResponseValidationError) Reason() string { return e.reason } +func (e ExecutionInputsResponseValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e CloudEventResponseValidationError) Cause() error { return e.cause } +func (e ExecutionInputsResponseValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e CloudEventResponseValidationError) Key() bool { return e.key } +func (e ExecutionInputsResponseValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e CloudEventResponseValidationError) ErrorName() string { - return "CloudEventResponseValidationError" +func (e ExecutionInputsResponseValidationError) ErrorName() string { + return "ExecutionInputsResponseValidationError" } // Error satisfies the builtin error interface -func (e CloudEventResponseValidationError) Error() string { +func (e ExecutionInputsResponseValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -1873,14 +1968,14 @@ func (e CloudEventResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sCloudEventResponse.%s: %s%s", + "invalid %sExecutionInputsResponse.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = CloudEventResponseValidationError{} +var _ error = ExecutionInputsResponseValidationError{} var _ interface { Field() string @@ -1888,4 +1983,4 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = CloudEventResponseValidationError{} +} = ExecutionInputsResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.swagger.json b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.swagger.json index adb67febf7..21d18e0b4c 100644 --- a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.swagger.json +++ b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.swagger.json @@ -470,9 +470,66 @@ ] } }, - "/data/v1/query/{artifact_key.project}/{artifact_key.domain}": { + "/data/v1/query/e/{exec_id.project}/{exec_id.domain}/{exec_id.name}/{direction}": { "get": { - "operationId": "SearchArtifacts2", + "operationId": "FindByWorkflowExec", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/artifactSearchArtifactsResponse" + } + } + }, + "parameters": [ + { + "name": "exec_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "exec_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "exec_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "direction", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "INPUTS", + "OUTPUTS" + ] + }, + { + "name": "fetch_specs", + "description": "If set to true, actually fetch the artifact body. By default only the IDs are returned.", + "in": "query", + "required": false, + "type": "boolean", + "format": "boolean" + } + ], + "tags": [ + "ArtifactRegistry" + ] + } + }, + "/data/v1/query/s/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}": { + "get": { + "operationId": "SearchArtifacts", "responses": { "200": { "description": "A successful response.", @@ -497,16 +554,38 @@ }, { "name": "artifact_key.name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "principal", "in": "query", "required": false, "type": "string" }, { - "name": "filters", + "name": "version", "in": "query", "required": false, "type": "string" }, + { + "name": "options.strict_partitions", + "description": "If true, this means a strict partition search. meaning if you don't specify the partition\nfield, that will mean, non-partitioned, rather than any partition.", + "in": "query", + "required": false, + "type": "boolean", + "format": "boolean" + }, + { + "name": "options.latest_by_key", + "description": "If true, only one artifact per key will be returned. It will be the latest one by creation time.", + "in": "query", + "required": false, + "type": "boolean", + "format": "boolean" + }, { "name": "token", "in": "query", @@ -526,9 +605,9 @@ ] } }, - "/data/v1/query/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}": { + "/data/v1/query/{artifact_key.project}/{artifact_key.domain}": { "get": { - "operationId": "SearchArtifacts", + "operationId": "SearchArtifacts2", "responses": { "200": { "description": "A successful response.", @@ -553,16 +632,38 @@ }, { "name": "artifact_key.name", - "in": "path", - "required": true, + "in": "query", + "required": false, "type": "string" }, { - "name": "filters", + "name": "principal", "in": "query", "required": false, "type": "string" }, + { + "name": "version", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "options.strict_partitions", + "description": "If true, this means a strict partition search. meaning if you don't specify the partition\nfield, that will mean, non-partitioned, rather than any partition.", + "in": "query", + "required": false, + "type": "boolean", + "format": "boolean" + }, + { + "name": "options.latest_by_key", + "description": "If true, only one artifact per key will be returned. It will be the latest one by creation time.", + "in": "query", + "required": false, + "type": "boolean", + "format": "boolean" + }, { "name": "token", "in": "query", @@ -1012,6 +1113,9 @@ "type": "string" }, "title": "references the tag field in ArtifactTag" + }, + "source": { + "$ref": "#/definitions/artifactArtifactSource" } } }, @@ -1039,27 +1143,37 @@ } } }, - "artifactArtifactSpec": { + "artifactArtifactSource": { "type": "object", "properties": { - "value": { - "$ref": "#/definitions/coreLiteral" + "workflow_execution": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" }, - "type": { - "$ref": "#/definitions/coreLiteralType", - "description": "This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but\nforgets to change the name, that is okay. And the reason why this is a separate field is because adding the\ntype to all Literals is a lot of work." + "node_id": { + "type": "string" }, - "task_execution": { - "$ref": "#/definitions/coreTaskExecutionIdentifier", - "description": "3. These fields should be removed.\nOutputs of tasks will have this." + "task_id": { + "$ref": "#/definitions/coreIdentifier" }, - "execution": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "description": "Workflow outputs will have this." + "retry_attempt": { + "type": "integer", + "format": "int64" }, "principal": { "type": "string", "description": "Uploads, either from the UI or from the CLI, or FlyteRemote, will have this." + } + } + }, + "artifactArtifactSpec": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/coreLiteral" + }, + "type": { + "$ref": "#/definitions/coreLiteralType", + "description": "This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but\nforgets to change the name, that is okay. And the reason why this is a separate field is because adding the\ntype to all Literals is a lot of work." }, "short_description": { "type": "string" @@ -1087,6 +1201,17 @@ "artifactDeleteTriggerResponse": { "type": "object" }, + "artifactExecutionInputsResponse": { + "type": "object" + }, + "artifactFindByWorkflowExecRequestDirection": { + "type": "string", + "enum": [ + "INPUTS", + "OUTPUTS" + ], + "default": "INPUTS" + }, "artifactGetArtifactResponse": { "type": "object", "properties": { @@ -1105,7 +1230,27 @@ "type": "array", "items": { "$ref": "#/definitions/artifactArtifact" - } + }, + "description": "If artifact specs are not requested, the resultant artifacts may be empty." + }, + "token": { + "type": "string", + "description": "continuation token if relevant." + } + } + }, + "artifactSearchOptions": { + "type": "object", + "properties": { + "strict_partitions": { + "type": "boolean", + "format": "boolean", + "description": "If true, this means a strict partition search. meaning if you don't specify the partition\nfield, that will mean, non-partitioned, rather than any partition." + }, + "latest_by_key": { + "type": "boolean", + "format": "boolean", + "description": "If true, only one artifact per key will be returned. It will be the latest one by creation time." } } }, @@ -1445,18 +1590,6 @@ }, "description": "Defines a strong type to allow type checking between interfaces." }, - "coreNodeExecutionIdentifier": { - "type": "object", - "properties": { - "node_id": { - "type": "string" - }, - "execution_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier" - } - }, - "description": "Encapsulation of fields that identify a Flyte node execution entity." - }, "coreOAuth2Client": { "type": "object", "properties": { @@ -1783,22 +1916,6 @@ } } }, - "coreTaskExecutionIdentifier": { - "type": "object", - "properties": { - "task_id": { - "$ref": "#/definitions/coreIdentifier" - }, - "node_execution_id": { - "$ref": "#/definitions/coreNodeExecutionIdentifier" - }, - "retry_attempt": { - "type": "integer", - "format": "int64" - } - }, - "description": "Encapsulation of fields that identify a Flyte task execution entity." - }, "coreTypeAnnotation": { "type": "object", "properties": { diff --git a/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go b/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go index d4ab55ef30..b692594368 100644 --- a/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go @@ -33,10 +33,11 @@ type CloudEventWorkflowExecution struct { // We can't have the ExecutionMetadata object directly because of import cycle ArtifactIds []*core.ArtifactID `protobuf:"bytes,5,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` ReferenceExecution *core.WorkflowExecutionIdentifier `protobuf:"bytes,6,opt,name=reference_execution,json=referenceExecution,proto3" json:"reference_execution,omitempty"` + Principal string `protobuf:"bytes,7,opt,name=principal,proto3" json:"principal,omitempty"` // The ID of the LP that generated the execution that generated the Artifact. // Here for provenance information. // Launch plan IDs are easier to get than workflow IDs so we'll use these for now. - LaunchPlanId *core.Identifier `protobuf:"bytes,7,opt,name=launch_plan_id,json=launchPlanId,proto3" json:"launch_plan_id,omitempty"` + LaunchPlanId *core.Identifier `protobuf:"bytes,8,opt,name=launch_plan_id,json=launchPlanId,proto3" json:"launch_plan_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -109,6 +110,13 @@ func (m *CloudEventWorkflowExecution) GetReferenceExecution() *core.WorkflowExec return nil } +func (m *CloudEventWorkflowExecution) GetPrincipal() string { + if m != nil { + return m.Principal + } + return "" +} + func (m *CloudEventWorkflowExecution) GetLaunchPlanId() *core.Identifier { if m != nil { return m.LaunchPlanId @@ -128,10 +136,11 @@ type CloudEventNodeExecution struct { // The following are ExecutionMetadata fields // We can't have the ExecutionMetadata object directly because of import cycle ArtifactIds []*core.ArtifactID `protobuf:"bytes,6,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` + Principal string `protobuf:"bytes,7,opt,name=principal,proto3" json:"principal,omitempty"` // The ID of the LP that generated the execution that generated the Artifact. // Here for provenance information. // Launch plan IDs are easier to get than workflow IDs so we'll use these for now. - LaunchPlanId *core.Identifier `protobuf:"bytes,7,opt,name=launch_plan_id,json=launchPlanId,proto3" json:"launch_plan_id,omitempty"` + LaunchPlanId *core.Identifier `protobuf:"bytes,8,opt,name=launch_plan_id,json=launchPlanId,proto3" json:"launch_plan_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -204,6 +213,13 @@ func (m *CloudEventNodeExecution) GetArtifactIds() []*core.ArtifactID { return nil } +func (m *CloudEventNodeExecution) GetPrincipal() string { + if m != nil { + return m.Principal + } + return "" +} + func (m *CloudEventNodeExecution) GetLaunchPlanId() *core.Identifier { if m != nil { return m.LaunchPlanId @@ -261,6 +277,7 @@ type CloudEventExecutionStart struct { ArtifactIds []*core.ArtifactID `protobuf:"bytes,4,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` // Artifact keys found. ArtifactKeys []string `protobuf:"bytes,5,rep,name=artifact_keys,json=artifactKeys,proto3" json:"artifact_keys,omitempty"` + Principal string `protobuf:"bytes,6,opt,name=principal,proto3" json:"principal,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -326,6 +343,13 @@ func (m *CloudEventExecutionStart) GetArtifactKeys() []string { return nil } +func (m *CloudEventExecutionStart) GetPrincipal() string { + if m != nil { + return m.Principal + } + return "" +} + func init() { proto.RegisterType((*CloudEventWorkflowExecution)(nil), "flyteidl.event.CloudEventWorkflowExecution") proto.RegisterType((*CloudEventNodeExecution)(nil), "flyteidl.event.CloudEventNodeExecution") @@ -336,41 +360,43 @@ func init() { func init() { proto.RegisterFile("flyteidl/event/cloudevents.proto", fileDescriptor_f8af3ecc827e5d5e) } var fileDescriptor_f8af3ecc827e5d5e = []byte{ - // 568 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x5f, 0x8b, 0xd3, 0x4e, - 0x14, 0xa5, 0x4d, 0xb7, 0xbf, 0x5f, 0xa7, 0x75, 0x95, 0xf8, 0x60, 0xac, 0xae, 0x96, 0x0a, 0x22, - 0x82, 0x09, 0xe8, 0x8b, 0xf8, 0x07, 0xd1, 0xdd, 0x85, 0x0d, 0xba, 0x22, 0x51, 0x10, 0xd6, 0x87, - 0x30, 0xcd, 0xdc, 0x64, 0x87, 0xa6, 0x33, 0x61, 0x32, 0xb1, 0xf6, 0x23, 0xfa, 0x39, 0xfc, 0x1e, - 0x22, 0x99, 0x24, 0x93, 0x26, 0x2d, 0xac, 0xa5, 0xbe, 0x94, 0xe9, 0xdc, 0x73, 0x4e, 0xef, 0xbd, - 0xe7, 0x30, 0x45, 0x93, 0x30, 0x5e, 0x49, 0xa0, 0x24, 0x76, 0xe0, 0x3b, 0x30, 0xe9, 0x04, 0x31, - 0xcf, 0x88, 0x3a, 0xa6, 0x76, 0x22, 0xb8, 0xe4, 0xe6, 0x61, 0x85, 0xb0, 0xd5, 0xf5, 0x78, 0xdc, - 0x62, 0xa8, 0xcf, 0x02, 0x3b, 0xbe, 0xab, 0x6b, 0x01, 0x17, 0xe0, 0xc4, 0x54, 0x82, 0xc0, 0x71, - 0xa9, 0x34, 0x3e, 0x6a, 0x56, 0x29, 0x93, 0x20, 0x42, 0x1c, 0x40, 0x59, 0xbe, 0xdf, 0x2c, 0x63, - 0x21, 0x69, 0x88, 0x03, 0xe9, 0x53, 0x52, 0x02, 0xee, 0xb5, 0xf8, 0x04, 0x98, 0xa4, 0x21, 0x05, - 0x51, 0x09, 0x44, 0x9c, 0x47, 0x31, 0x38, 0xea, 0xdb, 0x2c, 0x0b, 0x1d, 0x49, 0x17, 0x90, 0x4a, - 0xbc, 0x48, 0x0a, 0xc0, 0xf4, 0xb7, 0x81, 0xee, 0x1c, 0xe7, 0x03, 0x9e, 0xe6, 0x3d, 0x7f, 0xe5, - 0x62, 0x1e, 0xc6, 0x7c, 0x79, 0xfa, 0x03, 0x82, 0x4c, 0x52, 0xce, 0xcc, 0x63, 0x34, 0x10, 0x78, - 0xe9, 0xab, 0x89, 0xac, 0xce, 0xa4, 0xf3, 0x68, 0xf8, 0xf4, 0xa1, 0xdd, 0x1c, 0xdf, 0xde, 0x60, - 0x29, 0x2d, 0xef, 0x7f, 0x81, 0x97, 0xea, 0x64, 0xbe, 0x40, 0x43, 0x9e, 0xc9, 0x24, 0x93, 0x3e, - 0xc1, 0x12, 0x5b, 0x5d, 0x25, 0x73, 0xbb, 0x96, 0xc9, 0x7b, 0xb7, 0x3f, 0x14, 0x9b, 0x39, 0xc7, - 0x89, 0x87, 0x0a, 0xf4, 0x09, 0x96, 0xd8, 0x3c, 0x43, 0x37, 0x4a, 0xae, 0x5e, 0x8e, 0x65, 0x28, - 0x81, 0xa3, 0x96, 0xc0, 0x97, 0x55, 0x02, 0xc4, 0xad, 0x40, 0xde, 0xf5, 0x82, 0xa6, 0x2f, 0xcc, - 0xe7, 0x08, 0x51, 0xa6, 0x9b, 0xe8, 0x5d, 0xd5, 0xc4, 0x40, 0x81, 0x55, 0x0f, 0xaf, 0xd0, 0x68, - 0x6d, 0xf5, 0xa9, 0x75, 0x30, 0x31, 0xb6, 0x70, 0xdf, 0x96, 0x10, 0xf7, 0xc4, 0x1b, 0x56, 0x70, - 0x97, 0xa4, 0xe6, 0x37, 0x74, 0x53, 0x40, 0x08, 0x02, 0x58, 0x00, 0x3e, 0x54, 0x3b, 0xb2, 0xfa, - 0xaa, 0x81, 0xc7, 0x2d, 0x91, 0x8d, 0x5d, 0xba, 0xda, 0x52, 0xcf, 0xd4, 0x32, 0xb5, 0x3f, 0x6f, - 0xd0, 0x61, 0x8c, 0x33, 0x16, 0x5c, 0xfa, 0x49, 0x8c, 0x99, 0x4f, 0x89, 0xf5, 0xdf, 0xd6, 0xc1, - 0xd6, 0x64, 0x46, 0x05, 0xe1, 0x53, 0x8c, 0x99, 0x4b, 0xa6, 0xbf, 0x0c, 0x74, 0xab, 0x0e, 0xc0, - 0x47, 0x4e, 0x1a, 0xe2, 0x1b, 0xe6, 0x4f, 0xdb, 0xe6, 0x37, 0x18, 0x6d, 0xe3, 0xcf, 0xd0, 0x48, - 0xe2, 0x74, 0xae, 0xa6, 0xce, 0x7b, 0xeb, 0xb6, 0x03, 0x54, 0x18, 0x87, 0xd3, 0xf9, 0xb6, 0x79, - 0x91, 0x2c, 0x0b, 0x2e, 0x69, 0x47, 0xc8, 0xd8, 0x37, 0x42, 0xbd, 0x7f, 0x10, 0xa1, 0x83, 0x3d, - 0x22, 0xd4, 0xdf, 0x29, 0x42, 0x7b, 0xbb, 0x7c, 0xb1, 0x6e, 0x72, 0x63, 0xdf, 0x7f, 0x65, 0x72, - 0x83, 0xd1, 0x32, 0x79, 0xfa, 0xb3, 0x8b, 0xac, 0x5a, 0x5c, 0xc3, 0x3e, 0x4b, 0x2c, 0xa4, 0x79, - 0x8e, 0x46, 0x3a, 0xf2, 0x79, 0xdf, 0x9d, 0x9d, 0x53, 0x3f, 0x84, 0xfa, 0x72, 0xcb, 0x22, 0xba, - 0x3b, 0x2d, 0x22, 0xcf, 0xd1, 0xb2, 0xfc, 0xb1, 0x9c, 0x6d, 0x5c, 0xc5, 0x46, 0x15, 0xda, 0x25, - 0x1b, 0x1e, 0xf6, 0x76, 0xf2, 0xf0, 0x01, 0xba, 0xa6, 0xd9, 0x73, 0x58, 0x15, 0xaf, 0xc8, 0xc0, - 0xd3, 0x92, 0xef, 0x61, 0x95, 0xbe, 0x7b, 0x7d, 0xf1, 0x32, 0xa2, 0xf2, 0x32, 0x9b, 0xd9, 0x01, - 0x5f, 0x38, 0x4a, 0x98, 0x8b, 0xa8, 0x38, 0x38, 0xfa, 0xad, 0x8f, 0x80, 0x39, 0xc9, 0xec, 0x49, - 0xc4, 0x9d, 0xe6, 0x1f, 0xcf, 0xac, 0xaf, 0x1e, 0xf5, 0x67, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, - 0xf0, 0xd9, 0xf3, 0x90, 0xc3, 0x06, 0x00, 0x00, + // 595 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x5d, 0x6f, 0xd3, 0x30, + 0x14, 0x55, 0x3f, 0x56, 0x56, 0xb7, 0x0c, 0x14, 0x1e, 0x08, 0x65, 0x83, 0xaa, 0x48, 0x68, 0x42, + 0x22, 0x91, 0xe0, 0x05, 0xf1, 0xa1, 0x09, 0xb6, 0x49, 0x8b, 0x60, 0x08, 0x05, 0x24, 0xa4, 0xf1, + 0x10, 0xb9, 0xf1, 0x4d, 0x66, 0x35, 0x8d, 0x23, 0xc7, 0xa1, 0xf4, 0x91, 0xff, 0xc1, 0xff, 0xe3, + 0x6f, 0xa0, 0x38, 0x89, 0xd3, 0xb8, 0x95, 0x46, 0x35, 0x78, 0x99, 0x3c, 0xdf, 0x73, 0x8e, 0xaf, + 0xcf, 0x3d, 0xa9, 0xd1, 0x38, 0x88, 0x96, 0x02, 0x28, 0x89, 0x6c, 0xf8, 0x0e, 0xb1, 0xb0, 0xfd, + 0x88, 0x65, 0x44, 0x2e, 0x53, 0x2b, 0xe1, 0x4c, 0x30, 0x63, 0xaf, 0x42, 0x58, 0x72, 0x7b, 0x34, + 0xd2, 0x18, 0xf2, 0x6f, 0x81, 0x1d, 0xed, 0xab, 0x9a, 0xcf, 0x38, 0xd8, 0x11, 0x15, 0xc0, 0x71, + 0x54, 0x2a, 0x8d, 0x0e, 0x9a, 0x55, 0x1a, 0x0b, 0xe0, 0x01, 0xf6, 0xa1, 0x2c, 0x3f, 0x6c, 0x96, + 0x31, 0x17, 0x34, 0xc0, 0xbe, 0xf0, 0x28, 0x29, 0x01, 0x0f, 0x34, 0x3e, 0x81, 0x58, 0xd0, 0x80, + 0x02, 0xaf, 0x04, 0x42, 0xc6, 0xc2, 0x08, 0x6c, 0xf9, 0xdf, 0x34, 0x0b, 0x6c, 0x41, 0xe7, 0x90, + 0x0a, 0x3c, 0x4f, 0x0a, 0xc0, 0xe4, 0x57, 0x17, 0xdd, 0x3f, 0xce, 0x2f, 0x78, 0x9a, 0xf7, 0xfc, + 0x95, 0xf1, 0x59, 0x10, 0xb1, 0xc5, 0xe9, 0x0f, 0xf0, 0x33, 0x41, 0x59, 0x6c, 0x1c, 0xa3, 0x3e, + 0xc7, 0x0b, 0x4f, 0xde, 0xc8, 0x6c, 0x8d, 0x5b, 0x87, 0x83, 0x67, 0x8f, 0xad, 0xe6, 0xf5, 0xad, + 0x35, 0x96, 0xd4, 0x72, 0x77, 0x39, 0x5e, 0xc8, 0x95, 0xf1, 0x12, 0x0d, 0x58, 0x26, 0x92, 0x4c, + 0x78, 0x04, 0x0b, 0x6c, 0xb6, 0xa5, 0xcc, 0xbd, 0x5a, 0x26, 0xef, 0xdd, 0xfa, 0x50, 0x38, 0x73, + 0x8e, 0x13, 0x17, 0x15, 0xe8, 0x13, 0x2c, 0xb0, 0x71, 0x86, 0x6e, 0x97, 0x5c, 0x65, 0x8e, 0xd9, + 0x91, 0x02, 0x07, 0x9a, 0xc0, 0x97, 0x65, 0x02, 0xc4, 0xa9, 0x40, 0xee, 0xad, 0x82, 0xa6, 0x36, + 0x8c, 0x17, 0x08, 0xd1, 0x58, 0x35, 0xd1, 0xbd, 0xaa, 0x89, 0xbe, 0x04, 0xcb, 0x1e, 0x5e, 0xa3, + 0xe1, 0x8a, 0xf5, 0xa9, 0xb9, 0x33, 0xee, 0x6c, 0xe0, 0xbe, 0x2d, 0x21, 0xce, 0x89, 0x3b, 0xa8, + 0xe0, 0x0e, 0x49, 0x8d, 0x6f, 0xe8, 0x0e, 0x87, 0x00, 0x38, 0xc4, 0x3e, 0x78, 0x50, 0x79, 0x64, + 0xf6, 0x64, 0x03, 0x4f, 0x34, 0x91, 0x35, 0x2f, 0x1d, 0x35, 0x52, 0xd7, 0x50, 0x32, 0xf5, 0x7c, + 0xf6, 0x51, 0x3f, 0xe1, 0x34, 0xf6, 0x69, 0x82, 0x23, 0xf3, 0xc6, 0xb8, 0x75, 0xd8, 0x77, 0xeb, + 0x0d, 0xe3, 0x08, 0xed, 0x45, 0x38, 0x8b, 0xfd, 0x4b, 0x2f, 0x89, 0x70, 0xec, 0x51, 0x62, 0xee, + 0x6e, 0xbc, 0xf6, 0xca, 0x21, 0xc3, 0x82, 0xf0, 0x29, 0xc2, 0xb1, 0x43, 0x26, 0x3f, 0xbb, 0xe8, + 0x6e, 0x1d, 0x8f, 0x8f, 0x8c, 0xac, 0x1c, 0x7d, 0xb4, 0x1e, 0x8d, 0x89, 0x1e, 0x8d, 0x06, 0x43, + 0x8f, 0xc5, 0x19, 0x1a, 0x0a, 0x9c, 0xce, 0xa4, 0x27, 0x79, 0x6f, 0x6d, 0x3d, 0x5e, 0xc5, 0x58, + 0x71, 0x3a, 0xdb, 0xe4, 0x06, 0x12, 0x65, 0xc1, 0x21, 0x7a, 0xc0, 0x3a, 0xd7, 0x0d, 0x58, 0xf7, + 0x1f, 0x04, 0x6c, 0xe7, 0x1a, 0x01, 0xeb, 0x6d, 0x15, 0xb0, 0xff, 0x9c, 0x81, 0x8b, 0xd5, 0x08, + 0x34, 0xa6, 0xf1, 0x57, 0x11, 0x68, 0x30, 0xb4, 0x08, 0x4c, 0x7e, 0xb7, 0x91, 0x59, 0x8b, 0x2b, + 0xd8, 0x67, 0x81, 0xb9, 0x30, 0xce, 0xd1, 0x50, 0x7d, 0x2e, 0x79, 0xdf, 0xad, 0xad, 0xbf, 0x98, + 0x01, 0xd4, 0x9b, 0x1b, 0x8c, 0x68, 0x6f, 0x65, 0x44, 0x9e, 0xb2, 0x45, 0x79, 0x58, 0xce, 0xee, + 0x5c, 0xc5, 0x46, 0x15, 0xda, 0x21, 0x6b, 0x13, 0xee, 0x6e, 0x35, 0xe1, 0x47, 0xe8, 0xa6, 0x62, + 0xcf, 0x60, 0x59, 0xfc, 0x02, 0xf5, 0x5d, 0x25, 0xf9, 0x1e, 0x96, 0x5a, 0x0c, 0x7a, 0x5a, 0x0c, + 0xde, 0xbd, 0xb9, 0x78, 0x15, 0x52, 0x71, 0x99, 0x4d, 0x2d, 0x9f, 0xcd, 0x6d, 0x79, 0x2c, 0xe3, + 0x61, 0xb1, 0xb0, 0xd5, 0x2b, 0x12, 0x42, 0x6c, 0x27, 0xd3, 0xa7, 0x21, 0xb3, 0x9b, 0x4f, 0xda, + 0xb4, 0x27, 0x9f, 0x8b, 0xe7, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x96, 0x62, 0x9e, 0x02, 0x1d, + 0x07, 0x00, 0x00, } diff --git a/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.validate.go index ab094bfa35..79aa9866dd 100644 --- a/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.validate.go +++ b/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.validate.go @@ -109,6 +109,8 @@ func (m *CloudEventWorkflowExecution) Validate() error { } } + // no validation rules for Principal + if v, ok := interface{}(m.GetLaunchPlanId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return CloudEventWorkflowExecutionValidationError{ @@ -252,6 +254,8 @@ func (m *CloudEventNodeExecution) Validate() error { } + // no validation rules for Principal + if v, ok := interface{}(m.GetLaunchPlanId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return CloudEventNodeExecutionValidationError{ @@ -451,6 +455,8 @@ func (m *CloudEventExecutionStart) Validate() error { } + // no validation rules for Principal + return nil } diff --git a/flyteidl/gen/pb-java/flyteidl/artifact/Artifacts.java b/flyteidl/gen/pb-java/flyteidl/artifact/Artifacts.java index 04775059d6..da8ee240db 100644 --- a/flyteidl/gen/pb-java/flyteidl/artifact/Artifacts.java +++ b/flyteidl/gen/pb-java/flyteidl/artifact/Artifacts.java @@ -78,6 +78,19 @@ public interface ArtifactOrBuilder extends */ com.google.protobuf.ByteString getTagsBytes(int index); + + /** + * .flyteidl.artifact.ArtifactSource source = 4; + */ + boolean hasSource(); + /** + * .flyteidl.artifact.ArtifactSource source = 4; + */ + flyteidl.artifact.Artifacts.ArtifactSource getSource(); + /** + * .flyteidl.artifact.ArtifactSource source = 4; + */ + flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder getSourceOrBuilder(); } /** * Protobuf type {@code flyteidl.artifact.Artifact} @@ -154,6 +167,19 @@ private Artifact( tags_.add(s); break; } + case 34: { + flyteidl.artifact.Artifacts.ArtifactSource.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = input.readMessage(flyteidl.artifact.Artifacts.ArtifactSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -277,6 +303,27 @@ public java.lang.String getTags(int index) { return tags_.getByteString(index); } + public static final int SOURCE_FIELD_NUMBER = 4; + private flyteidl.artifact.Artifacts.ArtifactSource source_; + /** + * .flyteidl.artifact.ArtifactSource source = 4; + */ + public boolean hasSource() { + return source_ != null; + } + /** + * .flyteidl.artifact.ArtifactSource source = 4; + */ + public flyteidl.artifact.Artifacts.ArtifactSource getSource() { + return source_ == null ? flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance() : source_; + } + /** + * .flyteidl.artifact.ArtifactSource source = 4; + */ + public flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder getSourceOrBuilder() { + return getSource(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -300,6 +347,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i)); } + if (source_ != null) { + output.writeMessage(4, getSource()); + } unknownFields.writeTo(output); } @@ -325,6 +375,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTagsList().size(); } + if (source_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSource()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -352,6 +406,11 @@ public boolean equals(final java.lang.Object obj) { } if (!getTagsList() .equals(other.getTagsList())) return false; + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (!getSource() + .equals(other.getSource())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -375,6 +434,10 @@ public int hashCode() { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -522,6 +585,12 @@ public Builder clear() { } tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); + if (sourceBuilder_ == null) { + source_ = null; + } else { + source_ = null; + sourceBuilder_ = null; + } return this; } @@ -565,6 +634,11 @@ public flyteidl.artifact.Artifacts.Artifact buildPartial() { bitField0_ = (bitField0_ & ~0x00000004); } result.tags_ = tags_; + if (sourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = sourceBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -630,6 +704,9 @@ public Builder mergeFrom(flyteidl.artifact.Artifacts.Artifact other) { } onChanged(); } + if (other.hasSource()) { + mergeSource(other.getSource()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1023,6 +1100,123 @@ public Builder addTagsBytes( onChanged(); return this; } + + private flyteidl.artifact.Artifacts.ArtifactSource source_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.artifact.Artifacts.ArtifactSource, flyteidl.artifact.Artifacts.ArtifactSource.Builder, flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder> sourceBuilder_; + /** + * .flyteidl.artifact.ArtifactSource source = 4; + */ + public boolean hasSource() { + return sourceBuilder_ != null || source_ != null; + } + /** + * .flyteidl.artifact.ArtifactSource source = 4; + */ + public flyteidl.artifact.Artifacts.ArtifactSource getSource() { + if (sourceBuilder_ == null) { + return source_ == null ? flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance() : source_; + } else { + return sourceBuilder_.getMessage(); + } + } + /** + * .flyteidl.artifact.ArtifactSource source = 4; + */ + public Builder setSource(flyteidl.artifact.Artifacts.ArtifactSource value) { + if (sourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + sourceBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.artifact.ArtifactSource source = 4; + */ + public Builder setSource( + flyteidl.artifact.Artifacts.ArtifactSource.Builder builderForValue) { + if (sourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + sourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.artifact.ArtifactSource source = 4; + */ + public Builder mergeSource(flyteidl.artifact.Artifacts.ArtifactSource value) { + if (sourceBuilder_ == null) { + if (source_ != null) { + source_ = + flyteidl.artifact.Artifacts.ArtifactSource.newBuilder(source_).mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + sourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.artifact.ArtifactSource source = 4; + */ + public Builder clearSource() { + if (sourceBuilder_ == null) { + source_ = null; + onChanged(); + } else { + source_ = null; + sourceBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.artifact.ArtifactSource source = 4; + */ + public flyteidl.artifact.Artifacts.ArtifactSource.Builder getSourceBuilder() { + + onChanged(); + return getSourceFieldBuilder().getBuilder(); + } + /** + * .flyteidl.artifact.ArtifactSource source = 4; + */ + public flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder getSourceOrBuilder() { + if (sourceBuilder_ != null) { + return sourceBuilder_.getMessageOrBuilder(); + } else { + return source_ == null ? + flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance() : source_; + } + } + /** + * .flyteidl.artifact.ArtifactSource source = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.artifact.Artifacts.ArtifactSource, flyteidl.artifact.Artifacts.ArtifactSource.Builder, flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder> + getSourceFieldBuilder() { + if (sourceBuilder_ == null) { + sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.artifact.Artifacts.ArtifactSource, flyteidl.artifact.Artifacts.ArtifactSource.Builder, flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder>( + getSource(), + getParentForChildren(), + isClean()); + source_ = null; + } + return sourceBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1171,6 +1365,19 @@ java.lang.String getPartitionsOrThrow( */ com.google.protobuf.ByteString getTagBytes(); + + /** + * .flyteidl.artifact.ArtifactSource source = 6; + */ + boolean hasSource(); + /** + * .flyteidl.artifact.ArtifactSource source = 6; + */ + flyteidl.artifact.Artifacts.ArtifactSource getSource(); + /** + * .flyteidl.artifact.ArtifactSource source = 6; + */ + flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder getSourceOrBuilder(); } /** * Protobuf type {@code flyteidl.artifact.CreateArtifactRequest} @@ -1264,6 +1471,19 @@ private CreateArtifactRequest( tag_ = s; break; } + case 50: { + flyteidl.artifact.Artifacts.ArtifactSource.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = input.readMessage(flyteidl.artifact.Artifacts.ArtifactSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -1507,6 +1727,27 @@ public java.lang.String getTag() { } } + public static final int SOURCE_FIELD_NUMBER = 6; + private flyteidl.artifact.Artifacts.ArtifactSource source_; + /** + * .flyteidl.artifact.ArtifactSource source = 6; + */ + public boolean hasSource() { + return source_ != null; + } + /** + * .flyteidl.artifact.ArtifactSource source = 6; + */ + public flyteidl.artifact.Artifacts.ArtifactSource getSource() { + return source_ == null ? flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance() : source_; + } + /** + * .flyteidl.artifact.ArtifactSource source = 6; + */ + public flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder getSourceOrBuilder() { + return getSource(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1539,6 +1780,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getTagBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tag_); } + if (source_ != null) { + output.writeMessage(6, getSource()); + } unknownFields.writeTo(output); } @@ -1572,6 +1816,10 @@ public int getSerializedSize() { if (!getTagBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, tag_); } + if (source_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getSource()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1603,6 +1851,11 @@ public boolean equals(final java.lang.Object obj) { other.internalGetPartitions())) return false; if (!getTag() .equals(other.getTag())) return false; + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (!getSource() + .equals(other.getSource())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1630,6 +1883,10 @@ public int hashCode() { } hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1802,6 +2059,12 @@ public Builder clear() { internalGetMutablePartitions().clear(); tag_ = ""; + if (sourceBuilder_ == null) { + source_ = null; + } else { + source_ = null; + sourceBuilder_ = null; + } return this; } @@ -1844,6 +2107,11 @@ public flyteidl.artifact.Artifacts.CreateArtifactRequest buildPartial() { result.partitions_ = internalGetPartitions(); result.partitions_.makeImmutable(); result.tag_ = tag_; + if (sourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = sourceBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -1909,6 +2177,9 @@ public Builder mergeFrom(flyteidl.artifact.Artifacts.CreateArtifactRequest other tag_ = other.tag_; onChanged(); } + if (other.hasSource()) { + mergeSource(other.getSource()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2469,6 +2740,123 @@ public Builder setTagBytes( onChanged(); return this; } + + private flyteidl.artifact.Artifacts.ArtifactSource source_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.artifact.Artifacts.ArtifactSource, flyteidl.artifact.Artifacts.ArtifactSource.Builder, flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder> sourceBuilder_; + /** + * .flyteidl.artifact.ArtifactSource source = 6; + */ + public boolean hasSource() { + return sourceBuilder_ != null || source_ != null; + } + /** + * .flyteidl.artifact.ArtifactSource source = 6; + */ + public flyteidl.artifact.Artifacts.ArtifactSource getSource() { + if (sourceBuilder_ == null) { + return source_ == null ? flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance() : source_; + } else { + return sourceBuilder_.getMessage(); + } + } + /** + * .flyteidl.artifact.ArtifactSource source = 6; + */ + public Builder setSource(flyteidl.artifact.Artifacts.ArtifactSource value) { + if (sourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + sourceBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.artifact.ArtifactSource source = 6; + */ + public Builder setSource( + flyteidl.artifact.Artifacts.ArtifactSource.Builder builderForValue) { + if (sourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + sourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.artifact.ArtifactSource source = 6; + */ + public Builder mergeSource(flyteidl.artifact.Artifacts.ArtifactSource value) { + if (sourceBuilder_ == null) { + if (source_ != null) { + source_ = + flyteidl.artifact.Artifacts.ArtifactSource.newBuilder(source_).mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + sourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.artifact.ArtifactSource source = 6; + */ + public Builder clearSource() { + if (sourceBuilder_ == null) { + source_ = null; + onChanged(); + } else { + source_ = null; + sourceBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.artifact.ArtifactSource source = 6; + */ + public flyteidl.artifact.Artifacts.ArtifactSource.Builder getSourceBuilder() { + + onChanged(); + return getSourceFieldBuilder().getBuilder(); + } + /** + * .flyteidl.artifact.ArtifactSource source = 6; + */ + public flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder getSourceOrBuilder() { + if (sourceBuilder_ != null) { + return sourceBuilder_.getMessageOrBuilder(); + } else { + return source_ == null ? + flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance() : source_; + } + } + /** + * .flyteidl.artifact.ArtifactSource source = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.artifact.Artifacts.ArtifactSource, flyteidl.artifact.Artifacts.ArtifactSource.Builder, flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder> + getSourceFieldBuilder() { + if (sourceBuilder_ == null) { + sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.artifact.Artifacts.ArtifactSource, flyteidl.artifact.Artifacts.ArtifactSource.Builder, flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder>( + getSource(), + getParentForChildren(), + isClean()); + source_ = null; + } + return sourceBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2522,113 +2910,57 @@ public flyteidl.artifact.Artifacts.CreateArtifactRequest getDefaultInstanceForTy } - public interface ArtifactSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ArtifactSpec) + public interface ArtifactSourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ArtifactSource) com.google.protobuf.MessageOrBuilder { /** - * .flyteidl.core.Literal value = 1; + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; */ - boolean hasValue(); + boolean hasWorkflowExecution(); /** - * .flyteidl.core.Literal value = 1; + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; */ - flyteidl.core.Literals.Literal getValue(); + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecution(); /** - * .flyteidl.core.Literal value = 1; + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; */ - flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder(); + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionOrBuilder(); /** - *
-     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-     * type to all Literals is a lot of work.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - boolean hasType(); - /** - *
-     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-     * type to all Literals is a lot of work.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; + * string node_id = 2; */ - flyteidl.core.Types.LiteralType getType(); + java.lang.String getNodeId(); /** - *
-     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-     * type to all Literals is a lot of work.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; + * string node_id = 2; */ - flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); + com.google.protobuf.ByteString + getNodeIdBytes(); /** - *
-     * 3. These fields should be removed.
-     * Outputs of tasks will have this.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution = 5; + * .flyteidl.core.Identifier task_id = 3; */ - boolean hasTaskExecution(); + boolean hasTaskId(); /** - *
-     * 3. These fields should be removed.
-     * Outputs of tasks will have this.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution = 5; + * .flyteidl.core.Identifier task_id = 3; */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecution(); + flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); /** - *
-     * 3. These fields should be removed.
-     * Outputs of tasks will have this.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution = 5; + * .flyteidl.core.Identifier task_id = 3; */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionOrBuilder(); + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); /** - *
-     * Workflow outputs will have this.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - */ - boolean hasExecution(); - /** - *
-     * Workflow outputs will have this.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution = 6; + * uint32 retry_attempt = 4; */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecution(); - /** - *
-     * Workflow outputs will have this.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionOrBuilder(); + int getRetryAttempt(); /** *
      * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this.
      * 
* - * string principal = 7; + * string principal = 5; */ java.lang.String getPrincipal(); /** @@ -2636,72 +2968,26 @@ public interface ArtifactSpecOrBuilder extends * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this. * * - * string principal = 7; + * string principal = 5; */ com.google.protobuf.ByteString getPrincipalBytes(); - - /** - * string short_description = 8; - */ - java.lang.String getShortDescription(); - /** - * string short_description = 8; - */ - com.google.protobuf.ByteString - getShortDescriptionBytes(); - - /** - *
-     * Additional user metadata
-     * 
- * - * .google.protobuf.Any user_metadata = 10; - */ - boolean hasUserMetadata(); - /** - *
-     * Additional user metadata
-     * 
- * - * .google.protobuf.Any user_metadata = 10; - */ - com.google.protobuf.Any getUserMetadata(); - /** - *
-     * Additional user metadata
-     * 
- * - * .google.protobuf.Any user_metadata = 10; - */ - com.google.protobuf.AnyOrBuilder getUserMetadataOrBuilder(); - - /** - * string metadata_type = 11; - */ - java.lang.String getMetadataType(); - /** - * string metadata_type = 11; - */ - com.google.protobuf.ByteString - getMetadataTypeBytes(); } /** - * Protobuf type {@code flyteidl.artifact.ArtifactSpec} + * Protobuf type {@code flyteidl.artifact.ArtifactSource} */ - public static final class ArtifactSpec extends + public static final class ArtifactSource extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.ArtifactSpec) - ArtifactSpecOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.artifact.ArtifactSource) + ArtifactSourceOrBuilder { private static final long serialVersionUID = 0L; - // Use ArtifactSpec.newBuilder() to construct. - private ArtifactSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ArtifactSource.newBuilder() to construct. + private ArtifactSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ArtifactSpec() { + private ArtifactSource() { + nodeId_ = ""; principal_ = ""; - shortDescription_ = ""; - metadataType_ = ""; } @java.lang.Override @@ -2709,7 +2995,7 @@ private ArtifactSpec() { getUnknownFields() { return this.unknownFields; } - private ArtifactSpec( + private ArtifactSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2729,88 +3015,48 @@ private ArtifactSpec( done = true; break; case 10: { - flyteidl.core.Literals.Literal.Builder subBuilder = null; - if (value_ != null) { - subBuilder = value_.toBuilder(); + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (workflowExecution_ != null) { + subBuilder = workflowExecution_.toBuilder(); } - value_ = input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); + workflowExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(value_); - value_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(workflowExecution_); + workflowExecution_ = subBuilder.buildPartial(); } break; } case 18: { - flyteidl.core.Types.LiteralType.Builder subBuilder = null; - if (type_ != null) { - subBuilder = type_.toBuilder(); - } - type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(type_); - type_ = subBuilder.buildPartial(); - } + java.lang.String s = input.readStringRequireUtf8(); + nodeId_ = s; break; } - case 42: { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; - if (taskExecution_ != null) { - subBuilder = taskExecution_.toBuilder(); + case 26: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (taskId_ != null) { + subBuilder = taskId_.toBuilder(); } - taskExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(taskExecution_); - taskExecution_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(taskId_); + taskId_ = subBuilder.buildPartial(); } break; } - case 50: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (execution_ != null) { - subBuilder = execution_.toBuilder(); - } - execution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(execution_); - execution_ = subBuilder.buildPartial(); - } + case 32: { + retryAttempt_ = input.readUInt32(); break; } - case 58: { + case 42: { java.lang.String s = input.readStringRequireUtf8(); principal_ = s; break; } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - shortDescription_ = s; - break; - } - case 82: { - com.google.protobuf.Any.Builder subBuilder = null; - if (userMetadata_ != null) { - subBuilder = userMetadata_.toBuilder(); - } - userMetadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(userMetadata_); - userMetadata_ = subBuilder.buildPartial(); - } - - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - metadataType_ = s; - break; - } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -2832,154 +3078,110 @@ private ArtifactSpec( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSpec_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSpec_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ArtifactSpec.class, flyteidl.artifact.Artifacts.ArtifactSpec.Builder.class); + flyteidl.artifact.Artifacts.ArtifactSource.class, flyteidl.artifact.Artifacts.ArtifactSource.Builder.class); } - public static final int VALUE_FIELD_NUMBER = 1; - private flyteidl.core.Literals.Literal value_; + public static final int WORKFLOW_EXECUTION_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecution_; /** - * .flyteidl.core.Literal value = 1; + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; */ - public boolean hasValue() { - return value_ != null; + public boolean hasWorkflowExecution() { + return workflowExecution_ != null; } /** - * .flyteidl.core.Literal value = 1; + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; */ - public flyteidl.core.Literals.Literal getValue() { - return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecution() { + return workflowExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecution_; } /** - * .flyteidl.core.Literal value = 1; + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; */ - public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { - return getValue(); + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionOrBuilder() { + return getWorkflowExecution(); } - public static final int TYPE_FIELD_NUMBER = 2; - private flyteidl.core.Types.LiteralType type_; - /** - *
-     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-     * type to all Literals is a lot of work.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public boolean hasType() { - return type_ != null; - } + public static final int NODE_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object nodeId_; /** - *
-     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-     * type to all Literals is a lot of work.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; + * string node_id = 2; */ - public flyteidl.core.Types.LiteralType getType() { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } } /** - *
-     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-     * type to all Literals is a lot of work.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; + * string node_id = 2; */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - return getType(); + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int TASK_EXECUTION_FIELD_NUMBER = 5; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecution_; + public static final int TASK_ID_FIELD_NUMBER = 3; + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; /** - *
-     * 3. These fields should be removed.
-     * Outputs of tasks will have this.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution = 5; + * .flyteidl.core.Identifier task_id = 3; */ - public boolean hasTaskExecution() { - return taskExecution_ != null; + public boolean hasTaskId() { + return taskId_ != null; } /** - *
-     * 3. These fields should be removed.
-     * Outputs of tasks will have this.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution = 5; + * .flyteidl.core.Identifier task_id = 3; */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecution() { - return taskExecution_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecution_; + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; } /** - *
-     * 3. These fields should be removed.
-     * Outputs of tasks will have this.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution = 5; + * .flyteidl.core.Identifier task_id = 3; */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionOrBuilder() { - return getTaskExecution(); + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + return getTaskId(); } - public static final int EXECUTION_FIELD_NUMBER = 6; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier execution_; - /** - *
-     * Workflow outputs will have this.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - */ - public boolean hasExecution() { - return execution_ != null; - } - /** - *
-     * Workflow outputs will have this.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecution() { - return execution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : execution_; - } + public static final int RETRY_ATTEMPT_FIELD_NUMBER = 4; + private int retryAttempt_; /** - *
-     * Workflow outputs will have this.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution = 6; + * uint32 retry_attempt = 4; */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionOrBuilder() { - return getExecution(); + public int getRetryAttempt() { + return retryAttempt_; } - public static final int PRINCIPAL_FIELD_NUMBER = 7; + public static final int PRINCIPAL_FIELD_NUMBER = 5; private volatile java.lang.Object principal_; /** *
      * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this.
      * 
* - * string principal = 7; + * string principal = 5; */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; @@ -2998,7 +3200,7 @@ public java.lang.String getPrincipal() { * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this. * * - * string principal = 7; + * string principal = 5; */ public com.google.protobuf.ByteString getPrincipalBytes() { @@ -3014,186 +3216,65 @@ public java.lang.String getPrincipal() { } } - public static final int SHORT_DESCRIPTION_FIELD_NUMBER = 8; - private volatile java.lang.Object shortDescription_; - /** - * string short_description = 8; - */ - public java.lang.String getShortDescription() { - java.lang.Object ref = shortDescription_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shortDescription_ = s; - return s; - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - /** - * string short_description = 8; - */ - public com.google.protobuf.ByteString - getShortDescriptionBytes() { - java.lang.Object ref = shortDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shortDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workflowExecution_ != null) { + output.writeMessage(1, getWorkflowExecution()); + } + if (!getNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeId_); + } + if (taskId_ != null) { + output.writeMessage(3, getTaskId()); + } + if (retryAttempt_ != 0) { + output.writeUInt32(4, retryAttempt_); } + if (!getPrincipalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, principal_); + } + unknownFields.writeTo(output); } - public static final int USER_METADATA_FIELD_NUMBER = 10; - private com.google.protobuf.Any userMetadata_; - /** - *
-     * Additional user metadata
-     * 
- * - * .google.protobuf.Any user_metadata = 10; - */ - public boolean hasUserMetadata() { - return userMetadata_ != null; - } - /** - *
-     * Additional user metadata
-     * 
- * - * .google.protobuf.Any user_metadata = 10; - */ - public com.google.protobuf.Any getUserMetadata() { - return userMetadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : userMetadata_; - } - /** - *
-     * Additional user metadata
-     * 
- * - * .google.protobuf.Any user_metadata = 10; - */ - public com.google.protobuf.AnyOrBuilder getUserMetadataOrBuilder() { - return getUserMetadata(); - } - - public static final int METADATA_TYPE_FIELD_NUMBER = 11; - private volatile java.lang.Object metadataType_; - /** - * string metadata_type = 11; - */ - public java.lang.String getMetadataType() { - java.lang.Object ref = metadataType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metadataType_ = s; - return s; - } - } - /** - * string metadata_type = 11; - */ - public com.google.protobuf.ByteString - getMetadataTypeBytes() { - java.lang.Object ref = metadataType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metadataType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (value_ != null) { - output.writeMessage(1, getValue()); - } - if (type_ != null) { - output.writeMessage(2, getType()); - } - if (taskExecution_ != null) { - output.writeMessage(5, getTaskExecution()); - } - if (execution_ != null) { - output.writeMessage(6, getExecution()); - } - if (!getPrincipalBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, principal_); - } - if (!getShortDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, shortDescription_); - } - if (userMetadata_ != null) { - output.writeMessage(10, getUserMetadata()); - } - if (!getMetadataTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, metadataType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getValue()); - } - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getType()); - } - if (taskExecution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getTaskExecution()); - } - if (execution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getExecution()); - } - if (!getPrincipalBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, principal_); - } - if (!getShortDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, shortDescription_); - } - if (userMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getUserMetadata()); - } - if (!getMetadataTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, metadataType_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workflowExecution_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkflowExecution()); + } + if (!getNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeId_); + } + if (taskId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTaskId()); + } + if (retryAttempt_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, retryAttempt_); + } + if (!getPrincipalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, principal_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override @@ -3201,42 +3282,27 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.artifact.Artifacts.ArtifactSpec)) { + if (!(obj instanceof flyteidl.artifact.Artifacts.ArtifactSource)) { return super.equals(obj); } - flyteidl.artifact.Artifacts.ArtifactSpec other = (flyteidl.artifact.Artifacts.ArtifactSpec) obj; + flyteidl.artifact.Artifacts.ArtifactSource other = (flyteidl.artifact.Artifacts.ArtifactSource) obj; - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue() - .equals(other.getValue())) return false; - } - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) return false; - } - if (hasTaskExecution() != other.hasTaskExecution()) return false; - if (hasTaskExecution()) { - if (!getTaskExecution() - .equals(other.getTaskExecution())) return false; + if (hasWorkflowExecution() != other.hasWorkflowExecution()) return false; + if (hasWorkflowExecution()) { + if (!getWorkflowExecution() + .equals(other.getWorkflowExecution())) return false; } - if (hasExecution() != other.hasExecution()) return false; - if (hasExecution()) { - if (!getExecution() - .equals(other.getExecution())) return false; + if (!getNodeId() + .equals(other.getNodeId())) return false; + if (hasTaskId() != other.hasTaskId()) return false; + if (hasTaskId()) { + if (!getTaskId() + .equals(other.getTaskId())) return false; } + if (getRetryAttempt() + != other.getRetryAttempt()) return false; if (!getPrincipal() .equals(other.getPrincipal())) return false; - if (!getShortDescription() - .equals(other.getShortDescription())) return false; - if (hasUserMetadata() != other.hasUserMetadata()) return false; - if (hasUserMetadata()) { - if (!getUserMetadata() - .equals(other.getUserMetadata())) return false; - } - if (!getMetadataType() - .equals(other.getMetadataType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3248,100 +3314,88 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - if (hasTaskExecution()) { - hash = (37 * hash) + TASK_EXECUTION_FIELD_NUMBER; - hash = (53 * hash) + getTaskExecution().hashCode(); - } - if (hasExecution()) { - hash = (37 * hash) + EXECUTION_FIELD_NUMBER; - hash = (53 * hash) + getExecution().hashCode(); - } + if (hasWorkflowExecution()) { + hash = (37 * hash) + WORKFLOW_EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowExecution().hashCode(); + } + hash = (37 * hash) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + if (hasTaskId()) { + hash = (37 * hash) + TASK_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskId().hashCode(); + } + hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; + hash = (53 * hash) + getRetryAttempt(); hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; hash = (53 * hash) + getPrincipal().hashCode(); - hash = (37 * hash) + SHORT_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getShortDescription().hashCode(); - if (hasUserMetadata()) { - hash = (37 * hash) + USER_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getUserMetadata().hashCode(); - } - hash = (37 * hash) + METADATA_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getMetadataType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom(byte[] data) + public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.ArtifactSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseDelimitedFrom( + public static flyteidl.artifact.Artifacts.ArtifactSource parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3354,7 +3408,7 @@ public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.artifact.Artifacts.ArtifactSpec prototype) { + public static Builder newBuilder(flyteidl.artifact.Artifacts.ArtifactSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -3370,26 +3424,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.artifact.ArtifactSpec} + * Protobuf type {@code flyteidl.artifact.ArtifactSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ArtifactSpec) - flyteidl.artifact.Artifacts.ArtifactSpecOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ArtifactSource) + flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSpec_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSpec_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ArtifactSpec.class, flyteidl.artifact.Artifacts.ArtifactSpec.Builder.class); + flyteidl.artifact.Artifacts.ArtifactSource.class, flyteidl.artifact.Artifacts.ArtifactSource.Builder.class); } - // Construct using flyteidl.artifact.Artifacts.ArtifactSpec.newBuilder() + // Construct using flyteidl.artifact.Artifacts.ArtifactSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3407,41 +3461,23 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; - valueBuilder_ = null; - } - if (typeBuilder_ == null) { - type_ = null; - } else { - type_ = null; - typeBuilder_ = null; - } - if (taskExecutionBuilder_ == null) { - taskExecution_ = null; - } else { - taskExecution_ = null; - taskExecutionBuilder_ = null; - } - if (executionBuilder_ == null) { - execution_ = null; + if (workflowExecutionBuilder_ == null) { + workflowExecution_ = null; } else { - execution_ = null; - executionBuilder_ = null; + workflowExecution_ = null; + workflowExecutionBuilder_ = null; } - principal_ = ""; - - shortDescription_ = ""; + nodeId_ = ""; - if (userMetadataBuilder_ == null) { - userMetadata_ = null; + if (taskIdBuilder_ == null) { + taskId_ = null; } else { - userMetadata_ = null; - userMetadataBuilder_ = null; + taskId_ = null; + taskIdBuilder_ = null; } - metadataType_ = ""; + retryAttempt_ = 0; + + principal_ = ""; return this; } @@ -3449,17 +3485,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSpec_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSource_descriptor; } @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactSpec getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.ArtifactSpec.getDefaultInstance(); + public flyteidl.artifact.Artifacts.ArtifactSource getDefaultInstanceForType() { + return flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance(); } @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactSpec build() { - flyteidl.artifact.Artifacts.ArtifactSpec result = buildPartial(); + public flyteidl.artifact.Artifacts.ArtifactSource build() { + flyteidl.artifact.Artifacts.ArtifactSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3467,36 +3503,21 @@ public flyteidl.artifact.Artifacts.ArtifactSpec build() { } @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactSpec buildPartial() { - flyteidl.artifact.Artifacts.ArtifactSpec result = new flyteidl.artifact.Artifacts.ArtifactSpec(this); - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.build(); - } - if (typeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = typeBuilder_.build(); - } - if (taskExecutionBuilder_ == null) { - result.taskExecution_ = taskExecution_; + public flyteidl.artifact.Artifacts.ArtifactSource buildPartial() { + flyteidl.artifact.Artifacts.ArtifactSource result = new flyteidl.artifact.Artifacts.ArtifactSource(this); + if (workflowExecutionBuilder_ == null) { + result.workflowExecution_ = workflowExecution_; } else { - result.taskExecution_ = taskExecutionBuilder_.build(); + result.workflowExecution_ = workflowExecutionBuilder_.build(); } - if (executionBuilder_ == null) { - result.execution_ = execution_; + result.nodeId_ = nodeId_; + if (taskIdBuilder_ == null) { + result.taskId_ = taskId_; } else { - result.execution_ = executionBuilder_.build(); + result.taskId_ = taskIdBuilder_.build(); } + result.retryAttempt_ = retryAttempt_; result.principal_ = principal_; - result.shortDescription_ = shortDescription_; - if (userMetadataBuilder_ == null) { - result.userMetadata_ = userMetadata_; - } else { - result.userMetadata_ = userMetadataBuilder_.build(); - } - result.metadataType_ = metadataType_; onBuilt(); return result; } @@ -3535,43 +3556,33 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.artifact.Artifacts.ArtifactSpec) { - return mergeFrom((flyteidl.artifact.Artifacts.ArtifactSpec)other); + if (other instanceof flyteidl.artifact.Artifacts.ArtifactSource) { + return mergeFrom((flyteidl.artifact.Artifacts.ArtifactSource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.artifact.Artifacts.ArtifactSpec other) { - if (other == flyteidl.artifact.Artifacts.ArtifactSpec.getDefaultInstance()) return this; - if (other.hasValue()) { - mergeValue(other.getValue()); + public Builder mergeFrom(flyteidl.artifact.Artifacts.ArtifactSource other) { + if (other == flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance()) return this; + if (other.hasWorkflowExecution()) { + mergeWorkflowExecution(other.getWorkflowExecution()); } - if (other.hasType()) { - mergeType(other.getType()); + if (!other.getNodeId().isEmpty()) { + nodeId_ = other.nodeId_; + onChanged(); } - if (other.hasTaskExecution()) { - mergeTaskExecution(other.getTaskExecution()); + if (other.hasTaskId()) { + mergeTaskId(other.getTaskId()); } - if (other.hasExecution()) { - mergeExecution(other.getExecution()); + if (other.getRetryAttempt() != 0) { + setRetryAttempt(other.getRetryAttempt()); } if (!other.getPrincipal().isEmpty()) { principal_ = other.principal_; onChanged(); } - if (!other.getShortDescription().isEmpty()) { - shortDescription_ = other.shortDescription_; - onChanged(); - } - if (other.hasUserMetadata()) { - mergeUserMetadata(other.getUserMetadata()); - } - if (!other.getMetadataType().isEmpty()) { - metadataType_ = other.metadataType_; - onChanged(); - } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3587,11 +3598,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.artifact.Artifacts.ArtifactSpec parsedMessage = null; + flyteidl.artifact.Artifacts.ArtifactSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.ArtifactSpec) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.artifact.Artifacts.ArtifactSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3601,607 +3612,333 @@ public Builder mergeFrom( return this; } - private flyteidl.core.Literals.Literal value_; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecution_; private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> valueBuilder_; + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> workflowExecutionBuilder_; /** - * .flyteidl.core.Literal value = 1; + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; */ - public boolean hasValue() { - return valueBuilder_ != null || value_ != null; + public boolean hasWorkflowExecution() { + return workflowExecutionBuilder_ != null || workflowExecution_ != null; } /** - * .flyteidl.core.Literal value = 1; + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; */ - public flyteidl.core.Literals.Literal getValue() { - if (valueBuilder_ == null) { - return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecution() { + if (workflowExecutionBuilder_ == null) { + return workflowExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecution_; } else { - return valueBuilder_.getMessage(); + return workflowExecutionBuilder_.getMessage(); } } /** - * .flyteidl.core.Literal value = 1; + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; */ - public Builder setValue(flyteidl.core.Literals.Literal value) { - if (valueBuilder_ == null) { + public Builder setWorkflowExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - value_ = value; + workflowExecution_ = value; onChanged(); } else { - valueBuilder_.setMessage(value); + workflowExecutionBuilder_.setMessage(value); } return this; } /** - * .flyteidl.core.Literal value = 1; + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; */ - public Builder setValue( - flyteidl.core.Literals.Literal.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); + public Builder setWorkflowExecution( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (workflowExecutionBuilder_ == null) { + workflowExecution_ = builderForValue.build(); onChanged(); } else { - valueBuilder_.setMessage(builderForValue.build()); + workflowExecutionBuilder_.setMessage(builderForValue.build()); } return this; } /** - * .flyteidl.core.Literal value = 1; + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; */ - public Builder mergeValue(flyteidl.core.Literals.Literal value) { - if (valueBuilder_ == null) { - if (value_ != null) { - value_ = - flyteidl.core.Literals.Literal.newBuilder(value_).mergeFrom(value).buildPartial(); + public Builder mergeWorkflowExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowExecutionBuilder_ == null) { + if (workflowExecution_ != null) { + workflowExecution_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(workflowExecution_).mergeFrom(value).buildPartial(); } else { - value_ = value; + workflowExecution_ = value; } onChanged(); } else { - valueBuilder_.mergeFrom(value); + workflowExecutionBuilder_.mergeFrom(value); } return this; } /** - * .flyteidl.core.Literal value = 1; + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; */ - public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; + public Builder clearWorkflowExecution() { + if (workflowExecutionBuilder_ == null) { + workflowExecution_ = null; onChanged(); } else { - value_ = null; - valueBuilder_ = null; + workflowExecution_ = null; + workflowExecutionBuilder_ = null; } return this; } /** - * .flyteidl.core.Literal value = 1; + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; */ - public flyteidl.core.Literals.Literal.Builder getValueBuilder() { + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWorkflowExecutionBuilder() { onChanged(); - return getValueFieldBuilder().getBuilder(); + return getWorkflowExecutionFieldBuilder().getBuilder(); } /** - * .flyteidl.core.Literal value = 1; + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; */ - public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionOrBuilder() { + if (workflowExecutionBuilder_ != null) { + return workflowExecutionBuilder_.getMessageOrBuilder(); } else { - return value_ == null ? - flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + return workflowExecution_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecution_; } } /** - * .flyteidl.core.Literal value = 1; + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( - getValue(), + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getWorkflowExecutionFieldBuilder() { + if (workflowExecutionBuilder_ == null) { + workflowExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getWorkflowExecution(), getParentForChildren(), isClean()); - value_ = null; + workflowExecution_ = null; } - return valueBuilder_; + return workflowExecutionBuilder_; } - private flyteidl.core.Types.LiteralType type_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; - /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public boolean hasType() { - return typeBuilder_ != null || type_ != null; - } - /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType getType() { - if (typeBuilder_ == null) { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } else { - return typeBuilder_.getMessage(); - } - } + private java.lang.Object nodeId_ = ""; /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; + * string node_id = 2; */ - public Builder setType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; } else { - typeBuilder_.setMessage(value); + return (java.lang.String) ref; } - - return this; } /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; + * string node_id = 2; */ - public Builder setType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; } else { - typeBuilder_.setMessage(builderForValue.build()); + return (com.google.protobuf.ByteString) ref; } - - return this; } /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; + * string node_id = 2; */ - public Builder mergeType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (type_ != null) { - type_ = - flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - typeBuilder_.mergeFrom(value); - } - + public Builder setNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeId_ = value; + onChanged(); return this; } /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; + * string node_id = 2; */ - public Builder clearType() { - if (typeBuilder_ == null) { - type_ = null; - onChanged(); - } else { - type_ = null; - typeBuilder_ = null; - } - + public Builder clearNodeId() { + + nodeId_ = getDefaultInstance().getNodeId(); + onChanged(); return this; } /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; + * string node_id = 2; */ - public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { + public Builder setNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeId_ = value; onChanged(); - return getTypeFieldBuilder().getBuilder(); - } - /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null ? - flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - } - /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); - type_ = null; - } - return typeBuilder_; + return this; } - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecution_; + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> taskExecutionBuilder_; + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; /** - *
-       * 3. These fields should be removed.
-       * Outputs of tasks will have this.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution = 5; + * .flyteidl.core.Identifier task_id = 3; */ - public boolean hasTaskExecution() { - return taskExecutionBuilder_ != null || taskExecution_ != null; + public boolean hasTaskId() { + return taskIdBuilder_ != null || taskId_ != null; } /** - *
-       * 3. These fields should be removed.
-       * Outputs of tasks will have this.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution = 5; + * .flyteidl.core.Identifier task_id = 3; */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecution() { - if (taskExecutionBuilder_ == null) { - return taskExecution_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecution_; + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + if (taskIdBuilder_ == null) { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; } else { - return taskExecutionBuilder_.getMessage(); + return taskIdBuilder_.getMessage(); } } /** - *
-       * 3. These fields should be removed.
-       * Outputs of tasks will have this.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution = 5; + * .flyteidl.core.Identifier task_id = 3; */ - public Builder setTaskExecution(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (taskExecutionBuilder_ == null) { + public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - taskExecution_ = value; + taskId_ = value; onChanged(); } else { - taskExecutionBuilder_.setMessage(value); + taskIdBuilder_.setMessage(value); } return this; } /** - *
-       * 3. These fields should be removed.
-       * Outputs of tasks will have this.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution = 5; + * .flyteidl.core.Identifier task_id = 3; */ - public Builder setTaskExecution( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (taskExecutionBuilder_ == null) { - taskExecution_ = builderForValue.build(); + public Builder setTaskId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (taskIdBuilder_ == null) { + taskId_ = builderForValue.build(); onChanged(); } else { - taskExecutionBuilder_.setMessage(builderForValue.build()); + taskIdBuilder_.setMessage(builderForValue.build()); } return this; } /** - *
-       * 3. These fields should be removed.
-       * Outputs of tasks will have this.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution = 5; + * .flyteidl.core.Identifier task_id = 3; */ - public Builder mergeTaskExecution(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (taskExecutionBuilder_ == null) { - if (taskExecution_ != null) { - taskExecution_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(taskExecution_).mergeFrom(value).buildPartial(); + public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (taskId_ != null) { + taskId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); } else { - taskExecution_ = value; + taskId_ = value; } onChanged(); } else { - taskExecutionBuilder_.mergeFrom(value); + taskIdBuilder_.mergeFrom(value); } return this; } /** - *
-       * 3. These fields should be removed.
-       * Outputs of tasks will have this.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution = 5; + * .flyteidl.core.Identifier task_id = 3; */ - public Builder clearTaskExecution() { - if (taskExecutionBuilder_ == null) { - taskExecution_ = null; + public Builder clearTaskId() { + if (taskIdBuilder_ == null) { + taskId_ = null; onChanged(); } else { - taskExecution_ = null; - taskExecutionBuilder_ = null; + taskId_ = null; + taskIdBuilder_ = null; } return this; } /** - *
-       * 3. These fields should be removed.
-       * Outputs of tasks will have this.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution = 5; + * .flyteidl.core.Identifier task_id = 3; */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getTaskExecutionBuilder() { + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { onChanged(); - return getTaskExecutionFieldBuilder().getBuilder(); + return getTaskIdFieldBuilder().getBuilder(); } /** - *
-       * 3. These fields should be removed.
-       * Outputs of tasks will have this.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution = 5; + * .flyteidl.core.Identifier task_id = 3; */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionOrBuilder() { - if (taskExecutionBuilder_ != null) { - return taskExecutionBuilder_.getMessageOrBuilder(); + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + if (taskIdBuilder_ != null) { + return taskIdBuilder_.getMessageOrBuilder(); } else { - return taskExecution_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecution_; + return taskId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; } } /** - *
-       * 3. These fields should be removed.
-       * Outputs of tasks will have this.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution = 5; + * .flyteidl.core.Identifier task_id = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getTaskExecutionFieldBuilder() { - if (taskExecutionBuilder_ == null) { - taskExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - getTaskExecution(), + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getTaskIdFieldBuilder() { + if (taskIdBuilder_ == null) { + taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getTaskId(), getParentForChildren(), isClean()); - taskExecution_ = null; + taskId_ = null; } - return taskExecutionBuilder_; + return taskIdBuilder_; } - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier execution_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionBuilder_; + private int retryAttempt_ ; /** - *
-       * Workflow outputs will have this.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution = 6; + * uint32 retry_attempt = 4; */ - public boolean hasExecution() { - return executionBuilder_ != null || execution_ != null; + public int getRetryAttempt() { + return retryAttempt_; } /** - *
-       * Workflow outputs will have this.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution = 6; + * uint32 retry_attempt = 4; */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecution() { - if (executionBuilder_ == null) { - return execution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : execution_; - } else { - return executionBuilder_.getMessage(); - } - } - /** - *
-       * Workflow outputs will have this.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - */ - public Builder setExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - execution_ = value; - onChanged(); - } else { - executionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Workflow outputs will have this.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - */ - public Builder setExecution( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionBuilder_ == null) { - execution_ = builderForValue.build(); - onChanged(); - } else { - executionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Workflow outputs will have this.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - */ - public Builder mergeExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionBuilder_ == null) { - if (execution_ != null) { - execution_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(execution_).mergeFrom(value).buildPartial(); - } else { - execution_ = value; - } - onChanged(); - } else { - executionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Workflow outputs will have this.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - */ - public Builder clearExecution() { - if (executionBuilder_ == null) { - execution_ = null; - onChanged(); - } else { - execution_ = null; - executionBuilder_ = null; - } - + public Builder setRetryAttempt(int value) { + + retryAttempt_ = value; + onChanged(); return this; } /** - *
-       * Workflow outputs will have this.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution = 6; + * uint32 retry_attempt = 4; */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionBuilder() { + public Builder clearRetryAttempt() { + retryAttempt_ = 0; onChanged(); - return getExecutionFieldBuilder().getBuilder(); - } - /** - *
-       * Workflow outputs will have this.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionOrBuilder() { - if (executionBuilder_ != null) { - return executionBuilder_.getMessageOrBuilder(); - } else { - return execution_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : execution_; - } - } - /** - *
-       * Workflow outputs will have this.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionFieldBuilder() { - if (executionBuilder_ == null) { - executionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecution(), - getParentForChildren(), - isClean()); - execution_ = null; - } - return executionBuilder_; + return this; } private java.lang.Object principal_ = ""; @@ -4210,7 +3947,7 @@ public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder g * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this. * * - * string principal = 7; + * string principal = 5; */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; @@ -4229,7 +3966,7 @@ public java.lang.String getPrincipal() { * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this. * * - * string principal = 7; + * string principal = 5; */ public com.google.protobuf.ByteString getPrincipalBytes() { @@ -4249,7 +3986,7 @@ public java.lang.String getPrincipal() { * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this. * * - * string principal = 7; + * string principal = 5; */ public Builder setPrincipal( java.lang.String value) { @@ -4266,7 +4003,7 @@ public Builder setPrincipal( * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this. * * - * string principal = 7; + * string principal = 5; */ public Builder clearPrincipal() { @@ -4279,7 +4016,7 @@ public Builder clearPrincipal() { * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this. * * - * string principal = 7; + * string principal = 5; */ public Builder setPrincipalBytes( com.google.protobuf.ByteString value) { @@ -4292,380 +4029,167 @@ public Builder setPrincipalBytes( onChanged(); return this; } - - private java.lang.Object shortDescription_ = ""; - /** - * string short_description = 8; - */ - public java.lang.String getShortDescription() { - java.lang.Object ref = shortDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shortDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string short_description = 8; - */ - public com.google.protobuf.ByteString - getShortDescriptionBytes() { - java.lang.Object ref = shortDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shortDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string short_description = 8; - */ - public Builder setShortDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - shortDescription_ = value; - onChanged(); - return this; - } - /** - * string short_description = 8; - */ - public Builder clearShortDescription() { - - shortDescription_ = getDefaultInstance().getShortDescription(); - onChanged(); - return this; - } - /** - * string short_description = 8; - */ - public Builder setShortDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - shortDescription_ = value; - onChanged(); - return this; + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - private com.google.protobuf.Any userMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> userMetadataBuilder_; - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 10; - */ - public boolean hasUserMetadata() { - return userMetadataBuilder_ != null || userMetadata_ != null; - } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 10; - */ - public com.google.protobuf.Any getUserMetadata() { - if (userMetadataBuilder_ == null) { - return userMetadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : userMetadata_; - } else { - return userMetadataBuilder_.getMessage(); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 10; - */ - public Builder setUserMetadata(com.google.protobuf.Any value) { - if (userMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - userMetadata_ = value; - onChanged(); - } else { - userMetadataBuilder_.setMessage(value); - } - return this; - } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 10; - */ - public Builder setUserMetadata( - com.google.protobuf.Any.Builder builderForValue) { - if (userMetadataBuilder_ == null) { - userMetadata_ = builderForValue.build(); - onChanged(); - } else { - userMetadataBuilder_.setMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 10; - */ - public Builder mergeUserMetadata(com.google.protobuf.Any value) { - if (userMetadataBuilder_ == null) { - if (userMetadata_ != null) { - userMetadata_ = - com.google.protobuf.Any.newBuilder(userMetadata_).mergeFrom(value).buildPartial(); - } else { - userMetadata_ = value; - } - onChanged(); - } else { - userMetadataBuilder_.mergeFrom(value); - } + // @@protoc_insertion_point(builder_scope:flyteidl.artifact.ArtifactSource) + } - return this; - } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 10; - */ - public Builder clearUserMetadata() { - if (userMetadataBuilder_ == null) { - userMetadata_ = null; - onChanged(); - } else { - userMetadata_ = null; - userMetadataBuilder_ = null; - } + // @@protoc_insertion_point(class_scope:flyteidl.artifact.ArtifactSource) + private static final flyteidl.artifact.Artifacts.ArtifactSource DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ArtifactSource(); + } - return this; - } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 10; - */ - public com.google.protobuf.Any.Builder getUserMetadataBuilder() { - - onChanged(); - return getUserMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 10; - */ - public com.google.protobuf.AnyOrBuilder getUserMetadataOrBuilder() { - if (userMetadataBuilder_ != null) { - return userMetadataBuilder_.getMessageOrBuilder(); - } else { - return userMetadata_ == null ? - com.google.protobuf.Any.getDefaultInstance() : userMetadata_; - } - } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getUserMetadataFieldBuilder() { - if (userMetadataBuilder_ == null) { - userMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getUserMetadata(), - getParentForChildren(), - isClean()); - userMetadata_ = null; - } - return userMetadataBuilder_; - } - - private java.lang.Object metadataType_ = ""; - /** - * string metadata_type = 11; - */ - public java.lang.String getMetadataType() { - java.lang.Object ref = metadataType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metadataType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string metadata_type = 11; - */ - public com.google.protobuf.ByteString - getMetadataTypeBytes() { - java.lang.Object ref = metadataType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metadataType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string metadata_type = 11; - */ - public Builder setMetadataType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - metadataType_ = value; - onChanged(); - return this; - } - /** - * string metadata_type = 11; - */ - public Builder clearMetadataType() { - - metadataType_ = getDefaultInstance().getMetadataType(); - onChanged(); - return this; - } - /** - * string metadata_type = 11; - */ - public Builder setMetadataTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - metadataType_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:flyteidl.artifact.ArtifactSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ArtifactSpec) - private static final flyteidl.artifact.Artifacts.ArtifactSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ArtifactSpec(); - } - - public static flyteidl.artifact.Artifacts.ArtifactSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArtifactSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArtifactSpec(input, extensionRegistry); + public static flyteidl.artifact.Artifacts.ArtifactSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArtifactSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArtifactSource(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactSpec getDefaultInstanceForType() { + public flyteidl.artifact.Artifacts.ArtifactSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface CreateArtifactResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.CreateArtifactResponse) + public interface ArtifactSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ArtifactSpec) com.google.protobuf.MessageOrBuilder { /** - * .flyteidl.artifact.Artifact artifact = 1; + * .flyteidl.core.Literal value = 1; */ - boolean hasArtifact(); + boolean hasValue(); /** - * .flyteidl.artifact.Artifact artifact = 1; + * .flyteidl.core.Literal value = 1; */ - flyteidl.artifact.Artifacts.Artifact getArtifact(); + flyteidl.core.Literals.Literal getValue(); /** - * .flyteidl.artifact.Artifact artifact = 1; + * .flyteidl.core.Literal value = 1; */ - flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactOrBuilder(); + flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder(); + + /** + *
+     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
+     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
+     * type to all Literals is a lot of work.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + boolean hasType(); + /** + *
+     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
+     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
+     * type to all Literals is a lot of work.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + flyteidl.core.Types.LiteralType getType(); + /** + *
+     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
+     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
+     * type to all Literals is a lot of work.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); + + /** + * string short_description = 3; + */ + java.lang.String getShortDescription(); + /** + * string short_description = 3; + */ + com.google.protobuf.ByteString + getShortDescriptionBytes(); + + /** + *
+     * Additional user metadata
+     * 
+ * + * .google.protobuf.Any user_metadata = 4; + */ + boolean hasUserMetadata(); + /** + *
+     * Additional user metadata
+     * 
+ * + * .google.protobuf.Any user_metadata = 4; + */ + com.google.protobuf.Any getUserMetadata(); + /** + *
+     * Additional user metadata
+     * 
+ * + * .google.protobuf.Any user_metadata = 4; + */ + com.google.protobuf.AnyOrBuilder getUserMetadataOrBuilder(); + + /** + * string metadata_type = 5; + */ + java.lang.String getMetadataType(); + /** + * string metadata_type = 5; + */ + com.google.protobuf.ByteString + getMetadataTypeBytes(); } /** - * Protobuf type {@code flyteidl.artifact.CreateArtifactResponse} + * Protobuf type {@code flyteidl.artifact.ArtifactSpec} */ - public static final class CreateArtifactResponse extends + public static final class ArtifactSpec extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.CreateArtifactResponse) - CreateArtifactResponseOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.artifact.ArtifactSpec) + ArtifactSpecOrBuilder { private static final long serialVersionUID = 0L; - // Use CreateArtifactResponse.newBuilder() to construct. - private CreateArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ArtifactSpec.newBuilder() to construct. + private ArtifactSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateArtifactResponse() { + private ArtifactSpec() { + shortDescription_ = ""; + metadataType_ = ""; } @java.lang.Override @@ -4673,7 +4197,7 @@ private CreateArtifactResponse() { getUnknownFields() { return this.unknownFields; } - private CreateArtifactResponse( + private ArtifactSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4693,22 +4217,60 @@ private CreateArtifactResponse( done = true; break; case 10: { - flyteidl.artifact.Artifacts.Artifact.Builder subBuilder = null; - if (artifact_ != null) { - subBuilder = artifact_.toBuilder(); + flyteidl.core.Literals.Literal.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); } - artifact_ = input.readMessage(flyteidl.artifact.Artifacts.Artifact.parser(), extensionRegistry); + value_ = input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(artifact_); - artifact_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); } break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + shortDescription_ = s; + break; + } + case 34: { + com.google.protobuf.Any.Builder subBuilder = null; + if (userMetadata_ != null) { + subBuilder = userMetadata_.toBuilder(); + } + userMetadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userMetadata_); + userMetadata_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + metadataType_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } break; } @@ -4726,36 +4288,176 @@ private CreateArtifactResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactResponse_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactResponse_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.CreateArtifactResponse.class, flyteidl.artifact.Artifacts.CreateArtifactResponse.Builder.class); + flyteidl.artifact.Artifacts.ArtifactSpec.class, flyteidl.artifact.Artifacts.ArtifactSpec.Builder.class); } - public static final int ARTIFACT_FIELD_NUMBER = 1; - private flyteidl.artifact.Artifacts.Artifact artifact_; + public static final int VALUE_FIELD_NUMBER = 1; + private flyteidl.core.Literals.Literal value_; /** - * .flyteidl.artifact.Artifact artifact = 1; + * .flyteidl.core.Literal value = 1; */ - public boolean hasArtifact() { - return artifact_ != null; + public boolean hasValue() { + return value_ != null; } /** - * .flyteidl.artifact.Artifact artifact = 1; + * .flyteidl.core.Literal value = 1; */ - public flyteidl.artifact.Artifacts.Artifact getArtifact() { - return artifact_ == null ? flyteidl.artifact.Artifacts.Artifact.getDefaultInstance() : artifact_; + public flyteidl.core.Literals.Literal getValue() { + return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; } /** - * .flyteidl.artifact.Artifact artifact = 1; + * .flyteidl.core.Literal value = 1; */ - public flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactOrBuilder() { - return getArtifact(); + public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { + return getValue(); + } + + public static final int TYPE_FIELD_NUMBER = 2; + private flyteidl.core.Types.LiteralType type_; + /** + *
+     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
+     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
+     * type to all Literals is a lot of work.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public boolean hasType() { + return type_ != null; + } + /** + *
+     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
+     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
+     * type to all Literals is a lot of work.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralType getType() { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + /** + *
+     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
+     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
+     * type to all Literals is a lot of work.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + public static final int SHORT_DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object shortDescription_; + /** + * string short_description = 3; + */ + public java.lang.String getShortDescription() { + java.lang.Object ref = shortDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shortDescription_ = s; + return s; + } + } + /** + * string short_description = 3; + */ + public com.google.protobuf.ByteString + getShortDescriptionBytes() { + java.lang.Object ref = shortDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shortDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_METADATA_FIELD_NUMBER = 4; + private com.google.protobuf.Any userMetadata_; + /** + *
+     * Additional user metadata
+     * 
+ * + * .google.protobuf.Any user_metadata = 4; + */ + public boolean hasUserMetadata() { + return userMetadata_ != null; + } + /** + *
+     * Additional user metadata
+     * 
+ * + * .google.protobuf.Any user_metadata = 4; + */ + public com.google.protobuf.Any getUserMetadata() { + return userMetadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : userMetadata_; + } + /** + *
+     * Additional user metadata
+     * 
+ * + * .google.protobuf.Any user_metadata = 4; + */ + public com.google.protobuf.AnyOrBuilder getUserMetadataOrBuilder() { + return getUserMetadata(); + } + + public static final int METADATA_TYPE_FIELD_NUMBER = 5; + private volatile java.lang.Object metadataType_; + /** + * string metadata_type = 5; + */ + public java.lang.String getMetadataType() { + java.lang.Object ref = metadataType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadataType_ = s; + return s; + } + } + /** + * string metadata_type = 5; + */ + public com.google.protobuf.ByteString + getMetadataTypeBytes() { + java.lang.Object ref = metadataType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metadataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -4772,8 +4474,20 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (artifact_ != null) { - output.writeMessage(1, getArtifact()); + if (value_ != null) { + output.writeMessage(1, getValue()); + } + if (type_ != null) { + output.writeMessage(2, getType()); + } + if (!getShortDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, shortDescription_); + } + if (userMetadata_ != null) { + output.writeMessage(4, getUserMetadata()); + } + if (!getMetadataTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, metadataType_); } unknownFields.writeTo(output); } @@ -4784,9 +4498,23 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (artifact_ != null) { + if (value_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getArtifact()); + .computeMessageSize(1, getValue()); + } + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getType()); + } + if (!getShortDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, shortDescription_); + } + if (userMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUserMetadata()); + } + if (!getMetadataTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, metadataType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4798,16 +4526,30 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.artifact.Artifacts.CreateArtifactResponse)) { + if (!(obj instanceof flyteidl.artifact.Artifacts.ArtifactSpec)) { return super.equals(obj); } - flyteidl.artifact.Artifacts.CreateArtifactResponse other = (flyteidl.artifact.Artifacts.CreateArtifactResponse) obj; + flyteidl.artifact.Artifacts.ArtifactSpec other = (flyteidl.artifact.Artifacts.ArtifactSpec) obj; - if (hasArtifact() != other.hasArtifact()) return false; - if (hasArtifact()) { - if (!getArtifact() - .equals(other.getArtifact())) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) return false; + } + if (!getShortDescription() + .equals(other.getShortDescription())) return false; + if (hasUserMetadata() != other.hasUserMetadata()) return false; + if (hasUserMetadata()) { + if (!getUserMetadata() + .equals(other.getUserMetadata())) return false; + } + if (!getMetadataType() + .equals(other.getMetadataType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4819,78 +4561,90 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasArtifact()) { - hash = (37 * hash) + ARTIFACT_FIELD_NUMBER; - hash = (53 * hash) + getArtifact().hashCode(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); } + hash = (37 * hash) + SHORT_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getShortDescription().hashCode(); + if (hasUserMetadata()) { + hash = (37 * hash) + USER_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getUserMetadata().hashCode(); + } + hash = (37 * hash) + METADATA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMetadataType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom(byte[] data) + public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.ArtifactSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseDelimitedFrom( + public static flyteidl.artifact.Artifacts.ArtifactSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4903,7 +4657,7 @@ public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.artifact.Artifacts.CreateArtifactResponse prototype) { + public static Builder newBuilder(flyteidl.artifact.Artifacts.ArtifactSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -4919,26 +4673,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.artifact.CreateArtifactResponse} + * Protobuf type {@code flyteidl.artifact.ArtifactSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.CreateArtifactResponse) - flyteidl.artifact.Artifacts.CreateArtifactResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ArtifactSpec) + flyteidl.artifact.Artifacts.ArtifactSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactResponse_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactResponse_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.CreateArtifactResponse.class, flyteidl.artifact.Artifacts.CreateArtifactResponse.Builder.class); + flyteidl.artifact.Artifacts.ArtifactSpec.class, flyteidl.artifact.Artifacts.ArtifactSpec.Builder.class); } - // Construct using flyteidl.artifact.Artifacts.CreateArtifactResponse.newBuilder() + // Construct using flyteidl.artifact.Artifacts.ArtifactSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -4956,29 +4710,45 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (artifactBuilder_ == null) { - artifact_ = null; + if (valueBuilder_ == null) { + value_ = null; } else { - artifact_ = null; - artifactBuilder_ = null; + value_ = null; + valueBuilder_ = null; } + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + shortDescription_ = ""; + + if (userMetadataBuilder_ == null) { + userMetadata_ = null; + } else { + userMetadata_ = null; + userMetadataBuilder_ = null; + } + metadataType_ = ""; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactResponse_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSpec_descriptor; } @java.lang.Override - public flyteidl.artifact.Artifacts.CreateArtifactResponse getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.CreateArtifactResponse.getDefaultInstance(); + public flyteidl.artifact.Artifacts.ArtifactSpec getDefaultInstanceForType() { + return flyteidl.artifact.Artifacts.ArtifactSpec.getDefaultInstance(); } @java.lang.Override - public flyteidl.artifact.Artifacts.CreateArtifactResponse build() { - flyteidl.artifact.Artifacts.CreateArtifactResponse result = buildPartial(); + public flyteidl.artifact.Artifacts.ArtifactSpec build() { + flyteidl.artifact.Artifacts.ArtifactSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4986,13 +4756,25 @@ public flyteidl.artifact.Artifacts.CreateArtifactResponse build() { } @java.lang.Override - public flyteidl.artifact.Artifacts.CreateArtifactResponse buildPartial() { - flyteidl.artifact.Artifacts.CreateArtifactResponse result = new flyteidl.artifact.Artifacts.CreateArtifactResponse(this); - if (artifactBuilder_ == null) { - result.artifact_ = artifact_; + public flyteidl.artifact.Artifacts.ArtifactSpec buildPartial() { + flyteidl.artifact.Artifacts.ArtifactSpec result = new flyteidl.artifact.Artifacts.ArtifactSpec(this); + if (valueBuilder_ == null) { + result.value_ = value_; } else { - result.artifact_ = artifactBuilder_.build(); + result.value_ = valueBuilder_.build(); + } + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + result.shortDescription_ = shortDescription_; + if (userMetadataBuilder_ == null) { + result.userMetadata_ = userMetadata_; + } else { + result.userMetadata_ = userMetadataBuilder_.build(); } + result.metadataType_ = metadataType_; onBuilt(); return result; } @@ -5031,18 +4813,32 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.artifact.Artifacts.CreateArtifactResponse) { - return mergeFrom((flyteidl.artifact.Artifacts.CreateArtifactResponse)other); + if (other instanceof flyteidl.artifact.Artifacts.ArtifactSpec) { + return mergeFrom((flyteidl.artifact.Artifacts.ArtifactSpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.artifact.Artifacts.CreateArtifactResponse other) { - if (other == flyteidl.artifact.Artifacts.CreateArtifactResponse.getDefaultInstance()) return this; - if (other.hasArtifact()) { - mergeArtifact(other.getArtifact()); + public Builder mergeFrom(flyteidl.artifact.Artifacts.ArtifactSpec other) { + if (other == flyteidl.artifact.Artifacts.ArtifactSpec.getDefaultInstance()) return this; + if (other.hasValue()) { + mergeValue(other.getValue()); + } + if (other.hasType()) { + mergeType(other.getType()); + } + if (!other.getShortDescription().isEmpty()) { + shortDescription_ = other.shortDescription_; + onChanged(); + } + if (other.hasUserMetadata()) { + mergeUserMetadata(other.getUserMetadata()); + } + if (!other.getMetadataType().isEmpty()) { + metadataType_ = other.metadataType_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -5059,11 +4855,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.artifact.Artifacts.CreateArtifactResponse parsedMessage = null; + flyteidl.artifact.Artifacts.ArtifactSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.CreateArtifactResponse) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.artifact.Artifacts.ArtifactSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5073,131 +4869,1199 @@ public Builder mergeFrom( return this; } - private flyteidl.artifact.Artifacts.Artifact artifact_; + private flyteidl.core.Literals.Literal value_; private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder> artifactBuilder_; + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> valueBuilder_; /** - * .flyteidl.artifact.Artifact artifact = 1; + * .flyteidl.core.Literal value = 1; */ - public boolean hasArtifact() { - return artifactBuilder_ != null || artifact_ != null; + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; } /** - * .flyteidl.artifact.Artifact artifact = 1; + * .flyteidl.core.Literal value = 1; */ - public flyteidl.artifact.Artifacts.Artifact getArtifact() { - if (artifactBuilder_ == null) { - return artifact_ == null ? flyteidl.artifact.Artifacts.Artifact.getDefaultInstance() : artifact_; + public flyteidl.core.Literals.Literal getValue() { + if (valueBuilder_ == null) { + return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; } else { - return artifactBuilder_.getMessage(); + return valueBuilder_.getMessage(); } } /** - * .flyteidl.artifact.Artifact artifact = 1; + * .flyteidl.core.Literal value = 1; */ - public Builder setArtifact(flyteidl.artifact.Artifacts.Artifact value) { - if (artifactBuilder_ == null) { + public Builder setValue(flyteidl.core.Literals.Literal value) { + if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - artifact_ = value; + value_ = value; onChanged(); } else { - artifactBuilder_.setMessage(value); + valueBuilder_.setMessage(value); } return this; } /** - * .flyteidl.artifact.Artifact artifact = 1; + * .flyteidl.core.Literal value = 1; */ - public Builder setArtifact( - flyteidl.artifact.Artifacts.Artifact.Builder builderForValue) { - if (artifactBuilder_ == null) { - artifact_ = builderForValue.build(); + public Builder setValue( + flyteidl.core.Literals.Literal.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); onChanged(); } else { - artifactBuilder_.setMessage(builderForValue.build()); + valueBuilder_.setMessage(builderForValue.build()); } return this; } /** - * .flyteidl.artifact.Artifact artifact = 1; + * .flyteidl.core.Literal value = 1; */ - public Builder mergeArtifact(flyteidl.artifact.Artifacts.Artifact value) { - if (artifactBuilder_ == null) { - if (artifact_ != null) { - artifact_ = - flyteidl.artifact.Artifacts.Artifact.newBuilder(artifact_).mergeFrom(value).buildPartial(); + public Builder mergeValue(flyteidl.core.Literals.Literal value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + flyteidl.core.Literals.Literal.newBuilder(value_).mergeFrom(value).buildPartial(); } else { - artifact_ = value; + value_ = value; } onChanged(); } else { - artifactBuilder_.mergeFrom(value); + valueBuilder_.mergeFrom(value); } return this; } /** - * .flyteidl.artifact.Artifact artifact = 1; + * .flyteidl.core.Literal value = 1; */ - public Builder clearArtifact() { - if (artifactBuilder_ == null) { - artifact_ = null; + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; onChanged(); } else { - artifact_ = null; - artifactBuilder_ = null; + value_ = null; + valueBuilder_ = null; } return this; } /** - * .flyteidl.artifact.Artifact artifact = 1; + * .flyteidl.core.Literal value = 1; */ - public flyteidl.artifact.Artifacts.Artifact.Builder getArtifactBuilder() { + public flyteidl.core.Literals.Literal.Builder getValueBuilder() { onChanged(); - return getArtifactFieldBuilder().getBuilder(); + return getValueFieldBuilder().getBuilder(); } /** - * .flyteidl.artifact.Artifact artifact = 1; + * .flyteidl.core.Literal value = 1; */ - public flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactOrBuilder() { - if (artifactBuilder_ != null) { - return artifactBuilder_.getMessageOrBuilder(); + public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); } else { - return artifact_ == null ? - flyteidl.artifact.Artifacts.Artifact.getDefaultInstance() : artifact_; + return value_ == null ? + flyteidl.core.Literals.Literal.getDefaultInstance() : value_; } } /** - * .flyteidl.artifact.Artifact artifact = 1; + * .flyteidl.core.Literal value = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder> - getArtifactFieldBuilder() { - if (artifactBuilder_ == null) { - artifactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder>( - getArtifact(), + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( + getValue(), getParentForChildren(), isClean()); - artifact_ = null; + value_ = null; } - return artifactBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return valueBuilder_; } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + private flyteidl.core.Types.LiteralType type_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; + /** + *
+       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
+       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
+       * type to all Literals is a lot of work.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + *
+       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
+       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
+       * type to all Literals is a lot of work.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + *
+       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
+       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
+       * type to all Literals is a lot of work.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder setType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
+       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
+       * type to all Literals is a lot of work.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder setType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
+       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
+       * type to all Literals is a lot of work.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder mergeType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
+       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
+       * type to all Literals is a lot of work.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + *
+       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
+       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
+       * type to all Literals is a lot of work.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + *
+       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
+       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
+       * type to all Literals is a lot of work.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + } + /** + *
+       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
+       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
+       * type to all Literals is a lot of work.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + + private java.lang.Object shortDescription_ = ""; + /** + * string short_description = 3; + */ + public java.lang.String getShortDescription() { + java.lang.Object ref = shortDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shortDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string short_description = 3; + */ + public com.google.protobuf.ByteString + getShortDescriptionBytes() { + java.lang.Object ref = shortDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shortDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string short_description = 3; + */ + public Builder setShortDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + shortDescription_ = value; + onChanged(); + return this; + } + /** + * string short_description = 3; + */ + public Builder clearShortDescription() { + + shortDescription_ = getDefaultInstance().getShortDescription(); + onChanged(); + return this; + } + /** + * string short_description = 3; + */ + public Builder setShortDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + shortDescription_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Any userMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> userMetadataBuilder_; + /** + *
+       * Additional user metadata
+       * 
+ * + * .google.protobuf.Any user_metadata = 4; + */ + public boolean hasUserMetadata() { + return userMetadataBuilder_ != null || userMetadata_ != null; + } + /** + *
+       * Additional user metadata
+       * 
+ * + * .google.protobuf.Any user_metadata = 4; + */ + public com.google.protobuf.Any getUserMetadata() { + if (userMetadataBuilder_ == null) { + return userMetadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : userMetadata_; + } else { + return userMetadataBuilder_.getMessage(); + } + } + /** + *
+       * Additional user metadata
+       * 
+ * + * .google.protobuf.Any user_metadata = 4; + */ + public Builder setUserMetadata(com.google.protobuf.Any value) { + if (userMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userMetadata_ = value; + onChanged(); + } else { + userMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Additional user metadata
+       * 
+ * + * .google.protobuf.Any user_metadata = 4; + */ + public Builder setUserMetadata( + com.google.protobuf.Any.Builder builderForValue) { + if (userMetadataBuilder_ == null) { + userMetadata_ = builderForValue.build(); + onChanged(); + } else { + userMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Additional user metadata
+       * 
+ * + * .google.protobuf.Any user_metadata = 4; + */ + public Builder mergeUserMetadata(com.google.protobuf.Any value) { + if (userMetadataBuilder_ == null) { + if (userMetadata_ != null) { + userMetadata_ = + com.google.protobuf.Any.newBuilder(userMetadata_).mergeFrom(value).buildPartial(); + } else { + userMetadata_ = value; + } + onChanged(); + } else { + userMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Additional user metadata
+       * 
+ * + * .google.protobuf.Any user_metadata = 4; + */ + public Builder clearUserMetadata() { + if (userMetadataBuilder_ == null) { + userMetadata_ = null; + onChanged(); + } else { + userMetadata_ = null; + userMetadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Additional user metadata
+       * 
+ * + * .google.protobuf.Any user_metadata = 4; + */ + public com.google.protobuf.Any.Builder getUserMetadataBuilder() { + + onChanged(); + return getUserMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Additional user metadata
+       * 
+ * + * .google.protobuf.Any user_metadata = 4; + */ + public com.google.protobuf.AnyOrBuilder getUserMetadataOrBuilder() { + if (userMetadataBuilder_ != null) { + return userMetadataBuilder_.getMessageOrBuilder(); + } else { + return userMetadata_ == null ? + com.google.protobuf.Any.getDefaultInstance() : userMetadata_; + } + } + /** + *
+       * Additional user metadata
+       * 
+ * + * .google.protobuf.Any user_metadata = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> + getUserMetadataFieldBuilder() { + if (userMetadataBuilder_ == null) { + userMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( + getUserMetadata(), + getParentForChildren(), + isClean()); + userMetadata_ = null; + } + return userMetadataBuilder_; + } + + private java.lang.Object metadataType_ = ""; + /** + * string metadata_type = 5; + */ + public java.lang.String getMetadataType() { + java.lang.Object ref = metadataType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadataType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string metadata_type = 5; + */ + public com.google.protobuf.ByteString + getMetadataTypeBytes() { + java.lang.Object ref = metadataType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metadataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string metadata_type = 5; + */ + public Builder setMetadataType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metadataType_ = value; + onChanged(); + return this; + } + /** + * string metadata_type = 5; + */ + public Builder clearMetadataType() { + + metadataType_ = getDefaultInstance().getMetadataType(); + onChanged(); + return this; + } + /** + * string metadata_type = 5; + */ + public Builder setMetadataTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metadataType_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.artifact.ArtifactSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.artifact.ArtifactSpec) + private static final flyteidl.artifact.Artifacts.ArtifactSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ArtifactSpec(); + } + + public static flyteidl.artifact.Artifacts.ArtifactSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArtifactSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArtifactSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.artifact.Artifacts.ArtifactSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateArtifactResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.artifact.CreateArtifactResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.artifact.Artifact artifact = 1; + */ + boolean hasArtifact(); + /** + * .flyteidl.artifact.Artifact artifact = 1; + */ + flyteidl.artifact.Artifacts.Artifact getArtifact(); + /** + * .flyteidl.artifact.Artifact artifact = 1; + */ + flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.artifact.CreateArtifactResponse} + */ + public static final class CreateArtifactResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.artifact.CreateArtifactResponse) + CreateArtifactResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateArtifactResponse.newBuilder() to construct. + private CreateArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateArtifactResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateArtifactResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.artifact.Artifacts.Artifact.Builder subBuilder = null; + if (artifact_ != null) { + subBuilder = artifact_.toBuilder(); + } + artifact_ = input.readMessage(flyteidl.artifact.Artifacts.Artifact.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(artifact_); + artifact_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.artifact.Artifacts.CreateArtifactResponse.class, flyteidl.artifact.Artifacts.CreateArtifactResponse.Builder.class); + } + + public static final int ARTIFACT_FIELD_NUMBER = 1; + private flyteidl.artifact.Artifacts.Artifact artifact_; + /** + * .flyteidl.artifact.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return artifact_ != null; + } + /** + * .flyteidl.artifact.Artifact artifact = 1; + */ + public flyteidl.artifact.Artifacts.Artifact getArtifact() { + return artifact_ == null ? flyteidl.artifact.Artifacts.Artifact.getDefaultInstance() : artifact_; + } + /** + * .flyteidl.artifact.Artifact artifact = 1; + */ + public flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactOrBuilder() { + return getArtifact(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (artifact_ != null) { + output.writeMessage(1, getArtifact()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (artifact_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getArtifact()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.artifact.Artifacts.CreateArtifactResponse)) { + return super.equals(obj); + } + flyteidl.artifact.Artifacts.CreateArtifactResponse other = (flyteidl.artifact.Artifacts.CreateArtifactResponse) obj; + + if (hasArtifact() != other.hasArtifact()) return false; + if (hasArtifact()) { + if (!getArtifact() + .equals(other.getArtifact())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasArtifact()) { + hash = (37 * hash) + ARTIFACT_FIELD_NUMBER; + hash = (53 * hash) + getArtifact().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.artifact.Artifacts.CreateArtifactResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.artifact.CreateArtifactResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.artifact.CreateArtifactResponse) + flyteidl.artifact.Artifacts.CreateArtifactResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.artifact.Artifacts.CreateArtifactResponse.class, flyteidl.artifact.Artifacts.CreateArtifactResponse.Builder.class); + } + + // Construct using flyteidl.artifact.Artifacts.CreateArtifactResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (artifactBuilder_ == null) { + artifact_ = null; + } else { + artifact_ = null; + artifactBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactResponse_descriptor; + } + + @java.lang.Override + public flyteidl.artifact.Artifacts.CreateArtifactResponse getDefaultInstanceForType() { + return flyteidl.artifact.Artifacts.CreateArtifactResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.artifact.Artifacts.CreateArtifactResponse build() { + flyteidl.artifact.Artifacts.CreateArtifactResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.artifact.Artifacts.CreateArtifactResponse buildPartial() { + flyteidl.artifact.Artifacts.CreateArtifactResponse result = new flyteidl.artifact.Artifacts.CreateArtifactResponse(this); + if (artifactBuilder_ == null) { + result.artifact_ = artifact_; + } else { + result.artifact_ = artifactBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.artifact.Artifacts.CreateArtifactResponse) { + return mergeFrom((flyteidl.artifact.Artifacts.CreateArtifactResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.artifact.Artifacts.CreateArtifactResponse other) { + if (other == flyteidl.artifact.Artifacts.CreateArtifactResponse.getDefaultInstance()) return this; + if (other.hasArtifact()) { + mergeArtifact(other.getArtifact()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.artifact.Artifacts.CreateArtifactResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.artifact.Artifacts.CreateArtifactResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.artifact.Artifacts.Artifact artifact_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder> artifactBuilder_; + /** + * .flyteidl.artifact.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return artifactBuilder_ != null || artifact_ != null; + } + /** + * .flyteidl.artifact.Artifact artifact = 1; + */ + public flyteidl.artifact.Artifacts.Artifact getArtifact() { + if (artifactBuilder_ == null) { + return artifact_ == null ? flyteidl.artifact.Artifacts.Artifact.getDefaultInstance() : artifact_; + } else { + return artifactBuilder_.getMessage(); + } + } + /** + * .flyteidl.artifact.Artifact artifact = 1; + */ + public Builder setArtifact(flyteidl.artifact.Artifacts.Artifact value) { + if (artifactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifact_ = value; + onChanged(); + } else { + artifactBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.artifact.Artifact artifact = 1; + */ + public Builder setArtifact( + flyteidl.artifact.Artifacts.Artifact.Builder builderForValue) { + if (artifactBuilder_ == null) { + artifact_ = builderForValue.build(); + onChanged(); + } else { + artifactBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.artifact.Artifact artifact = 1; + */ + public Builder mergeArtifact(flyteidl.artifact.Artifacts.Artifact value) { + if (artifactBuilder_ == null) { + if (artifact_ != null) { + artifact_ = + flyteidl.artifact.Artifacts.Artifact.newBuilder(artifact_).mergeFrom(value).buildPartial(); + } else { + artifact_ = value; + } + onChanged(); + } else { + artifactBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.artifact.Artifact artifact = 1; + */ + public Builder clearArtifact() { + if (artifactBuilder_ == null) { + artifact_ = null; + onChanged(); + } else { + artifact_ = null; + artifactBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.artifact.Artifact artifact = 1; + */ + public flyteidl.artifact.Artifacts.Artifact.Builder getArtifactBuilder() { + + onChanged(); + return getArtifactFieldBuilder().getBuilder(); + } + /** + * .flyteidl.artifact.Artifact artifact = 1; + */ + public flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactOrBuilder() { + if (artifactBuilder_ != null) { + return artifactBuilder_.getMessageOrBuilder(); + } else { + return artifact_ == null ? + flyteidl.artifact.Artifacts.Artifact.getDefaultInstance() : artifact_; + } + } + /** + * .flyteidl.artifact.Artifact artifact = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder> + getArtifactFieldBuilder() { + if (artifactBuilder_ == null) { + artifactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder>( + getArtifact(), + getParentForChildren(), + isClean()); + artifact_ = null; + } + return artifactBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } @@ -6537,45 +7401,42 @@ public flyteidl.artifact.Artifacts.GetArtifactResponse getDefaultInstanceForType } - public interface ListArtifactNamesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ListArtifactNamesRequest) + public interface SearchOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.artifact.SearchOptions) com.google.protobuf.MessageOrBuilder { /** - * string project = 1; - */ - java.lang.String getProject(); - /** - * string project = 1; + *
+     * If true, this means a strict partition search. meaning if you don't specify the partition
+     * field, that will mean, non-partitioned, rather than any partition.
+     * 
+ * + * bool strict_partitions = 1; */ - com.google.protobuf.ByteString - getProjectBytes(); + boolean getStrictPartitions(); /** - * string domain = 2; - */ - java.lang.String getDomain(); - /** - * string domain = 2; + *
+     * If true, only one artifact per key will be returned. It will be the latest one by creation time.
+     * 
+ * + * bool latest_by_key = 2; */ - com.google.protobuf.ByteString - getDomainBytes(); + boolean getLatestByKey(); } /** - * Protobuf type {@code flyteidl.artifact.ListArtifactNamesRequest} + * Protobuf type {@code flyteidl.artifact.SearchOptions} */ - public static final class ListArtifactNamesRequest extends + public static final class SearchOptions extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.ListArtifactNamesRequest) - ListArtifactNamesRequestOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.artifact.SearchOptions) + SearchOptionsOrBuilder { private static final long serialVersionUID = 0L; - // Use ListArtifactNamesRequest.newBuilder() to construct. - private ListArtifactNamesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use SearchOptions.newBuilder() to construct. + private SearchOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListArtifactNamesRequest() { - project_ = ""; - domain_ = ""; + private SearchOptions() { } @java.lang.Override @@ -6583,7 +7444,7 @@ private ListArtifactNamesRequest() { getUnknownFields() { return this.unknownFields; } - private ListArtifactNamesRequest( + private SearchOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6602,16 +7463,14 @@ private ListArtifactNamesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: { - project_ = s; + strictPartitions_ = input.readBool(); break; } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 16: { - domain_ = s; + latestByKey_ = input.readBool(); break; } default: { @@ -6635,83 +7494,42 @@ private ListArtifactNamesRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactNamesRequest_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactNamesRequest_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ListArtifactNamesRequest.class, flyteidl.artifact.Artifacts.ListArtifactNamesRequest.Builder.class); + flyteidl.artifact.Artifacts.SearchOptions.class, flyteidl.artifact.Artifacts.SearchOptions.Builder.class); } - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } + public static final int STRICT_PARTITIONS_FIELD_NUMBER = 1; + private boolean strictPartitions_; /** - * string project = 1; + *
+     * If true, this means a strict partition search. meaning if you don't specify the partition
+     * field, that will mean, non-partitioned, rather than any partition.
+     * 
+ * + * bool strict_partitions = 1; */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public boolean getStrictPartitions() { + return strictPartitions_; } - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } + public static final int LATEST_BY_KEY_FIELD_NUMBER = 2; + private boolean latestByKey_; /** - * string domain = 2; + *
+     * If true, only one artifact per key will be returned. It will be the latest one by creation time.
+     * 
+ * + * bool latest_by_key = 2; */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public boolean getLatestByKey() { + return latestByKey_; } private byte memoizedIsInitialized = -1; @@ -6728,11 +7546,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + if (strictPartitions_ != false) { + output.writeBool(1, strictPartitions_); } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + if (latestByKey_ != false) { + output.writeBool(2, latestByKey_); } unknownFields.writeTo(output); } @@ -6743,11 +7561,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + if (strictPartitions_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, strictPartitions_); } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + if (latestByKey_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, latestByKey_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -6759,15 +7579,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.artifact.Artifacts.ListArtifactNamesRequest)) { + if (!(obj instanceof flyteidl.artifact.Artifacts.SearchOptions)) { return super.equals(obj); } - flyteidl.artifact.Artifacts.ListArtifactNamesRequest other = (flyteidl.artifact.Artifacts.ListArtifactNamesRequest) obj; + flyteidl.artifact.Artifacts.SearchOptions other = (flyteidl.artifact.Artifacts.SearchOptions) obj; - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; + if (getStrictPartitions() + != other.getStrictPartitions()) return false; + if (getLatestByKey() + != other.getLatestByKey()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -6779,78 +7599,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + STRICT_PARTITIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getStrictPartitions()); + hash = (37 * hash) + LATEST_BY_KEY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getLatestByKey()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static flyteidl.artifact.Artifacts.ListArtifactNamesRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesRequest parseFrom(byte[] data) + public static flyteidl.artifact.Artifacts.SearchOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesRequest parseFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.SearchOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesRequest parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.SearchOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesRequest parseDelimitedFrom( + public static flyteidl.artifact.Artifacts.SearchOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6863,7 +7685,7 @@ public static flyteidl.artifact.Artifacts.ListArtifactNamesRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.artifact.Artifacts.ListArtifactNamesRequest prototype) { + public static Builder newBuilder(flyteidl.artifact.Artifacts.SearchOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -6879,26 +7701,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.artifact.ListArtifactNamesRequest} + * Protobuf type {@code flyteidl.artifact.SearchOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ListArtifactNamesRequest) - flyteidl.artifact.Artifacts.ListArtifactNamesRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.artifact.SearchOptions) + flyteidl.artifact.Artifacts.SearchOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactNamesRequest_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactNamesRequest_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ListArtifactNamesRequest.class, flyteidl.artifact.Artifacts.ListArtifactNamesRequest.Builder.class); + flyteidl.artifact.Artifacts.SearchOptions.class, flyteidl.artifact.Artifacts.SearchOptions.Builder.class); } - // Construct using flyteidl.artifact.Artifacts.ListArtifactNamesRequest.newBuilder() + // Construct using flyteidl.artifact.Artifacts.SearchOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -6916,9 +7738,9 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - project_ = ""; + strictPartitions_ = false; - domain_ = ""; + latestByKey_ = false; return this; } @@ -6926,17 +7748,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactNamesRequest_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchOptions_descriptor; } @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactNamesRequest getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.ListArtifactNamesRequest.getDefaultInstance(); + public flyteidl.artifact.Artifacts.SearchOptions getDefaultInstanceForType() { + return flyteidl.artifact.Artifacts.SearchOptions.getDefaultInstance(); } @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactNamesRequest build() { - flyteidl.artifact.Artifacts.ListArtifactNamesRequest result = buildPartial(); + public flyteidl.artifact.Artifacts.SearchOptions build() { + flyteidl.artifact.Artifacts.SearchOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6944,10 +7766,10 @@ public flyteidl.artifact.Artifacts.ListArtifactNamesRequest build() { } @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactNamesRequest buildPartial() { - flyteidl.artifact.Artifacts.ListArtifactNamesRequest result = new flyteidl.artifact.Artifacts.ListArtifactNamesRequest(this); - result.project_ = project_; - result.domain_ = domain_; + public flyteidl.artifact.Artifacts.SearchOptions buildPartial() { + flyteidl.artifact.Artifacts.SearchOptions result = new flyteidl.artifact.Artifacts.SearchOptions(this); + result.strictPartitions_ = strictPartitions_; + result.latestByKey_ = latestByKey_; onBuilt(); return result; } @@ -6986,23 +7808,21 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.artifact.Artifacts.ListArtifactNamesRequest) { - return mergeFrom((flyteidl.artifact.Artifacts.ListArtifactNamesRequest)other); + if (other instanceof flyteidl.artifact.Artifacts.SearchOptions) { + return mergeFrom((flyteidl.artifact.Artifacts.SearchOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.artifact.Artifacts.ListArtifactNamesRequest other) { - if (other == flyteidl.artifact.Artifacts.ListArtifactNamesRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); + public Builder mergeFrom(flyteidl.artifact.Artifacts.SearchOptions other) { + if (other == flyteidl.artifact.Artifacts.SearchOptions.getDefaultInstance()) return this; + if (other.getStrictPartitions() != false) { + setStrictPartitions(other.getStrictPartitions()); } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); + if (other.getLatestByKey() != false) { + setLatestByKey(other.getLatestByKey()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -7019,11 +7839,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.artifact.Artifacts.ListArtifactNamesRequest parsedMessage = null; + flyteidl.artifact.Artifacts.SearchOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.ListArtifactNamesRequest) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.artifact.Artifacts.SearchOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7033,140 +7853,81 @@ public Builder mergeFrom( return this; } - private java.lang.Object project_ = ""; - /** - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } + private boolean strictPartitions_ ; + /** + *
+       * If true, this means a strict partition search. meaning if you don't specify the partition
+       * field, that will mean, non-partitioned, rather than any partition.
+       * 
+ * + * bool strict_partitions = 1; + */ + public boolean getStrictPartitions() { + return strictPartitions_; } /** - * string domain = 2; + *
+       * If true, this means a strict partition search. meaning if you don't specify the partition
+       * field, that will mean, non-partitioned, rather than any partition.
+       * 
+ * + * bool strict_partitions = 1; */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setStrictPartitions(boolean value) { + + strictPartitions_ = value; + onChanged(); + return this; } /** - * string domain = 2; + *
+       * If true, this means a strict partition search. meaning if you don't specify the partition
+       * field, that will mean, non-partitioned, rather than any partition.
+       * 
+ * + * bool strict_partitions = 1; */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; + public Builder clearStrictPartitions() { + + strictPartitions_ = false; onChanged(); return this; } + + private boolean latestByKey_ ; + /** + *
+       * If true, only one artifact per key will be returned. It will be the latest one by creation time.
+       * 
+ * + * bool latest_by_key = 2; + */ + public boolean getLatestByKey() { + return latestByKey_; + } /** - * string domain = 2; + *
+       * If true, only one artifact per key will be returned. It will be the latest one by creation time.
+       * 
+ * + * bool latest_by_key = 2; */ - public Builder clearDomain() { + public Builder setLatestByKey(boolean value) { - domain_ = getDefaultInstance().getDomain(); + latestByKey_ = value; onChanged(); return this; } /** - * string domain = 2; + *
+       * If true, only one artifact per key will be returned. It will be the latest one by creation time.
+       * 
+ * + * bool latest_by_key = 2; */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearLatestByKey() { - domain_ = value; + latestByKey_ = false; onChanged(); return this; } @@ -7183,88 +7944,140 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.artifact.ListArtifactNamesRequest) + // @@protoc_insertion_point(builder_scope:flyteidl.artifact.SearchOptions) } - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ListArtifactNamesRequest) - private static final flyteidl.artifact.Artifacts.ListArtifactNamesRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchOptions) + private static final flyteidl.artifact.Artifacts.SearchOptions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ListArtifactNamesRequest(); + DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.SearchOptions(); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesRequest getDefaultInstance() { + public static flyteidl.artifact.Artifacts.SearchOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ListArtifactNamesRequest parsePartialFrom( + public SearchOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListArtifactNamesRequest(input, extensionRegistry); + return new SearchOptions(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactNamesRequest getDefaultInstanceForType() { + public flyteidl.artifact.Artifacts.SearchOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ListArtifactNamesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ListArtifactNamesResponse) + public interface SearchArtifactsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.artifact.SearchArtifactsRequest) com.google.protobuf.MessageOrBuilder { /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * .flyteidl.core.ArtifactKey artifact_key = 1; + */ + boolean hasArtifactKey(); + /** + * .flyteidl.core.ArtifactKey artifact_key = 1; + */ + flyteidl.core.ArtifactId.ArtifactKey getArtifactKey(); + /** + * .flyteidl.core.ArtifactKey artifact_key = 1; */ - java.util.List - getArtifactKeysList(); + flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder(); + /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * .flyteidl.core.Partitions partitions = 2; */ - flyteidl.core.ArtifactId.ArtifactKey getArtifactKeys(int index); + boolean hasPartitions(); /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * .flyteidl.core.Partitions partitions = 2; */ - int getArtifactKeysCount(); + flyteidl.core.ArtifactId.Partitions getPartitions(); /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * .flyteidl.core.Partitions partitions = 2; */ - java.util.List - getArtifactKeysOrBuilderList(); + flyteidl.core.ArtifactId.PartitionsOrBuilder getPartitionsOrBuilder(); + /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * string principal = 3; */ - flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeysOrBuilder( - int index); + java.lang.String getPrincipal(); + /** + * string principal = 3; + */ + com.google.protobuf.ByteString + getPrincipalBytes(); + + /** + * string version = 4; + */ + java.lang.String getVersion(); + /** + * string version = 4; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + * .flyteidl.artifact.SearchOptions options = 5; + */ + boolean hasOptions(); + /** + * .flyteidl.artifact.SearchOptions options = 5; + */ + flyteidl.artifact.Artifacts.SearchOptions getOptions(); + /** + * .flyteidl.artifact.SearchOptions options = 5; + */ + flyteidl.artifact.Artifacts.SearchOptionsOrBuilder getOptionsOrBuilder(); + + /** + * string token = 6; + */ + java.lang.String getToken(); + /** + * string token = 6; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + * int32 limit = 7; + */ + int getLimit(); } /** - * Protobuf type {@code flyteidl.artifact.ListArtifactNamesResponse} + * Protobuf type {@code flyteidl.artifact.SearchArtifactsRequest} */ - public static final class ListArtifactNamesResponse extends + public static final class SearchArtifactsRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.ListArtifactNamesResponse) - ListArtifactNamesResponseOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.artifact.SearchArtifactsRequest) + SearchArtifactsRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use ListArtifactNamesResponse.newBuilder() to construct. - private ListArtifactNamesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use SearchArtifactsRequest.newBuilder() to construct. + private SearchArtifactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListArtifactNamesResponse() { - artifactKeys_ = java.util.Collections.emptyList(); + private SearchArtifactsRequest() { + principal_ = ""; + version_ = ""; + token_ = ""; } @java.lang.Override @@ -7272,7 +8085,7 @@ private ListArtifactNamesResponse() { getUnknownFields() { return this.unknownFields; } - private ListArtifactNamesResponse( + private SearchArtifactsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7292,12 +8105,65 @@ private ListArtifactNamesResponse( done = true; break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - artifactKeys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + flyteidl.core.ArtifactId.ArtifactKey.Builder subBuilder = null; + if (artifactKey_ != null) { + subBuilder = artifactKey_.toBuilder(); + } + artifactKey_ = input.readMessage(flyteidl.core.ArtifactId.ArtifactKey.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(artifactKey_); + artifactKey_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.ArtifactId.Partitions.Builder subBuilder = null; + if (partitions_ != null) { + subBuilder = partitions_.toBuilder(); + } + partitions_ = input.readMessage(flyteidl.core.ArtifactId.Partitions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partitions_); + partitions_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + principal_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 42: { + flyteidl.artifact.Artifacts.SearchOptions.Builder subBuilder = null; + if (options_ != null) { + subBuilder = options_.toBuilder(); + } + options_ = input.readMessage(flyteidl.artifact.Artifacts.SearchOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(options_); + options_ = subBuilder.buildPartial(); } - artifactKeys_.add( - input.readMessage(flyteidl.core.ArtifactId.ArtifactKey.parser(), extensionRegistry)); + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 56: { + + limit_ = input.readInt32(); break; } default: { @@ -7315,59 +8181,195 @@ private ListArtifactNamesResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - artifactKeys_ = java.util.Collections.unmodifiableList(artifactKeys_); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactNamesResponse_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactNamesResponse_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ListArtifactNamesResponse.class, flyteidl.artifact.Artifacts.ListArtifactNamesResponse.Builder.class); + flyteidl.artifact.Artifacts.SearchArtifactsRequest.class, flyteidl.artifact.Artifacts.SearchArtifactsRequest.Builder.class); + } + + public static final int ARTIFACT_KEY_FIELD_NUMBER = 1; + private flyteidl.core.ArtifactId.ArtifactKey artifactKey_; + /** + * .flyteidl.core.ArtifactKey artifact_key = 1; + */ + public boolean hasArtifactKey() { + return artifactKey_ != null; + } + /** + * .flyteidl.core.ArtifactKey artifact_key = 1; + */ + public flyteidl.core.ArtifactId.ArtifactKey getArtifactKey() { + return artifactKey_ == null ? flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; + } + /** + * .flyteidl.core.ArtifactKey artifact_key = 1; + */ + public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder() { + return getArtifactKey(); + } + + public static final int PARTITIONS_FIELD_NUMBER = 2; + private flyteidl.core.ArtifactId.Partitions partitions_; + /** + * .flyteidl.core.Partitions partitions = 2; + */ + public boolean hasPartitions() { + return partitions_ != null; + } + /** + * .flyteidl.core.Partitions partitions = 2; + */ + public flyteidl.core.ArtifactId.Partitions getPartitions() { + return partitions_ == null ? flyteidl.core.ArtifactId.Partitions.getDefaultInstance() : partitions_; + } + /** + * .flyteidl.core.Partitions partitions = 2; + */ + public flyteidl.core.ArtifactId.PartitionsOrBuilder getPartitionsOrBuilder() { + return getPartitions(); + } + + public static final int PRINCIPAL_FIELD_NUMBER = 3; + private volatile java.lang.Object principal_; + /** + * string principal = 3; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } + } + /** + * string principal = 3; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object version_; + /** + * string version = 4; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * string version = 4; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int ARTIFACT_KEYS_FIELD_NUMBER = 1; - private java.util.List artifactKeys_; + public static final int OPTIONS_FIELD_NUMBER = 5; + private flyteidl.artifact.Artifacts.SearchOptions options_; + /** + * .flyteidl.artifact.SearchOptions options = 5; + */ + public boolean hasOptions() { + return options_ != null; + } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * .flyteidl.artifact.SearchOptions options = 5; */ - public java.util.List getArtifactKeysList() { - return artifactKeys_; + public flyteidl.artifact.Artifacts.SearchOptions getOptions() { + return options_ == null ? flyteidl.artifact.Artifacts.SearchOptions.getDefaultInstance() : options_; } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * .flyteidl.artifact.SearchOptions options = 5; */ - public java.util.List - getArtifactKeysOrBuilderList() { - return artifactKeys_; + public flyteidl.artifact.Artifacts.SearchOptionsOrBuilder getOptionsOrBuilder() { + return getOptions(); } + + public static final int TOKEN_FIELD_NUMBER = 6; + private volatile java.lang.Object token_; /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * string token = 6; */ - public int getArtifactKeysCount() { - return artifactKeys_.size(); + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * string token = 6; */ - public flyteidl.core.ArtifactId.ArtifactKey getArtifactKeys(int index) { - return artifactKeys_.get(index); + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + + public static final int LIMIT_FIELD_NUMBER = 7; + private int limit_; /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * int32 limit = 7; */ - public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeysOrBuilder( - int index) { - return artifactKeys_.get(index); + public int getLimit() { + return limit_; } private byte memoizedIsInitialized = -1; @@ -7384,8 +8386,26 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < artifactKeys_.size(); i++) { - output.writeMessage(1, artifactKeys_.get(i)); + if (artifactKey_ != null) { + output.writeMessage(1, getArtifactKey()); + } + if (partitions_ != null) { + output.writeMessage(2, getPartitions()); + } + if (!getPrincipalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, principal_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); + } + if (options_ != null) { + output.writeMessage(5, getOptions()); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, token_); + } + if (limit_ != 0) { + output.writeInt32(7, limit_); } unknownFields.writeTo(output); } @@ -7396,9 +8416,30 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < artifactKeys_.size(); i++) { + if (artifactKey_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getArtifactKey()); + } + if (partitions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPartitions()); + } + if (!getPrincipalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, principal_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); + } + if (options_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOptions()); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, token_); + } + if (limit_ != 0) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, artifactKeys_.get(i)); + .computeInt32Size(7, limit_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -7410,13 +8451,34 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.artifact.Artifacts.ListArtifactNamesResponse)) { + if (!(obj instanceof flyteidl.artifact.Artifacts.SearchArtifactsRequest)) { return super.equals(obj); } - flyteidl.artifact.Artifacts.ListArtifactNamesResponse other = (flyteidl.artifact.Artifacts.ListArtifactNamesResponse) obj; + flyteidl.artifact.Artifacts.SearchArtifactsRequest other = (flyteidl.artifact.Artifacts.SearchArtifactsRequest) obj; - if (!getArtifactKeysList() - .equals(other.getArtifactKeysList())) return false; + if (hasArtifactKey() != other.hasArtifactKey()) return false; + if (hasArtifactKey()) { + if (!getArtifactKey() + .equals(other.getArtifactKey())) return false; + } + if (hasPartitions() != other.hasPartitions()) return false; + if (hasPartitions()) { + if (!getPartitions() + .equals(other.getPartitions())) return false; + } + if (!getPrincipal() + .equals(other.getPrincipal())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (hasOptions() != other.hasOptions()) return false; + if (hasOptions()) { + if (!getOptions() + .equals(other.getOptions())) return false; + } + if (!getToken() + .equals(other.getToken())) return false; + if (getLimit() + != other.getLimit()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -7428,78 +8490,94 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getArtifactKeysCount() > 0) { - hash = (37 * hash) + ARTIFACT_KEYS_FIELD_NUMBER; - hash = (53 * hash) + getArtifactKeysList().hashCode(); + if (hasArtifactKey()) { + hash = (37 * hash) + ARTIFACT_KEY_FIELD_NUMBER; + hash = (53 * hash) + getArtifactKey().hashCode(); + } + if (hasPartitions()) { + hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; + hash = (53 * hash) + getPartitions().hashCode(); + } + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + if (hasOptions()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptions().hashCode(); } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static flyteidl.artifact.Artifacts.ListArtifactNamesResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesResponse parseFrom(byte[] data) + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesResponse parseFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesResponse parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesResponse parseDelimitedFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -7512,7 +8590,7 @@ public static flyteidl.artifact.Artifacts.ListArtifactNamesResponse parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.artifact.Artifacts.ListArtifactNamesResponse prototype) { + public static Builder newBuilder(flyteidl.artifact.Artifacts.SearchArtifactsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -7528,428 +8606,797 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.artifact.ListArtifactNamesResponse} + * Protobuf type {@code flyteidl.artifact.SearchArtifactsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ListArtifactNamesResponse) - flyteidl.artifact.Artifacts.ListArtifactNamesResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.artifact.SearchArtifactsRequest) + flyteidl.artifact.Artifacts.SearchArtifactsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactNamesResponse_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.artifact.Artifacts.SearchArtifactsRequest.class, flyteidl.artifact.Artifacts.SearchArtifactsRequest.Builder.class); + } + + // Construct using flyteidl.artifact.Artifacts.SearchArtifactsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (artifactKeyBuilder_ == null) { + artifactKey_ = null; + } else { + artifactKey_ = null; + artifactKeyBuilder_ = null; + } + if (partitionsBuilder_ == null) { + partitions_ = null; + } else { + partitions_ = null; + partitionsBuilder_ = null; + } + principal_ = ""; + + version_ = ""; + + if (optionsBuilder_ == null) { + options_ = null; + } else { + options_ = null; + optionsBuilder_ = null; + } + token_ = ""; + + limit_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor; + } + + @java.lang.Override + public flyteidl.artifact.Artifacts.SearchArtifactsRequest getDefaultInstanceForType() { + return flyteidl.artifact.Artifacts.SearchArtifactsRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.artifact.Artifacts.SearchArtifactsRequest build() { + flyteidl.artifact.Artifacts.SearchArtifactsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.artifact.Artifacts.SearchArtifactsRequest buildPartial() { + flyteidl.artifact.Artifacts.SearchArtifactsRequest result = new flyteidl.artifact.Artifacts.SearchArtifactsRequest(this); + if (artifactKeyBuilder_ == null) { + result.artifactKey_ = artifactKey_; + } else { + result.artifactKey_ = artifactKeyBuilder_.build(); + } + if (partitionsBuilder_ == null) { + result.partitions_ = partitions_; + } else { + result.partitions_ = partitionsBuilder_.build(); + } + result.principal_ = principal_; + result.version_ = version_; + if (optionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = optionsBuilder_.build(); + } + result.token_ = token_; + result.limit_ = limit_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.artifact.Artifacts.SearchArtifactsRequest) { + return mergeFrom((flyteidl.artifact.Artifacts.SearchArtifactsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.artifact.Artifacts.SearchArtifactsRequest other) { + if (other == flyteidl.artifact.Artifacts.SearchArtifactsRequest.getDefaultInstance()) return this; + if (other.hasArtifactKey()) { + mergeArtifactKey(other.getArtifactKey()); + } + if (other.hasPartitions()) { + mergePartitions(other.getPartitions()); + } + if (!other.getPrincipal().isEmpty()) { + principal_ = other.principal_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactNamesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ListArtifactNamesResponse.class, flyteidl.artifact.Artifacts.ListArtifactNamesResponse.Builder.class); + public final boolean isInitialized() { + return true; } - // Construct using flyteidl.artifact.Artifacts.ListArtifactNamesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.artifact.Artifacts.SearchArtifactsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.artifact.Artifacts.SearchArtifactsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + private flyteidl.core.ArtifactId.ArtifactKey artifactKey_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder> artifactKeyBuilder_; + /** + * .flyteidl.core.ArtifactKey artifact_key = 1; + */ + public boolean hasArtifactKey() { + return artifactKeyBuilder_ != null || artifactKey_ != null; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getArtifactKeysFieldBuilder(); + /** + * .flyteidl.core.ArtifactKey artifact_key = 1; + */ + public flyteidl.core.ArtifactId.ArtifactKey getArtifactKey() { + if (artifactKeyBuilder_ == null) { + return artifactKey_ == null ? flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; + } else { + return artifactKeyBuilder_.getMessage(); } } - @java.lang.Override - public Builder clear() { - super.clear(); - if (artifactKeysBuilder_ == null) { - artifactKeys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + /** + * .flyteidl.core.ArtifactKey artifact_key = 1; + */ + public Builder setArtifactKey(flyteidl.core.ArtifactId.ArtifactKey value) { + if (artifactKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactKey_ = value; + onChanged(); } else { - artifactKeysBuilder_.clear(); + artifactKeyBuilder_.setMessage(value); } + return this; } + /** + * .flyteidl.core.ArtifactKey artifact_key = 1; + */ + public Builder setArtifactKey( + flyteidl.core.ArtifactId.ArtifactKey.Builder builderForValue) { + if (artifactKeyBuilder_ == null) { + artifactKey_ = builderForValue.build(); + onChanged(); + } else { + artifactKeyBuilder_.setMessage(builderForValue.build()); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactNamesResponse_descriptor; + return this; } + /** + * .flyteidl.core.ArtifactKey artifact_key = 1; + */ + public Builder mergeArtifactKey(flyteidl.core.ArtifactId.ArtifactKey value) { + if (artifactKeyBuilder_ == null) { + if (artifactKey_ != null) { + artifactKey_ = + flyteidl.core.ArtifactId.ArtifactKey.newBuilder(artifactKey_).mergeFrom(value).buildPartial(); + } else { + artifactKey_ = value; + } + onChanged(); + } else { + artifactKeyBuilder_.mergeFrom(value); + } - @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactNamesResponse getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.ListArtifactNamesResponse.getDefaultInstance(); + return this; } + /** + * .flyteidl.core.ArtifactKey artifact_key = 1; + */ + public Builder clearArtifactKey() { + if (artifactKeyBuilder_ == null) { + artifactKey_ = null; + onChanged(); + } else { + artifactKey_ = null; + artifactKeyBuilder_ = null; + } - @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactNamesResponse build() { - flyteidl.artifact.Artifacts.ListArtifactNamesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + return this; + } + /** + * .flyteidl.core.ArtifactKey artifact_key = 1; + */ + public flyteidl.core.ArtifactId.ArtifactKey.Builder getArtifactKeyBuilder() { + + onChanged(); + return getArtifactKeyFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.ArtifactKey artifact_key = 1; + */ + public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder() { + if (artifactKeyBuilder_ != null) { + return artifactKeyBuilder_.getMessageOrBuilder(); + } else { + return artifactKey_ == null ? + flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; } - return result; + } + /** + * .flyteidl.core.ArtifactKey artifact_key = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder> + getArtifactKeyFieldBuilder() { + if (artifactKeyBuilder_ == null) { + artifactKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder>( + getArtifactKey(), + getParentForChildren(), + isClean()); + artifactKey_ = null; + } + return artifactKeyBuilder_; } - @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactNamesResponse buildPartial() { - flyteidl.artifact.Artifacts.ListArtifactNamesResponse result = new flyteidl.artifact.Artifacts.ListArtifactNamesResponse(this); - int from_bitField0_ = bitField0_; - if (artifactKeysBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - artifactKeys_ = java.util.Collections.unmodifiableList(artifactKeys_); - bitField0_ = (bitField0_ & ~0x00000001); + private flyteidl.core.ArtifactId.Partitions partitions_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.ArtifactId.Partitions, flyteidl.core.ArtifactId.Partitions.Builder, flyteidl.core.ArtifactId.PartitionsOrBuilder> partitionsBuilder_; + /** + * .flyteidl.core.Partitions partitions = 2; + */ + public boolean hasPartitions() { + return partitionsBuilder_ != null || partitions_ != null; + } + /** + * .flyteidl.core.Partitions partitions = 2; + */ + public flyteidl.core.ArtifactId.Partitions getPartitions() { + if (partitionsBuilder_ == null) { + return partitions_ == null ? flyteidl.core.ArtifactId.Partitions.getDefaultInstance() : partitions_; + } else { + return partitionsBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Partitions partitions = 2; + */ + public Builder setPartitions(flyteidl.core.ArtifactId.Partitions value) { + if (partitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - result.artifactKeys_ = artifactKeys_; + partitions_ = value; + onChanged(); } else { - result.artifactKeys_ = artifactKeysBuilder_.build(); + partitionsBuilder_.setMessage(value); } - onBuilt(); - return result; + + return this; } + /** + * .flyteidl.core.Partitions partitions = 2; + */ + public Builder setPartitions( + flyteidl.core.ArtifactId.Partitions.Builder builderForValue) { + if (partitionsBuilder_ == null) { + partitions_ = builderForValue.build(); + onChanged(); + } else { + partitionsBuilder_.setMessage(builderForValue.build()); + } - @java.lang.Override - public Builder clone() { - return super.clone(); + return this; } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + /** + * .flyteidl.core.Partitions partitions = 2; + */ + public Builder mergePartitions(flyteidl.core.ArtifactId.Partitions value) { + if (partitionsBuilder_ == null) { + if (partitions_ != null) { + partitions_ = + flyteidl.core.ArtifactId.Partitions.newBuilder(partitions_).mergeFrom(value).buildPartial(); + } else { + partitions_ = value; + } + onChanged(); + } else { + partitionsBuilder_.mergeFrom(value); + } + + return this; } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * .flyteidl.core.Partitions partitions = 2; + */ + public Builder clearPartitions() { + if (partitionsBuilder_ == null) { + partitions_ = null; + onChanged(); + } else { + partitions_ = null; + partitionsBuilder_ = null; + } + + return this; } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * .flyteidl.core.Partitions partitions = 2; + */ + public flyteidl.core.ArtifactId.Partitions.Builder getPartitionsBuilder() { + + onChanged(); + return getPartitionsFieldBuilder().getBuilder(); } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * .flyteidl.core.Partitions partitions = 2; + */ + public flyteidl.core.ArtifactId.PartitionsOrBuilder getPartitionsOrBuilder() { + if (partitionsBuilder_ != null) { + return partitionsBuilder_.getMessageOrBuilder(); + } else { + return partitions_ == null ? + flyteidl.core.ArtifactId.Partitions.getDefaultInstance() : partitions_; + } } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * .flyteidl.core.Partitions partitions = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.ArtifactId.Partitions, flyteidl.core.ArtifactId.Partitions.Builder, flyteidl.core.ArtifactId.PartitionsOrBuilder> + getPartitionsFieldBuilder() { + if (partitionsBuilder_ == null) { + partitionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.ArtifactId.Partitions, flyteidl.core.ArtifactId.Partitions.Builder, flyteidl.core.ArtifactId.PartitionsOrBuilder>( + getPartitions(), + getParentForChildren(), + isClean()); + partitions_ = null; + } + return partitionsBuilder_; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.artifact.Artifacts.ListArtifactNamesResponse) { - return mergeFrom((flyteidl.artifact.Artifacts.ListArtifactNamesResponse)other); + + private java.lang.Object principal_ = ""; + /** + * string principal = 3; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string principal = 3; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; } else { - super.mergeFrom(other); - return this; + return (com.google.protobuf.ByteString) ref; } } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.ListArtifactNamesResponse other) { - if (other == flyteidl.artifact.Artifacts.ListArtifactNamesResponse.getDefaultInstance()) return this; - if (artifactKeysBuilder_ == null) { - if (!other.artifactKeys_.isEmpty()) { - if (artifactKeys_.isEmpty()) { - artifactKeys_ = other.artifactKeys_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArtifactKeysIsMutable(); - artifactKeys_.addAll(other.artifactKeys_); - } - onChanged(); - } - } else { - if (!other.artifactKeys_.isEmpty()) { - if (artifactKeysBuilder_.isEmpty()) { - artifactKeysBuilder_.dispose(); - artifactKeysBuilder_ = null; - artifactKeys_ = other.artifactKeys_; - bitField0_ = (bitField0_ & ~0x00000001); - artifactKeysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getArtifactKeysFieldBuilder() : null; - } else { - artifactKeysBuilder_.addAllMessages(other.artifactKeys_); - } - } - } - this.mergeUnknownFields(other.unknownFields); + /** + * string principal = 3; + */ + public Builder setPrincipal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + principal_ = value; onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - flyteidl.artifact.Artifacts.ListArtifactNamesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.ListArtifactNamesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + /** + * string principal = 3; + */ + public Builder clearPrincipal() { + + principal_ = getDefaultInstance().getPrincipal(); + onChanged(); return this; } - private int bitField0_; - - private java.util.List artifactKeys_ = - java.util.Collections.emptyList(); - private void ensureArtifactKeysIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - artifactKeys_ = new java.util.ArrayList(artifactKeys_); - bitField0_ |= 0x00000001; - } + /** + * string principal = 3; + */ + public Builder setPrincipalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + principal_ = value; + onChanged(); + return this; } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder> artifactKeysBuilder_; - + private java.lang.Object version_ = ""; /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * string version = 4; */ - public java.util.List getArtifactKeysList() { - if (artifactKeysBuilder_ == null) { - return java.util.Collections.unmodifiableList(artifactKeys_); + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; } else { - return artifactKeysBuilder_.getMessageList(); + return (java.lang.String) ref; } } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * string version = 4; */ - public int getArtifactKeysCount() { - if (artifactKeysBuilder_ == null) { - return artifactKeys_.size(); + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; } else { - return artifactKeysBuilder_.getCount(); + return (com.google.protobuf.ByteString) ref; } } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * string version = 4; */ - public flyteidl.core.ArtifactId.ArtifactKey getArtifactKeys(int index) { - if (artifactKeysBuilder_ == null) { - return artifactKeys_.get(index); - } else { - return artifactKeysBuilder_.getMessage(index); - } + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * string version = 4; */ - public Builder setArtifactKeys( - int index, flyteidl.core.ArtifactId.ArtifactKey value) { - if (artifactKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactKeysIsMutable(); - artifactKeys_.set(index, value); - onChanged(); - } else { - artifactKeysBuilder_.setMessage(index, value); - } + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); return this; } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * string version = 4; */ - public Builder setArtifactKeys( - int index, flyteidl.core.ArtifactId.ArtifactKey.Builder builderForValue) { - if (artifactKeysBuilder_ == null) { - ensureArtifactKeysIsMutable(); - artifactKeys_.set(index, builderForValue.build()); - onChanged(); - } else { - artifactKeysBuilder_.setMessage(index, builderForValue.build()); - } + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); return this; } + + private flyteidl.artifact.Artifacts.SearchOptions options_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.artifact.Artifacts.SearchOptions, flyteidl.artifact.Artifacts.SearchOptions.Builder, flyteidl.artifact.Artifacts.SearchOptionsOrBuilder> optionsBuilder_; /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * .flyteidl.artifact.SearchOptions options = 5; */ - public Builder addArtifactKeys(flyteidl.core.ArtifactId.ArtifactKey value) { - if (artifactKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactKeysIsMutable(); - artifactKeys_.add(value); - onChanged(); + public boolean hasOptions() { + return optionsBuilder_ != null || options_ != null; + } + /** + * .flyteidl.artifact.SearchOptions options = 5; + */ + public flyteidl.artifact.Artifacts.SearchOptions getOptions() { + if (optionsBuilder_ == null) { + return options_ == null ? flyteidl.artifact.Artifacts.SearchOptions.getDefaultInstance() : options_; } else { - artifactKeysBuilder_.addMessage(value); + return optionsBuilder_.getMessage(); } - return this; } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * .flyteidl.artifact.SearchOptions options = 5; */ - public Builder addArtifactKeys( - int index, flyteidl.core.ArtifactId.ArtifactKey value) { - if (artifactKeysBuilder_ == null) { + public Builder setOptions(flyteidl.artifact.Artifacts.SearchOptions value) { + if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureArtifactKeysIsMutable(); - artifactKeys_.add(index, value); + options_ = value; onChanged(); } else { - artifactKeysBuilder_.addMessage(index, value); + optionsBuilder_.setMessage(value); } + return this; } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * .flyteidl.artifact.SearchOptions options = 5; */ - public Builder addArtifactKeys( - flyteidl.core.ArtifactId.ArtifactKey.Builder builderForValue) { - if (artifactKeysBuilder_ == null) { - ensureArtifactKeysIsMutable(); - artifactKeys_.add(builderForValue.build()); + public Builder setOptions( + flyteidl.artifact.Artifacts.SearchOptions.Builder builderForValue) { + if (optionsBuilder_ == null) { + options_ = builderForValue.build(); onChanged(); } else { - artifactKeysBuilder_.addMessage(builderForValue.build()); + optionsBuilder_.setMessage(builderForValue.build()); } + return this; } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * .flyteidl.artifact.SearchOptions options = 5; */ - public Builder addArtifactKeys( - int index, flyteidl.core.ArtifactId.ArtifactKey.Builder builderForValue) { - if (artifactKeysBuilder_ == null) { - ensureArtifactKeysIsMutable(); - artifactKeys_.add(index, builderForValue.build()); + public Builder mergeOptions(flyteidl.artifact.Artifacts.SearchOptions value) { + if (optionsBuilder_ == null) { + if (options_ != null) { + options_ = + flyteidl.artifact.Artifacts.SearchOptions.newBuilder(options_).mergeFrom(value).buildPartial(); + } else { + options_ = value; + } onChanged(); } else { - artifactKeysBuilder_.addMessage(index, builderForValue.build()); + optionsBuilder_.mergeFrom(value); } + return this; } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * .flyteidl.artifact.SearchOptions options = 5; */ - public Builder addAllArtifactKeys( - java.lang.Iterable values) { - if (artifactKeysBuilder_ == null) { - ensureArtifactKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, artifactKeys_); + public Builder clearOptions() { + if (optionsBuilder_ == null) { + options_ = null; onChanged(); } else { - artifactKeysBuilder_.addAllMessages(values); + options_ = null; + optionsBuilder_ = null; } + return this; } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * .flyteidl.artifact.SearchOptions options = 5; */ - public Builder clearArtifactKeys() { - if (artifactKeysBuilder_ == null) { - artifactKeys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - artifactKeysBuilder_.clear(); - } - return this; + public flyteidl.artifact.Artifacts.SearchOptions.Builder getOptionsBuilder() { + + onChanged(); + return getOptionsFieldBuilder().getBuilder(); } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * .flyteidl.artifact.SearchOptions options = 5; */ - public Builder removeArtifactKeys(int index) { - if (artifactKeysBuilder_ == null) { - ensureArtifactKeysIsMutable(); - artifactKeys_.remove(index); - onChanged(); + public flyteidl.artifact.Artifacts.SearchOptionsOrBuilder getOptionsOrBuilder() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilder(); } else { - artifactKeysBuilder_.remove(index); + return options_ == null ? + flyteidl.artifact.Artifacts.SearchOptions.getDefaultInstance() : options_; } - return this; } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * .flyteidl.artifact.SearchOptions options = 5; */ - public flyteidl.core.ArtifactId.ArtifactKey.Builder getArtifactKeysBuilder( - int index) { - return getArtifactKeysFieldBuilder().getBuilder(index); + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.artifact.Artifacts.SearchOptions, flyteidl.artifact.Artifacts.SearchOptions.Builder, flyteidl.artifact.Artifacts.SearchOptionsOrBuilder> + getOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.artifact.Artifacts.SearchOptions, flyteidl.artifact.Artifacts.SearchOptions.Builder, flyteidl.artifact.Artifacts.SearchOptionsOrBuilder>( + getOptions(), + getParentForChildren(), + isClean()); + options_ = null; + } + return optionsBuilder_; } + + private java.lang.Object token_ = ""; /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * string token = 6; */ - public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeysOrBuilder( - int index) { - if (artifactKeysBuilder_ == null) { - return artifactKeys_.get(index); } else { - return artifactKeysBuilder_.getMessageOrBuilder(index); + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; } } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * string token = 6; */ - public java.util.List - getArtifactKeysOrBuilderList() { - if (artifactKeysBuilder_ != null) { - return artifactKeysBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; } else { - return java.util.Collections.unmodifiableList(artifactKeys_); + return (com.google.protobuf.ByteString) ref; } } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * string token = 6; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + * string token = 6; */ - public flyteidl.core.ArtifactId.ArtifactKey.Builder addArtifactKeysBuilder() { - return getArtifactKeysFieldBuilder().addBuilder( - flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance()); + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; } /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * string token = 6; */ - public flyteidl.core.ArtifactId.ArtifactKey.Builder addArtifactKeysBuilder( - int index) { - return getArtifactKeysFieldBuilder().addBuilder( - index, flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance()); + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; } + + private int limit_ ; /** - * repeated .flyteidl.core.ArtifactKey artifact_keys = 1; + * int32 limit = 7; */ - public java.util.List - getArtifactKeysBuilderList() { - return getArtifactKeysFieldBuilder().getBuilderList(); + public int getLimit() { + return limit_; } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder> - getArtifactKeysFieldBuilder() { - if (artifactKeysBuilder_ == null) { - artifactKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder>( - artifactKeys_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - artifactKeys_ = null; - } - return artifactKeysBuilder_; + /** + * int32 limit = 7; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + * int32 limit = 7; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -7964,102 +9411,126 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.artifact.ListArtifactNamesResponse) + // @@protoc_insertion_point(builder_scope:flyteidl.artifact.SearchArtifactsRequest) } - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ListArtifactNamesResponse) - private static final flyteidl.artifact.Artifacts.ListArtifactNamesResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchArtifactsRequest) + private static final flyteidl.artifact.Artifacts.SearchArtifactsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ListArtifactNamesResponse(); + DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.SearchArtifactsRequest(); } - public static flyteidl.artifact.Artifacts.ListArtifactNamesResponse getDefaultInstance() { + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ListArtifactNamesResponse parsePartialFrom( + public SearchArtifactsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListArtifactNamesResponse(input, extensionRegistry); + return new SearchArtifactsRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactNamesResponse getDefaultInstanceForType() { + public flyteidl.artifact.Artifacts.SearchArtifactsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface SearchArtifactsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.SearchArtifactsRequest) + public interface SearchArtifactsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.artifact.SearchArtifactsResponse) com.google.protobuf.MessageOrBuilder { /** - * .flyteidl.core.ArtifactKey artifact_key = 1; + *
+     * If artifact specs are not requested, the resultant artifacts may be empty.
+     * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - boolean hasArtifactKey(); + java.util.List + getArtifactsList(); /** - * .flyteidl.core.ArtifactKey artifact_key = 1; + *
+     * If artifact specs are not requested, the resultant artifacts may be empty.
+     * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - flyteidl.core.ArtifactId.ArtifactKey getArtifactKey(); + flyteidl.artifact.Artifacts.Artifact getArtifacts(int index); /** - * .flyteidl.core.ArtifactKey artifact_key = 1; + *
+     * If artifact specs are not requested, the resultant artifacts may be empty.
+     * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder(); - + int getArtifactsCount(); /** - * string filters = 2; + *
+     * If artifact specs are not requested, the resultant artifacts may be empty.
+     * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - java.lang.String getFilters(); + java.util.List + getArtifactsOrBuilderList(); /** - * string filters = 2; + *
+     * If artifact specs are not requested, the resultant artifacts may be empty.
+     * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - com.google.protobuf.ByteString - getFiltersBytes(); + flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactsOrBuilder( + int index); /** - * string token = 3; + *
+     * continuation token if relevant.
+     * 
+ * + * string token = 2; */ java.lang.String getToken(); /** - * string token = 3; + *
+     * continuation token if relevant.
+     * 
+ * + * string token = 2; */ com.google.protobuf.ByteString getTokenBytes(); - - /** - * int32 limit = 4; - */ - int getLimit(); } /** - * Protobuf type {@code flyteidl.artifact.SearchArtifactsRequest} + * Protobuf type {@code flyteidl.artifact.SearchArtifactsResponse} */ - public static final class SearchArtifactsRequest extends + public static final class SearchArtifactsResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.SearchArtifactsRequest) - SearchArtifactsRequestOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.artifact.SearchArtifactsResponse) + SearchArtifactsResponseOrBuilder { private static final long serialVersionUID = 0L; - // Use SearchArtifactsRequest.newBuilder() to construct. - private SearchArtifactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use SearchArtifactsResponse.newBuilder() to construct. + private SearchArtifactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchArtifactsRequest() { - filters_ = ""; + private SearchArtifactsResponse() { + artifacts_ = java.util.Collections.emptyList(); token_ = ""; } @@ -8068,7 +9539,7 @@ private SearchArtifactsRequest() { getUnknownFields() { return this.unknownFields; } - private SearchArtifactsRequest( + private SearchArtifactsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8088,35 +9559,20 @@ private SearchArtifactsRequest( done = true; break; case 10: { - flyteidl.core.ArtifactId.ArtifactKey.Builder subBuilder = null; - if (artifactKey_ != null) { - subBuilder = artifactKey_.toBuilder(); - } - artifactKey_ = input.readMessage(flyteidl.core.ArtifactId.ArtifactKey.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(artifactKey_); - artifactKey_ = subBuilder.buildPartial(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + artifacts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - + artifacts_.add( + input.readMessage(flyteidl.artifact.Artifacts.Artifact.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); - filters_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - token_ = s; break; } - case 32: { - - limit_ = input.readInt32(); - break; - } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -8132,82 +9588,90 @@ private SearchArtifactsRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + artifacts_ = java.util.Collections.unmodifiableList(artifacts_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.SearchArtifactsRequest.class, flyteidl.artifact.Artifacts.SearchArtifactsRequest.Builder.class); + flyteidl.artifact.Artifacts.SearchArtifactsResponse.class, flyteidl.artifact.Artifacts.SearchArtifactsResponse.Builder.class); } - public static final int ARTIFACT_KEY_FIELD_NUMBER = 1; - private flyteidl.core.ArtifactId.ArtifactKey artifactKey_; + private int bitField0_; + public static final int ARTIFACTS_FIELD_NUMBER = 1; + private java.util.List artifacts_; /** - * .flyteidl.core.ArtifactKey artifact_key = 1; + *
+     * If artifact specs are not requested, the resultant artifacts may be empty.
+     * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public boolean hasArtifactKey() { - return artifactKey_ != null; + public java.util.List getArtifactsList() { + return artifacts_; } /** - * .flyteidl.core.ArtifactKey artifact_key = 1; + *
+     * If artifact specs are not requested, the resultant artifacts may be empty.
+     * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public flyteidl.core.ArtifactId.ArtifactKey getArtifactKey() { - return artifactKey_ == null ? flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; + public java.util.List + getArtifactsOrBuilderList() { + return artifacts_; } /** - * .flyteidl.core.ArtifactKey artifact_key = 1; + *
+     * If artifact specs are not requested, the resultant artifacts may be empty.
+     * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder() { - return getArtifactKey(); + public int getArtifactsCount() { + return artifacts_.size(); } - - public static final int FILTERS_FIELD_NUMBER = 2; - private volatile java.lang.Object filters_; /** - * string filters = 2; + *
+     * If artifact specs are not requested, the resultant artifacts may be empty.
+     * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } + public flyteidl.artifact.Artifacts.Artifact getArtifacts(int index) { + return artifacts_.get(index); } /** - * string filters = 2; + *
+     * If artifact specs are not requested, the resultant artifacts may be empty.
+     * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactsOrBuilder( + int index) { + return artifacts_.get(index); } - public static final int TOKEN_FIELD_NUMBER = 3; + public static final int TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object token_; /** - * string token = 3; + *
+     * continuation token if relevant.
+     * 
+ * + * string token = 2; */ public java.lang.String getToken() { java.lang.Object ref = token_; @@ -8222,7 +9686,11 @@ public java.lang.String getToken() { } } /** - * string token = 3; + *
+     * continuation token if relevant.
+     * 
+ * + * string token = 2; */ public com.google.protobuf.ByteString getTokenBytes() { @@ -8238,15 +9706,6 @@ public java.lang.String getToken() { } } - public static final int LIMIT_FIELD_NUMBER = 4; - private int limit_; - /** - * int32 limit = 4; - */ - public int getLimit() { - return limit_; - } - private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -8261,17 +9720,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (artifactKey_ != null) { - output.writeMessage(1, getArtifactKey()); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filters_); + for (int i = 0; i < artifacts_.size(); i++) { + output.writeMessage(1, artifacts_.get(i)); } if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); - } - if (limit_ != 0) { - output.writeInt32(4, limit_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); } unknownFields.writeTo(output); } @@ -8282,19 +9735,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (artifactKey_ != null) { + for (int i = 0; i < artifacts_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getArtifactKey()); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filters_); + .computeMessageSize(1, artifacts_.get(i)); } if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, limit_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -8306,22 +9752,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.artifact.Artifacts.SearchArtifactsRequest)) { + if (!(obj instanceof flyteidl.artifact.Artifacts.SearchArtifactsResponse)) { return super.equals(obj); } - flyteidl.artifact.Artifacts.SearchArtifactsRequest other = (flyteidl.artifact.Artifacts.SearchArtifactsRequest) obj; + flyteidl.artifact.Artifacts.SearchArtifactsResponse other = (flyteidl.artifact.Artifacts.SearchArtifactsResponse) obj; - if (hasArtifactKey() != other.hasArtifactKey()) return false; - if (hasArtifactKey()) { - if (!getArtifactKey() - .equals(other.getArtifactKey())) return false; - } - if (!getFilters() - .equals(other.getFilters())) return false; + if (!getArtifactsList() + .equals(other.getArtifactsList())) return false; if (!getToken() .equals(other.getToken())) return false; - if (getLimit() - != other.getLimit()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -8333,84 +9772,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasArtifactKey()) { - hash = (37 * hash) + ARTIFACT_KEY_FIELD_NUMBER; - hash = (53 * hash) + getArtifactKey().hashCode(); + if (getArtifactsCount() > 0) { + hash = (37 * hash) + ARTIFACTS_FIELD_NUMBER; + hash = (53 * hash) + getArtifactsList().hashCode(); } - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); hash = (37 * hash) + TOKEN_FIELD_NUMBER; hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom(byte[] data) + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseDelimitedFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -8423,7 +9858,7 @@ public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.artifact.Artifacts.SearchArtifactsRequest prototype) { + public static Builder newBuilder(flyteidl.artifact.Artifacts.SearchArtifactsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -8439,26 +9874,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.artifact.SearchArtifactsRequest} + * Protobuf type {@code flyteidl.artifact.SearchArtifactsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.SearchArtifactsRequest) - flyteidl.artifact.Artifacts.SearchArtifactsRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.artifact.SearchArtifactsResponse) + flyteidl.artifact.Artifacts.SearchArtifactsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.SearchArtifactsRequest.class, flyteidl.artifact.Artifacts.SearchArtifactsRequest.Builder.class); + flyteidl.artifact.Artifacts.SearchArtifactsResponse.class, flyteidl.artifact.Artifacts.SearchArtifactsResponse.Builder.class); } - // Construct using flyteidl.artifact.Artifacts.SearchArtifactsRequest.newBuilder() + // Construct using flyteidl.artifact.Artifacts.SearchArtifactsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -8471,40 +9906,37 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getArtifactsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - if (artifactKeyBuilder_ == null) { - artifactKey_ = null; + if (artifactsBuilder_ == null) { + artifacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); } else { - artifactKey_ = null; - artifactKeyBuilder_ = null; + artifactsBuilder_.clear(); } - filters_ = ""; - token_ = ""; - limit_ = 0; - return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor; } @java.lang.Override - public flyteidl.artifact.Artifacts.SearchArtifactsRequest getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.SearchArtifactsRequest.getDefaultInstance(); + public flyteidl.artifact.Artifacts.SearchArtifactsResponse getDefaultInstanceForType() { + return flyteidl.artifact.Artifacts.SearchArtifactsResponse.getDefaultInstance(); } @java.lang.Override - public flyteidl.artifact.Artifacts.SearchArtifactsRequest build() { - flyteidl.artifact.Artifacts.SearchArtifactsRequest result = buildPartial(); + public flyteidl.artifact.Artifacts.SearchArtifactsResponse build() { + flyteidl.artifact.Artifacts.SearchArtifactsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8512,16 +9944,21 @@ public flyteidl.artifact.Artifacts.SearchArtifactsRequest build() { } @java.lang.Override - public flyteidl.artifact.Artifacts.SearchArtifactsRequest buildPartial() { - flyteidl.artifact.Artifacts.SearchArtifactsRequest result = new flyteidl.artifact.Artifacts.SearchArtifactsRequest(this); - if (artifactKeyBuilder_ == null) { - result.artifactKey_ = artifactKey_; + public flyteidl.artifact.Artifacts.SearchArtifactsResponse buildPartial() { + flyteidl.artifact.Artifacts.SearchArtifactsResponse result = new flyteidl.artifact.Artifacts.SearchArtifactsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (artifactsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + artifacts_ = java.util.Collections.unmodifiableList(artifacts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.artifacts_ = artifacts_; } else { - result.artifactKey_ = artifactKeyBuilder_.build(); + result.artifacts_ = artifactsBuilder_.build(); } - result.filters_ = filters_; result.token_ = token_; - result.limit_ = limit_; + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -8560,30 +9997,46 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.artifact.Artifacts.SearchArtifactsRequest) { - return mergeFrom((flyteidl.artifact.Artifacts.SearchArtifactsRequest)other); + if (other instanceof flyteidl.artifact.Artifacts.SearchArtifactsResponse) { + return mergeFrom((flyteidl.artifact.Artifacts.SearchArtifactsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.artifact.Artifacts.SearchArtifactsRequest other) { - if (other == flyteidl.artifact.Artifacts.SearchArtifactsRequest.getDefaultInstance()) return this; - if (other.hasArtifactKey()) { - mergeArtifactKey(other.getArtifactKey()); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); + public Builder mergeFrom(flyteidl.artifact.Artifacts.SearchArtifactsResponse other) { + if (other == flyteidl.artifact.Artifacts.SearchArtifactsResponse.getDefaultInstance()) return this; + if (artifactsBuilder_ == null) { + if (!other.artifacts_.isEmpty()) { + if (artifacts_.isEmpty()) { + artifacts_ = other.artifacts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureArtifactsIsMutable(); + artifacts_.addAll(other.artifacts_); + } + onChanged(); + } + } else { + if (!other.artifacts_.isEmpty()) { + if (artifactsBuilder_.isEmpty()) { + artifactsBuilder_.dispose(); + artifactsBuilder_ = null; + artifacts_ = other.artifacts_; + bitField0_ = (bitField0_ & ~0x00000001); + artifactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getArtifactsFieldBuilder() : null; + } else { + artifactsBuilder_.addAllMessages(other.artifacts_); + } + } } if (!other.getToken().isEmpty()) { token_ = other.token_; onChanged(); } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -8599,11 +10052,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.artifact.Artifacts.SearchArtifactsRequest parsedMessage = null; + flyteidl.artifact.Artifacts.SearchArtifactsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.SearchArtifactsRequest) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.artifact.Artifacts.SearchArtifactsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -8612,196 +10065,327 @@ public Builder mergeFrom( } return this; } + private int bitField0_; + + private java.util.List artifacts_ = + java.util.Collections.emptyList(); + private void ensureArtifactsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + artifacts_ = new java.util.ArrayList(artifacts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder> artifactsBuilder_; - private flyteidl.core.ArtifactId.ArtifactKey artifactKey_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder> artifactKeyBuilder_; /** - * .flyteidl.core.ArtifactKey artifact_key = 1; + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public boolean hasArtifactKey() { - return artifactKeyBuilder_ != null || artifactKey_ != null; + public java.util.List getArtifactsList() { + if (artifactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(artifacts_); + } else { + return artifactsBuilder_.getMessageList(); + } } /** - * .flyteidl.core.ArtifactKey artifact_key = 1; + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public flyteidl.core.ArtifactId.ArtifactKey getArtifactKey() { - if (artifactKeyBuilder_ == null) { - return artifactKey_ == null ? flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; + public int getArtifactsCount() { + if (artifactsBuilder_ == null) { + return artifacts_.size(); } else { - return artifactKeyBuilder_.getMessage(); + return artifactsBuilder_.getCount(); } } /** - * .flyteidl.core.ArtifactKey artifact_key = 1; + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public Builder setArtifactKey(flyteidl.core.ArtifactId.ArtifactKey value) { - if (artifactKeyBuilder_ == null) { + public flyteidl.artifact.Artifacts.Artifact getArtifacts(int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); + } else { + return artifactsBuilder_.getMessage(index); + } + } + /** + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; + */ + public Builder setArtifacts( + int index, flyteidl.artifact.Artifacts.Artifact value) { + if (artifactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - artifactKey_ = value; + ensureArtifactsIsMutable(); + artifacts_.set(index, value); onChanged(); } else { - artifactKeyBuilder_.setMessage(value); + artifactsBuilder_.setMessage(index, value); } - return this; } /** - * .flyteidl.core.ArtifactKey artifact_key = 1; + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public Builder setArtifactKey( - flyteidl.core.ArtifactId.ArtifactKey.Builder builderForValue) { - if (artifactKeyBuilder_ == null) { - artifactKey_ = builderForValue.build(); + public Builder setArtifacts( + int index, flyteidl.artifact.Artifacts.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.set(index, builderForValue.build()); onChanged(); } else { - artifactKeyBuilder_.setMessage(builderForValue.build()); + artifactsBuilder_.setMessage(index, builderForValue.build()); } - return this; } /** - * .flyteidl.core.ArtifactKey artifact_key = 1; + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public Builder mergeArtifactKey(flyteidl.core.ArtifactId.ArtifactKey value) { - if (artifactKeyBuilder_ == null) { - if (artifactKey_ != null) { - artifactKey_ = - flyteidl.core.ArtifactId.ArtifactKey.newBuilder(artifactKey_).mergeFrom(value).buildPartial(); - } else { - artifactKey_ = value; + public Builder addArtifacts(flyteidl.artifact.Artifacts.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureArtifactsIsMutable(); + artifacts_.add(value); onChanged(); } else { - artifactKeyBuilder_.mergeFrom(value); + artifactsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; + */ + public Builder addArtifacts( + int index, flyteidl.artifact.Artifacts.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.add(index, value); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; + */ + public Builder addArtifacts( + flyteidl.artifact.Artifacts.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; + */ + public Builder addArtifacts( + int index, flyteidl.artifact.Artifacts.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(index, builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; + */ + public Builder addAllArtifacts( + java.lang.Iterable values) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, artifacts_); + onChanged(); + } else { + artifactsBuilder_.addAllMessages(values); } - return this; } /** - * .flyteidl.core.ArtifactKey artifact_key = 1; + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public Builder clearArtifactKey() { - if (artifactKeyBuilder_ == null) { - artifactKey_ = null; + public Builder clearArtifacts() { + if (artifactsBuilder_ == null) { + artifacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { - artifactKey_ = null; - artifactKeyBuilder_ = null; + artifactsBuilder_.clear(); } - return this; } /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKey.Builder getArtifactKeyBuilder() { - - onChanged(); - return getArtifactKeyFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder() { - if (artifactKeyBuilder_ != null) { - return artifactKeyBuilder_.getMessageOrBuilder(); + public Builder removeArtifacts(int index) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.remove(index); + onChanged(); } else { - return artifactKey_ == null ? - flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; + artifactsBuilder_.remove(index); } + return this; } /** - * .flyteidl.core.ArtifactKey artifact_key = 1; + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder> - getArtifactKeyFieldBuilder() { - if (artifactKeyBuilder_ == null) { - artifactKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder>( - getArtifactKey(), - getParentForChildren(), - isClean()); - artifactKey_ = null; - } - return artifactKeyBuilder_; + public flyteidl.artifact.Artifacts.Artifact.Builder getArtifactsBuilder( + int index) { + return getArtifactsFieldBuilder().getBuilder(index); } - - private java.lang.Object filters_ = ""; /** - * string filters = 2; + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; + public flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactsOrBuilder( + int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); } else { + return artifactsBuilder_.getMessageOrBuilder(index); } } /** - * string filters = 2; + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; + public java.util.List + getArtifactsOrBuilderList() { + if (artifactsBuilder_ != null) { + return artifactsBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(artifacts_); } } /** - * string filters = 2; + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; + public flyteidl.artifact.Artifacts.Artifact.Builder addArtifactsBuilder() { + return getArtifactsFieldBuilder().addBuilder( + flyteidl.artifact.Artifacts.Artifact.getDefaultInstance()); } /** - * string filters = 2; + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; + public flyteidl.artifact.Artifacts.Artifact.Builder addArtifactsBuilder( + int index) { + return getArtifactsFieldBuilder().addBuilder( + index, flyteidl.artifact.Artifacts.Artifact.getDefaultInstance()); } /** - * string filters = 2; + *
+       * If artifact specs are not requested, the resultant artifacts may be empty.
+       * 
+ * + * repeated .flyteidl.artifact.Artifact artifacts = 1; */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; + public java.util.List + getArtifactsBuilderList() { + return getArtifactsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder> + getArtifactsFieldBuilder() { + if (artifactsBuilder_ == null) { + artifactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder>( + artifacts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + artifacts_ = null; + } + return artifactsBuilder_; } private java.lang.Object token_ = ""; /** - * string token = 3; + *
+       * continuation token if relevant.
+       * 
+ * + * string token = 2; */ public java.lang.String getToken() { java.lang.Object ref = token_; @@ -8816,7 +10400,11 @@ public java.lang.String getToken() { } } /** - * string token = 3; + *
+       * continuation token if relevant.
+       * 
+ * + * string token = 2; */ public com.google.protobuf.ByteString getTokenBytes() { @@ -8832,7 +10420,11 @@ public java.lang.String getToken() { } } /** - * string token = 3; + *
+       * continuation token if relevant.
+       * 
+ * + * string token = 2; */ public Builder setToken( java.lang.String value) { @@ -8845,7 +10437,11 @@ public Builder setToken( return this; } /** - * string token = 3; + *
+       * continuation token if relevant.
+       * 
+ * + * string token = 2; */ public Builder clearToken() { @@ -8854,7 +10450,11 @@ public Builder clearToken() { return this; } /** - * string token = 3; + *
+       * continuation token if relevant.
+       * 
+ * + * string token = 2; */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { @@ -8867,32 +10467,6 @@ public Builder setTokenBytes( onChanged(); return this; } - - private int limit_ ; - /** - * int32 limit = 4; - */ - public int getLimit() { - return limit_; - } - /** - * int32 limit = 4; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - * int32 limit = 4; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8906,88 +10480,95 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.artifact.SearchArtifactsRequest) + // @@protoc_insertion_point(builder_scope:flyteidl.artifact.SearchArtifactsResponse) } - // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchArtifactsRequest) - private static final flyteidl.artifact.Artifacts.SearchArtifactsRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchArtifactsResponse) + private static final flyteidl.artifact.Artifacts.SearchArtifactsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.SearchArtifactsRequest(); + DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.SearchArtifactsResponse(); } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest getDefaultInstance() { + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public SearchArtifactsRequest parsePartialFrom( + public SearchArtifactsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchArtifactsRequest(input, extensionRegistry); + return new SearchArtifactsResponse(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.artifact.Artifacts.SearchArtifactsRequest getDefaultInstanceForType() { + public flyteidl.artifact.Artifacts.SearchArtifactsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface SearchArtifactsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.SearchArtifactsResponse) + public interface FindByWorkflowExecRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.artifact.FindByWorkflowExecRequest) com.google.protobuf.MessageOrBuilder { /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; */ - java.util.List - getArtifactsList(); + boolean hasExecId(); /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; */ - flyteidl.artifact.Artifacts.Artifact getArtifacts(int index); + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecId(); /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; */ - int getArtifactsCount(); + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecIdOrBuilder(); + /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; */ - java.util.List - getArtifactsOrBuilderList(); + int getDirectionValue(); /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; */ - flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactsOrBuilder( - int index); + flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction getDirection(); + + /** + *
+     * If set to true, actually fetch the artifact body. By default only the IDs are returned.
+     * 
+ * + * bool fetch_specs = 3; + */ + boolean getFetchSpecs(); } /** - * Protobuf type {@code flyteidl.artifact.SearchArtifactsResponse} + * Protobuf type {@code flyteidl.artifact.FindByWorkflowExecRequest} */ - public static final class SearchArtifactsResponse extends + public static final class FindByWorkflowExecRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.SearchArtifactsResponse) - SearchArtifactsResponseOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.artifact.FindByWorkflowExecRequest) + FindByWorkflowExecRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use SearchArtifactsResponse.newBuilder() to construct. - private SearchArtifactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use FindByWorkflowExecRequest.newBuilder() to construct. + private FindByWorkflowExecRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchArtifactsResponse() { - artifacts_ = java.util.Collections.emptyList(); + private FindByWorkflowExecRequest() { + direction_ = 0; } @java.lang.Override @@ -8995,7 +10576,7 @@ private SearchArtifactsResponse() { getUnknownFields() { return this.unknownFields; } - private SearchArtifactsResponse( + private FindByWorkflowExecRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -9015,12 +10596,27 @@ private SearchArtifactsResponse( done = true; break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - artifacts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (execId_ != null) { + subBuilder = execId_.toBuilder(); } - artifacts_.add( - input.readMessage(flyteidl.artifact.Artifacts.Artifact.parser(), extensionRegistry)); + execId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(execId_); + execId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + direction_ = rawValue; + break; + } + case 24: { + + fetchSpecs_ = input.readBool(); break; } default: { @@ -9038,59 +10634,170 @@ private SearchArtifactsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - artifacts_ = java.util.Collections.unmodifiableList(artifacts_); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_FindByWorkflowExecRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_FindByWorkflowExecRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.SearchArtifactsResponse.class, flyteidl.artifact.Artifacts.SearchArtifactsResponse.Builder.class); + flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.class, flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Builder.class); } - public static final int ARTIFACTS_FIELD_NUMBER = 1; - private java.util.List artifacts_; /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * Protobuf enum {@code flyteidl.artifact.FindByWorkflowExecRequest.Direction} */ - public java.util.List getArtifactsList() { - return artifacts_; + public enum Direction + implements com.google.protobuf.ProtocolMessageEnum { + /** + * INPUTS = 0; + */ + INPUTS(0), + /** + * OUTPUTS = 1; + */ + OUTPUTS(1), + UNRECOGNIZED(-1), + ; + + /** + * INPUTS = 0; + */ + public static final int INPUTS_VALUE = 0; + /** + * OUTPUTS = 1; + */ + public static final int OUTPUTS_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Direction valueOf(int value) { + return forNumber(value); + } + + public static Direction forNumber(int value) { + switch (value) { + case 0: return INPUTS; + case 1: return OUTPUTS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Direction> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Direction findValueByNumber(int number) { + return Direction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final Direction[] VALUES = values(); + + public static Direction valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Direction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.artifact.FindByWorkflowExecRequest.Direction) } + + public static final int EXEC_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier execId_; /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; */ - public java.util.List - getArtifactsOrBuilderList() { - return artifacts_; + public boolean hasExecId() { + return execId_ != null; } /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; */ - public int getArtifactsCount() { - return artifacts_.size(); + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecId() { + return execId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : execId_; } /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; */ - public flyteidl.artifact.Artifacts.Artifact getArtifacts(int index) { - return artifacts_.get(index); + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecIdOrBuilder() { + return getExecId(); } + + public static final int DIRECTION_FIELD_NUMBER = 2; + private int direction_; /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; */ - public flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactsOrBuilder( - int index) { - return artifacts_.get(index); + public int getDirectionValue() { + return direction_; + } + /** + * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; + */ + public flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction getDirection() { + @SuppressWarnings("deprecation") + flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction result = flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction.valueOf(direction_); + return result == null ? flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction.UNRECOGNIZED : result; + } + + public static final int FETCH_SPECS_FIELD_NUMBER = 3; + private boolean fetchSpecs_; + /** + *
+     * If set to true, actually fetch the artifact body. By default only the IDs are returned.
+     * 
+ * + * bool fetch_specs = 3; + */ + public boolean getFetchSpecs() { + return fetchSpecs_; } private byte memoizedIsInitialized = -1; @@ -9107,8 +10814,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < artifacts_.size(); i++) { - output.writeMessage(1, artifacts_.get(i)); + if (execId_ != null) { + output.writeMessage(1, getExecId()); + } + if (direction_ != flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction.INPUTS.getNumber()) { + output.writeEnum(2, direction_); + } + if (fetchSpecs_ != false) { + output.writeBool(3, fetchSpecs_); } unknownFields.writeTo(output); } @@ -9119,9 +10832,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < artifacts_.size(); i++) { + if (execId_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, artifacts_.get(i)); + .computeMessageSize(1, getExecId()); + } + if (direction_ != flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction.INPUTS.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, direction_); + } + if (fetchSpecs_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, fetchSpecs_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -9133,13 +10854,19 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.artifact.Artifacts.SearchArtifactsResponse)) { + if (!(obj instanceof flyteidl.artifact.Artifacts.FindByWorkflowExecRequest)) { return super.equals(obj); } - flyteidl.artifact.Artifacts.SearchArtifactsResponse other = (flyteidl.artifact.Artifacts.SearchArtifactsResponse) obj; + flyteidl.artifact.Artifacts.FindByWorkflowExecRequest other = (flyteidl.artifact.Artifacts.FindByWorkflowExecRequest) obj; - if (!getArtifactsList() - .equals(other.getArtifactsList())) return false; + if (hasExecId() != other.hasExecId()) return false; + if (hasExecId()) { + if (!getExecId() + .equals(other.getExecId())) return false; + } + if (direction_ != other.direction_) return false; + if (getFetchSpecs() + != other.getFetchSpecs()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -9151,78 +10878,83 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getArtifactsCount() > 0) { - hash = (37 * hash) + ARTIFACTS_FIELD_NUMBER; - hash = (53 * hash) + getArtifactsList().hashCode(); + if (hasExecId()) { + hash = (37 * hash) + EXEC_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecId().hashCode(); } + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; + hash = (37 * hash) + FETCH_SPECS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFetchSpecs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom(byte[] data) + public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseDelimitedFrom( + public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -9235,7 +10967,7 @@ public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.artifact.Artifacts.SearchArtifactsResponse prototype) { + public static Builder newBuilder(flyteidl.artifact.Artifacts.FindByWorkflowExecRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -9251,26 +10983,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.artifact.SearchArtifactsResponse} + * Protobuf type {@code flyteidl.artifact.FindByWorkflowExecRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.SearchArtifactsResponse) - flyteidl.artifact.Artifacts.SearchArtifactsResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.artifact.FindByWorkflowExecRequest) + flyteidl.artifact.Artifacts.FindByWorkflowExecRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_FindByWorkflowExecRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_FindByWorkflowExecRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.SearchArtifactsResponse.class, flyteidl.artifact.Artifacts.SearchArtifactsResponse.Builder.class); + flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.class, flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Builder.class); } - // Construct using flyteidl.artifact.Artifacts.SearchArtifactsResponse.newBuilder() + // Construct using flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -9283,35 +11015,38 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getArtifactsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - if (artifactsBuilder_ == null) { - artifacts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + if (execIdBuilder_ == null) { + execId_ = null; } else { - artifactsBuilder_.clear(); + execId_ = null; + execIdBuilder_ = null; } + direction_ = 0; + + fetchSpecs_ = false; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_FindByWorkflowExecRequest_descriptor; } @java.lang.Override - public flyteidl.artifact.Artifacts.SearchArtifactsResponse getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.SearchArtifactsResponse.getDefaultInstance(); + public flyteidl.artifact.Artifacts.FindByWorkflowExecRequest getDefaultInstanceForType() { + return flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.getDefaultInstance(); } @java.lang.Override - public flyteidl.artifact.Artifacts.SearchArtifactsResponse build() { - flyteidl.artifact.Artifacts.SearchArtifactsResponse result = buildPartial(); + public flyteidl.artifact.Artifacts.FindByWorkflowExecRequest build() { + flyteidl.artifact.Artifacts.FindByWorkflowExecRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -9319,18 +11054,15 @@ public flyteidl.artifact.Artifacts.SearchArtifactsResponse build() { } @java.lang.Override - public flyteidl.artifact.Artifacts.SearchArtifactsResponse buildPartial() { - flyteidl.artifact.Artifacts.SearchArtifactsResponse result = new flyteidl.artifact.Artifacts.SearchArtifactsResponse(this); - int from_bitField0_ = bitField0_; - if (artifactsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - artifacts_ = java.util.Collections.unmodifiableList(artifacts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.artifacts_ = artifacts_; + public flyteidl.artifact.Artifacts.FindByWorkflowExecRequest buildPartial() { + flyteidl.artifact.Artifacts.FindByWorkflowExecRequest result = new flyteidl.artifact.Artifacts.FindByWorkflowExecRequest(this); + if (execIdBuilder_ == null) { + result.execId_ = execId_; } else { - result.artifacts_ = artifactsBuilder_.build(); + result.execId_ = execIdBuilder_.build(); } + result.direction_ = direction_; + result.fetchSpecs_ = fetchSpecs_; onBuilt(); return result; } @@ -9369,41 +11101,24 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.artifact.Artifacts.SearchArtifactsResponse) { - return mergeFrom((flyteidl.artifact.Artifacts.SearchArtifactsResponse)other); + if (other instanceof flyteidl.artifact.Artifacts.FindByWorkflowExecRequest) { + return mergeFrom((flyteidl.artifact.Artifacts.FindByWorkflowExecRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.artifact.Artifacts.SearchArtifactsResponse other) { - if (other == flyteidl.artifact.Artifacts.SearchArtifactsResponse.getDefaultInstance()) return this; - if (artifactsBuilder_ == null) { - if (!other.artifacts_.isEmpty()) { - if (artifacts_.isEmpty()) { - artifacts_ = other.artifacts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArtifactsIsMutable(); - artifacts_.addAll(other.artifacts_); - } - onChanged(); - } - } else { - if (!other.artifacts_.isEmpty()) { - if (artifactsBuilder_.isEmpty()) { - artifactsBuilder_.dispose(); - artifactsBuilder_ = null; - artifacts_ = other.artifacts_; - bitField0_ = (bitField0_ & ~0x00000001); - artifactsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getArtifactsFieldBuilder() : null; - } else { - artifactsBuilder_.addAllMessages(other.artifacts_); - } - } + public Builder mergeFrom(flyteidl.artifact.Artifacts.FindByWorkflowExecRequest other) { + if (other == flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.getDefaultInstance()) return this; + if (other.hasExecId()) { + mergeExecId(other.getExecId()); + } + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); + } + if (other.getFetchSpecs() != false) { + setFetchSpecs(other.getFetchSpecs()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -9420,259 +11135,218 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.artifact.Artifacts.SearchArtifactsResponse parsedMessage = null; + flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.SearchArtifactsResponse) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.artifact.Artifacts.FindByWorkflowExecRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List artifacts_ = - java.util.Collections.emptyList(); - private void ensureArtifactsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - artifacts_ = new java.util.ArrayList(artifacts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder> artifactsBuilder_; - - /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public java.util.List getArtifactsList() { - if (artifactsBuilder_ == null) { - return java.util.Collections.unmodifiableList(artifacts_); - } else { - return artifactsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public int getArtifactsCount() { - if (artifactsBuilder_ == null) { - return artifacts_.size(); - } else { - return artifactsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public flyteidl.artifact.Artifacts.Artifact getArtifacts(int index) { - if (artifactsBuilder_ == null) { - return artifacts_.get(index); - } else { - return artifactsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public Builder setArtifacts( - int index, flyteidl.artifact.Artifacts.Artifact value) { - if (artifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactsIsMutable(); - artifacts_.set(index, value); - onChanged(); - } else { - artifactsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public Builder setArtifacts( - int index, flyteidl.artifact.Artifacts.Artifact.Builder builderForValue) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.set(index, builderForValue.build()); - onChanged(); - } else { - artifactsBuilder_.setMessage(index, builderForValue.build()); + mergeFrom(parsedMessage); + } } return this; } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier execId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> execIdBuilder_; /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; */ - public Builder addArtifacts(flyteidl.artifact.Artifacts.Artifact value) { - if (artifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactsIsMutable(); - artifacts_.add(value); - onChanged(); + public boolean hasExecId() { + return execIdBuilder_ != null || execId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecId() { + if (execIdBuilder_ == null) { + return execId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : execId_; } else { - artifactsBuilder_.addMessage(value); + return execIdBuilder_.getMessage(); } - return this; } /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; */ - public Builder addArtifacts( - int index, flyteidl.artifact.Artifacts.Artifact value) { - if (artifactsBuilder_ == null) { + public Builder setExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (execIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureArtifactsIsMutable(); - artifacts_.add(index, value); + execId_ = value; onChanged(); } else { - artifactsBuilder_.addMessage(index, value); + execIdBuilder_.setMessage(value); } + return this; } /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; */ - public Builder addArtifacts( - flyteidl.artifact.Artifacts.Artifact.Builder builderForValue) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.add(builderForValue.build()); + public Builder setExecId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (execIdBuilder_ == null) { + execId_ = builderForValue.build(); onChanged(); } else { - artifactsBuilder_.addMessage(builderForValue.build()); + execIdBuilder_.setMessage(builderForValue.build()); } + return this; } /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; */ - public Builder addArtifacts( - int index, flyteidl.artifact.Artifacts.Artifact.Builder builderForValue) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.add(index, builderForValue.build()); + public Builder mergeExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (execIdBuilder_ == null) { + if (execId_ != null) { + execId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(execId_).mergeFrom(value).buildPartial(); + } else { + execId_ = value; + } onChanged(); } else { - artifactsBuilder_.addMessage(index, builderForValue.build()); + execIdBuilder_.mergeFrom(value); } + return this; } /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; */ - public Builder addAllArtifacts( - java.lang.Iterable values) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, artifacts_); + public Builder clearExecId() { + if (execIdBuilder_ == null) { + execId_ = null; onChanged(); } else { - artifactsBuilder_.addAllMessages(values); + execId_ = null; + execIdBuilder_ = null; } + return this; } /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; */ - public Builder clearArtifacts() { - if (artifactsBuilder_ == null) { - artifacts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecIdBuilder() { + + onChanged(); + return getExecIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecIdOrBuilder() { + if (execIdBuilder_ != null) { + return execIdBuilder_.getMessageOrBuilder(); } else { - artifactsBuilder_.clear(); + return execId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : execId_; } - return this; } /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; */ - public Builder removeArtifacts(int index) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.remove(index); - onChanged(); - } else { - artifactsBuilder_.remove(index); + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecIdFieldBuilder() { + if (execIdBuilder_ == null) { + execIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecId(), + getParentForChildren(), + isClean()); + execId_ = null; } - return this; + return execIdBuilder_; } + + private int direction_ = 0; /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; */ - public flyteidl.artifact.Artifacts.Artifact.Builder getArtifactsBuilder( - int index) { - return getArtifactsFieldBuilder().getBuilder(index); + public int getDirectionValue() { + return direction_; } /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; */ - public flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactsOrBuilder( - int index) { - if (artifactsBuilder_ == null) { - return artifacts_.get(index); } else { - return artifactsBuilder_.getMessageOrBuilder(index); - } + public Builder setDirectionValue(int value) { + direction_ = value; + onChanged(); + return this; } /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; */ - public java.util.List - getArtifactsOrBuilderList() { - if (artifactsBuilder_ != null) { - return artifactsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(artifacts_); + public flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction getDirection() { + @SuppressWarnings("deprecation") + flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction result = flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction.valueOf(direction_); + return result == null ? flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction.UNRECOGNIZED : result; + } + /** + * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; + */ + public Builder setDirection(flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction value) { + if (value == null) { + throw new NullPointerException(); } + + direction_ = value.getNumber(); + onChanged(); + return this; } /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; */ - public flyteidl.artifact.Artifacts.Artifact.Builder addArtifactsBuilder() { - return getArtifactsFieldBuilder().addBuilder( - flyteidl.artifact.Artifacts.Artifact.getDefaultInstance()); + public Builder clearDirection() { + + direction_ = 0; + onChanged(); + return this; } + + private boolean fetchSpecs_ ; /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + *
+       * If set to true, actually fetch the artifact body. By default only the IDs are returned.
+       * 
+ * + * bool fetch_specs = 3; */ - public flyteidl.artifact.Artifacts.Artifact.Builder addArtifactsBuilder( - int index) { - return getArtifactsFieldBuilder().addBuilder( - index, flyteidl.artifact.Artifacts.Artifact.getDefaultInstance()); + public boolean getFetchSpecs() { + return fetchSpecs_; } /** - * repeated .flyteidl.artifact.Artifact artifacts = 1; + *
+       * If set to true, actually fetch the artifact body. By default only the IDs are returned.
+       * 
+ * + * bool fetch_specs = 3; */ - public java.util.List - getArtifactsBuilderList() { - return getArtifactsFieldBuilder().getBuilderList(); + public Builder setFetchSpecs(boolean value) { + + fetchSpecs_ = value; + onChanged(); + return this; } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder> - getArtifactsFieldBuilder() { - if (artifactsBuilder_ == null) { - artifactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder>( - artifacts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - artifacts_ = null; - } - return artifactsBuilder_; + /** + *
+       * If set to true, actually fetch the artifact body. By default only the IDs are returned.
+       * 
+ * + * bool fetch_specs = 3; + */ + public Builder clearFetchSpecs() { + + fetchSpecs_ = false; + onChanged(); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -9687,41 +11361,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.artifact.SearchArtifactsResponse) + // @@protoc_insertion_point(builder_scope:flyteidl.artifact.FindByWorkflowExecRequest) } - // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchArtifactsResponse) - private static final flyteidl.artifact.Artifacts.SearchArtifactsResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.artifact.FindByWorkflowExecRequest) + private static final flyteidl.artifact.Artifacts.FindByWorkflowExecRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.SearchArtifactsResponse(); + DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.FindByWorkflowExecRequest(); } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse getDefaultInstance() { + public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public SearchArtifactsResponse parsePartialFrom( + public FindByWorkflowExecRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchArtifactsResponse(input, extensionRegistry); + return new FindByWorkflowExecRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.artifact.Artifacts.SearchArtifactsResponse getDefaultInstanceForType() { + public flyteidl.artifact.Artifacts.FindByWorkflowExecRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -16718,64 +18392,81 @@ public flyteidl.artifact.Artifacts.RegisterResponse getDefaultInstanceForType() } - public interface CloudEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.CloudEventRequest) + public interface ExecutionInputsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ExecutionInputsRequest) com.google.protobuf.MessageOrBuilder { /** - * .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; */ - boolean hasWorkflowExecutionEvent(); + boolean hasExecutionId(); /** - * .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; */ - flyteidl.event.Cloudevents.CloudEventWorkflowExecution getWorkflowExecutionEvent(); + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); /** - * .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; */ - flyteidl.event.Cloudevents.CloudEventWorkflowExecutionOrBuilder getWorkflowExecutionEventOrBuilder(); + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); /** - * .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; - */ - boolean hasTaskExecutionEvent(); - /** - * .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; + *
+     * can make this a map in the future, currently no need.
+     * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - flyteidl.event.Cloudevents.CloudEventTaskExecution getTaskExecutionEvent(); + java.util.List + getInputsList(); /** - * .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; + *
+     * can make this a map in the future, currently no need.
+     * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - flyteidl.event.Cloudevents.CloudEventTaskExecutionOrBuilder getTaskExecutionEventOrBuilder(); - + flyteidl.core.ArtifactId.ArtifactID getInputs(int index); /** - * .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; + *
+     * can make this a map in the future, currently no need.
+     * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - boolean hasNodeExecutionEvent(); + int getInputsCount(); /** - * .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; + *
+     * can make this a map in the future, currently no need.
+     * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - flyteidl.event.Cloudevents.CloudEventNodeExecution getNodeExecutionEvent(); + java.util.List + getInputsOrBuilderList(); /** - * .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; + *
+     * can make this a map in the future, currently no need.
+     * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - flyteidl.event.Cloudevents.CloudEventNodeExecutionOrBuilder getNodeExecutionEventOrBuilder(); - - public flyteidl.artifact.Artifacts.CloudEventRequest.EventCase getEventCase(); + flyteidl.core.ArtifactId.ArtifactIDOrBuilder getInputsOrBuilder( + int index); } /** - * Protobuf type {@code flyteidl.artifact.CloudEventRequest} + * Protobuf type {@code flyteidl.artifact.ExecutionInputsRequest} */ - public static final class CloudEventRequest extends + public static final class ExecutionInputsRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.CloudEventRequest) - CloudEventRequestOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.artifact.ExecutionInputsRequest) + ExecutionInputsRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use CloudEventRequest.newBuilder() to construct. - private CloudEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ExecutionInputsRequest.newBuilder() to construct. + private ExecutionInputsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CloudEventRequest() { + private ExecutionInputsRequest() { + inputs_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -16783,7 +18474,7 @@ private CloudEventRequest() { getUnknownFields() { return this.unknownFields; } - private CloudEventRequest( + private ExecutionInputsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -16803,45 +18494,25 @@ private CloudEventRequest( done = true; break; case 10: { - flyteidl.event.Cloudevents.CloudEventWorkflowExecution.Builder subBuilder = null; - if (eventCase_ == 1) { - subBuilder = ((flyteidl.event.Cloudevents.CloudEventWorkflowExecution) event_).toBuilder(); + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); } - event_ = - input.readMessage(flyteidl.event.Cloudevents.CloudEventWorkflowExecution.parser(), extensionRegistry); + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.event.Cloudevents.CloudEventWorkflowExecution) event_); - event_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(executionId_); + executionId_ = subBuilder.buildPartial(); } - eventCase_ = 1; + break; } case 18: { - flyteidl.event.Cloudevents.CloudEventTaskExecution.Builder subBuilder = null; - if (eventCase_ == 2) { - subBuilder = ((flyteidl.event.Cloudevents.CloudEventTaskExecution) event_).toBuilder(); - } - event_ = - input.readMessage(flyteidl.event.Cloudevents.CloudEventTaskExecution.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.event.Cloudevents.CloudEventTaskExecution) event_); - event_ = subBuilder.buildPartial(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + inputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - eventCase_ = 2; - break; - } - case 26: { - flyteidl.event.Cloudevents.CloudEventNodeExecution.Builder subBuilder = null; - if (eventCase_ == 3) { - subBuilder = ((flyteidl.event.Cloudevents.CloudEventNodeExecution) event_).toBuilder(); - } - event_ = - input.readMessage(flyteidl.event.Cloudevents.CloudEventNodeExecution.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.event.Cloudevents.CloudEventNodeExecution) event_); - event_ = subBuilder.buildPartial(); - } - eventCase_ = 3; + inputs_.add( + input.readMessage(flyteidl.core.ArtifactId.ArtifactID.parser(), extensionRegistry)); break; } default: { @@ -16859,139 +18530,101 @@ private CloudEventRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CloudEventRequest_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CloudEventRequest_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.CloudEventRequest.class, flyteidl.artifact.Artifacts.CloudEventRequest.Builder.class); - } - - private int eventCase_ = 0; - private java.lang.Object event_; - public enum EventCase - implements com.google.protobuf.Internal.EnumLite { - WORKFLOW_EXECUTION_EVENT(1), - TASK_EXECUTION_EVENT(2), - NODE_EXECUTION_EVENT(3), - EVENT_NOT_SET(0); - private final int value; - private EventCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EventCase valueOf(int value) { - return forNumber(value); - } - - public static EventCase forNumber(int value) { - switch (value) { - case 1: return WORKFLOW_EXECUTION_EVENT; - case 2: return TASK_EXECUTION_EVENT; - case 3: return NODE_EXECUTION_EVENT; - case 0: return EVENT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public EventCase - getEventCase() { - return EventCase.forNumber( - eventCase_); + flyteidl.artifact.Artifacts.ExecutionInputsRequest.class, flyteidl.artifact.Artifacts.ExecutionInputsRequest.Builder.class); } - public static final int WORKFLOW_EXECUTION_EVENT_FIELD_NUMBER = 1; + private int bitField0_; + public static final int EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; /** - * .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; */ - public boolean hasWorkflowExecutionEvent() { - return eventCase_ == 1; + public boolean hasExecutionId() { + return executionId_ != null; } /** - * .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; */ - public flyteidl.event.Cloudevents.CloudEventWorkflowExecution getWorkflowExecutionEvent() { - if (eventCase_ == 1) { - return (flyteidl.event.Cloudevents.CloudEventWorkflowExecution) event_; - } - return flyteidl.event.Cloudevents.CloudEventWorkflowExecution.getDefaultInstance(); + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; } /** - * .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; */ - public flyteidl.event.Cloudevents.CloudEventWorkflowExecutionOrBuilder getWorkflowExecutionEventOrBuilder() { - if (eventCase_ == 1) { - return (flyteidl.event.Cloudevents.CloudEventWorkflowExecution) event_; - } - return flyteidl.event.Cloudevents.CloudEventWorkflowExecution.getDefaultInstance(); + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); } - public static final int TASK_EXECUTION_EVENT_FIELD_NUMBER = 2; - /** - * .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; - */ - public boolean hasTaskExecutionEvent() { - return eventCase_ == 2; - } + public static final int INPUTS_FIELD_NUMBER = 2; + private java.util.List inputs_; /** - * .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; + *
+     * can make this a map in the future, currently no need.
+     * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public flyteidl.event.Cloudevents.CloudEventTaskExecution getTaskExecutionEvent() { - if (eventCase_ == 2) { - return (flyteidl.event.Cloudevents.CloudEventTaskExecution) event_; - } - return flyteidl.event.Cloudevents.CloudEventTaskExecution.getDefaultInstance(); + public java.util.List getInputsList() { + return inputs_; } /** - * .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; + *
+     * can make this a map in the future, currently no need.
+     * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public flyteidl.event.Cloudevents.CloudEventTaskExecutionOrBuilder getTaskExecutionEventOrBuilder() { - if (eventCase_ == 2) { - return (flyteidl.event.Cloudevents.CloudEventTaskExecution) event_; - } - return flyteidl.event.Cloudevents.CloudEventTaskExecution.getDefaultInstance(); + public java.util.List + getInputsOrBuilderList() { + return inputs_; } - - public static final int NODE_EXECUTION_EVENT_FIELD_NUMBER = 3; /** - * .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; + *
+     * can make this a map in the future, currently no need.
+     * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public boolean hasNodeExecutionEvent() { - return eventCase_ == 3; + public int getInputsCount() { + return inputs_.size(); } /** - * .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; + *
+     * can make this a map in the future, currently no need.
+     * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public flyteidl.event.Cloudevents.CloudEventNodeExecution getNodeExecutionEvent() { - if (eventCase_ == 3) { - return (flyteidl.event.Cloudevents.CloudEventNodeExecution) event_; - } - return flyteidl.event.Cloudevents.CloudEventNodeExecution.getDefaultInstance(); + public flyteidl.core.ArtifactId.ArtifactID getInputs(int index) { + return inputs_.get(index); } /** - * .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; + *
+     * can make this a map in the future, currently no need.
+     * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public flyteidl.event.Cloudevents.CloudEventNodeExecutionOrBuilder getNodeExecutionEventOrBuilder() { - if (eventCase_ == 3) { - return (flyteidl.event.Cloudevents.CloudEventNodeExecution) event_; - } - return flyteidl.event.Cloudevents.CloudEventNodeExecution.getDefaultInstance(); + public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getInputsOrBuilder( + int index) { + return inputs_.get(index); } private byte memoizedIsInitialized = -1; @@ -17008,14 +18641,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (eventCase_ == 1) { - output.writeMessage(1, (flyteidl.event.Cloudevents.CloudEventWorkflowExecution) event_); + if (executionId_ != null) { + output.writeMessage(1, getExecutionId()); } - if (eventCase_ == 2) { - output.writeMessage(2, (flyteidl.event.Cloudevents.CloudEventTaskExecution) event_); - } - if (eventCase_ == 3) { - output.writeMessage(3, (flyteidl.event.Cloudevents.CloudEventNodeExecution) event_); + for (int i = 0; i < inputs_.size(); i++) { + output.writeMessage(2, inputs_.get(i)); } unknownFields.writeTo(output); } @@ -17026,17 +18656,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (eventCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.event.Cloudevents.CloudEventWorkflowExecution) event_); - } - if (eventCase_ == 2) { + if (executionId_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.event.Cloudevents.CloudEventTaskExecution) event_); + .computeMessageSize(1, getExecutionId()); } - if (eventCase_ == 3) { + for (int i = 0; i < inputs_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.event.Cloudevents.CloudEventNodeExecution) event_); + .computeMessageSize(2, inputs_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -17048,28 +18674,18 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.artifact.Artifacts.CloudEventRequest)) { + if (!(obj instanceof flyteidl.artifact.Artifacts.ExecutionInputsRequest)) { return super.equals(obj); } - flyteidl.artifact.Artifacts.CloudEventRequest other = (flyteidl.artifact.Artifacts.CloudEventRequest) obj; - - if (!getEventCase().equals(other.getEventCase())) return false; - switch (eventCase_) { - case 1: - if (!getWorkflowExecutionEvent() - .equals(other.getWorkflowExecutionEvent())) return false; - break; - case 2: - if (!getTaskExecutionEvent() - .equals(other.getTaskExecutionEvent())) return false; - break; - case 3: - if (!getNodeExecutionEvent() - .equals(other.getNodeExecutionEvent())) return false; - break; - case 0: - default: + flyteidl.artifact.Artifacts.ExecutionInputsRequest other = (flyteidl.artifact.Artifacts.ExecutionInputsRequest) obj; + + if (hasExecutionId() != other.hasExecutionId()) return false; + if (hasExecutionId()) { + if (!getExecutionId() + .equals(other.getExecutionId())) return false; } + if (!getInputsList() + .equals(other.getInputsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -17081,90 +18697,82 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - switch (eventCase_) { - case 1: - hash = (37 * hash) + WORKFLOW_EXECUTION_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowExecutionEvent().hashCode(); - break; - case 2: - hash = (37 * hash) + TASK_EXECUTION_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getTaskExecutionEvent().hashCode(); - break; - case 3: - hash = (37 * hash) + NODE_EXECUTION_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getNodeExecutionEvent().hashCode(); - break; - case 0: - default: + if (hasExecutionId()) { + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + if (getInputsCount() > 0) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static flyteidl.artifact.Artifacts.CloudEventRequest parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.CloudEventRequest parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.CloudEventRequest parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.CloudEventRequest parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.CloudEventRequest parseFrom(byte[] data) + public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.CloudEventRequest parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.CloudEventRequest parseFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.CloudEventRequest parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.CloudEventRequest parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.CloudEventRequest parseDelimitedFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.CloudEventRequest parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.CloudEventRequest parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -17177,7 +18785,7 @@ public static flyteidl.artifact.Artifacts.CloudEventRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.artifact.Artifacts.CloudEventRequest prototype) { + public static Builder newBuilder(flyteidl.artifact.Artifacts.ExecutionInputsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -17193,26 +18801,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.artifact.CloudEventRequest} + * Protobuf type {@code flyteidl.artifact.ExecutionInputsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.CloudEventRequest) - flyteidl.artifact.Artifacts.CloudEventRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ExecutionInputsRequest) + flyteidl.artifact.Artifacts.ExecutionInputsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CloudEventRequest_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CloudEventRequest_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.CloudEventRequest.class, flyteidl.artifact.Artifacts.CloudEventRequest.Builder.class); + flyteidl.artifact.Artifacts.ExecutionInputsRequest.class, flyteidl.artifact.Artifacts.ExecutionInputsRequest.Builder.class); } - // Construct using flyteidl.artifact.Artifacts.CloudEventRequest.newBuilder() + // Construct using flyteidl.artifact.Artifacts.ExecutionInputsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -17225,30 +18833,41 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getInputsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - eventCase_ = 0; - event_ = null; + if (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + inputsBuilder_.clear(); + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CloudEventRequest_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsRequest_descriptor; } @java.lang.Override - public flyteidl.artifact.Artifacts.CloudEventRequest getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.CloudEventRequest.getDefaultInstance(); + public flyteidl.artifact.Artifacts.ExecutionInputsRequest getDefaultInstanceForType() { + return flyteidl.artifact.Artifacts.ExecutionInputsRequest.getDefaultInstance(); } @java.lang.Override - public flyteidl.artifact.Artifacts.CloudEventRequest build() { - flyteidl.artifact.Artifacts.CloudEventRequest result = buildPartial(); + public flyteidl.artifact.Artifacts.ExecutionInputsRequest build() { + flyteidl.artifact.Artifacts.ExecutionInputsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -17256,30 +18875,25 @@ public flyteidl.artifact.Artifacts.CloudEventRequest build() { } @java.lang.Override - public flyteidl.artifact.Artifacts.CloudEventRequest buildPartial() { - flyteidl.artifact.Artifacts.CloudEventRequest result = new flyteidl.artifact.Artifacts.CloudEventRequest(this); - if (eventCase_ == 1) { - if (workflowExecutionEventBuilder_ == null) { - result.event_ = event_; - } else { - result.event_ = workflowExecutionEventBuilder_.build(); - } - } - if (eventCase_ == 2) { - if (taskExecutionEventBuilder_ == null) { - result.event_ = event_; - } else { - result.event_ = taskExecutionEventBuilder_.build(); - } + public flyteidl.artifact.Artifacts.ExecutionInputsRequest buildPartial() { + flyteidl.artifact.Artifacts.ExecutionInputsRequest result = new flyteidl.artifact.Artifacts.ExecutionInputsRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.build(); } - if (eventCase_ == 3) { - if (nodeExecutionEventBuilder_ == null) { - result.event_ = event_; - } else { - result.event_ = nodeExecutionEventBuilder_.build(); + if (inputsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + bitField0_ = (bitField0_ & ~0x00000002); } + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); } - result.eventCase_ = eventCase_; + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -17318,31 +18932,43 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.artifact.Artifacts.CloudEventRequest) { - return mergeFrom((flyteidl.artifact.Artifacts.CloudEventRequest)other); + if (other instanceof flyteidl.artifact.Artifacts.ExecutionInputsRequest) { + return mergeFrom((flyteidl.artifact.Artifacts.ExecutionInputsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.artifact.Artifacts.CloudEventRequest other) { - if (other == flyteidl.artifact.Artifacts.CloudEventRequest.getDefaultInstance()) return this; - switch (other.getEventCase()) { - case WORKFLOW_EXECUTION_EVENT: { - mergeWorkflowExecutionEvent(other.getWorkflowExecutionEvent()); - break; - } - case TASK_EXECUTION_EVENT: { - mergeTaskExecutionEvent(other.getTaskExecutionEvent()); - break; - } - case NODE_EXECUTION_EVENT: { - mergeNodeExecutionEvent(other.getNodeExecutionEvent()); - break; + public Builder mergeFrom(flyteidl.artifact.Artifacts.ExecutionInputsRequest other) { + if (other == flyteidl.artifact.Artifacts.ExecutionInputsRequest.getDefaultInstance()) return this; + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + if (inputsBuilder_ == null) { + if (!other.inputs_.isEmpty()) { + if (inputs_.isEmpty()) { + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInputsIsMutable(); + inputs_.addAll(other.inputs_); + } + onChanged(); } - case EVENT_NOT_SET: { - break; + } else { + if (!other.inputs_.isEmpty()) { + if (inputsBuilder_.isEmpty()) { + inputsBuilder_.dispose(); + inputsBuilder_ = null; + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000002); + inputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputsFieldBuilder() : null; + } else { + inputsBuilder_.addAllMessages(other.inputs_); + } } } this.mergeUnknownFields(other.unknownFields); @@ -17360,11 +18986,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.artifact.Artifacts.CloudEventRequest parsedMessage = null; + flyteidl.artifact.Artifacts.ExecutionInputsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.CloudEventRequest) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.artifact.Artifacts.ExecutionInputsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -17373,428 +18999,435 @@ public Builder mergeFrom( } return this; } - private int eventCase_ = 0; - private java.lang.Object event_; - public EventCase - getEventCase() { - return EventCase.forNumber( - eventCase_); - } - - public Builder clearEvent() { - eventCase_ = 0; - event_ = null; - onChanged(); - return this; - } - + private int bitField0_; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Cloudevents.CloudEventWorkflowExecution, flyteidl.event.Cloudevents.CloudEventWorkflowExecution.Builder, flyteidl.event.Cloudevents.CloudEventWorkflowExecutionOrBuilder> workflowExecutionEventBuilder_; + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; /** - * .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; */ - public boolean hasWorkflowExecutionEvent() { - return eventCase_ == 1; + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; } /** - * .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; */ - public flyteidl.event.Cloudevents.CloudEventWorkflowExecution getWorkflowExecutionEvent() { - if (workflowExecutionEventBuilder_ == null) { - if (eventCase_ == 1) { - return (flyteidl.event.Cloudevents.CloudEventWorkflowExecution) event_; - } - return flyteidl.event.Cloudevents.CloudEventWorkflowExecution.getDefaultInstance(); + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; } else { - if (eventCase_ == 1) { - return workflowExecutionEventBuilder_.getMessage(); - } - return flyteidl.event.Cloudevents.CloudEventWorkflowExecution.getDefaultInstance(); + return executionIdBuilder_.getMessage(); } } /** - * .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; */ - public Builder setWorkflowExecutionEvent(flyteidl.event.Cloudevents.CloudEventWorkflowExecution value) { - if (workflowExecutionEventBuilder_ == null) { + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - event_ = value; + executionId_ = value; onChanged(); } else { - workflowExecutionEventBuilder_.setMessage(value); + executionIdBuilder_.setMessage(value); } - eventCase_ = 1; + return this; } /** - * .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; */ - public Builder setWorkflowExecutionEvent( - flyteidl.event.Cloudevents.CloudEventWorkflowExecution.Builder builderForValue) { - if (workflowExecutionEventBuilder_ == null) { - event_ = builderForValue.build(); + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); onChanged(); } else { - workflowExecutionEventBuilder_.setMessage(builderForValue.build()); + executionIdBuilder_.setMessage(builderForValue.build()); } - eventCase_ = 1; + return this; } /** - * .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; */ - public Builder mergeWorkflowExecutionEvent(flyteidl.event.Cloudevents.CloudEventWorkflowExecution value) { - if (workflowExecutionEventBuilder_ == null) { - if (eventCase_ == 1 && - event_ != flyteidl.event.Cloudevents.CloudEventWorkflowExecution.getDefaultInstance()) { - event_ = flyteidl.event.Cloudevents.CloudEventWorkflowExecution.newBuilder((flyteidl.event.Cloudevents.CloudEventWorkflowExecution) event_) - .mergeFrom(value).buildPartial(); + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); } else { - event_ = value; + executionId_ = value; } onChanged(); } else { - if (eventCase_ == 1) { - workflowExecutionEventBuilder_.mergeFrom(value); - } - workflowExecutionEventBuilder_.setMessage(value); + executionIdBuilder_.mergeFrom(value); } - eventCase_ = 1; + return this; } /** - * .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; */ - public Builder clearWorkflowExecutionEvent() { - if (workflowExecutionEventBuilder_ == null) { - if (eventCase_ == 1) { - eventCase_ = 0; - event_ = null; - onChanged(); - } + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); } else { - if (eventCase_ == 1) { - eventCase_ = 0; - event_ = null; - } - workflowExecutionEventBuilder_.clear(); + executionId_ = null; + executionIdBuilder_ = null; } + return this; } /** - * .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; */ - public flyteidl.event.Cloudevents.CloudEventWorkflowExecution.Builder getWorkflowExecutionEventBuilder() { - return getWorkflowExecutionEventFieldBuilder().getBuilder(); + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); } /** - * .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; */ - public flyteidl.event.Cloudevents.CloudEventWorkflowExecutionOrBuilder getWorkflowExecutionEventOrBuilder() { - if ((eventCase_ == 1) && (workflowExecutionEventBuilder_ != null)) { - return workflowExecutionEventBuilder_.getMessageOrBuilder(); + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); } else { - if (eventCase_ == 1) { - return (flyteidl.event.Cloudevents.CloudEventWorkflowExecution) event_; - } - return flyteidl.event.Cloudevents.CloudEventWorkflowExecution.getDefaultInstance(); + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; } } /** - * .flyteidl.event.CloudEventWorkflowExecution workflow_execution_event = 1; + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Cloudevents.CloudEventWorkflowExecution, flyteidl.event.Cloudevents.CloudEventWorkflowExecution.Builder, flyteidl.event.Cloudevents.CloudEventWorkflowExecutionOrBuilder> - getWorkflowExecutionEventFieldBuilder() { - if (workflowExecutionEventBuilder_ == null) { - if (!(eventCase_ == 1)) { - event_ = flyteidl.event.Cloudevents.CloudEventWorkflowExecution.getDefaultInstance(); - } - workflowExecutionEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Cloudevents.CloudEventWorkflowExecution, flyteidl.event.Cloudevents.CloudEventWorkflowExecution.Builder, flyteidl.event.Cloudevents.CloudEventWorkflowExecutionOrBuilder>( - (flyteidl.event.Cloudevents.CloudEventWorkflowExecution) event_, + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), getParentForChildren(), isClean()); - event_ = null; + executionId_ = null; } - eventCase_ = 1; - onChanged();; - return workflowExecutionEventBuilder_; + return executionIdBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Cloudevents.CloudEventTaskExecution, flyteidl.event.Cloudevents.CloudEventTaskExecution.Builder, flyteidl.event.Cloudevents.CloudEventTaskExecutionOrBuilder> taskExecutionEventBuilder_; + private java.util.List inputs_ = + java.util.Collections.emptyList(); + private void ensureInputsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + inputs_ = new java.util.ArrayList(inputs_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> inputsBuilder_; + + /** + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; + */ + public java.util.List getInputsList() { + if (inputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputs_); + } else { + return inputsBuilder_.getMessageList(); + } + } /** - * .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public boolean hasTaskExecutionEvent() { - return eventCase_ == 2; + public int getInputsCount() { + if (inputsBuilder_ == null) { + return inputs_.size(); + } else { + return inputsBuilder_.getCount(); + } } /** - * .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public flyteidl.event.Cloudevents.CloudEventTaskExecution getTaskExecutionEvent() { - if (taskExecutionEventBuilder_ == null) { - if (eventCase_ == 2) { - return (flyteidl.event.Cloudevents.CloudEventTaskExecution) event_; - } - return flyteidl.event.Cloudevents.CloudEventTaskExecution.getDefaultInstance(); + public flyteidl.core.ArtifactId.ArtifactID getInputs(int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); } else { - if (eventCase_ == 2) { - return taskExecutionEventBuilder_.getMessage(); - } - return flyteidl.event.Cloudevents.CloudEventTaskExecution.getDefaultInstance(); + return inputsBuilder_.getMessage(index); } } /** - * .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public Builder setTaskExecutionEvent(flyteidl.event.Cloudevents.CloudEventTaskExecution value) { - if (taskExecutionEventBuilder_ == null) { + public Builder setInputs( + int index, flyteidl.core.ArtifactId.ArtifactID value) { + if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - event_ = value; + ensureInputsIsMutable(); + inputs_.set(index, value); onChanged(); } else { - taskExecutionEventBuilder_.setMessage(value); + inputsBuilder_.setMessage(index, value); } - eventCase_ = 2; return this; } /** - * .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public Builder setTaskExecutionEvent( - flyteidl.event.Cloudevents.CloudEventTaskExecution.Builder builderForValue) { - if (taskExecutionEventBuilder_ == null) { - event_ = builderForValue.build(); + public Builder setInputs( + int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.set(index, builderForValue.build()); onChanged(); } else { - taskExecutionEventBuilder_.setMessage(builderForValue.build()); + inputsBuilder_.setMessage(index, builderForValue.build()); } - eventCase_ = 2; return this; } /** - * .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public Builder mergeTaskExecutionEvent(flyteidl.event.Cloudevents.CloudEventTaskExecution value) { - if (taskExecutionEventBuilder_ == null) { - if (eventCase_ == 2 && - event_ != flyteidl.event.Cloudevents.CloudEventTaskExecution.getDefaultInstance()) { - event_ = flyteidl.event.Cloudevents.CloudEventTaskExecution.newBuilder((flyteidl.event.Cloudevents.CloudEventTaskExecution) event_) - .mergeFrom(value).buildPartial(); - } else { - event_ = value; + public Builder addInputs(flyteidl.core.ArtifactId.ArtifactID value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureInputsIsMutable(); + inputs_.add(value); onChanged(); } else { - if (eventCase_ == 2) { - taskExecutionEventBuilder_.mergeFrom(value); - } - taskExecutionEventBuilder_.setMessage(value); + inputsBuilder_.addMessage(value); } - eventCase_ = 2; return this; } /** - * .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public Builder clearTaskExecutionEvent() { - if (taskExecutionEventBuilder_ == null) { - if (eventCase_ == 2) { - eventCase_ = 0; - event_ = null; - onChanged(); + public Builder addInputs( + int index, flyteidl.core.ArtifactId.ArtifactID value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureInputsIsMutable(); + inputs_.add(index, value); + onChanged(); } else { - if (eventCase_ == 2) { - eventCase_ = 0; - event_ = null; - } - taskExecutionEventBuilder_.clear(); + inputsBuilder_.addMessage(index, value); } return this; } /** - * .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; - */ - public flyteidl.event.Cloudevents.CloudEventTaskExecution.Builder getTaskExecutionEventBuilder() { - return getTaskExecutionEventFieldBuilder().getBuilder(); - } - /** - * .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public flyteidl.event.Cloudevents.CloudEventTaskExecutionOrBuilder getTaskExecutionEventOrBuilder() { - if ((eventCase_ == 2) && (taskExecutionEventBuilder_ != null)) { - return taskExecutionEventBuilder_.getMessageOrBuilder(); + public Builder addInputs( + flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(builderForValue.build()); + onChanged(); } else { - if (eventCase_ == 2) { - return (flyteidl.event.Cloudevents.CloudEventTaskExecution) event_; - } - return flyteidl.event.Cloudevents.CloudEventTaskExecution.getDefaultInstance(); + inputsBuilder_.addMessage(builderForValue.build()); } + return this; } /** - * .flyteidl.event.CloudEventTaskExecution task_execution_event = 2; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Cloudevents.CloudEventTaskExecution, flyteidl.event.Cloudevents.CloudEventTaskExecution.Builder, flyteidl.event.Cloudevents.CloudEventTaskExecutionOrBuilder> - getTaskExecutionEventFieldBuilder() { - if (taskExecutionEventBuilder_ == null) { - if (!(eventCase_ == 2)) { - event_ = flyteidl.event.Cloudevents.CloudEventTaskExecution.getDefaultInstance(); - } - taskExecutionEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Cloudevents.CloudEventTaskExecution, flyteidl.event.Cloudevents.CloudEventTaskExecution.Builder, flyteidl.event.Cloudevents.CloudEventTaskExecutionOrBuilder>( - (flyteidl.event.Cloudevents.CloudEventTaskExecution) event_, - getParentForChildren(), - isClean()); - event_ = null; + public Builder addInputs( + int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(index, builderForValue.build()); } - eventCase_ = 2; - onChanged();; - return taskExecutionEventBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Cloudevents.CloudEventNodeExecution, flyteidl.event.Cloudevents.CloudEventNodeExecution.Builder, flyteidl.event.Cloudevents.CloudEventNodeExecutionOrBuilder> nodeExecutionEventBuilder_; - /** - * .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; - */ - public boolean hasNodeExecutionEvent() { - return eventCase_ == 3; + return this; } /** - * .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public flyteidl.event.Cloudevents.CloudEventNodeExecution getNodeExecutionEvent() { - if (nodeExecutionEventBuilder_ == null) { - if (eventCase_ == 3) { - return (flyteidl.event.Cloudevents.CloudEventNodeExecution) event_; - } - return flyteidl.event.Cloudevents.CloudEventNodeExecution.getDefaultInstance(); + public Builder addAllInputs( + java.lang.Iterable values) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputs_); + onChanged(); } else { - if (eventCase_ == 3) { - return nodeExecutionEventBuilder_.getMessage(); - } - return flyteidl.event.Cloudevents.CloudEventNodeExecution.getDefaultInstance(); + inputsBuilder_.addAllMessages(values); } + return this; } /** - * .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public Builder setNodeExecutionEvent(flyteidl.event.Cloudevents.CloudEventNodeExecution value) { - if (nodeExecutionEventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - event_ = value; + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { - nodeExecutionEventBuilder_.setMessage(value); + inputsBuilder_.clear(); } - eventCase_ = 3; return this; } /** - * .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public Builder setNodeExecutionEvent( - flyteidl.event.Cloudevents.CloudEventNodeExecution.Builder builderForValue) { - if (nodeExecutionEventBuilder_ == null) { - event_ = builderForValue.build(); + public Builder removeInputs(int index) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.remove(index); onChanged(); } else { - nodeExecutionEventBuilder_.setMessage(builderForValue.build()); + inputsBuilder_.remove(index); } - eventCase_ = 3; return this; } /** - * .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; + */ + public flyteidl.core.ArtifactId.ArtifactID.Builder getInputsBuilder( + int index) { + return getInputsFieldBuilder().getBuilder(index); + } + /** + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public Builder mergeNodeExecutionEvent(flyteidl.event.Cloudevents.CloudEventNodeExecution value) { - if (nodeExecutionEventBuilder_ == null) { - if (eventCase_ == 3 && - event_ != flyteidl.event.Cloudevents.CloudEventNodeExecution.getDefaultInstance()) { - event_ = flyteidl.event.Cloudevents.CloudEventNodeExecution.newBuilder((flyteidl.event.Cloudevents.CloudEventNodeExecution) event_) - .mergeFrom(value).buildPartial(); - } else { - event_ = value; - } - onChanged(); - } else { - if (eventCase_ == 3) { - nodeExecutionEventBuilder_.mergeFrom(value); - } - nodeExecutionEventBuilder_.setMessage(value); + public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getInputsOrBuilder( + int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); } else { + return inputsBuilder_.getMessageOrBuilder(index); } - eventCase_ = 3; - return this; } /** - * .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public Builder clearNodeExecutionEvent() { - if (nodeExecutionEventBuilder_ == null) { - if (eventCase_ == 3) { - eventCase_ = 0; - event_ = null; - onChanged(); - } + public java.util.List + getInputsOrBuilderList() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilderList(); } else { - if (eventCase_ == 3) { - eventCase_ = 0; - event_ = null; - } - nodeExecutionEventBuilder_.clear(); + return java.util.Collections.unmodifiableList(inputs_); } - return this; } /** - * .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public flyteidl.event.Cloudevents.CloudEventNodeExecution.Builder getNodeExecutionEventBuilder() { - return getNodeExecutionEventFieldBuilder().getBuilder(); + public flyteidl.core.ArtifactId.ArtifactID.Builder addInputsBuilder() { + return getInputsFieldBuilder().addBuilder( + flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); } /** - * .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - public flyteidl.event.Cloudevents.CloudEventNodeExecutionOrBuilder getNodeExecutionEventOrBuilder() { - if ((eventCase_ == 3) && (nodeExecutionEventBuilder_ != null)) { - return nodeExecutionEventBuilder_.getMessageOrBuilder(); - } else { - if (eventCase_ == 3) { - return (flyteidl.event.Cloudevents.CloudEventNodeExecution) event_; - } - return flyteidl.event.Cloudevents.CloudEventNodeExecution.getDefaultInstance(); - } + public flyteidl.core.ArtifactId.ArtifactID.Builder addInputsBuilder( + int index) { + return getInputsFieldBuilder().addBuilder( + index, flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); } /** - * .flyteidl.event.CloudEventNodeExecution node_execution_event = 3; + *
+       * can make this a map in the future, currently no need.
+       * 
+ * + * repeated .flyteidl.core.ArtifactID inputs = 2; */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Cloudevents.CloudEventNodeExecution, flyteidl.event.Cloudevents.CloudEventNodeExecution.Builder, flyteidl.event.Cloudevents.CloudEventNodeExecutionOrBuilder> - getNodeExecutionEventFieldBuilder() { - if (nodeExecutionEventBuilder_ == null) { - if (!(eventCase_ == 3)) { - event_ = flyteidl.event.Cloudevents.CloudEventNodeExecution.getDefaultInstance(); - } - nodeExecutionEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Cloudevents.CloudEventNodeExecution, flyteidl.event.Cloudevents.CloudEventNodeExecution.Builder, flyteidl.event.Cloudevents.CloudEventNodeExecutionOrBuilder>( - (flyteidl.event.Cloudevents.CloudEventNodeExecution) event_, + public java.util.List + getInputsBuilderList() { + return getInputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder>( + inputs_, + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - event_ = null; + inputs_ = null; } - eventCase_ = 3; - onChanged();; - return nodeExecutionEventBuilder_; + return inputsBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -17809,63 +19442,63 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.artifact.CloudEventRequest) + // @@protoc_insertion_point(builder_scope:flyteidl.artifact.ExecutionInputsRequest) } - // @@protoc_insertion_point(class_scope:flyteidl.artifact.CloudEventRequest) - private static final flyteidl.artifact.Artifacts.CloudEventRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.artifact.ExecutionInputsRequest) + private static final flyteidl.artifact.Artifacts.ExecutionInputsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.CloudEventRequest(); + DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ExecutionInputsRequest(); } - public static flyteidl.artifact.Artifacts.CloudEventRequest getDefaultInstance() { + public static flyteidl.artifact.Artifacts.ExecutionInputsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public CloudEventRequest parsePartialFrom( + public ExecutionInputsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudEventRequest(input, extensionRegistry); + return new ExecutionInputsRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.artifact.Artifacts.CloudEventRequest getDefaultInstanceForType() { + public flyteidl.artifact.Artifacts.ExecutionInputsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface CloudEventResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.CloudEventResponse) + public interface ExecutionInputsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ExecutionInputsResponse) com.google.protobuf.MessageOrBuilder { } /** - * Protobuf type {@code flyteidl.artifact.CloudEventResponse} + * Protobuf type {@code flyteidl.artifact.ExecutionInputsResponse} */ - public static final class CloudEventResponse extends + public static final class ExecutionInputsResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.CloudEventResponse) - CloudEventResponseOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.artifact.ExecutionInputsResponse) + ExecutionInputsResponseOrBuilder { private static final long serialVersionUID = 0L; - // Use CloudEventResponse.newBuilder() to construct. - private CloudEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ExecutionInputsResponse.newBuilder() to construct. + private ExecutionInputsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CloudEventResponse() { + private ExecutionInputsResponse() { } @java.lang.Override @@ -17873,7 +19506,7 @@ private CloudEventResponse() { getUnknownFields() { return this.unknownFields; } - private CloudEventResponse( + private ExecutionInputsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -17912,15 +19545,15 @@ private CloudEventResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CloudEventResponse_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CloudEventResponse_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.CloudEventResponse.class, flyteidl.artifact.Artifacts.CloudEventResponse.Builder.class); + flyteidl.artifact.Artifacts.ExecutionInputsResponse.class, flyteidl.artifact.Artifacts.ExecutionInputsResponse.Builder.class); } private byte memoizedIsInitialized = -1; @@ -17956,10 +19589,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.artifact.Artifacts.CloudEventResponse)) { + if (!(obj instanceof flyteidl.artifact.Artifacts.ExecutionInputsResponse)) { return super.equals(obj); } - flyteidl.artifact.Artifacts.CloudEventResponse other = (flyteidl.artifact.Artifacts.CloudEventResponse) obj; + flyteidl.artifact.Artifacts.ExecutionInputsResponse other = (flyteidl.artifact.Artifacts.ExecutionInputsResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -17977,69 +19610,69 @@ public int hashCode() { return hash; } - public static flyteidl.artifact.Artifacts.CloudEventResponse parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.CloudEventResponse parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.CloudEventResponse parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.CloudEventResponse parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.CloudEventResponse parseFrom(byte[] data) + public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.CloudEventResponse parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.CloudEventResponse parseFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.CloudEventResponse parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.CloudEventResponse parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.CloudEventResponse parseDelimitedFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.CloudEventResponse parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.CloudEventResponse parseFrom( + public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -18052,7 +19685,7 @@ public static flyteidl.artifact.Artifacts.CloudEventResponse parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.artifact.Artifacts.CloudEventResponse prototype) { + public static Builder newBuilder(flyteidl.artifact.Artifacts.ExecutionInputsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -18068,26 +19701,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.artifact.CloudEventResponse} + * Protobuf type {@code flyteidl.artifact.ExecutionInputsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.CloudEventResponse) - flyteidl.artifact.Artifacts.CloudEventResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ExecutionInputsResponse) + flyteidl.artifact.Artifacts.ExecutionInputsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CloudEventResponse_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CloudEventResponse_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.CloudEventResponse.class, flyteidl.artifact.Artifacts.CloudEventResponse.Builder.class); + flyteidl.artifact.Artifacts.ExecutionInputsResponse.class, flyteidl.artifact.Artifacts.ExecutionInputsResponse.Builder.class); } - // Construct using flyteidl.artifact.Artifacts.CloudEventResponse.newBuilder() + // Construct using flyteidl.artifact.Artifacts.ExecutionInputsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -18111,17 +19744,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CloudEventResponse_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsResponse_descriptor; } @java.lang.Override - public flyteidl.artifact.Artifacts.CloudEventResponse getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.CloudEventResponse.getDefaultInstance(); + public flyteidl.artifact.Artifacts.ExecutionInputsResponse getDefaultInstanceForType() { + return flyteidl.artifact.Artifacts.ExecutionInputsResponse.getDefaultInstance(); } @java.lang.Override - public flyteidl.artifact.Artifacts.CloudEventResponse build() { - flyteidl.artifact.Artifacts.CloudEventResponse result = buildPartial(); + public flyteidl.artifact.Artifacts.ExecutionInputsResponse build() { + flyteidl.artifact.Artifacts.ExecutionInputsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -18129,8 +19762,8 @@ public flyteidl.artifact.Artifacts.CloudEventResponse build() { } @java.lang.Override - public flyteidl.artifact.Artifacts.CloudEventResponse buildPartial() { - flyteidl.artifact.Artifacts.CloudEventResponse result = new flyteidl.artifact.Artifacts.CloudEventResponse(this); + public flyteidl.artifact.Artifacts.ExecutionInputsResponse buildPartial() { + flyteidl.artifact.Artifacts.ExecutionInputsResponse result = new flyteidl.artifact.Artifacts.ExecutionInputsResponse(this); onBuilt(); return result; } @@ -18169,16 +19802,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.artifact.Artifacts.CloudEventResponse) { - return mergeFrom((flyteidl.artifact.Artifacts.CloudEventResponse)other); + if (other instanceof flyteidl.artifact.Artifacts.ExecutionInputsResponse) { + return mergeFrom((flyteidl.artifact.Artifacts.ExecutionInputsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.artifact.Artifacts.CloudEventResponse other) { - if (other == flyteidl.artifact.Artifacts.CloudEventResponse.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.artifact.Artifacts.ExecutionInputsResponse other) { + if (other == flyteidl.artifact.Artifacts.ExecutionInputsResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -18194,11 +19827,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.artifact.Artifacts.CloudEventResponse parsedMessage = null; + flyteidl.artifact.Artifacts.ExecutionInputsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.CloudEventResponse) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.artifact.Artifacts.ExecutionInputsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -18220,41 +19853,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.artifact.CloudEventResponse) + // @@protoc_insertion_point(builder_scope:flyteidl.artifact.ExecutionInputsResponse) } - // @@protoc_insertion_point(class_scope:flyteidl.artifact.CloudEventResponse) - private static final flyteidl.artifact.Artifacts.CloudEventResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.artifact.ExecutionInputsResponse) + private static final flyteidl.artifact.Artifacts.ExecutionInputsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.CloudEventResponse(); + DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ExecutionInputsResponse(); } - public static flyteidl.artifact.Artifacts.CloudEventResponse getDefaultInstance() { + public static flyteidl.artifact.Artifacts.ExecutionInputsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public CloudEventResponse parsePartialFrom( + public ExecutionInputsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudEventResponse(input, extensionRegistry); + return new ExecutionInputsResponse(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.artifact.Artifacts.CloudEventResponse getDefaultInstanceForType() { + public flyteidl.artifact.Artifacts.ExecutionInputsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -18275,6 +19908,11 @@ public flyteidl.artifact.Artifacts.CloudEventResponse getDefaultInstanceForType( private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_artifact_CreateArtifactRequest_PartitionsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_artifact_ArtifactSource_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_artifact_ArtifactSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_artifact_ArtifactSpec_descriptor; private static final @@ -18296,15 +19934,10 @@ public flyteidl.artifact.Artifacts.CloudEventResponse getDefaultInstanceForType( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_artifact_GetArtifactResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_ListArtifactNamesRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_ListArtifactNamesRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_ListArtifactNamesResponse_descriptor; + internal_static_flyteidl_artifact_SearchOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_ListArtifactNamesResponse_fieldAccessorTable; + internal_static_flyteidl_artifact_SearchOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor; private static final @@ -18315,6 +19948,11 @@ public flyteidl.artifact.Artifacts.CloudEventResponse getDefaultInstanceForType( private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_artifact_SearchArtifactsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_artifact_FindByWorkflowExecRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_artifact_FindByWorkflowExecRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_artifact_AddTagRequest_descriptor; private static final @@ -18371,15 +20009,15 @@ public flyteidl.artifact.Artifacts.CloudEventResponse getDefaultInstanceForType( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_artifact_RegisterResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_CloudEventRequest_descriptor; + internal_static_flyteidl_artifact_ExecutionInputsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_CloudEventRequest_fieldAccessorTable; + internal_static_flyteidl_artifact_ExecutionInputsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_CloudEventResponse_descriptor; + internal_static_flyteidl_artifact_ExecutionInputsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_CloudEventResponse_fieldAccessorTable; + internal_static_flyteidl_artifact_ExecutionInputsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -18397,86 +20035,94 @@ public flyteidl.artifact.Artifacts.CloudEventResponse getDefaultInstanceForType( "to\032\036flyteidl/core/identifier.proto\032\037flyt" + "eidl/core/artifact_id.proto\032\035flyteidl/co" + "re/interface.proto\032 flyteidl/event/cloud" + - "events.proto\"w\n\010Artifact\022.\n\013artifact_id\030" + - "\001 \001(\0132\031.flyteidl.core.ArtifactID\022-\n\004spec" + - "\030\002 \001(\0132\037.flyteidl.artifact.ArtifactSpec\022" + - "\014\n\004tags\030\003 \003(\t\"\227\002\n\025CreateArtifactRequest\022" + - "0\n\014artifact_key\030\001 \001(\0132\032.flyteidl.core.Ar" + - "tifactKey\022\017\n\007version\030\003 \001(\t\022-\n\004spec\030\002 \001(\013" + - "2\037.flyteidl.artifact.ArtifactSpec\022L\n\npar" + - "titions\030\004 \003(\01328.flyteidl.artifact.Create" + - "ArtifactRequest.PartitionsEntry\022\013\n\003tag\030\005" + - " \001(\t\0321\n\017PartitionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001\"\320\002\n\014ArtifactSpec\022%\n\005valu" + - "e\030\001 \001(\0132\026.flyteidl.core.Literal\022(\n\004type\030" + - "\002 \001(\0132\032.flyteidl.core.LiteralType\022>\n\016tas" + - "k_execution\030\005 \001(\0132&.flyteidl.core.TaskEx" + - "ecutionIdentifier\022=\n\texecution\030\006 \001(\0132*.f" + - "lyteidl.core.WorkflowExecutionIdentifier" + - "\022\021\n\tprincipal\030\007 \001(\t\022\031\n\021short_description" + - "\030\010 \001(\t\022+\n\ruser_metadata\030\n \001(\0132\024.google.p" + - "rotobuf.Any\022\025\n\rmetadata_type\030\013 \001(\t\"G\n\026Cr" + - "eateArtifactResponse\022-\n\010artifact\030\001 \001(\0132\033" + - ".flyteidl.artifact.Artifact\"R\n\022GetArtifa" + - "ctRequest\022+\n\005query\030\001 \001(\0132\034.flyteidl.core" + - ".ArtifactQuery\022\017\n\007details\030\002 \001(\010\"D\n\023GetAr" + - "tifactResponse\022-\n\010artifact\030\001 \001(\0132\033.flyte" + - "idl.artifact.Artifact\";\n\030ListArtifactNam" + - "esRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + - "(\t\"N\n\031ListArtifactNamesResponse\0221\n\rartif" + - "act_keys\030\001 \003(\0132\032.flyteidl.core.ArtifactK" + - "ey\"y\n\026SearchArtifactsRequest\0220\n\014artifact" + - "_key\030\001 \001(\0132\032.flyteidl.core.ArtifactKey\022\017" + - "\n\007filters\030\002 \001(\t\022\r\n\005token\030\003 \001(\t\022\r\n\005limit\030" + - "\004 \001(\005\"I\n\027SearchArtifactsResponse\022.\n\tarti" + - "facts\030\001 \003(\0132\033.flyteidl.artifact.Artifact" + - "\"a\n\rAddTagRequest\022.\n\013artifact_id\030\001 \001(\0132\031" + - ".flyteidl.core.ArtifactID\022\r\n\005value\030\002 \001(\t" + - "\022\021\n\toverwrite\030\003 \001(\010\"\020\n\016AddTagResponse\"O\n" + - "\024CreateTriggerRequest\0227\n\023trigger_launch_" + - "plan\030\001 \001(\0132\032.flyteidl.admin.LaunchPlan\"\027" + - "\n\025CreateTriggerResponse\"E\n\024DeleteTrigger" + - "Request\022-\n\ntrigger_id\030\001 \001(\0132\031.flyteidl.c" + - "ore.Identifier\"\027\n\025DeleteTriggerResponse\"" + - "m\n\020ArtifactProducer\022,\n\tentity_id\030\001 \001(\0132\031" + - ".flyteidl.core.Identifier\022+\n\007outputs\030\002 \001" + - "(\0132\032.flyteidl.core.VariableMap\"Q\n\027Regist" + - "erProducerRequest\0226\n\tproducers\030\001 \003(\0132#.f" + - "lyteidl.artifact.ArtifactProducer\"m\n\020Art" + - "ifactConsumer\022,\n\tentity_id\030\001 \001(\0132\031.flyte" + - "idl.core.Identifier\022+\n\006inputs\030\002 \001(\0132\033.fl" + - "yteidl.core.ParameterMap\"Q\n\027RegisterCons" + - "umerRequest\0226\n\tconsumers\030\001 \003(\0132#.flyteid" + - "l.artifact.ArtifactConsumer\"\022\n\020RegisterR" + - "esponse\"\377\001\n\021CloudEventRequest\022O\n\030workflo" + - "w_execution_event\030\001 \001(\0132+.flyteidl.event" + - ".CloudEventWorkflowExecutionH\000\022G\n\024task_e" + - "xecution_event\030\002 \001(\0132\'.flyteidl.event.Cl" + - "oudEventTaskExecutionH\000\022G\n\024node_executio" + - "n_event\030\003 \001(\0132\'.flyteidl.event.CloudEven" + - "tNodeExecutionH\000B\007\n\005event\"\024\n\022CloudEventR" + - "esponse2\273\013\n\020ArtifactRegistry\022g\n\016CreateAr" + - "tifact\022(.flyteidl.artifact.CreateArtifac" + - "tRequest\032).flyteidl.artifact.CreateArtif" + - "actResponse\"\000\022\315\004\n\013GetArtifact\022%.flyteidl" + - ".artifact.GetArtifactRequest\032&.flyteidl." + - "artifact.GetArtifactResponse\"\356\003\202\323\344\223\002\347\003\022\022" + - "/data/v1/artifactsZ\252\001\022\247\001/data/v1/artifac" + - "t/id/{query.artifact_id.artifact_key.pro" + - "ject}/{query.artifact_id.artifact_key.do" + - "main}/{query.artifact_id.artifact_key.na" + - "me}/{query.artifact_id.version}Z\216\001\022\213\001/da" + - "ta/v1/artifact/id/{query.artifact_id.art" + - "ifact_key.project}/{query.artifact_id.ar" + - "tifact_key.domain}/{query.artifact_id.ar" + - "tifact_key.name}Z\222\001\022\217\001/data/v1/artifact/" + - "tag/{query.artifact_tag.artifact_key.pro" + - "ject}/{query.artifact_tag.artifact_key.d" + - "omain}/{query.artifact_tag.artifact_key." + - "name}\022\202\002\n\017SearchArtifacts\022).flyteidl.art" + - "ifact.SearchArtifactsRequest\032*.flyteidl." + - "artifact.SearchArtifactsResponse\"\227\001\202\323\344\223\002" + - "\220\001\022O/data/v1/query/{artifact_key.project" + + "events.proto\"\252\001\n\010Artifact\022.\n\013artifact_id" + + "\030\001 \001(\0132\031.flyteidl.core.ArtifactID\022-\n\004spe" + + "c\030\002 \001(\0132\037.flyteidl.artifact.ArtifactSpec" + + "\022\014\n\004tags\030\003 \003(\t\0221\n\006source\030\004 \001(\0132!.flyteid" + + "l.artifact.ArtifactSource\"\312\002\n\025CreateArti" + + "factRequest\0220\n\014artifact_key\030\001 \001(\0132\032.flyt" + + "eidl.core.ArtifactKey\022\017\n\007version\030\003 \001(\t\022-" + + "\n\004spec\030\002 \001(\0132\037.flyteidl.artifact.Artifac" + + "tSpec\022L\n\npartitions\030\004 \003(\01328.flyteidl.art" + + "ifact.CreateArtifactRequest.PartitionsEn" + + "try\022\013\n\003tag\030\005 \001(\t\0221\n\006source\030\006 \001(\0132!.flyte" + + "idl.artifact.ArtifactSource\0321\n\017Partition" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\277" + + "\001\n\016ArtifactSource\022F\n\022workflow_execution\030" + + "\001 \001(\0132*.flyteidl.core.WorkflowExecutionI" + + "dentifier\022\017\n\007node_id\030\002 \001(\t\022*\n\007task_id\030\003 " + + "\001(\0132\031.flyteidl.core.Identifier\022\025\n\rretry_" + + "attempt\030\004 \001(\r\022\021\n\tprincipal\030\005 \001(\t\"\276\001\n\014Art" + + "ifactSpec\022%\n\005value\030\001 \001(\0132\026.flyteidl.core" + + ".Literal\022(\n\004type\030\002 \001(\0132\032.flyteidl.core.L" + + "iteralType\022\031\n\021short_description\030\003 \001(\t\022+\n" + + "\ruser_metadata\030\004 \001(\0132\024.google.protobuf.A" + + "ny\022\025\n\rmetadata_type\030\005 \001(\t\"G\n\026CreateArtif" + + "actResponse\022-\n\010artifact\030\001 \001(\0132\033.flyteidl" + + ".artifact.Artifact\"R\n\022GetArtifactRequest" + + "\022+\n\005query\030\001 \001(\0132\034.flyteidl.core.Artifact" + + "Query\022\017\n\007details\030\002 \001(\010\"D\n\023GetArtifactRes" + + "ponse\022-\n\010artifact\030\001 \001(\0132\033.flyteidl.artif" + + "act.Artifact\"A\n\rSearchOptions\022\031\n\021strict_" + + "partitions\030\001 \001(\010\022\025\n\rlatest_by_key\030\002 \001(\010\"" + + "\356\001\n\026SearchArtifactsRequest\0220\n\014artifact_k" + + "ey\030\001 \001(\0132\032.flyteidl.core.ArtifactKey\022-\n\n" + + "partitions\030\002 \001(\0132\031.flyteidl.core.Partiti" + + "ons\022\021\n\tprincipal\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\022" + + "1\n\007options\030\005 \001(\0132 .flyteidl.artifact.Sea" + + "rchOptions\022\r\n\005token\030\006 \001(\t\022\r\n\005limit\030\007 \001(\005" + + "\"X\n\027SearchArtifactsResponse\022.\n\tartifacts" + + "\030\001 \003(\0132\033.flyteidl.artifact.Artifact\022\r\n\005t" + + "oken\030\002 \001(\t\"\336\001\n\031FindByWorkflowExecRequest" + + "\022;\n\007exec_id\030\001 \001(\0132*.flyteidl.core.Workfl" + + "owExecutionIdentifier\022I\n\tdirection\030\002 \001(\016" + + "26.flyteidl.artifact.FindByWorkflowExecR" + + "equest.Direction\022\023\n\013fetch_specs\030\003 \001(\010\"$\n" + + "\tDirection\022\n\n\006INPUTS\020\000\022\013\n\007OUTPUTS\020\001\"a\n\rA" + + "ddTagRequest\022.\n\013artifact_id\030\001 \001(\0132\031.flyt" + + "eidl.core.ArtifactID\022\r\n\005value\030\002 \001(\t\022\021\n\to" + + "verwrite\030\003 \001(\010\"\020\n\016AddTagResponse\"O\n\024Crea" + + "teTriggerRequest\0227\n\023trigger_launch_plan\030" + + "\001 \001(\0132\032.flyteidl.admin.LaunchPlan\"\027\n\025Cre" + + "ateTriggerResponse\"E\n\024DeleteTriggerReque" + + "st\022-\n\ntrigger_id\030\001 \001(\0132\031.flyteidl.core.I" + + "dentifier\"\027\n\025DeleteTriggerResponse\"m\n\020Ar" + + "tifactProducer\022,\n\tentity_id\030\001 \001(\0132\031.flyt" + + "eidl.core.Identifier\022+\n\007outputs\030\002 \001(\0132\032." + + "flyteidl.core.VariableMap\"Q\n\027RegisterPro" + + "ducerRequest\0226\n\tproducers\030\001 \003(\0132#.flytei" + + "dl.artifact.ArtifactProducer\"m\n\020Artifact" + + "Consumer\022,\n\tentity_id\030\001 \001(\0132\031.flyteidl.c" + + "ore.Identifier\022+\n\006inputs\030\002 \001(\0132\033.flyteid" + + "l.core.ParameterMap\"Q\n\027RegisterConsumerR" + + "equest\0226\n\tconsumers\030\001 \003(\0132#.flyteidl.art" + + "ifact.ArtifactConsumer\"\022\n\020RegisterRespon" + + "se\"\205\001\n\026ExecutionInputsRequest\022@\n\014executi" + + "on_id\030\001 \001(\0132*.flyteidl.core.WorkflowExec" + + "utionIdentifier\022)\n\006inputs\030\002 \003(\0132\031.flytei" + + "dl.core.ArtifactID\"\031\n\027ExecutionInputsRes" + + "ponse2\365\r\n\020ArtifactRegistry\022g\n\016CreateArti" + + "fact\022(.flyteidl.artifact.CreateArtifactR" + + "equest\032).flyteidl.artifact.CreateArtifac" + + "tResponse\"\000\022\315\004\n\013GetArtifact\022%.flyteidl.a" + + "rtifact.GetArtifactRequest\032&.flyteidl.ar" + + "tifact.GetArtifactResponse\"\356\003\202\323\344\223\002\347\003\022\022/d" + + "ata/v1/artifactsZ\252\001\022\247\001/data/v1/artifact/" + + "id/{query.artifact_id.artifact_key.proje" + + "ct}/{query.artifact_id.artifact_key.doma" + + "in}/{query.artifact_id.artifact_key.name" + + "}/{query.artifact_id.version}Z\216\001\022\213\001/data" + + "/v1/artifact/id/{query.artifact_id.artif" + + "act_key.project}/{query.artifact_id.arti" + + "fact_key.domain}/{query.artifact_id.arti" + + "fact_key.name}Z\222\001\022\217\001/data/v1/artifact/ta" + + "g/{query.artifact_tag.artifact_key.proje" + + "ct}/{query.artifact_tag.artifact_key.dom" + + "ain}/{query.artifact_tag.artifact_key.na" + + "me}\022\204\002\n\017SearchArtifacts\022).flyteidl.artif" + + "act.SearchArtifactsRequest\032*.flyteidl.ar" + + "tifact.SearchArtifactsResponse\"\231\001\202\323\344\223\002\222\001" + + "\022Q/data/v1/query/s/{artifact_key.project" + "}/{artifact_key.domain}/{artifact_key.na" + "me}Z=\022;/data/v1/query/{artifact_key.proj" + "ect}/{artifact_key.domain}\022d\n\rCreateTrig" + @@ -18491,9 +20137,17 @@ public flyteidl.artifact.Artifacts.CloudEventResponse getDefaultInstanceForType( "ProducerRequest\032#.flyteidl.artifact.Regi" + "sterResponse\"\000\022e\n\020RegisterConsumer\022*.fly" + "teidl.artifact.RegisterConsumerRequest\032#" + - ".flyteidl.artifact.RegisterResponse\"\000B@Z" + - ">github.com/flyteorg/flyte/flyteidl/gen/" + - "pb-go/flyteidl/artifactb\006proto3" + ".flyteidl.artifact.RegisterResponse\"\000\022m\n" + + "\022SetExecutionInputs\022).flyteidl.artifact." + + "ExecutionInputsRequest\032*.flyteidl.artifa" + + "ct.ExecutionInputsResponse\"\000\022\306\001\n\022FindByW" + + "orkflowExec\022,.flyteidl.artifact.FindByWo" + + "rkflowExecRequest\032*.flyteidl.artifact.Se" + + "archArtifactsResponse\"V\202\323\344\223\002P\022N/data/v1/" + + "query/e/{exec_id.project}/{exec_id.domai" + + "n}/{exec_id.name}/{direction}B@Z>github." + + "com/flyteorg/flyte/flyteidl/gen/pb-go/fl" + + "yteidl/artifactb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -18521,144 +20175,150 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_flyteidl_artifact_Artifact_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_Artifact_descriptor, - new java.lang.String[] { "ArtifactId", "Spec", "Tags", }); + new java.lang.String[] { "ArtifactId", "Spec", "Tags", "Source", }); internal_static_flyteidl_artifact_CreateArtifactRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_flyteidl_artifact_CreateArtifactRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_CreateArtifactRequest_descriptor, - new java.lang.String[] { "ArtifactKey", "Version", "Spec", "Partitions", "Tag", }); + new java.lang.String[] { "ArtifactKey", "Version", "Spec", "Partitions", "Tag", "Source", }); internal_static_flyteidl_artifact_CreateArtifactRequest_PartitionsEntry_descriptor = internal_static_flyteidl_artifact_CreateArtifactRequest_descriptor.getNestedTypes().get(0); internal_static_flyteidl_artifact_CreateArtifactRequest_PartitionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_CreateArtifactRequest_PartitionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_artifact_ArtifactSpec_descriptor = + internal_static_flyteidl_artifact_ArtifactSource_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_artifact_ArtifactSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_artifact_ArtifactSource_descriptor, + new java.lang.String[] { "WorkflowExecution", "NodeId", "TaskId", "RetryAttempt", "Principal", }); + internal_static_flyteidl_artifact_ArtifactSpec_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_flyteidl_artifact_ArtifactSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_ArtifactSpec_descriptor, - new java.lang.String[] { "Value", "Type", "TaskExecution", "Execution", "Principal", "ShortDescription", "UserMetadata", "MetadataType", }); + new java.lang.String[] { "Value", "Type", "ShortDescription", "UserMetadata", "MetadataType", }); internal_static_flyteidl_artifact_CreateArtifactResponse_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_flyteidl_artifact_CreateArtifactResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_CreateArtifactResponse_descriptor, new java.lang.String[] { "Artifact", }); internal_static_flyteidl_artifact_GetArtifactRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_flyteidl_artifact_GetArtifactRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_GetArtifactRequest_descriptor, new java.lang.String[] { "Query", "Details", }); internal_static_flyteidl_artifact_GetArtifactResponse_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_flyteidl_artifact_GetArtifactResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_GetArtifactResponse_descriptor, new java.lang.String[] { "Artifact", }); - internal_static_flyteidl_artifact_ListArtifactNamesRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_artifact_ListArtifactNamesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_ListArtifactNamesRequest_descriptor, - new java.lang.String[] { "Project", "Domain", }); - internal_static_flyteidl_artifact_ListArtifactNamesResponse_descriptor = + internal_static_flyteidl_artifact_SearchOptions_descriptor = getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_artifact_ListArtifactNamesResponse_fieldAccessorTable = new + internal_static_flyteidl_artifact_SearchOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_ListArtifactNamesResponse_descriptor, - new java.lang.String[] { "ArtifactKeys", }); + internal_static_flyteidl_artifact_SearchOptions_descriptor, + new java.lang.String[] { "StrictPartitions", "LatestByKey", }); internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_flyteidl_artifact_SearchArtifactsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor, - new java.lang.String[] { "ArtifactKey", "Filters", "Token", "Limit", }); + new java.lang.String[] { "ArtifactKey", "Partitions", "Principal", "Version", "Options", "Token", "Limit", }); internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_flyteidl_artifact_SearchArtifactsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor, - new java.lang.String[] { "Artifacts", }); - internal_static_flyteidl_artifact_AddTagRequest_descriptor = + new java.lang.String[] { "Artifacts", "Token", }); + internal_static_flyteidl_artifact_FindByWorkflowExecRequest_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_artifact_FindByWorkflowExecRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_artifact_FindByWorkflowExecRequest_descriptor, + new java.lang.String[] { "ExecId", "Direction", "FetchSpecs", }); + internal_static_flyteidl_artifact_AddTagRequest_descriptor = + getDescriptor().getMessageTypes().get(11); internal_static_flyteidl_artifact_AddTagRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_AddTagRequest_descriptor, new java.lang.String[] { "ArtifactId", "Value", "Overwrite", }); internal_static_flyteidl_artifact_AddTagResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_flyteidl_artifact_AddTagResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_AddTagResponse_descriptor, new java.lang.String[] { }); internal_static_flyteidl_artifact_CreateTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_flyteidl_artifact_CreateTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_CreateTriggerRequest_descriptor, new java.lang.String[] { "TriggerLaunchPlan", }); internal_static_flyteidl_artifact_CreateTriggerResponse_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_flyteidl_artifact_CreateTriggerResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_CreateTriggerResponse_descriptor, new java.lang.String[] { }); internal_static_flyteidl_artifact_DeleteTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_flyteidl_artifact_DeleteTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_DeleteTriggerRequest_descriptor, new java.lang.String[] { "TriggerId", }); internal_static_flyteidl_artifact_DeleteTriggerResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_flyteidl_artifact_DeleteTriggerResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_DeleteTriggerResponse_descriptor, new java.lang.String[] { }); internal_static_flyteidl_artifact_ArtifactProducer_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_flyteidl_artifact_ArtifactProducer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_ArtifactProducer_descriptor, new java.lang.String[] { "EntityId", "Outputs", }); internal_static_flyteidl_artifact_RegisterProducerRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_flyteidl_artifact_RegisterProducerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_RegisterProducerRequest_descriptor, new java.lang.String[] { "Producers", }); internal_static_flyteidl_artifact_ArtifactConsumer_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_flyteidl_artifact_ArtifactConsumer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_ArtifactConsumer_descriptor, new java.lang.String[] { "EntityId", "Inputs", }); internal_static_flyteidl_artifact_RegisterConsumerRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_flyteidl_artifact_RegisterConsumerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_RegisterConsumerRequest_descriptor, new java.lang.String[] { "Consumers", }); internal_static_flyteidl_artifact_RegisterResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_flyteidl_artifact_RegisterResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_RegisterResponse_descriptor, new java.lang.String[] { }); - internal_static_flyteidl_artifact_CloudEventRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_flyteidl_artifact_CloudEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_CloudEventRequest_descriptor, - new java.lang.String[] { "WorkflowExecutionEvent", "TaskExecutionEvent", "NodeExecutionEvent", "Event", }); - internal_static_flyteidl_artifact_CloudEventResponse_descriptor = + internal_static_flyteidl_artifact_ExecutionInputsRequest_descriptor = getDescriptor().getMessageTypes().get(22); - internal_static_flyteidl_artifact_CloudEventResponse_fieldAccessorTable = new + internal_static_flyteidl_artifact_ExecutionInputsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_artifact_ExecutionInputsRequest_descriptor, + new java.lang.String[] { "ExecutionId", "Inputs", }); + internal_static_flyteidl_artifact_ExecutionInputsResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_flyteidl_artifact_ExecutionInputsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_CloudEventResponse_descriptor, + internal_static_flyteidl_artifact_ExecutionInputsResponse_descriptor, new java.lang.String[] { }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/flyteidl/gen/pb-java/flyteidl/event/Cloudevents.java b/flyteidl/gen/pb-java/flyteidl/event/Cloudevents.java index 86db3276ab..65bdf5ab1f 100644 --- a/flyteidl/gen/pb-java/flyteidl/event/Cloudevents.java +++ b/flyteidl/gen/pb-java/flyteidl/event/Cloudevents.java @@ -132,6 +132,16 @@ flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( */ flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder(); + /** + * string principal = 7; + */ + java.lang.String getPrincipal(); + /** + * string principal = 7; + */ + com.google.protobuf.ByteString + getPrincipalBytes(); + /** *
      * The ID of the LP that generated the execution that generated the Artifact.
@@ -139,7 +149,7 @@ flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder(
      * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
      * 
* - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ boolean hasLaunchPlanId(); /** @@ -149,7 +159,7 @@ flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId(); /** @@ -159,7 +169,7 @@ flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder(); } @@ -182,6 +192,7 @@ private CloudEventWorkflowExecution(com.google.protobuf.GeneratedMessageV3.Build } private CloudEventWorkflowExecution() { artifactIds_ = java.util.Collections.emptyList(); + principal_ = ""; } @java.lang.Override @@ -283,6 +294,12 @@ private CloudEventWorkflowExecution( break; } case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + principal_ = s; + break; + } + case 66: { flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; if (launchPlanId_ != null) { subBuilder = launchPlanId_.toBuilder(); @@ -496,7 +513,41 @@ public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder g return getReferenceExecution(); } - public static final int LAUNCH_PLAN_ID_FIELD_NUMBER = 7; + public static final int PRINCIPAL_FIELD_NUMBER = 7; + private volatile java.lang.Object principal_; + /** + * string principal = 7; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } + } + /** + * string principal = 7; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAUNCH_PLAN_ID_FIELD_NUMBER = 8; private flyteidl.core.IdentifierOuterClass.Identifier launchPlanId_; /** *
@@ -505,7 +556,7 @@ public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder g
      * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
      * 
* - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public boolean hasLaunchPlanId() { return launchPlanId_ != null; @@ -517,7 +568,7 @@ public boolean hasLaunchPlanId() { * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { return launchPlanId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; @@ -529,7 +580,7 @@ public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder() { return getLaunchPlanId(); @@ -567,8 +618,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (referenceExecution_ != null) { output.writeMessage(6, getReferenceExecution()); } + if (!getPrincipalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, principal_); + } if (launchPlanId_ != null) { - output.writeMessage(7, getLaunchPlanId()); + output.writeMessage(8, getLaunchPlanId()); } unknownFields.writeTo(output); } @@ -603,9 +657,12 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getReferenceExecution()); } + if (!getPrincipalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, principal_); + } if (launchPlanId_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getLaunchPlanId()); + .computeMessageSize(8, getLaunchPlanId()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -649,6 +706,8 @@ public boolean equals(final java.lang.Object obj) { if (!getReferenceExecution() .equals(other.getReferenceExecution())) return false; } + if (!getPrincipal() + .equals(other.getPrincipal())) return false; if (hasLaunchPlanId() != other.hasLaunchPlanId()) return false; if (hasLaunchPlanId()) { if (!getLaunchPlanId() @@ -689,6 +748,8 @@ public int hashCode() { hash = (37 * hash) + REFERENCE_EXECUTION_FIELD_NUMBER; hash = (53 * hash) + getReferenceExecution().hashCode(); } + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().hashCode(); if (hasLaunchPlanId()) { hash = (37 * hash) + LAUNCH_PLAN_ID_FIELD_NUMBER; hash = (53 * hash) + getLaunchPlanId().hashCode(); @@ -868,6 +929,8 @@ public Builder clear() { referenceExecution_ = null; referenceExecutionBuilder_ = null; } + principal_ = ""; + if (launchPlanIdBuilder_ == null) { launchPlanId_ = null; } else { @@ -936,6 +999,7 @@ public flyteidl.event.Cloudevents.CloudEventWorkflowExecution buildPartial() { } else { result.referenceExecution_ = referenceExecutionBuilder_.build(); } + result.principal_ = principal_; if (launchPlanIdBuilder_ == null) { result.launchPlanId_ = launchPlanId_; } else { @@ -1031,6 +1095,10 @@ public Builder mergeFrom(flyteidl.event.Cloudevents.CloudEventWorkflowExecution if (other.hasReferenceExecution()) { mergeReferenceExecution(other.getReferenceExecution()); } + if (!other.getPrincipal().isEmpty()) { + principal_ = other.principal_; + onChanged(); + } if (other.hasLaunchPlanId()) { mergeLaunchPlanId(other.getLaunchPlanId()); } @@ -1979,6 +2047,75 @@ public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder g return referenceExecutionBuilder_; } + private java.lang.Object principal_ = ""; + /** + * string principal = 7; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string principal = 7; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string principal = 7; + */ + public Builder setPrincipal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + principal_ = value; + onChanged(); + return this; + } + /** + * string principal = 7; + */ + public Builder clearPrincipal() { + + principal_ = getDefaultInstance().getPrincipal(); + onChanged(); + return this; + } + /** + * string principal = 7; + */ + public Builder setPrincipalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + principal_ = value; + onChanged(); + return this; + } + private flyteidl.core.IdentifierOuterClass.Identifier launchPlanId_; private com.google.protobuf.SingleFieldBuilderV3< flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchPlanIdBuilder_; @@ -1989,7 +2126,7 @@ public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder g * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public boolean hasLaunchPlanId() { return launchPlanIdBuilder_ != null || launchPlanId_ != null; @@ -2001,7 +2138,7 @@ public boolean hasLaunchPlanId() { * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { if (launchPlanIdBuilder_ == null) { @@ -2017,7 +2154,7 @@ public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public Builder setLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier value) { if (launchPlanIdBuilder_ == null) { @@ -2039,7 +2176,7 @@ public Builder setLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier val * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public Builder setLaunchPlanId( flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { @@ -2059,7 +2196,7 @@ public Builder setLaunchPlanId( * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public Builder mergeLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier value) { if (launchPlanIdBuilder_ == null) { @@ -2083,7 +2220,7 @@ public Builder mergeLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier v * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public Builder clearLaunchPlanId() { if (launchPlanIdBuilder_ == null) { @@ -2103,7 +2240,7 @@ public Builder clearLaunchPlanId() { * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanIdBuilder() { @@ -2117,7 +2254,7 @@ public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanIdBuil * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder() { if (launchPlanIdBuilder_ != null) { @@ -2134,7 +2271,7 @@ public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrB * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> @@ -2356,6 +2493,16 @@ public interface CloudEventNodeExecutionOrBuilder extends flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( int index); + /** + * string principal = 7; + */ + java.lang.String getPrincipal(); + /** + * string principal = 7; + */ + com.google.protobuf.ByteString + getPrincipalBytes(); + /** *
      * The ID of the LP that generated the execution that generated the Artifact.
@@ -2363,7 +2510,7 @@ flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder(
      * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
      * 
* - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ boolean hasLaunchPlanId(); /** @@ -2373,7 +2520,7 @@ flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId(); /** @@ -2383,7 +2530,7 @@ flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder(); } @@ -2401,6 +2548,7 @@ private CloudEventNodeExecution(com.google.protobuf.GeneratedMessageV3.Builderstring principal = 7; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } + } + /** + * string principal = 7; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAUNCH_PLAN_ID_FIELD_NUMBER = 8; private flyteidl.core.IdentifierOuterClass.Identifier launchPlanId_; /** *
@@ -2760,7 +2948,7 @@ public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder(
      * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
      * 
* - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public boolean hasLaunchPlanId() { return launchPlanId_ != null; @@ -2772,7 +2960,7 @@ public boolean hasLaunchPlanId() { * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { return launchPlanId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; @@ -2784,7 +2972,7 @@ public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder() { return getLaunchPlanId(); @@ -2822,8 +3010,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < artifactIds_.size(); i++) { output.writeMessage(6, artifactIds_.get(i)); } + if (!getPrincipalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, principal_); + } if (launchPlanId_ != null) { - output.writeMessage(7, getLaunchPlanId()); + output.writeMessage(8, getLaunchPlanId()); } unknownFields.writeTo(output); } @@ -2858,9 +3049,12 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, artifactIds_.get(i)); } + if (!getPrincipalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, principal_); + } if (launchPlanId_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getLaunchPlanId()); + .computeMessageSize(8, getLaunchPlanId()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2904,6 +3098,8 @@ public boolean equals(final java.lang.Object obj) { } if (!getArtifactIdsList() .equals(other.getArtifactIdsList())) return false; + if (!getPrincipal() + .equals(other.getPrincipal())) return false; if (hasLaunchPlanId() != other.hasLaunchPlanId()) return false; if (hasLaunchPlanId()) { if (!getLaunchPlanId() @@ -2944,6 +3140,8 @@ public int hashCode() { hash = (37 * hash) + ARTIFACT_IDS_FIELD_NUMBER; hash = (53 * hash) + getArtifactIdsList().hashCode(); } + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().hashCode(); if (hasLaunchPlanId()) { hash = (37 * hash) + LAUNCH_PLAN_ID_FIELD_NUMBER; hash = (53 * hash) + getLaunchPlanId().hashCode(); @@ -3118,6 +3316,8 @@ public Builder clear() { } else { artifactIdsBuilder_.clear(); } + principal_ = ""; + if (launchPlanIdBuilder_ == null) { launchPlanId_ = null; } else { @@ -3186,6 +3386,7 @@ public flyteidl.event.Cloudevents.CloudEventNodeExecution buildPartial() { } else { result.artifactIds_ = artifactIdsBuilder_.build(); } + result.principal_ = principal_; if (launchPlanIdBuilder_ == null) { result.launchPlanId_ = launchPlanId_; } else { @@ -3281,6 +3482,10 @@ public Builder mergeFrom(flyteidl.event.Cloudevents.CloudEventNodeExecution othe } } } + if (!other.getPrincipal().isEmpty()) { + principal_ = other.principal_; + onChanged(); + } if (other.hasLaunchPlanId()) { mergeLaunchPlanId(other.getLaunchPlanId()); } @@ -4337,6 +4542,75 @@ public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder( return artifactIdsBuilder_; } + private java.lang.Object principal_ = ""; + /** + * string principal = 7; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string principal = 7; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string principal = 7; + */ + public Builder setPrincipal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + principal_ = value; + onChanged(); + return this; + } + /** + * string principal = 7; + */ + public Builder clearPrincipal() { + + principal_ = getDefaultInstance().getPrincipal(); + onChanged(); + return this; + } + /** + * string principal = 7; + */ + public Builder setPrincipalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + principal_ = value; + onChanged(); + return this; + } + private flyteidl.core.IdentifierOuterClass.Identifier launchPlanId_; private com.google.protobuf.SingleFieldBuilderV3< flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchPlanIdBuilder_; @@ -4347,7 +4621,7 @@ public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder( * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public boolean hasLaunchPlanId() { return launchPlanIdBuilder_ != null || launchPlanId_ != null; @@ -4359,7 +4633,7 @@ public boolean hasLaunchPlanId() { * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { if (launchPlanIdBuilder_ == null) { @@ -4375,7 +4649,7 @@ public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public Builder setLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier value) { if (launchPlanIdBuilder_ == null) { @@ -4397,7 +4671,7 @@ public Builder setLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier val * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public Builder setLaunchPlanId( flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { @@ -4417,7 +4691,7 @@ public Builder setLaunchPlanId( * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public Builder mergeLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier value) { if (launchPlanIdBuilder_ == null) { @@ -4441,7 +4715,7 @@ public Builder mergeLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier v * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public Builder clearLaunchPlanId() { if (launchPlanIdBuilder_ == null) { @@ -4461,7 +4735,7 @@ public Builder clearLaunchPlanId() { * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanIdBuilder() { @@ -4475,7 +4749,7 @@ public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanIdBuil * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder() { if (launchPlanIdBuilder_ != null) { @@ -4492,7 +4766,7 @@ public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrB * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. * * - * .flyteidl.core.Identifier launch_plan_id = 7; + * .flyteidl.core.Identifier launch_plan_id = 8; */ private com.google.protobuf.SingleFieldBuilderV3< flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> @@ -5311,6 +5585,16 @@ flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( */ com.google.protobuf.ByteString getArtifactKeysBytes(int index); + + /** + * string principal = 6; + */ + java.lang.String getPrincipal(); + /** + * string principal = 6; + */ + com.google.protobuf.ByteString + getPrincipalBytes(); } /** *
@@ -5331,6 +5615,7 @@ private CloudEventExecutionStart(com.google.protobuf.GeneratedMessageV3.Builder<
     private CloudEventExecutionStart() {
       artifactIds_ = java.util.Collections.emptyList();
       artifactKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      principal_ = "";
     }
 
     @java.lang.Override
@@ -5414,6 +5699,12 @@ private CloudEventExecutionStart(
               artifactKeys_.add(s);
               break;
             }
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              principal_ = s;
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -5640,6 +5931,40 @@ public java.lang.String getArtifactKeys(int index) {
       return artifactKeys_.getByteString(index);
     }
 
+    public static final int PRINCIPAL_FIELD_NUMBER = 6;
+    private volatile java.lang.Object principal_;
+    /**
+     * string principal = 6;
+     */
+    public java.lang.String getPrincipal() {
+      java.lang.Object ref = principal_;
+      if (ref instanceof java.lang.String) {
+        return (java.lang.String) ref;
+      } else {
+        com.google.protobuf.ByteString bs = 
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        principal_ = s;
+        return s;
+      }
+    }
+    /**
+     * string principal = 6;
+     */
+    public com.google.protobuf.ByteString
+        getPrincipalBytes() {
+      java.lang.Object ref = principal_;
+      if (ref instanceof java.lang.String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        principal_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+
     private byte memoizedIsInitialized = -1;
     @java.lang.Override
     public final boolean isInitialized() {
@@ -5669,6 +5994,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       for (int i = 0; i < artifactKeys_.size(); i++) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 5, artifactKeys_.getRaw(i));
       }
+      if (!getPrincipalBytes().isEmpty()) {
+        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, principal_);
+      }
       unknownFields.writeTo(output);
     }
 
@@ -5702,6 +6030,9 @@ public int getSerializedSize() {
         size += dataSize;
         size += 1 * getArtifactKeysList().size();
       }
+      if (!getPrincipalBytes().isEmpty()) {
+        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, principal_);
+      }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
       return size;
@@ -5736,6 +6067,8 @@ public boolean equals(final java.lang.Object obj) {
           .equals(other.getArtifactIdsList())) return false;
       if (!getArtifactKeysList()
           .equals(other.getArtifactKeysList())) return false;
+      if (!getPrincipal()
+          .equals(other.getPrincipal())) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -5767,6 +6100,8 @@ public int hashCode() {
         hash = (37 * hash) + ARTIFACT_KEYS_FIELD_NUMBER;
         hash = (53 * hash) + getArtifactKeysList().hashCode();
       }
+      hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER;
+      hash = (53 * hash) + getPrincipal().hashCode();
       hash = (29 * hash) + unknownFields.hashCode();
       memoizedHashCode = hash;
       return hash;
@@ -5931,6 +6266,8 @@ public Builder clear() {
         }
         artifactKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         bitField0_ = (bitField0_ & ~0x00000010);
+        principal_ = "";
+
         return this;
       }
 
@@ -5988,6 +6325,7 @@ public flyteidl.event.Cloudevents.CloudEventExecutionStart buildPartial() {
           bitField0_ = (bitField0_ & ~0x00000010);
         }
         result.artifactKeys_ = artifactKeys_;
+        result.principal_ = principal_;
         result.bitField0_ = to_bitField0_;
         onBuilt();
         return result;
@@ -6082,6 +6420,10 @@ public Builder mergeFrom(flyteidl.event.Cloudevents.CloudEventExecutionStart oth
           }
           onChanged();
         }
+        if (!other.getPrincipal().isEmpty()) {
+          principal_ = other.principal_;
+          onChanged();
+        }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
         return this;
@@ -6976,6 +7318,75 @@ public Builder addArtifactKeysBytes(
         onChanged();
         return this;
       }
+
+      private java.lang.Object principal_ = "";
+      /**
+       * string principal = 6;
+       */
+      public java.lang.String getPrincipal() {
+        java.lang.Object ref = principal_;
+        if (!(ref instanceof java.lang.String)) {
+          com.google.protobuf.ByteString bs =
+              (com.google.protobuf.ByteString) ref;
+          java.lang.String s = bs.toStringUtf8();
+          principal_ = s;
+          return s;
+        } else {
+          return (java.lang.String) ref;
+        }
+      }
+      /**
+       * string principal = 6;
+       */
+      public com.google.protobuf.ByteString
+          getPrincipalBytes() {
+        java.lang.Object ref = principal_;
+        if (ref instanceof String) {
+          com.google.protobuf.ByteString b = 
+              com.google.protobuf.ByteString.copyFromUtf8(
+                  (java.lang.String) ref);
+          principal_ = b;
+          return b;
+        } else {
+          return (com.google.protobuf.ByteString) ref;
+        }
+      }
+      /**
+       * string principal = 6;
+       */
+      public Builder setPrincipal(
+          java.lang.String value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+  
+        principal_ = value;
+        onChanged();
+        return this;
+      }
+      /**
+       * string principal = 6;
+       */
+      public Builder clearPrincipal() {
+        
+        principal_ = getDefaultInstance().getPrincipal();
+        onChanged();
+        return this;
+      }
+      /**
+       * string principal = 6;
+       */
+      public Builder setPrincipalBytes(
+          com.google.protobuf.ByteString value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+        
+        principal_ = value;
+        onChanged();
+        return this;
+      }
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -7063,7 +7474,7 @@ public flyteidl.event.Cloudevents.CloudEventExecutionStart getDefaultInstanceFor
       "flyteidl/core/literals.proto\032\035flyteidl/c" +
       "ore/interface.proto\032\037flyteidl/core/artif" +
       "act_id.proto\032\036flyteidl/core/identifier.p" +
-      "roto\032\037google/protobuf/timestamp.proto\"\235\003" +
+      "roto\032\037google/protobuf/timestamp.proto\"\260\003" +
       "\n\033CloudEventWorkflowExecution\0229\n\traw_eve" +
       "nt\030\001 \001(\0132&.flyteidl.event.WorkflowExecut" +
       "ionEvent\022.\n\013output_data\030\002 \001(\0132\031.flyteidl" +
@@ -7073,28 +7484,30 @@ public flyteidl.event.Cloudevents.CloudEventExecutionStart getDefaultInstanceFor
       "\022/\n\014artifact_ids\030\005 \003(\0132\031.flyteidl.core.A" +
       "rtifactID\022G\n\023reference_execution\030\006 \001(\0132*" +
       ".flyteidl.core.WorkflowExecutionIdentifi" +
-      "er\0221\n\016launch_plan_id\030\007 \001(\0132\031.flyteidl.co" +
-      "re.Identifier\"\212\003\n\027CloudEventNodeExecutio" +
-      "n\0225\n\traw_event\030\001 \001(\0132\".flyteidl.event.No" +
-      "deExecutionEvent\022<\n\014task_exec_id\030\002 \001(\0132&" +
-      ".flyteidl.core.TaskExecutionIdentifier\022." +
-      "\n\013output_data\030\003 \001(\0132\031.flyteidl.core.Lite" +
-      "ralMap\0227\n\020output_interface\030\004 \001(\0132\035.flyte" +
-      "idl.core.TypedInterface\022-\n\ninput_data\030\005 " +
-      "\001(\0132\031.flyteidl.core.LiteralMap\022/\n\014artifa" +
-      "ct_ids\030\006 \003(\0132\031.flyteidl.core.ArtifactID\022" +
-      "1\n\016launch_plan_id\030\007 \001(\0132\031.flyteidl.core." +
-      "Identifier\"P\n\027CloudEventTaskExecution\0225\n" +
-      "\traw_event\030\001 \001(\0132\".flyteidl.event.TaskEx" +
-      "ecutionEvent\"\207\002\n\030CloudEventExecutionStar" +
-      "t\022@\n\014execution_id\030\001 \001(\0132*.flyteidl.core." +
-      "WorkflowExecutionIdentifier\0221\n\016launch_pl" +
-      "an_id\030\002 \001(\0132\031.flyteidl.core.Identifier\022." +
-      "\n\013workflow_id\030\003 \001(\0132\031.flyteidl.core.Iden" +
-      "tifier\022/\n\014artifact_ids\030\004 \003(\0132\031.flyteidl." +
-      "core.ArtifactID\022\025\n\rartifact_keys\030\005 \003(\tB=" +
-      "Z;github.com/flyteorg/flyte/flyteidl/gen" +
-      "/pb-go/flyteidl/eventb\006proto3"
+      "er\022\021\n\tprincipal\030\007 \001(\t\0221\n\016launch_plan_id\030" +
+      "\010 \001(\0132\031.flyteidl.core.Identifier\"\235\003\n\027Clo" +
+      "udEventNodeExecution\0225\n\traw_event\030\001 \001(\0132" +
+      "\".flyteidl.event.NodeExecutionEvent\022<\n\014t" +
+      "ask_exec_id\030\002 \001(\0132&.flyteidl.core.TaskEx" +
+      "ecutionIdentifier\022.\n\013output_data\030\003 \001(\0132\031" +
+      ".flyteidl.core.LiteralMap\0227\n\020output_inte" +
+      "rface\030\004 \001(\0132\035.flyteidl.core.TypedInterfa" +
+      "ce\022-\n\ninput_data\030\005 \001(\0132\031.flyteidl.core.L" +
+      "iteralMap\022/\n\014artifact_ids\030\006 \003(\0132\031.flytei" +
+      "dl.core.ArtifactID\022\021\n\tprincipal\030\007 \001(\t\0221\n" +
+      "\016launch_plan_id\030\010 \001(\0132\031.flyteidl.core.Id" +
+      "entifier\"P\n\027CloudEventTaskExecution\0225\n\tr" +
+      "aw_event\030\001 \001(\0132\".flyteidl.event.TaskExec" +
+      "utionEvent\"\232\002\n\030CloudEventExecutionStart\022" +
+      "@\n\014execution_id\030\001 \001(\0132*.flyteidl.core.Wo" +
+      "rkflowExecutionIdentifier\0221\n\016launch_plan" +
+      "_id\030\002 \001(\0132\031.flyteidl.core.Identifier\022.\n\013" +
+      "workflow_id\030\003 \001(\0132\031.flyteidl.core.Identi" +
+      "fier\022/\n\014artifact_ids\030\004 \003(\0132\031.flyteidl.co" +
+      "re.ArtifactID\022\025\n\rartifact_keys\030\005 \003(\t\022\021\n\t" +
+      "principal\030\006 \001(\tB=Z;github.com/flyteorg/f" +
+      "lyte/flyteidl/gen/pb-go/flyteidl/eventb\006" +
+      "proto3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
         new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
@@ -7119,13 +7532,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
     internal_static_flyteidl_event_CloudEventWorkflowExecution_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_flyteidl_event_CloudEventWorkflowExecution_descriptor,
-        new java.lang.String[] { "RawEvent", "OutputData", "OutputInterface", "InputData", "ArtifactIds", "ReferenceExecution", "LaunchPlanId", });
+        new java.lang.String[] { "RawEvent", "OutputData", "OutputInterface", "InputData", "ArtifactIds", "ReferenceExecution", "Principal", "LaunchPlanId", });
     internal_static_flyteidl_event_CloudEventNodeExecution_descriptor =
       getDescriptor().getMessageTypes().get(1);
     internal_static_flyteidl_event_CloudEventNodeExecution_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_flyteidl_event_CloudEventNodeExecution_descriptor,
-        new java.lang.String[] { "RawEvent", "TaskExecId", "OutputData", "OutputInterface", "InputData", "ArtifactIds", "LaunchPlanId", });
+        new java.lang.String[] { "RawEvent", "TaskExecId", "OutputData", "OutputInterface", "InputData", "ArtifactIds", "Principal", "LaunchPlanId", });
     internal_static_flyteidl_event_CloudEventTaskExecution_descriptor =
       getDescriptor().getMessageTypes().get(2);
     internal_static_flyteidl_event_CloudEventTaskExecution_fieldAccessorTable = new
@@ -7137,7 +7550,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
     internal_static_flyteidl_event_CloudEventExecutionStart_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_flyteidl_event_CloudEventExecutionStart_descriptor,
-        new java.lang.String[] { "ExecutionId", "LaunchPlanId", "WorkflowId", "ArtifactIds", "ArtifactKeys", });
+        new java.lang.String[] { "ExecutionId", "LaunchPlanId", "WorkflowId", "ArtifactIds", "ArtifactKeys", "Principal", });
     flyteidl.event.Event.getDescriptor();
     flyteidl.core.Literals.getDescriptor();
     flyteidl.core.Interface.getDescriptor();
diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts
index 3fa8622d98..5b73c6aeb9 100644
--- a/flyteidl/gen/pb-js/flyteidl.d.ts
+++ b/flyteidl/gen/pb-js/flyteidl.d.ts
@@ -7429,6 +7429,9 @@ export namespace flyteidl {
             /** CloudEventWorkflowExecution referenceExecution */
             referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null);
 
+            /** CloudEventWorkflowExecution principal */
+            principal?: (string|null);
+
             /** CloudEventWorkflowExecution launchPlanId */
             launchPlanId?: (flyteidl.core.IIdentifier|null);
         }
@@ -7460,6 +7463,9 @@ export namespace flyteidl {
             /** CloudEventWorkflowExecution referenceExecution. */
             public referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null);
 
+            /** CloudEventWorkflowExecution principal. */
+            public principal: string;
+
             /** CloudEventWorkflowExecution launchPlanId. */
             public launchPlanId?: (flyteidl.core.IIdentifier|null);
 
@@ -7517,6 +7523,9 @@ export namespace flyteidl {
             /** CloudEventNodeExecution artifactIds */
             artifactIds?: (flyteidl.core.IArtifactID[]|null);
 
+            /** CloudEventNodeExecution principal */
+            principal?: (string|null);
+
             /** CloudEventNodeExecution launchPlanId */
             launchPlanId?: (flyteidl.core.IIdentifier|null);
         }
@@ -7548,6 +7557,9 @@ export namespace flyteidl {
             /** CloudEventNodeExecution artifactIds. */
             public artifactIds: flyteidl.core.IArtifactID[];
 
+            /** CloudEventNodeExecution principal. */
+            public principal: string;
+
             /** CloudEventNodeExecution launchPlanId. */
             public launchPlanId?: (flyteidl.core.IIdentifier|null);
 
@@ -7653,6 +7665,9 @@ export namespace flyteidl {
 
             /** CloudEventExecutionStart artifactKeys */
             artifactKeys?: (string[]|null);
+
+            /** CloudEventExecutionStart principal */
+            principal?: (string|null);
         }
 
         /** Represents a CloudEventExecutionStart. */
@@ -7679,6 +7694,9 @@ export namespace flyteidl {
             /** CloudEventExecutionStart artifactKeys. */
             public artifactKeys: string[];
 
+            /** CloudEventExecutionStart principal. */
+            public principal: string;
+
             /**
              * Creates a new CloudEventExecutionStart instance using the specified properties.
              * @param [properties] Properties to set
diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js
index 638786cb1d..b5964b4ba1 100644
--- a/flyteidl/gen/pb-js/flyteidl.js
+++ b/flyteidl/gen/pb-js/flyteidl.js
@@ -17927,6 +17927,7 @@
                  * @property {flyteidl.core.ILiteralMap|null} [inputData] CloudEventWorkflowExecution inputData
                  * @property {Array.|null} [artifactIds] CloudEventWorkflowExecution artifactIds
                  * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [referenceExecution] CloudEventWorkflowExecution referenceExecution
+                 * @property {string|null} [principal] CloudEventWorkflowExecution principal
                  * @property {flyteidl.core.IIdentifier|null} [launchPlanId] CloudEventWorkflowExecution launchPlanId
                  */
     
@@ -17994,6 +17995,14 @@
                  */
                 CloudEventWorkflowExecution.prototype.referenceExecution = null;
     
+                /**
+                 * CloudEventWorkflowExecution principal.
+                 * @member {string} principal
+                 * @memberof flyteidl.event.CloudEventWorkflowExecution
+                 * @instance
+                 */
+                CloudEventWorkflowExecution.prototype.principal = "";
+    
                 /**
                  * CloudEventWorkflowExecution launchPlanId.
                  * @member {flyteidl.core.IIdentifier|null|undefined} launchPlanId
@@ -18039,8 +18048,10 @@
                             $root.flyteidl.core.ArtifactID.encode(message.artifactIds[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
                     if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution"))
                         $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.referenceExecution, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+                    if (message.principal != null && message.hasOwnProperty("principal"))
+                        writer.uint32(/* id 7, wireType 2 =*/58).string(message.principal);
                     if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId"))
-                        $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+                        $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
                     return writer;
                 };
     
@@ -18083,6 +18094,9 @@
                             message.referenceExecution = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32());
                             break;
                         case 7:
+                            message.principal = reader.string();
+                            break;
+                        case 8:
                             message.launchPlanId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32());
                             break;
                         default:
@@ -18138,6 +18152,9 @@
                         if (error)
                             return "referenceExecution." + error;
                     }
+                    if (message.principal != null && message.hasOwnProperty("principal"))
+                        if (!$util.isString(message.principal))
+                            return "principal: string expected";
                     if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) {
                         var error = $root.flyteidl.core.Identifier.verify(message.launchPlanId);
                         if (error)
@@ -18161,6 +18178,7 @@
                  * @property {flyteidl.core.ITypedInterface|null} [outputInterface] CloudEventNodeExecution outputInterface
                  * @property {flyteidl.core.ILiteralMap|null} [inputData] CloudEventNodeExecution inputData
                  * @property {Array.|null} [artifactIds] CloudEventNodeExecution artifactIds
+                 * @property {string|null} [principal] CloudEventNodeExecution principal
                  * @property {flyteidl.core.IIdentifier|null} [launchPlanId] CloudEventNodeExecution launchPlanId
                  */
     
@@ -18228,6 +18246,14 @@
                  */
                 CloudEventNodeExecution.prototype.artifactIds = $util.emptyArray;
     
+                /**
+                 * CloudEventNodeExecution principal.
+                 * @member {string} principal
+                 * @memberof flyteidl.event.CloudEventNodeExecution
+                 * @instance
+                 */
+                CloudEventNodeExecution.prototype.principal = "";
+    
                 /**
                  * CloudEventNodeExecution launchPlanId.
                  * @member {flyteidl.core.IIdentifier|null|undefined} launchPlanId
@@ -18273,8 +18299,10 @@
                     if (message.artifactIds != null && message.artifactIds.length)
                         for (var i = 0; i < message.artifactIds.length; ++i)
                             $root.flyteidl.core.ArtifactID.encode(message.artifactIds[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+                    if (message.principal != null && message.hasOwnProperty("principal"))
+                        writer.uint32(/* id 7, wireType 2 =*/58).string(message.principal);
                     if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId"))
-                        $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+                        $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
                     return writer;
                 };
     
@@ -18317,6 +18345,9 @@
                             message.artifactIds.push($root.flyteidl.core.ArtifactID.decode(reader, reader.uint32()));
                             break;
                         case 7:
+                            message.principal = reader.string();
+                            break;
+                        case 8:
                             message.launchPlanId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32());
                             break;
                         default:
@@ -18372,6 +18403,9 @@
                                 return "artifactIds." + error;
                         }
                     }
+                    if (message.principal != null && message.hasOwnProperty("principal"))
+                        if (!$util.isString(message.principal))
+                            return "principal: string expected";
                     if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) {
                         var error = $root.flyteidl.core.Identifier.verify(message.launchPlanId);
                         if (error)
@@ -18506,6 +18540,7 @@
                  * @property {flyteidl.core.IIdentifier|null} [workflowId] CloudEventExecutionStart workflowId
                  * @property {Array.|null} [artifactIds] CloudEventExecutionStart artifactIds
                  * @property {Array.|null} [artifactKeys] CloudEventExecutionStart artifactKeys
+                 * @property {string|null} [principal] CloudEventExecutionStart principal
                  */
     
                 /**
@@ -18565,6 +18600,14 @@
                  */
                 CloudEventExecutionStart.prototype.artifactKeys = $util.emptyArray;
     
+                /**
+                 * CloudEventExecutionStart principal.
+                 * @member {string} principal
+                 * @memberof flyteidl.event.CloudEventExecutionStart
+                 * @instance
+                 */
+                CloudEventExecutionStart.prototype.principal = "";
+    
                 /**
                  * Creates a new CloudEventExecutionStart instance using the specified properties.
                  * @function create
@@ -18601,6 +18644,8 @@
                     if (message.artifactKeys != null && message.artifactKeys.length)
                         for (var i = 0; i < message.artifactKeys.length; ++i)
                             writer.uint32(/* id 5, wireType 2 =*/42).string(message.artifactKeys[i]);
+                    if (message.principal != null && message.hasOwnProperty("principal"))
+                        writer.uint32(/* id 6, wireType 2 =*/50).string(message.principal);
                     return writer;
                 };
     
@@ -18641,6 +18686,9 @@
                                 message.artifactKeys = [];
                             message.artifactKeys.push(reader.string());
                             break;
+                        case 6:
+                            message.principal = reader.string();
+                            break;
                         default:
                             reader.skipType(tag & 7);
                             break;
@@ -18691,6 +18739,9 @@
                             if (!$util.isString(message.artifactKeys[i]))
                                 return "artifactKeys: string[] expected";
                     }
+                    if (message.principal != null && message.hasOwnProperty("principal"))
+                        if (!$util.isString(message.principal))
+                            return "principal: string expected";
                     return null;
                 };
     
diff --git a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.py b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.py
index 0ce13f36dc..fcb8ea1dfd 100644
--- a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.py
+++ b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.py
@@ -22,7 +22,7 @@
 from flyteidl.event import cloudevents_pb2 as flyteidl_dot_event_dot_cloudevents__pb2
 
 
-DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!flyteidl/artifact/artifacts.proto\x12\x11\x66lyteidl.artifact\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a flyteidl/admin/launch_plan.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a flyteidl/event/cloudevents.proto\"\x8f\x01\n\x08\x41rtifact\x12:\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\nartifactId\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.flyteidl.artifact.ArtifactSpecR\x04spec\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\"\xd0\x02\n\x15\x43reateArtifactRequest\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x18\n\x07version\x18\x03 \x01(\tR\x07version\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.flyteidl.artifact.ArtifactSpecR\x04spec\x12X\n\npartitions\x18\x04 \x03(\x0b\x32\x38.flyteidl.artifact.CreateArtifactRequest.PartitionsEntryR\npartitions\x12\x10\n\x03tag\x18\x05 \x01(\tR\x03tag\x1a=\n\x0fPartitionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xb0\x03\n\x0c\x41rtifactSpec\x12,\n\x05value\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12M\n\x0etask_execution\x18\x05 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\rtaskExecution\x12H\n\texecution\x18\x06 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\texecution\x12\x1c\n\tprincipal\x18\x07 \x01(\tR\tprincipal\x12+\n\x11short_description\x18\x08 \x01(\tR\x10shortDescription\x12\x39\n\ruser_metadata\x18\n \x01(\x0b\x32\x14.google.protobuf.AnyR\x0cuserMetadata\x12#\n\rmetadata_type\x18\x0b \x01(\tR\x0cmetadataType\"Q\n\x16\x43reateArtifactResponse\x12\x37\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\x08\x61rtifact\"b\n\x12GetArtifactRequest\x12\x32\n\x05query\x18\x01 \x01(\x0b\x32\x1c.flyteidl.core.ArtifactQueryR\x05query\x12\x18\n\x07\x64\x65tails\x18\x02 \x01(\x08R\x07\x64\x65tails\"N\n\x13GetArtifactResponse\x12\x37\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\x08\x61rtifact\"L\n\x18ListArtifactNamesRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\"\\\n\x19ListArtifactNamesResponse\x12?\n\rartifact_keys\x18\x01 \x03(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0c\x61rtifactKeys\"\x9d\x01\n\x16SearchArtifactsRequest\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x18\n\x07\x66ilters\x18\x02 \x01(\tR\x07\x66ilters\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x14\n\x05limit\x18\x04 \x01(\x05R\x05limit\"T\n\x17SearchArtifactsResponse\x12\x39\n\tartifacts\x18\x01 \x03(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\tartifacts\"\x7f\n\rAddTagRequest\x12:\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\nartifactId\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\x12\x1c\n\toverwrite\x18\x03 \x01(\x08R\toverwrite\"\x10\n\x0e\x41\x64\x64TagResponse\"b\n\x14\x43reateTriggerRequest\x12J\n\x13trigger_launch_plan\x18\x01 \x01(\x0b\x32\x1a.flyteidl.admin.LaunchPlanR\x11triggerLaunchPlan\"\x17\n\x15\x43reateTriggerResponse\"P\n\x14\x44\x65leteTriggerRequest\x12\x38\n\ntrigger_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\ttriggerId\"\x17\n\x15\x44\x65leteTriggerResponse\"\x80\x01\n\x10\x41rtifactProducer\x12\x36\n\tentity_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x08\x65ntityId\x12\x34\n\x07outputs\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x07outputs\"\\\n\x17RegisterProducerRequest\x12\x41\n\tproducers\x18\x01 \x03(\x0b\x32#.flyteidl.artifact.ArtifactProducerR\tproducers\"\x7f\n\x10\x41rtifactConsumer\x12\x36\n\tentity_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x08\x65ntityId\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMapR\x06inputs\"\\\n\x17RegisterConsumerRequest\x12\x41\n\tconsumers\x18\x01 \x03(\x0b\x32#.flyteidl.artifact.ArtifactConsumerR\tconsumers\"\x12\n\x10RegisterResponse\"\xbf\x02\n\x11\x43loudEventRequest\x12g\n\x18workflow_execution_event\x18\x01 \x01(\x0b\x32+.flyteidl.event.CloudEventWorkflowExecutionH\x00R\x16workflowExecutionEvent\x12[\n\x14task_execution_event\x18\x02 \x01(\x0b\x32\'.flyteidl.event.CloudEventTaskExecutionH\x00R\x12taskExecutionEvent\x12[\n\x14node_execution_event\x18\x03 \x01(\x0b\x32\'.flyteidl.event.CloudEventNodeExecutionH\x00R\x12nodeExecutionEventB\x07\n\x05\x65vent\"\x14\n\x12\x43loudEventResponse2\xbb\x0b\n\x10\x41rtifactRegistry\x12g\n\x0e\x43reateArtifact\x12(.flyteidl.artifact.CreateArtifactRequest\x1a).flyteidl.artifact.CreateArtifactResponse\"\x00\x12\xcd\x04\n\x0bGetArtifact\x12%.flyteidl.artifact.GetArtifactRequest\x1a&.flyteidl.artifact.GetArtifactResponse\"\xee\x03\x82\xd3\xe4\x93\x02\xe7\x03Z\xaa\x01\x12\xa7\x01/data/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}/{query.artifact_id.version}Z\x8e\x01\x12\x8b\x01/data/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}Z\x92\x01\x12\x8f\x01/data/v1/artifact/tag/{query.artifact_tag.artifact_key.project}/{query.artifact_tag.artifact_key.domain}/{query.artifact_tag.artifact_key.name}\x12\x12/data/v1/artifacts\x12\x82\x02\n\x0fSearchArtifacts\x12).flyteidl.artifact.SearchArtifactsRequest\x1a*.flyteidl.artifact.SearchArtifactsResponse\"\x97\x01\x82\xd3\xe4\x93\x02\x90\x01Z=\x12;/data/v1/query/{artifact_key.project}/{artifact_key.domain}\x12O/data/v1/query/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}\x12\x64\n\rCreateTrigger\x12\'.flyteidl.artifact.CreateTriggerRequest\x1a(.flyteidl.artifact.CreateTriggerResponse\"\x00\x12\x64\n\rDeleteTrigger\x12\'.flyteidl.artifact.DeleteTriggerRequest\x1a(.flyteidl.artifact.DeleteTriggerResponse\"\x00\x12O\n\x06\x41\x64\x64Tag\x12 .flyteidl.artifact.AddTagRequest\x1a!.flyteidl.artifact.AddTagResponse\"\x00\x12\x65\n\x10RegisterProducer\x12*.flyteidl.artifact.RegisterProducerRequest\x1a#.flyteidl.artifact.RegisterResponse\"\x00\x12\x65\n\x10RegisterConsumer\x12*.flyteidl.artifact.RegisterConsumerRequest\x1a#.flyteidl.artifact.RegisterResponse\"\x00\x42\xcc\x01\n\x15\x63om.flyteidl.artifactB\x0e\x41rtifactsProtoP\x01Z>github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/artifact\xa2\x02\x03\x46\x41X\xaa\x02\x11\x46lyteidl.Artifact\xca\x02\x11\x46lyteidl\\Artifact\xe2\x02\x1d\x46lyteidl\\Artifact\\GPBMetadata\xea\x02\x12\x46lyteidl::Artifactb\x06proto3')
+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!flyteidl/artifact/artifacts.proto\x12\x11\x66lyteidl.artifact\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a flyteidl/admin/launch_plan.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a flyteidl/event/cloudevents.proto\"\xca\x01\n\x08\x41rtifact\x12:\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\nartifactId\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.flyteidl.artifact.ArtifactSpecR\x04spec\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\x12\x39\n\x06source\x18\x04 \x01(\x0b\x32!.flyteidl.artifact.ArtifactSourceR\x06source\"\x8b\x03\n\x15\x43reateArtifactRequest\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x18\n\x07version\x18\x03 \x01(\tR\x07version\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.flyteidl.artifact.ArtifactSpecR\x04spec\x12X\n\npartitions\x18\x04 \x03(\x0b\x32\x38.flyteidl.artifact.CreateArtifactRequest.PartitionsEntryR\npartitions\x12\x10\n\x03tag\x18\x05 \x01(\tR\x03tag\x12\x39\n\x06source\x18\x06 \x01(\x0b\x32!.flyteidl.artifact.ArtifactSourceR\x06source\x1a=\n\x0fPartitionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xfb\x01\n\x0e\x41rtifactSource\x12Y\n\x12workflow_execution\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x11workflowExecution\x12\x17\n\x07node_id\x18\x02 \x01(\tR\x06nodeId\x12\x32\n\x07task_id\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x06taskId\x12#\n\rretry_attempt\x18\x04 \x01(\rR\x0cretryAttempt\x12\x1c\n\tprincipal\x18\x05 \x01(\tR\tprincipal\"\xf9\x01\n\x0c\x41rtifactSpec\x12,\n\x05value\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12+\n\x11short_description\x18\x03 \x01(\tR\x10shortDescription\x12\x39\n\ruser_metadata\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyR\x0cuserMetadata\x12#\n\rmetadata_type\x18\x05 \x01(\tR\x0cmetadataType\"Q\n\x16\x43reateArtifactResponse\x12\x37\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\x08\x61rtifact\"b\n\x12GetArtifactRequest\x12\x32\n\x05query\x18\x01 \x01(\x0b\x32\x1c.flyteidl.core.ArtifactQueryR\x05query\x12\x18\n\x07\x64\x65tails\x18\x02 \x01(\x08R\x07\x64\x65tails\"N\n\x13GetArtifactResponse\x12\x37\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\x08\x61rtifact\"`\n\rSearchOptions\x12+\n\x11strict_partitions\x18\x01 \x01(\x08R\x10strictPartitions\x12\"\n\rlatest_by_key\x18\x02 \x01(\x08R\x0blatestByKey\"\xb2\x02\n\x16SearchArtifactsRequest\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x39\n\npartitions\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.PartitionsR\npartitions\x12\x1c\n\tprincipal\x18\x03 \x01(\tR\tprincipal\x12\x18\n\x07version\x18\x04 \x01(\tR\x07version\x12:\n\x07options\x18\x05 \x01(\x0b\x32 .flyteidl.artifact.SearchOptionsR\x07options\x12\x14\n\x05token\x18\x06 \x01(\tR\x05token\x12\x14\n\x05limit\x18\x07 \x01(\x05R\x05limit\"j\n\x17SearchArtifactsResponse\x12\x39\n\tartifacts\x18\x01 \x03(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\tartifacts\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\xfd\x01\n\x19\x46indByWorkflowExecRequest\x12\x43\n\x07\x65xec_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x06\x65xecId\x12T\n\tdirection\x18\x02 \x01(\x0e\x32\x36.flyteidl.artifact.FindByWorkflowExecRequest.DirectionR\tdirection\x12\x1f\n\x0b\x66\x65tch_specs\x18\x03 \x01(\x08R\nfetchSpecs\"$\n\tDirection\x12\n\n\x06INPUTS\x10\x00\x12\x0b\n\x07OUTPUTS\x10\x01\"\x7f\n\rAddTagRequest\x12:\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\nartifactId\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\x12\x1c\n\toverwrite\x18\x03 \x01(\x08R\toverwrite\"\x10\n\x0e\x41\x64\x64TagResponse\"b\n\x14\x43reateTriggerRequest\x12J\n\x13trigger_launch_plan\x18\x01 \x01(\x0b\x32\x1a.flyteidl.admin.LaunchPlanR\x11triggerLaunchPlan\"\x17\n\x15\x43reateTriggerResponse\"P\n\x14\x44\x65leteTriggerRequest\x12\x38\n\ntrigger_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\ttriggerId\"\x17\n\x15\x44\x65leteTriggerResponse\"\x80\x01\n\x10\x41rtifactProducer\x12\x36\n\tentity_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x08\x65ntityId\x12\x34\n\x07outputs\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x07outputs\"\\\n\x17RegisterProducerRequest\x12\x41\n\tproducers\x18\x01 \x03(\x0b\x32#.flyteidl.artifact.ArtifactProducerR\tproducers\"\x7f\n\x10\x41rtifactConsumer\x12\x36\n\tentity_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x08\x65ntityId\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMapR\x06inputs\"\\\n\x17RegisterConsumerRequest\x12\x41\n\tconsumers\x18\x01 \x03(\x0b\x32#.flyteidl.artifact.ArtifactConsumerR\tconsumers\"\x12\n\x10RegisterResponse\"\x9a\x01\n\x16\x45xecutionInputsRequest\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\x12\x31\n\x06inputs\x18\x02 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x06inputs\"\x19\n\x17\x45xecutionInputsResponse2\xf5\r\n\x10\x41rtifactRegistry\x12g\n\x0e\x43reateArtifact\x12(.flyteidl.artifact.CreateArtifactRequest\x1a).flyteidl.artifact.CreateArtifactResponse\"\x00\x12\xcd\x04\n\x0bGetArtifact\x12%.flyteidl.artifact.GetArtifactRequest\x1a&.flyteidl.artifact.GetArtifactResponse\"\xee\x03\x82\xd3\xe4\x93\x02\xe7\x03Z\xaa\x01\x12\xa7\x01/data/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}/{query.artifact_id.version}Z\x8e\x01\x12\x8b\x01/data/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}Z\x92\x01\x12\x8f\x01/data/v1/artifact/tag/{query.artifact_tag.artifact_key.project}/{query.artifact_tag.artifact_key.domain}/{query.artifact_tag.artifact_key.name}\x12\x12/data/v1/artifacts\x12\x84\x02\n\x0fSearchArtifacts\x12).flyteidl.artifact.SearchArtifactsRequest\x1a*.flyteidl.artifact.SearchArtifactsResponse\"\x99\x01\x82\xd3\xe4\x93\x02\x92\x01Z=\x12;/data/v1/query/{artifact_key.project}/{artifact_key.domain}\x12Q/data/v1/query/s/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}\x12\x64\n\rCreateTrigger\x12\'.flyteidl.artifact.CreateTriggerRequest\x1a(.flyteidl.artifact.CreateTriggerResponse\"\x00\x12\x64\n\rDeleteTrigger\x12\'.flyteidl.artifact.DeleteTriggerRequest\x1a(.flyteidl.artifact.DeleteTriggerResponse\"\x00\x12O\n\x06\x41\x64\x64Tag\x12 .flyteidl.artifact.AddTagRequest\x1a!.flyteidl.artifact.AddTagResponse\"\x00\x12\x65\n\x10RegisterProducer\x12*.flyteidl.artifact.RegisterProducerRequest\x1a#.flyteidl.artifact.RegisterResponse\"\x00\x12\x65\n\x10RegisterConsumer\x12*.flyteidl.artifact.RegisterConsumerRequest\x1a#.flyteidl.artifact.RegisterResponse\"\x00\x12m\n\x12SetExecutionInputs\x12).flyteidl.artifact.ExecutionInputsRequest\x1a*.flyteidl.artifact.ExecutionInputsResponse\"\x00\x12\xc6\x01\n\x12\x46indByWorkflowExec\x12,.flyteidl.artifact.FindByWorkflowExecRequest\x1a*.flyteidl.artifact.SearchArtifactsResponse\"V\x82\xd3\xe4\x93\x02P\x12N/data/v1/query/e/{exec_id.project}/{exec_id.domain}/{exec_id.name}/{direction}B\xcc\x01\n\x15\x63om.flyteidl.artifactB\x0e\x41rtifactsProtoP\x01Z>github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/artifact\xa2\x02\x03\x46\x41X\xaa\x02\x11\x46lyteidl.Artifact\xca\x02\x11\x46lyteidl\\Artifact\xe2\x02\x1d\x46lyteidl\\Artifact\\GPBMetadata\xea\x02\x12\x46lyteidl::Artifactb\x06proto3')
 
 _globals = globals()
 _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -36,55 +36,61 @@
   _ARTIFACTREGISTRY.methods_by_name['GetArtifact']._options = None
   _ARTIFACTREGISTRY.methods_by_name['GetArtifact']._serialized_options = b'\202\323\344\223\002\347\003Z\252\001\022\247\001/data/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}/{query.artifact_id.version}Z\216\001\022\213\001/data/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}Z\222\001\022\217\001/data/v1/artifact/tag/{query.artifact_tag.artifact_key.project}/{query.artifact_tag.artifact_key.domain}/{query.artifact_tag.artifact_key.name}\022\022/data/v1/artifacts'
   _ARTIFACTREGISTRY.methods_by_name['SearchArtifacts']._options = None
-  _ARTIFACTREGISTRY.methods_by_name['SearchArtifacts']._serialized_options = b'\202\323\344\223\002\220\001Z=\022;/data/v1/query/{artifact_key.project}/{artifact_key.domain}\022O/data/v1/query/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}'
+  _ARTIFACTREGISTRY.methods_by_name['SearchArtifacts']._serialized_options = b'\202\323\344\223\002\222\001Z=\022;/data/v1/query/{artifact_key.project}/{artifact_key.domain}\022Q/data/v1/query/s/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}'
+  _ARTIFACTREGISTRY.methods_by_name['FindByWorkflowExec']._options = None
+  _ARTIFACTREGISTRY.methods_by_name['FindByWorkflowExec']._serialized_options = b'\202\323\344\223\002P\022N/data/v1/query/e/{exec_id.project}/{exec_id.domain}/{exec_id.name}/{direction}'
   _globals['_ARTIFACT']._serialized_start=335
-  _globals['_ARTIFACT']._serialized_end=478
-  _globals['_CREATEARTIFACTREQUEST']._serialized_start=481
-  _globals['_CREATEARTIFACTREQUEST']._serialized_end=817
-  _globals['_CREATEARTIFACTREQUEST_PARTITIONSENTRY']._serialized_start=756
-  _globals['_CREATEARTIFACTREQUEST_PARTITIONSENTRY']._serialized_end=817
-  _globals['_ARTIFACTSPEC']._serialized_start=820
-  _globals['_ARTIFACTSPEC']._serialized_end=1252
-  _globals['_CREATEARTIFACTRESPONSE']._serialized_start=1254
-  _globals['_CREATEARTIFACTRESPONSE']._serialized_end=1335
-  _globals['_GETARTIFACTREQUEST']._serialized_start=1337
-  _globals['_GETARTIFACTREQUEST']._serialized_end=1435
-  _globals['_GETARTIFACTRESPONSE']._serialized_start=1437
-  _globals['_GETARTIFACTRESPONSE']._serialized_end=1515
-  _globals['_LISTARTIFACTNAMESREQUEST']._serialized_start=1517
-  _globals['_LISTARTIFACTNAMESREQUEST']._serialized_end=1593
-  _globals['_LISTARTIFACTNAMESRESPONSE']._serialized_start=1595
-  _globals['_LISTARTIFACTNAMESRESPONSE']._serialized_end=1687
-  _globals['_SEARCHARTIFACTSREQUEST']._serialized_start=1690
-  _globals['_SEARCHARTIFACTSREQUEST']._serialized_end=1847
-  _globals['_SEARCHARTIFACTSRESPONSE']._serialized_start=1849
-  _globals['_SEARCHARTIFACTSRESPONSE']._serialized_end=1933
-  _globals['_ADDTAGREQUEST']._serialized_start=1935
-  _globals['_ADDTAGREQUEST']._serialized_end=2062
-  _globals['_ADDTAGRESPONSE']._serialized_start=2064
-  _globals['_ADDTAGRESPONSE']._serialized_end=2080
-  _globals['_CREATETRIGGERREQUEST']._serialized_start=2082
-  _globals['_CREATETRIGGERREQUEST']._serialized_end=2180
-  _globals['_CREATETRIGGERRESPONSE']._serialized_start=2182
-  _globals['_CREATETRIGGERRESPONSE']._serialized_end=2205
-  _globals['_DELETETRIGGERREQUEST']._serialized_start=2207
-  _globals['_DELETETRIGGERREQUEST']._serialized_end=2287
-  _globals['_DELETETRIGGERRESPONSE']._serialized_start=2289
-  _globals['_DELETETRIGGERRESPONSE']._serialized_end=2312
-  _globals['_ARTIFACTPRODUCER']._serialized_start=2315
-  _globals['_ARTIFACTPRODUCER']._serialized_end=2443
-  _globals['_REGISTERPRODUCERREQUEST']._serialized_start=2445
-  _globals['_REGISTERPRODUCERREQUEST']._serialized_end=2537
-  _globals['_ARTIFACTCONSUMER']._serialized_start=2539
-  _globals['_ARTIFACTCONSUMER']._serialized_end=2666
-  _globals['_REGISTERCONSUMERREQUEST']._serialized_start=2668
-  _globals['_REGISTERCONSUMERREQUEST']._serialized_end=2760
-  _globals['_REGISTERRESPONSE']._serialized_start=2762
-  _globals['_REGISTERRESPONSE']._serialized_end=2780
-  _globals['_CLOUDEVENTREQUEST']._serialized_start=2783
-  _globals['_CLOUDEVENTREQUEST']._serialized_end=3102
-  _globals['_CLOUDEVENTRESPONSE']._serialized_start=3104
-  _globals['_CLOUDEVENTRESPONSE']._serialized_end=3124
-  _globals['_ARTIFACTREGISTRY']._serialized_start=3127
-  _globals['_ARTIFACTREGISTRY']._serialized_end=4594
+  _globals['_ARTIFACT']._serialized_end=537
+  _globals['_CREATEARTIFACTREQUEST']._serialized_start=540
+  _globals['_CREATEARTIFACTREQUEST']._serialized_end=935
+  _globals['_CREATEARTIFACTREQUEST_PARTITIONSENTRY']._serialized_start=874
+  _globals['_CREATEARTIFACTREQUEST_PARTITIONSENTRY']._serialized_end=935
+  _globals['_ARTIFACTSOURCE']._serialized_start=938
+  _globals['_ARTIFACTSOURCE']._serialized_end=1189
+  _globals['_ARTIFACTSPEC']._serialized_start=1192
+  _globals['_ARTIFACTSPEC']._serialized_end=1441
+  _globals['_CREATEARTIFACTRESPONSE']._serialized_start=1443
+  _globals['_CREATEARTIFACTRESPONSE']._serialized_end=1524
+  _globals['_GETARTIFACTREQUEST']._serialized_start=1526
+  _globals['_GETARTIFACTREQUEST']._serialized_end=1624
+  _globals['_GETARTIFACTRESPONSE']._serialized_start=1626
+  _globals['_GETARTIFACTRESPONSE']._serialized_end=1704
+  _globals['_SEARCHOPTIONS']._serialized_start=1706
+  _globals['_SEARCHOPTIONS']._serialized_end=1802
+  _globals['_SEARCHARTIFACTSREQUEST']._serialized_start=1805
+  _globals['_SEARCHARTIFACTSREQUEST']._serialized_end=2111
+  _globals['_SEARCHARTIFACTSRESPONSE']._serialized_start=2113
+  _globals['_SEARCHARTIFACTSRESPONSE']._serialized_end=2219
+  _globals['_FINDBYWORKFLOWEXECREQUEST']._serialized_start=2222
+  _globals['_FINDBYWORKFLOWEXECREQUEST']._serialized_end=2475
+  _globals['_FINDBYWORKFLOWEXECREQUEST_DIRECTION']._serialized_start=2439
+  _globals['_FINDBYWORKFLOWEXECREQUEST_DIRECTION']._serialized_end=2475
+  _globals['_ADDTAGREQUEST']._serialized_start=2477
+  _globals['_ADDTAGREQUEST']._serialized_end=2604
+  _globals['_ADDTAGRESPONSE']._serialized_start=2606
+  _globals['_ADDTAGRESPONSE']._serialized_end=2622
+  _globals['_CREATETRIGGERREQUEST']._serialized_start=2624
+  _globals['_CREATETRIGGERREQUEST']._serialized_end=2722
+  _globals['_CREATETRIGGERRESPONSE']._serialized_start=2724
+  _globals['_CREATETRIGGERRESPONSE']._serialized_end=2747
+  _globals['_DELETETRIGGERREQUEST']._serialized_start=2749
+  _globals['_DELETETRIGGERREQUEST']._serialized_end=2829
+  _globals['_DELETETRIGGERRESPONSE']._serialized_start=2831
+  _globals['_DELETETRIGGERRESPONSE']._serialized_end=2854
+  _globals['_ARTIFACTPRODUCER']._serialized_start=2857
+  _globals['_ARTIFACTPRODUCER']._serialized_end=2985
+  _globals['_REGISTERPRODUCERREQUEST']._serialized_start=2987
+  _globals['_REGISTERPRODUCERREQUEST']._serialized_end=3079
+  _globals['_ARTIFACTCONSUMER']._serialized_start=3081
+  _globals['_ARTIFACTCONSUMER']._serialized_end=3208
+  _globals['_REGISTERCONSUMERREQUEST']._serialized_start=3210
+  _globals['_REGISTERCONSUMERREQUEST']._serialized_end=3302
+  _globals['_REGISTERRESPONSE']._serialized_start=3304
+  _globals['_REGISTERRESPONSE']._serialized_end=3322
+  _globals['_EXECUTIONINPUTSREQUEST']._serialized_start=3325
+  _globals['_EXECUTIONINPUTSREQUEST']._serialized_end=3479
+  _globals['_EXECUTIONINPUTSRESPONSE']._serialized_start=3481
+  _globals['_EXECUTIONINPUTSRESPONSE']._serialized_end=3506
+  _globals['_ARTIFACTREGISTRY']._serialized_start=3509
+  _globals['_ARTIFACTREGISTRY']._serialized_end=5290
 # @@protoc_insertion_point(module_scope)
diff --git a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.pyi
index cca1eae8e1..1fb636bf0e 100644
--- a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.pyi
+++ b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.pyi
@@ -8,6 +8,7 @@ from flyteidl.core import artifact_id_pb2 as _artifact_id_pb2
 from flyteidl.core import interface_pb2 as _interface_pb2
 from flyteidl.event import cloudevents_pb2 as _cloudevents_pb2
 from google.protobuf.internal import containers as _containers
+from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
 from google.protobuf import descriptor as _descriptor
 from google.protobuf import message as _message
 from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
@@ -15,17 +16,19 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map
 DESCRIPTOR: _descriptor.FileDescriptor
 
 class Artifact(_message.Message):
-    __slots__ = ["artifact_id", "spec", "tags"]
+    __slots__ = ["artifact_id", "spec", "tags", "source"]
     ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int]
     SPEC_FIELD_NUMBER: _ClassVar[int]
     TAGS_FIELD_NUMBER: _ClassVar[int]
+    SOURCE_FIELD_NUMBER: _ClassVar[int]
     artifact_id: _artifact_id_pb2.ArtifactID
     spec: ArtifactSpec
     tags: _containers.RepeatedScalarFieldContainer[str]
-    def __init__(self, artifact_id: _Optional[_Union[_artifact_id_pb2.ArtifactID, _Mapping]] = ..., spec: _Optional[_Union[ArtifactSpec, _Mapping]] = ..., tags: _Optional[_Iterable[str]] = ...) -> None: ...
+    source: ArtifactSource
+    def __init__(self, artifact_id: _Optional[_Union[_artifact_id_pb2.ArtifactID, _Mapping]] = ..., spec: _Optional[_Union[ArtifactSpec, _Mapping]] = ..., tags: _Optional[_Iterable[str]] = ..., source: _Optional[_Union[ArtifactSource, _Mapping]] = ...) -> None: ...
 
 class CreateArtifactRequest(_message.Message):
-    __slots__ = ["artifact_key", "version", "spec", "partitions", "tag"]
+    __slots__ = ["artifact_key", "version", "spec", "partitions", "tag", "source"]
     class PartitionsEntry(_message.Message):
         __slots__ = ["key", "value"]
         KEY_FIELD_NUMBER: _ClassVar[int]
@@ -38,32 +41,42 @@ class CreateArtifactRequest(_message.Message):
     SPEC_FIELD_NUMBER: _ClassVar[int]
     PARTITIONS_FIELD_NUMBER: _ClassVar[int]
     TAG_FIELD_NUMBER: _ClassVar[int]
+    SOURCE_FIELD_NUMBER: _ClassVar[int]
     artifact_key: _artifact_id_pb2.ArtifactKey
     version: str
     spec: ArtifactSpec
     partitions: _containers.ScalarMap[str, str]
     tag: str
-    def __init__(self, artifact_key: _Optional[_Union[_artifact_id_pb2.ArtifactKey, _Mapping]] = ..., version: _Optional[str] = ..., spec: _Optional[_Union[ArtifactSpec, _Mapping]] = ..., partitions: _Optional[_Mapping[str, str]] = ..., tag: _Optional[str] = ...) -> None: ...
+    source: ArtifactSource
+    def __init__(self, artifact_key: _Optional[_Union[_artifact_id_pb2.ArtifactKey, _Mapping]] = ..., version: _Optional[str] = ..., spec: _Optional[_Union[ArtifactSpec, _Mapping]] = ..., partitions: _Optional[_Mapping[str, str]] = ..., tag: _Optional[str] = ..., source: _Optional[_Union[ArtifactSource, _Mapping]] = ...) -> None: ...
+
+class ArtifactSource(_message.Message):
+    __slots__ = ["workflow_execution", "node_id", "task_id", "retry_attempt", "principal"]
+    WORKFLOW_EXECUTION_FIELD_NUMBER: _ClassVar[int]
+    NODE_ID_FIELD_NUMBER: _ClassVar[int]
+    TASK_ID_FIELD_NUMBER: _ClassVar[int]
+    RETRY_ATTEMPT_FIELD_NUMBER: _ClassVar[int]
+    PRINCIPAL_FIELD_NUMBER: _ClassVar[int]
+    workflow_execution: _identifier_pb2.WorkflowExecutionIdentifier
+    node_id: str
+    task_id: _identifier_pb2.Identifier
+    retry_attempt: int
+    principal: str
+    def __init__(self, workflow_execution: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., node_id: _Optional[str] = ..., task_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., retry_attempt: _Optional[int] = ..., principal: _Optional[str] = ...) -> None: ...
 
 class ArtifactSpec(_message.Message):
-    __slots__ = ["value", "type", "task_execution", "execution", "principal", "short_description", "user_metadata", "metadata_type"]
+    __slots__ = ["value", "type", "short_description", "user_metadata", "metadata_type"]
     VALUE_FIELD_NUMBER: _ClassVar[int]
     TYPE_FIELD_NUMBER: _ClassVar[int]
-    TASK_EXECUTION_FIELD_NUMBER: _ClassVar[int]
-    EXECUTION_FIELD_NUMBER: _ClassVar[int]
-    PRINCIPAL_FIELD_NUMBER: _ClassVar[int]
     SHORT_DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
     USER_METADATA_FIELD_NUMBER: _ClassVar[int]
     METADATA_TYPE_FIELD_NUMBER: _ClassVar[int]
     value: _literals_pb2.Literal
     type: _types_pb2.LiteralType
-    task_execution: _identifier_pb2.TaskExecutionIdentifier
-    execution: _identifier_pb2.WorkflowExecutionIdentifier
-    principal: str
     short_description: str
     user_metadata: _any_pb2.Any
     metadata_type: str
-    def __init__(self, value: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ..., task_execution: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., execution: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., principal: _Optional[str] = ..., short_description: _Optional[str] = ..., user_metadata: _Optional[_Union[_any_pb2.Any, _Mapping]] = ..., metadata_type: _Optional[str] = ...) -> None: ...
+    def __init__(self, value: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ..., short_description: _Optional[str] = ..., user_metadata: _Optional[_Union[_any_pb2.Any, _Mapping]] = ..., metadata_type: _Optional[str] = ...) -> None: ...
 
 class CreateArtifactResponse(_message.Message):
     __slots__ = ["artifact"]
@@ -85,37 +98,55 @@ class GetArtifactResponse(_message.Message):
     artifact: Artifact
     def __init__(self, artifact: _Optional[_Union[Artifact, _Mapping]] = ...) -> None: ...
 
-class ListArtifactNamesRequest(_message.Message):
-    __slots__ = ["project", "domain"]
-    PROJECT_FIELD_NUMBER: _ClassVar[int]
-    DOMAIN_FIELD_NUMBER: _ClassVar[int]
-    project: str
-    domain: str
-    def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ...) -> None: ...
-
-class ListArtifactNamesResponse(_message.Message):
-    __slots__ = ["artifact_keys"]
-    ARTIFACT_KEYS_FIELD_NUMBER: _ClassVar[int]
-    artifact_keys: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactKey]
-    def __init__(self, artifact_keys: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactKey, _Mapping]]] = ...) -> None: ...
+class SearchOptions(_message.Message):
+    __slots__ = ["strict_partitions", "latest_by_key"]
+    STRICT_PARTITIONS_FIELD_NUMBER: _ClassVar[int]
+    LATEST_BY_KEY_FIELD_NUMBER: _ClassVar[int]
+    strict_partitions: bool
+    latest_by_key: bool
+    def __init__(self, strict_partitions: bool = ..., latest_by_key: bool = ...) -> None: ...
 
 class SearchArtifactsRequest(_message.Message):
-    __slots__ = ["artifact_key", "filters", "token", "limit"]
+    __slots__ = ["artifact_key", "partitions", "principal", "version", "options", "token", "limit"]
     ARTIFACT_KEY_FIELD_NUMBER: _ClassVar[int]
-    FILTERS_FIELD_NUMBER: _ClassVar[int]
+    PARTITIONS_FIELD_NUMBER: _ClassVar[int]
+    PRINCIPAL_FIELD_NUMBER: _ClassVar[int]
+    VERSION_FIELD_NUMBER: _ClassVar[int]
+    OPTIONS_FIELD_NUMBER: _ClassVar[int]
     TOKEN_FIELD_NUMBER: _ClassVar[int]
     LIMIT_FIELD_NUMBER: _ClassVar[int]
     artifact_key: _artifact_id_pb2.ArtifactKey
-    filters: str
+    partitions: _artifact_id_pb2.Partitions
+    principal: str
+    version: str
+    options: SearchOptions
     token: str
     limit: int
-    def __init__(self, artifact_key: _Optional[_Union[_artifact_id_pb2.ArtifactKey, _Mapping]] = ..., filters: _Optional[str] = ..., token: _Optional[str] = ..., limit: _Optional[int] = ...) -> None: ...
+    def __init__(self, artifact_key: _Optional[_Union[_artifact_id_pb2.ArtifactKey, _Mapping]] = ..., partitions: _Optional[_Union[_artifact_id_pb2.Partitions, _Mapping]] = ..., principal: _Optional[str] = ..., version: _Optional[str] = ..., options: _Optional[_Union[SearchOptions, _Mapping]] = ..., token: _Optional[str] = ..., limit: _Optional[int] = ...) -> None: ...
 
 class SearchArtifactsResponse(_message.Message):
-    __slots__ = ["artifacts"]
+    __slots__ = ["artifacts", "token"]
     ARTIFACTS_FIELD_NUMBER: _ClassVar[int]
+    TOKEN_FIELD_NUMBER: _ClassVar[int]
     artifacts: _containers.RepeatedCompositeFieldContainer[Artifact]
-    def __init__(self, artifacts: _Optional[_Iterable[_Union[Artifact, _Mapping]]] = ...) -> None: ...
+    token: str
+    def __init__(self, artifacts: _Optional[_Iterable[_Union[Artifact, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ...
+
+class FindByWorkflowExecRequest(_message.Message):
+    __slots__ = ["exec_id", "direction", "fetch_specs"]
+    class Direction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
+        __slots__ = []
+        INPUTS: _ClassVar[FindByWorkflowExecRequest.Direction]
+        OUTPUTS: _ClassVar[FindByWorkflowExecRequest.Direction]
+    INPUTS: FindByWorkflowExecRequest.Direction
+    OUTPUTS: FindByWorkflowExecRequest.Direction
+    EXEC_ID_FIELD_NUMBER: _ClassVar[int]
+    DIRECTION_FIELD_NUMBER: _ClassVar[int]
+    FETCH_SPECS_FIELD_NUMBER: _ClassVar[int]
+    exec_id: _identifier_pb2.WorkflowExecutionIdentifier
+    direction: FindByWorkflowExecRequest.Direction
+    fetch_specs: bool
+    def __init__(self, exec_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., direction: _Optional[_Union[FindByWorkflowExecRequest.Direction, str]] = ..., fetch_specs: bool = ...) -> None: ...
 
 class AddTagRequest(_message.Message):
     __slots__ = ["artifact_id", "value", "overwrite"]
@@ -183,16 +214,14 @@ class RegisterResponse(_message.Message):
     __slots__ = []
     def __init__(self) -> None: ...
 
-class CloudEventRequest(_message.Message):
-    __slots__ = ["workflow_execution_event", "task_execution_event", "node_execution_event"]
-    WORKFLOW_EXECUTION_EVENT_FIELD_NUMBER: _ClassVar[int]
-    TASK_EXECUTION_EVENT_FIELD_NUMBER: _ClassVar[int]
-    NODE_EXECUTION_EVENT_FIELD_NUMBER: _ClassVar[int]
-    workflow_execution_event: _cloudevents_pb2.CloudEventWorkflowExecution
-    task_execution_event: _cloudevents_pb2.CloudEventTaskExecution
-    node_execution_event: _cloudevents_pb2.CloudEventNodeExecution
-    def __init__(self, workflow_execution_event: _Optional[_Union[_cloudevents_pb2.CloudEventWorkflowExecution, _Mapping]] = ..., task_execution_event: _Optional[_Union[_cloudevents_pb2.CloudEventTaskExecution, _Mapping]] = ..., node_execution_event: _Optional[_Union[_cloudevents_pb2.CloudEventNodeExecution, _Mapping]] = ...) -> None: ...
-
-class CloudEventResponse(_message.Message):
+class ExecutionInputsRequest(_message.Message):
+    __slots__ = ["execution_id", "inputs"]
+    EXECUTION_ID_FIELD_NUMBER: _ClassVar[int]
+    INPUTS_FIELD_NUMBER: _ClassVar[int]
+    execution_id: _identifier_pb2.WorkflowExecutionIdentifier
+    inputs: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID]
+    def __init__(self, execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., inputs: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ...) -> None: ...
+
+class ExecutionInputsResponse(_message.Message):
     __slots__ = []
     def __init__(self) -> None: ...
diff --git a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2_grpc.py
index 6e01592a77..b989cdc000 100644
--- a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2_grpc.py
+++ b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2_grpc.py
@@ -54,6 +54,16 @@ def __init__(self, channel):
                 request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.RegisterConsumerRequest.SerializeToString,
                 response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.RegisterResponse.FromString,
                 )
+        self.SetExecutionInputs = channel.unary_unary(
+                '/flyteidl.artifact.ArtifactRegistry/SetExecutionInputs',
+                request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.ExecutionInputsRequest.SerializeToString,
+                response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.ExecutionInputsResponse.FromString,
+                )
+        self.FindByWorkflowExec = channel.unary_unary(
+                '/flyteidl.artifact.ArtifactRegistry/FindByWorkflowExec',
+                request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.FindByWorkflowExecRequest.SerializeToString,
+                response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsResponse.FromString,
+                )
 
 
 class ArtifactRegistryServicer(object):
@@ -107,6 +117,18 @@ def RegisterConsumer(self, request, context):
         context.set_details('Method not implemented!')
         raise NotImplementedError('Method not implemented!')
 
+    def SetExecutionInputs(self, request, context):
+        """Missing associated documentation comment in .proto file."""
+        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+        context.set_details('Method not implemented!')
+        raise NotImplementedError('Method not implemented!')
+
+    def FindByWorkflowExec(self, request, context):
+        """Missing associated documentation comment in .proto file."""
+        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+        context.set_details('Method not implemented!')
+        raise NotImplementedError('Method not implemented!')
+
 
 def add_ArtifactRegistryServicer_to_server(servicer, server):
     rpc_method_handlers = {
@@ -150,6 +172,16 @@ def add_ArtifactRegistryServicer_to_server(servicer, server):
                     request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.RegisterConsumerRequest.FromString,
                     response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.RegisterResponse.SerializeToString,
             ),
+            'SetExecutionInputs': grpc.unary_unary_rpc_method_handler(
+                    servicer.SetExecutionInputs,
+                    request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.ExecutionInputsRequest.FromString,
+                    response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.ExecutionInputsResponse.SerializeToString,
+            ),
+            'FindByWorkflowExec': grpc.unary_unary_rpc_method_handler(
+                    servicer.FindByWorkflowExec,
+                    request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.FindByWorkflowExecRequest.FromString,
+                    response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsResponse.SerializeToString,
+            ),
     }
     generic_handler = grpc.method_handlers_generic_handler(
             'flyteidl.artifact.ArtifactRegistry', rpc_method_handlers)
@@ -295,3 +327,37 @@ def RegisterConsumer(request,
             flyteidl_dot_artifact_dot_artifacts__pb2.RegisterResponse.FromString,
             options, channel_credentials,
             insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+    @staticmethod
+    def SetExecutionInputs(request,
+            target,
+            options=(),
+            channel_credentials=None,
+            call_credentials=None,
+            insecure=False,
+            compression=None,
+            wait_for_ready=None,
+            timeout=None,
+            metadata=None):
+        return grpc.experimental.unary_unary(request, target, '/flyteidl.artifact.ArtifactRegistry/SetExecutionInputs',
+            flyteidl_dot_artifact_dot_artifacts__pb2.ExecutionInputsRequest.SerializeToString,
+            flyteidl_dot_artifact_dot_artifacts__pb2.ExecutionInputsResponse.FromString,
+            options, channel_credentials,
+            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+    @staticmethod
+    def FindByWorkflowExec(request,
+            target,
+            options=(),
+            channel_credentials=None,
+            call_credentials=None,
+            insecure=False,
+            compression=None,
+            wait_for_ready=None,
+            timeout=None,
+            metadata=None):
+        return grpc.experimental.unary_unary(request, target, '/flyteidl.artifact.ArtifactRegistry/FindByWorkflowExec',
+            flyteidl_dot_artifact_dot_artifacts__pb2.FindByWorkflowExecRequest.SerializeToString,
+            flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsResponse.FromString,
+            options, channel_credentials,
+            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
diff --git a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py
index aaf3742036..b7035b32b5 100644
--- a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py
+++ b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py
@@ -19,7 +19,7 @@
 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
 
 
-DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/event/cloudevents.proto\x12\x0e\x66lyteidl.event\x1a\x1a\x66lyteidl/event/event.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfe\x03\n\x1b\x43loudEventWorkflowExecution\x12\x43\n\traw_event\x18\x01 \x01(\x0b\x32&.flyteidl.event.WorkflowExecutionEventR\x08rawEvent\x12:\n\x0boutput_data\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\noutputData\x12H\n\x10output_interface\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\x0foutputInterface\x12\x38\n\ninput_data\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\tinputData\x12<\n\x0c\x61rtifact_ids\x18\x05 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12[\n\x13reference_execution\x18\x06 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x12referenceExecution\x12?\n\x0elaunch_plan_id\x18\x07 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\"\xe3\x03\n\x17\x43loudEventNodeExecution\x12?\n\traw_event\x18\x01 \x01(\x0b\x32\".flyteidl.event.NodeExecutionEventR\x08rawEvent\x12H\n\x0ctask_exec_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\ntaskExecId\x12:\n\x0boutput_data\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\noutputData\x12H\n\x10output_interface\x18\x04 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\x0foutputInterface\x12\x38\n\ninput_data\x18\x05 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\tinputData\x12<\n\x0c\x61rtifact_ids\x18\x06 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12?\n\x0elaunch_plan_id\x18\x07 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\"Z\n\x17\x43loudEventTaskExecution\x12?\n\traw_event\x18\x01 \x01(\x0b\x32\".flyteidl.event.TaskExecutionEventR\x08rawEvent\"\xc9\x02\n\x18\x43loudEventExecutionStart\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\x12?\n\x0elaunch_plan_id\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\x12:\n\x0bworkflow_id\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nworkflowId\x12<\n\x0c\x61rtifact_ids\x18\x04 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12#\n\rartifact_keys\x18\x05 \x03(\tR\x0c\x61rtifactKeysB\xbc\x01\n\x12\x63om.flyteidl.eventB\x10\x43loudeventsProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event\xa2\x02\x03\x46\x45X\xaa\x02\x0e\x46lyteidl.Event\xca\x02\x0e\x46lyteidl\\Event\xe2\x02\x1a\x46lyteidl\\Event\\GPBMetadata\xea\x02\x0f\x46lyteidl::Eventb\x06proto3')
+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/event/cloudevents.proto\x12\x0e\x66lyteidl.event\x1a\x1a\x66lyteidl/event/event.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9c\x04\n\x1b\x43loudEventWorkflowExecution\x12\x43\n\traw_event\x18\x01 \x01(\x0b\x32&.flyteidl.event.WorkflowExecutionEventR\x08rawEvent\x12:\n\x0boutput_data\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\noutputData\x12H\n\x10output_interface\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\x0foutputInterface\x12\x38\n\ninput_data\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\tinputData\x12<\n\x0c\x61rtifact_ids\x18\x05 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12[\n\x13reference_execution\x18\x06 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x12referenceExecution\x12\x1c\n\tprincipal\x18\x07 \x01(\tR\tprincipal\x12?\n\x0elaunch_plan_id\x18\x08 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\"\x81\x04\n\x17\x43loudEventNodeExecution\x12?\n\traw_event\x18\x01 \x01(\x0b\x32\".flyteidl.event.NodeExecutionEventR\x08rawEvent\x12H\n\x0ctask_exec_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\ntaskExecId\x12:\n\x0boutput_data\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\noutputData\x12H\n\x10output_interface\x18\x04 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\x0foutputInterface\x12\x38\n\ninput_data\x18\x05 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\tinputData\x12<\n\x0c\x61rtifact_ids\x18\x06 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12\x1c\n\tprincipal\x18\x07 \x01(\tR\tprincipal\x12?\n\x0elaunch_plan_id\x18\x08 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\"Z\n\x17\x43loudEventTaskExecution\x12?\n\traw_event\x18\x01 \x01(\x0b\x32\".flyteidl.event.TaskExecutionEventR\x08rawEvent\"\xe7\x02\n\x18\x43loudEventExecutionStart\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\x12?\n\x0elaunch_plan_id\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\x12:\n\x0bworkflow_id\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nworkflowId\x12<\n\x0c\x61rtifact_ids\x18\x04 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12#\n\rartifact_keys\x18\x05 \x03(\tR\x0c\x61rtifactKeys\x12\x1c\n\tprincipal\x18\x06 \x01(\tR\tprincipalB\xbc\x01\n\x12\x63om.flyteidl.eventB\x10\x43loudeventsProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event\xa2\x02\x03\x46\x45X\xaa\x02\x0e\x46lyteidl.Event\xca\x02\x0e\x46lyteidl\\Event\xe2\x02\x1a\x46lyteidl\\Event\\GPBMetadata\xea\x02\x0f\x46lyteidl::Eventb\x06proto3')
 
 _globals = globals()
 _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -29,11 +29,11 @@
   DESCRIPTOR._options = None
   DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.eventB\020CloudeventsProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event\242\002\003FEX\252\002\016Flyteidl.Event\312\002\016Flyteidl\\Event\342\002\032Flyteidl\\Event\\GPBMetadata\352\002\017Flyteidl::Event'
   _globals['_CLOUDEVENTWORKFLOWEXECUTION']._serialized_start=240
-  _globals['_CLOUDEVENTWORKFLOWEXECUTION']._serialized_end=750
-  _globals['_CLOUDEVENTNODEEXECUTION']._serialized_start=753
-  _globals['_CLOUDEVENTNODEEXECUTION']._serialized_end=1236
-  _globals['_CLOUDEVENTTASKEXECUTION']._serialized_start=1238
-  _globals['_CLOUDEVENTTASKEXECUTION']._serialized_end=1328
-  _globals['_CLOUDEVENTEXECUTIONSTART']._serialized_start=1331
-  _globals['_CLOUDEVENTEXECUTIONSTART']._serialized_end=1660
+  _globals['_CLOUDEVENTWORKFLOWEXECUTION']._serialized_end=780
+  _globals['_CLOUDEVENTNODEEXECUTION']._serialized_start=783
+  _globals['_CLOUDEVENTNODEEXECUTION']._serialized_end=1296
+  _globals['_CLOUDEVENTTASKEXECUTION']._serialized_start=1298
+  _globals['_CLOUDEVENTTASKEXECUTION']._serialized_end=1388
+  _globals['_CLOUDEVENTEXECUTIONSTART']._serialized_start=1391
+  _globals['_CLOUDEVENTEXECUTIONSTART']._serialized_end=1750
 # @@protoc_insertion_point(module_scope)
diff --git a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi
index dafdfef667..8444627c32 100644
--- a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi
+++ b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi
@@ -12,13 +12,14 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map
 DESCRIPTOR: _descriptor.FileDescriptor
 
 class CloudEventWorkflowExecution(_message.Message):
-    __slots__ = ["raw_event", "output_data", "output_interface", "input_data", "artifact_ids", "reference_execution", "launch_plan_id"]
+    __slots__ = ["raw_event", "output_data", "output_interface", "input_data", "artifact_ids", "reference_execution", "principal", "launch_plan_id"]
     RAW_EVENT_FIELD_NUMBER: _ClassVar[int]
     OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int]
     OUTPUT_INTERFACE_FIELD_NUMBER: _ClassVar[int]
     INPUT_DATA_FIELD_NUMBER: _ClassVar[int]
     ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int]
     REFERENCE_EXECUTION_FIELD_NUMBER: _ClassVar[int]
+    PRINCIPAL_FIELD_NUMBER: _ClassVar[int]
     LAUNCH_PLAN_ID_FIELD_NUMBER: _ClassVar[int]
     raw_event: _event_pb2.WorkflowExecutionEvent
     output_data: _literals_pb2.LiteralMap
@@ -26,17 +27,19 @@ class CloudEventWorkflowExecution(_message.Message):
     input_data: _literals_pb2.LiteralMap
     artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID]
     reference_execution: _identifier_pb2.WorkflowExecutionIdentifier
+    principal: str
     launch_plan_id: _identifier_pb2.Identifier
-    def __init__(self, raw_event: _Optional[_Union[_event_pb2.WorkflowExecutionEvent, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., output_interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., input_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., reference_execution: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ...
+    def __init__(self, raw_event: _Optional[_Union[_event_pb2.WorkflowExecutionEvent, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., output_interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., input_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., reference_execution: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., principal: _Optional[str] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ...
 
 class CloudEventNodeExecution(_message.Message):
-    __slots__ = ["raw_event", "task_exec_id", "output_data", "output_interface", "input_data", "artifact_ids", "launch_plan_id"]
+    __slots__ = ["raw_event", "task_exec_id", "output_data", "output_interface", "input_data", "artifact_ids", "principal", "launch_plan_id"]
     RAW_EVENT_FIELD_NUMBER: _ClassVar[int]
     TASK_EXEC_ID_FIELD_NUMBER: _ClassVar[int]
     OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int]
     OUTPUT_INTERFACE_FIELD_NUMBER: _ClassVar[int]
     INPUT_DATA_FIELD_NUMBER: _ClassVar[int]
     ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int]
+    PRINCIPAL_FIELD_NUMBER: _ClassVar[int]
     LAUNCH_PLAN_ID_FIELD_NUMBER: _ClassVar[int]
     raw_event: _event_pb2.NodeExecutionEvent
     task_exec_id: _identifier_pb2.TaskExecutionIdentifier
@@ -44,8 +47,9 @@ class CloudEventNodeExecution(_message.Message):
     output_interface: _interface_pb2.TypedInterface
     input_data: _literals_pb2.LiteralMap
     artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID]
+    principal: str
     launch_plan_id: _identifier_pb2.Identifier
-    def __init__(self, raw_event: _Optional[_Union[_event_pb2.NodeExecutionEvent, _Mapping]] = ..., task_exec_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., output_interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., input_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ...
+    def __init__(self, raw_event: _Optional[_Union[_event_pb2.NodeExecutionEvent, _Mapping]] = ..., task_exec_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., output_interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., input_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., principal: _Optional[str] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ...
 
 class CloudEventTaskExecution(_message.Message):
     __slots__ = ["raw_event"]
@@ -54,15 +58,17 @@ class CloudEventTaskExecution(_message.Message):
     def __init__(self, raw_event: _Optional[_Union[_event_pb2.TaskExecutionEvent, _Mapping]] = ...) -> None: ...
 
 class CloudEventExecutionStart(_message.Message):
-    __slots__ = ["execution_id", "launch_plan_id", "workflow_id", "artifact_ids", "artifact_keys"]
+    __slots__ = ["execution_id", "launch_plan_id", "workflow_id", "artifact_ids", "artifact_keys", "principal"]
     EXECUTION_ID_FIELD_NUMBER: _ClassVar[int]
     LAUNCH_PLAN_ID_FIELD_NUMBER: _ClassVar[int]
     WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int]
     ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int]
     ARTIFACT_KEYS_FIELD_NUMBER: _ClassVar[int]
+    PRINCIPAL_FIELD_NUMBER: _ClassVar[int]
     execution_id: _identifier_pb2.WorkflowExecutionIdentifier
     launch_plan_id: _identifier_pb2.Identifier
     workflow_id: _identifier_pb2.Identifier
     artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID]
     artifact_keys: _containers.RepeatedScalarFieldContainer[str]
-    def __init__(self, execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., workflow_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., artifact_keys: _Optional[_Iterable[str]] = ...) -> None: ...
+    principal: str
+    def __init__(self, execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., workflow_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., artifact_keys: _Optional[_Iterable[str]] = ..., principal: _Optional[str] = ...) -> None: ...
diff --git a/flyteidl/gen/pb_rust/flyteidl.artifact.rs b/flyteidl/gen/pb_rust/flyteidl.artifact.rs
index 2623c75a62..c99b50979f 100644
--- a/flyteidl/gen/pb_rust/flyteidl.artifact.rs
+++ b/flyteidl/gen/pb_rust/flyteidl.artifact.rs
@@ -9,6 +9,8 @@ pub struct Artifact {
     /// references the tag field in ArtifactTag
     #[prost(string, repeated, tag="3")]
     pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
+    #[prost(message, optional, tag="4")]
+    pub source: ::core::option::Option,
 }
 #[allow(clippy::derive_partial_eq_without_eq)]
 #[derive(Clone, PartialEq, ::prost::Message)]
@@ -24,10 +26,24 @@ pub struct CreateArtifactRequest {
     pub partitions: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
     #[prost(string, tag="5")]
     pub tag: ::prost::alloc::string::String,
+    #[prost(message, optional, tag="6")]
+    pub source: ::core::option::Option,
+}
+#[allow(clippy::derive_partial_eq_without_eq)]
+#[derive(Clone, PartialEq, ::prost::Message)]
+pub struct ArtifactSource {
+    #[prost(message, optional, tag="1")]
+    pub workflow_execution: ::core::option::Option,
+    #[prost(string, tag="2")]
+    pub node_id: ::prost::alloc::string::String,
+    #[prost(message, optional, tag="3")]
+    pub task_id: ::core::option::Option,
+    #[prost(uint32, tag="4")]
+    pub retry_attempt: u32,
+    /// Uploads, either from the UI or from the CLI, or FlyteRemote, will have this.
+    #[prost(string, tag="5")]
+    pub principal: ::prost::alloc::string::String,
 }
-// 1. Should add a new Source message that encapsulates all three of principal, task execution id, workflow execution id,
-// as well as the workflow and launch plan id responsible for the execution that generated the artifact (if not an upload)
-
 #[allow(clippy::derive_partial_eq_without_eq)]
 #[derive(Clone, PartialEq, ::prost::Message)]
 pub struct ArtifactSpec {
@@ -38,22 +54,12 @@ pub struct ArtifactSpec {
     /// type to all Literals is a lot of work.
     #[prost(message, optional, tag="2")]
     pub r#type: ::core::option::Option,
-    /// 3. These fields should be removed.
-    /// Outputs of tasks will have this.
-    #[prost(message, optional, tag="5")]
-    pub task_execution: ::core::option::Option,
-    /// Workflow outputs will have this.
-    #[prost(message, optional, tag="6")]
-    pub execution: ::core::option::Option,
-    /// Uploads, either from the UI or from the CLI, or FlyteRemote, will have this.
-    #[prost(string, tag="7")]
-    pub principal: ::prost::alloc::string::String,
-    #[prost(string, tag="8")]
+    #[prost(string, tag="3")]
     pub short_description: ::prost::alloc::string::String,
     /// Additional user metadata
-    #[prost(message, optional, tag="10")]
+    #[prost(message, optional, tag="4")]
     pub user_metadata: ::core::option::Option<::prost_types::Any>,
-    #[prost(string, tag="11")]
+    #[prost(string, tag="5")]
     pub metadata_type: ::prost::alloc::string::String,
 }
 #[allow(clippy::derive_partial_eq_without_eq)]
@@ -79,35 +85,82 @@ pub struct GetArtifactResponse {
 }
 #[allow(clippy::derive_partial_eq_without_eq)]
 #[derive(Clone, PartialEq, ::prost::Message)]
-pub struct ListArtifactNamesRequest {
-    #[prost(string, tag="1")]
-    pub project: ::prost::alloc::string::String,
-    #[prost(string, tag="2")]
-    pub domain: ::prost::alloc::string::String,
-}
-#[allow(clippy::derive_partial_eq_without_eq)]
-#[derive(Clone, PartialEq, ::prost::Message)]
-pub struct ListArtifactNamesResponse {
-    #[prost(message, repeated, tag="1")]
-    pub artifact_keys: ::prost::alloc::vec::Vec,
+pub struct SearchOptions {
+    /// If true, this means a strict partition search. meaning if you don't specify the partition
+    /// field, that will mean, non-partitioned, rather than any partition.
+    #[prost(bool, tag="1")]
+    pub strict_partitions: bool,
+    /// If true, only one artifact per key will be returned. It will be the latest one by creation time.
+    #[prost(bool, tag="2")]
+    pub latest_by_key: bool,
 }
 #[allow(clippy::derive_partial_eq_without_eq)]
 #[derive(Clone, PartialEq, ::prost::Message)]
 pub struct SearchArtifactsRequest {
     #[prost(message, optional, tag="1")]
     pub artifact_key: ::core::option::Option,
-    #[prost(string, tag="2")]
-    pub filters: ::prost::alloc::string::String,
+    #[prost(message, optional, tag="2")]
+    pub partitions: ::core::option::Option,
     #[prost(string, tag="3")]
+    pub principal: ::prost::alloc::string::String,
+    #[prost(string, tag="4")]
+    pub version: ::prost::alloc::string::String,
+    #[prost(message, optional, tag="5")]
+    pub options: ::core::option::Option,
+    #[prost(string, tag="6")]
     pub token: ::prost::alloc::string::String,
-    #[prost(int32, tag="4")]
+    #[prost(int32, tag="7")]
     pub limit: i32,
 }
 #[allow(clippy::derive_partial_eq_without_eq)]
 #[derive(Clone, PartialEq, ::prost::Message)]
 pub struct SearchArtifactsResponse {
+    /// If artifact specs are not requested, the resultant artifacts may be empty.
     #[prost(message, repeated, tag="1")]
     pub artifacts: ::prost::alloc::vec::Vec,
+    /// continuation token if relevant.
+    #[prost(string, tag="2")]
+    pub token: ::prost::alloc::string::String,
+}
+#[allow(clippy::derive_partial_eq_without_eq)]
+#[derive(Clone, PartialEq, ::prost::Message)]
+pub struct FindByWorkflowExecRequest {
+    #[prost(message, optional, tag="1")]
+    pub exec_id: ::core::option::Option,
+    #[prost(enumeration="find_by_workflow_exec_request::Direction", tag="2")]
+    pub direction: i32,
+    /// If set to true, actually fetch the artifact body. By default only the IDs are returned.
+    #[prost(bool, tag="3")]
+    pub fetch_specs: bool,
+}
+/// Nested message and enum types in `FindByWorkflowExecRequest`.
+pub mod find_by_workflow_exec_request {
+    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
+    #[repr(i32)]
+    pub enum Direction {
+        Inputs = 0,
+        Outputs = 1,
+    }
+    impl Direction {
+        /// String value of the enum field names used in the ProtoBuf definition.
+        ///
+        /// The values are not transformed in any way and thus are considered stable
+        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
+        pub fn as_str_name(&self) -> &'static str {
+            match self {
+                Direction::Inputs => "INPUTS",
+                Direction::Outputs => "OUTPUTS",
+            }
+        }
+        /// Creates an enum from field names used in the ProtoBuf definition.
+        pub fn from_str_name(value: &str) -> ::core::option::Option {
+            match value {
+                "INPUTS" => Some(Self::Inputs),
+                "OUTPUTS" => Some(Self::Outputs),
+                _ => None,
+            }
+        }
+    }
 }
 /// Aliases identify a particular version of an artifact. They are different than tags in that they
 /// have to be unique for a given artifact project/domain/name. That is, for a given project/domain/name/kind,
@@ -184,25 +237,15 @@ pub struct RegisterResponse {
 }
 #[allow(clippy::derive_partial_eq_without_eq)]
 #[derive(Clone, PartialEq, ::prost::Message)]
-pub struct CloudEventRequest {
-    #[prost(oneof="cloud_event_request::Event", tags="1, 2, 3")]
-    pub event: ::core::option::Option,
-}
-/// Nested message and enum types in `CloudEventRequest`.
-pub mod cloud_event_request {
-    #[allow(clippy::derive_partial_eq_without_eq)]
-#[derive(Clone, PartialEq, ::prost::Oneof)]
-    pub enum Event {
-        #[prost(message, tag="1")]
-        WorkflowExecutionEvent(super::super::event::CloudEventWorkflowExecution),
-        #[prost(message, tag="2")]
-        TaskExecutionEvent(super::super::event::CloudEventTaskExecution),
-        #[prost(message, tag="3")]
-        NodeExecutionEvent(super::super::event::CloudEventNodeExecution),
-    }
+pub struct ExecutionInputsRequest {
+    #[prost(message, optional, tag="1")]
+    pub execution_id: ::core::option::Option,
+    /// can make this a map in the future, currently no need.
+    #[prost(message, repeated, tag="2")]
+    pub inputs: ::prost::alloc::vec::Vec,
 }
 #[allow(clippy::derive_partial_eq_without_eq)]
 #[derive(Clone, PartialEq, ::prost::Message)]
-pub struct CloudEventResponse {
+pub struct ExecutionInputsResponse {
 }
 // @@protoc_insertion_point(module)
diff --git a/flyteidl/gen/pb_rust/flyteidl.event.rs b/flyteidl/gen/pb_rust/flyteidl.event.rs
index 02444b809b..b7dd7ac9f3 100644
--- a/flyteidl/gen/pb_rust/flyteidl.event.rs
+++ b/flyteidl/gen/pb_rust/flyteidl.event.rs
@@ -404,10 +404,12 @@ pub struct CloudEventWorkflowExecution {
     pub artifact_ids: ::prost::alloc::vec::Vec,
     #[prost(message, optional, tag="6")]
     pub reference_execution: ::core::option::Option,
+    #[prost(string, tag="7")]
+    pub principal: ::prost::alloc::string::String,
     /// The ID of the LP that generated the execution that generated the Artifact.
     /// Here for provenance information.
     /// Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-    #[prost(message, optional, tag="7")]
+    #[prost(message, optional, tag="8")]
     pub launch_plan_id: ::core::option::Option,
 }
 #[allow(clippy::derive_partial_eq_without_eq)]
@@ -430,10 +432,12 @@ pub struct CloudEventNodeExecution {
     /// We can't have the ExecutionMetadata object directly because of import cycle
     #[prost(message, repeated, tag="6")]
     pub artifact_ids: ::prost::alloc::vec::Vec,
+    #[prost(string, tag="7")]
+    pub principal: ::prost::alloc::string::String,
     /// The ID of the LP that generated the execution that generated the Artifact.
     /// Here for provenance information.
     /// Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-    #[prost(message, optional, tag="7")]
+    #[prost(message, optional, tag="8")]
     pub launch_plan_id: ::core::option::Option,
 }
 #[allow(clippy::derive_partial_eq_without_eq)]
@@ -460,5 +464,7 @@ pub struct CloudEventExecutionStart {
     /// Artifact keys found.
     #[prost(string, repeated, tag="5")]
     pub artifact_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
+    #[prost(string, tag="6")]
+    pub principal: ::prost::alloc::string::String,
 }
 // @@protoc_insertion_point(module)
diff --git a/flyteidl/protos/flyteidl/artifact/artifacts.proto b/flyteidl/protos/flyteidl/artifact/artifacts.proto
index f22c55f96d..89f6e6d2e9 100644
--- a/flyteidl/protos/flyteidl/artifact/artifacts.proto
+++ b/flyteidl/protos/flyteidl/artifact/artifacts.proto
@@ -23,7 +23,7 @@ message Artifact {
   // references the tag field in ArtifactTag
   repeated string tags = 3;
 
-  // 4. and the source message should be added here instead
+  ArtifactSource source = 4;
 }
 
 message CreateArtifactRequest {
@@ -38,11 +38,18 @@ message CreateArtifactRequest {
 
   string tag = 5;
 
-  // 2. We should add the source field to this.
+  ArtifactSource source = 6;
 }
 
-// 1. Should add a new Source message that encapsulates all three of principal, task execution id, workflow execution id,
-// as well as the workflow and launch plan id responsible for the execution that generated the artifact (if not an upload)
+message ArtifactSource {
+  core.WorkflowExecutionIdentifier workflow_execution = 1;
+  string node_id = 2;
+  core.Identifier task_id = 3;
+  uint32 retry_attempt = 4;
+
+  // Uploads, either from the UI or from the CLI, or FlyteRemote, will have this.
+  string principal = 5;
+}
 
 message ArtifactSpec {
   core.Literal value = 1;
@@ -52,22 +59,12 @@ message ArtifactSpec {
   // type to all Literals is a lot of work.
   core.LiteralType type = 2;
 
-  // 3. These fields should be removed.
-  // Outputs of tasks will have this.
-  core.TaskExecutionIdentifier task_execution = 5;
-
-  // Workflow outputs will have this.
-  core.WorkflowExecutionIdentifier execution = 6;
-
-  // Uploads, either from the UI or from the CLI, or FlyteRemote, will have this.
-  string principal = 7;
-
-  string short_description = 8;
+  string short_description = 3;
 
   // Additional user metadata
-  google.protobuf.Any user_metadata = 10;
+  google.protobuf.Any user_metadata = 4;
 
-  string metadata_type = 11;
+  string metadata_type = 5;
 }
 
 
@@ -86,25 +83,46 @@ message GetArtifactResponse {
   Artifact artifact = 1;
 }
 
-message ListArtifactNamesRequest {
-  string project = 1;
-  string domain = 2;
-}
+message SearchOptions {
+  // If true, this means a strict partition search. meaning if you don't specify the partition
+  // field, that will mean, non-partitioned, rather than any partition.
+  bool strict_partitions = 1;
 
-message ListArtifactNamesResponse {
-  repeated core.ArtifactKey artifact_keys = 1;
+  // If true, only one artifact per key will be returned. It will be the latest one by creation time.
+  bool latest_by_key = 2;
 }
 
 message SearchArtifactsRequest {
   core.ArtifactKey artifact_key = 1;
 
-  string filters = 2;
-  string token = 3;
-  int32 limit = 4;
+  core.Partitions partitions = 2;
+
+  string principal = 3;
+  string version = 4;
+
+  SearchOptions options = 5;
+
+  string token = 6;
+  int32 limit = 7;
 }
 
 message SearchArtifactsResponse {
+  // If artifact specs are not requested, the resultant artifacts may be empty.
   repeated Artifact artifacts = 1;
+
+  // continuation token if relevant.
+  string token = 2;
+}
+
+message FindByWorkflowExecRequest {
+  core.WorkflowExecutionIdentifier exec_id = 1;
+
+  enum Direction {
+    INPUTS = 0;
+    OUTPUTS = 1;
+  }
+
+  Direction direction = 2;
 }
 
 // Aliases identify a particular version of an artifact. They are different than tags in that they
@@ -158,20 +176,17 @@ message RegisterConsumerRequest {
 
 message RegisterResponse {}
 
-message CloudEventRequest {
-  oneof event {
-    event.CloudEventWorkflowExecution workflow_execution_event = 1;
-    event.CloudEventTaskExecution task_execution_event = 2;
-    event.CloudEventNodeExecution node_execution_event = 3;
-  }
+message ExecutionInputsRequest {
+  core.WorkflowExecutionIdentifier execution_id = 1;
+
+  // can make this a map in the future, currently no need.
+  repeated core.ArtifactID inputs = 2;
 }
 
-message CloudEventResponse {}
+message ExecutionInputsResponse {}
 
 service ArtifactRegistry {
-  rpc CreateArtifact (CreateArtifactRequest) returns (CreateArtifactResponse) {
-
-  }
+  rpc CreateArtifact (CreateArtifactRequest) returns (CreateArtifactResponse) {}
 
   rpc GetArtifact (GetArtifactRequest) returns (GetArtifactResponse) {
     option (google.api.http) = {
@@ -180,13 +195,11 @@ service ArtifactRegistry {
       additional_bindings {get: "/data/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}"}
       additional_bindings {get: "/data/v1/artifact/tag/{query.artifact_tag.artifact_key.project}/{query.artifact_tag.artifact_key.domain}/{query.artifact_tag.artifact_key.name}"}
     };
-
-
   }
 
   rpc SearchArtifacts (SearchArtifactsRequest) returns (SearchArtifactsResponse) {
     option (google.api.http) = {
-      get: "/data/v1/query/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}"
+      get: "/data/v1/query/s/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}"
       additional_bindings {get: "/data/v1/query/{artifact_key.project}/{artifact_key.domain}"}
     };
   }
@@ -200,4 +213,13 @@ service ArtifactRegistry {
   rpc RegisterProducer(RegisterProducerRequest) returns (RegisterResponse) {}
 
   rpc RegisterConsumer(RegisterConsumerRequest) returns (RegisterResponse) {}
+
+  rpc SetExecutionInputs(ExecutionInputsRequest) returns (ExecutionInputsResponse) {}
+
+  rpc FindByWorkflowExec (FindByWorkflowExecRequest) returns (SearchArtifactsResponse) {
+    option (google.api.http) = {
+      get: "/data/v1/query/e/{exec_id.project}/{exec_id.domain}/{exec_id.name}/{direction}"
+    };
+  }
+
 }
diff --git a/flyteidl/protos/flyteidl/event/cloudevents.proto b/flyteidl/protos/flyteidl/event/cloudevents.proto
index 1d1062097c..0c628d52d4 100644
--- a/flyteidl/protos/flyteidl/event/cloudevents.proto
+++ b/flyteidl/protos/flyteidl/event/cloudevents.proto
@@ -26,11 +26,12 @@ message CloudEventWorkflowExecution {
   // We can't have the ExecutionMetadata object directly because of import cycle
   repeated core.ArtifactID artifact_ids = 5;
   core.WorkflowExecutionIdentifier reference_execution = 6;
+  string principal = 7;
 
   // The ID of the LP that generated the execution that generated the Artifact.
   // Here for provenance information.
   // Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-  core.Identifier launch_plan_id = 7;
+  core.Identifier launch_plan_id = 8;
 }
 
 message CloudEventNodeExecution {
@@ -50,11 +51,12 @@ message CloudEventNodeExecution {
   // The following are ExecutionMetadata fields
   // We can't have the ExecutionMetadata object directly because of import cycle
   repeated core.ArtifactID artifact_ids = 6;
+  string principal = 7;
 
   // The ID of the LP that generated the execution that generated the Artifact.
   // Here for provenance information.
   // Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-  core.Identifier launch_plan_id = 7;
+  core.Identifier launch_plan_id = 8;
 }
 
 message CloudEventTaskExecution {
@@ -75,4 +77,6 @@ message CloudEventExecutionStart {
 
   // Artifact keys found.
   repeated string artifact_keys = 5;
+
+  string principal = 6;
 }