From 40578e633b5065946392f271579318396927c50b Mon Sep 17 00:00:00 2001 From: Haytham Abuelfutuh Date: Tue, 2 Feb 2021 17:09:49 -0800 Subject: [PATCH] Update CI post migration (#95) * Migrate off of travis * move proto test to actions * wip * wip * wip * wip * install git * wip * wip * update script * try uploading * wip * wip * add the rest of the steps * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update pull_request.yml * Update pull_request.yml * Update pull_request.yml * Ignore generated code * Update pull_request.yml * Update pull_request.yml * wip * regenerate * fix workdir * wip * wip * wip * wip * wip * fixing lint * lint * Add NPM Publish Step * cleanup * Update setup.py * update maintainer emails --- flyteidl/.github/workflows/npmpublish.yaml | 20 + flyteidl/.github/workflows/pythonpublish.yaml | 4 +- flyteidl/.github/workflows/verification.yml | 236 + flyteidl/.golangci.yml | 1 + flyteidl/.travis.yml | 16 - flyteidl/clients/go/admin/client.go | 13 +- flyteidl/clients/go/admin/config.go | 2 +- flyteidl/clients/go/admin/config_flags.go | 2 +- .../clients/go/admin/config_flags_test.go | 4 +- flyteidl/clients/go/admin/token_source.go | 7 +- .../clients/go/admin/token_source_test.go | 2 +- .../datacatalog/datacatalog.grpc.pb.cc | 213 + .../datacatalog/datacatalog.grpc.pb.h | 740 + .../flyteidl/datacatalog/datacatalog.pb.cc | 6109 ++++++++ .../flyteidl/datacatalog/datacatalog.pb.h | 3690 +++++ .../pb/lyft/datacatalog/Datacatalog.java | 12529 ++++++++++++++++ .../datacatalog/datacatalog.proto.rst | 505 + .../flyteidl/datacatalog/index.rst | 13 + flyteidl/gen/pb-protodoc/flyteidl/index.rst | 1 + .../flyteidl/datacatalog/__init__.py | 0 .../flyteidl/datacatalog/datacatalog_pb2.py | 885 ++ .../datacatalog/datacatalog_pb2_grpc.py | 97 + flyteidl/generate_protos.sh | 3 +- flyteidl/package.json | 10 +- flyteidl/scripts/test_diff.sh | 29 + flyteidl/setup.py | 8 +- 26 files changed, 25098 insertions(+), 41 deletions(-) create mode 100644 flyteidl/.github/workflows/npmpublish.yaml create mode 100644 flyteidl/.github/workflows/verification.yml delete mode 100644 flyteidl/.travis.yml create mode 100644 flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h create mode 100644 flyteidl/gen/pb-java/pb/lyft/datacatalog/Datacatalog.java create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/datacatalog/datacatalog.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/datacatalog/index.rst create mode 100644 flyteidl/gen/pb_python/flyteidl/datacatalog/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py create mode 100755 flyteidl/scripts/test_diff.sh diff --git a/flyteidl/.github/workflows/npmpublish.yaml b/flyteidl/.github/workflows/npmpublish.yaml new file mode 100644 index 000000000..ec8ad0eed --- /dev/null +++ b/flyteidl/.github/workflows/npmpublish.yaml @@ -0,0 +1,20 @@ +name: Publish NPM Package + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v1 + with: + node-version: "12.x" + registry-url: "https://registry.npmjs.org" + - run: npm install + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/flyteidl/.github/workflows/pythonpublish.yaml b/flyteidl/.github/workflows/pythonpublish.yaml index c12d7d648..bd89bd3ed 100644 --- a/flyteidl/.github/workflows/pythonpublish.yaml +++ b/flyteidl/.github/workflows/pythonpublish.yaml @@ -1,4 +1,4 @@ -name: Upload Python Package +name: Upload PyPi Package on: release: @@ -12,7 +12,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v1 with: - python-version: '3.x' + python-version: "3.x" - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/flyteidl/.github/workflows/verification.yml b/flyteidl/.github/workflows/verification.yml new file mode 100644 index 000000000..fa5fdc66e --- /dev/null +++ b/flyteidl/.github/workflows/verification.yml @@ -0,0 +1,236 @@ +name: Verification Tests + +on: + pull_request: + push: + branches: + - master + +jobs: + tests-lint: + name: Run tests and lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: Unit Tests + uses: cedrickring/golang-action@1.6.0 + env: + GO111MODULE: "on" + with: + args: make install && make test_unit + - name: Lint + uses: cedrickring/golang-action@1.6.0 + env: + GO111MODULE: "on" + with: + args: make install && make lint + generate-protos: + runs-on: ubuntu-latest + name: Generate Protos + container: + image: lyft/protocgenerator:8167e11d3b3439373c2f033080a4b550078884a2 + options: --cpus 1 + volumes: + - /github/workspace:/defs + env: + REPO_BLOB_SHA: master + PROJECT_ANNOTATION_PREFIX: flyte.interface + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: "Clean Generated" + run: rm -rf ./gen + # GO Protos + - name: Proto-Service-Go + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/service --with_gateway -l go --go_source_relative + - name: Proto-Admin-Go + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/admin --with_gateway -l go --go_source_relative --validate_out + - name: Proto-Core-Go + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/core --with_gateway -l go --go_source_relative --validate_out + - name: Proto-Event-Go + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/event --with_gateway -l go --go_source_relative --validate_out + - name: Proto-Plugins-Go + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/plugins -l go --go_source_relative --validate_out + - name: Proto-Datacatalog-Go + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/datacatalog -l go --go_source_relative --validate_out + + # Python + - name: Proto-Service-Python + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/service -l python + - name: Proto-Admin-Python + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/admin -l python + - name: Proto-Core-Python + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/core -l python + - name: Proto-Event-Python + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/event -l python + - name: Proto-Plugins-Python + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/plugins -l python + - name: Proto-Datacatalog-Python + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/datacatalog -l python + + # Cpp + - name: Proto-Service-Cpp + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/service -l cpp + - name: Proto-Admin-Cpp + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/admin -l cpp + - name: Proto-Core-Cpp + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/core -l cpp + - name: Proto-Event-Cpp + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/event -l cpp + - name: Proto-Plugins-Cpp + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/plugins -l cpp + - name: Proto-Datacatalog-Cpp + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/datacatalog -l cpp + + # Java + - name: Proto-Service-Java + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/service -l java + - name: Proto-Admin-Java + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/admin -l java + - name: Proto-Core-Java + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/core -l java + - name: Proto-Event-Java + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/event -l java + - name: Proto-Plugins-Java + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/plugins -l java + - name: Proto-Datacatalog-Java + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/datacatalog -l java + + # Docs + - name: Docs-Service + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/service -l protodoc + - name: Docs-Admin + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/admin -l protodoc + - name: Docs-Core + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/core -l protodoc + - name: Docs-Event + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/event -l protodoc + - name: Docs-Plugins + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/plugins -l protodoc + - name: Docs-Datacatalog + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/datacatalog -l protodoc + + - uses: actions/upload-artifact@master + with: + name: generated + path: ./gen + + generate-admin-swagger-code: + runs-on: ubuntu-latest + name: Generate Admin Swagger Code + needs: [generate-protos] + container: + image: lyft/protocgenerator:8167e11d3b3439373c2f033080a4b550078884a2 + options: --cpus 1 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: "Clean Generated" + run: rm -rf ./gen + - uses: actions/download-artifact@master + with: + name: generated + path: ./gen + - run: ls gen/pb-go/flyteidl/service/ + - run: cp -R gen/pb-go/flyteidl/service/ ../ + - run: ls ../service/ + # Open API 2 + - name: OpenAPI-Binary + run: go-bindata -pkg service -o ../service/openapi.go -prefix ../service/ -modtime 1562572800 ../service/admin.swagger.json + - run: rm -rf gen/pb-go/flyteidl/service + - run: mkdir -p gen/pb-go/flyteidl/service + - run: cp -R ../service gen/pb-go/flyteidl/ + - run: ls gen/pb-go/flyteidl/ + - run: ls gen/pb-go/flyteidl/service/ + - uses: actions/upload-artifact@master + with: + name: generated + path: ./gen + + generate-js-code: + runs-on: ubuntu-latest + name: Generate JS Code + needs: [generate-admin-swagger-code] + container: + image: schottra/docker-protobufjs:v0.0.2 + options: --cpus 1 + volumes: + - /github/workspace:/defs + env: + REPO_BLOB_SHA: master + PROJECT_ANNOTATION_PREFIX: flyte.interface + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: "Clean Generated" + run: rm -rf ./gen + - uses: actions/download-artifact@master + with: + name: generated + path: ./gen + - run: mkdir -p /defs + - run: mkdir -p /gen + - run: cp -R . /defs + - run: node /code/generate-protobuf.js --module-name flyteidl -d protos/flyteidl/core -d protos/flyteidl/event -d protos/flyteidl/admin -d protos/flyteidl/service -- --root flyteidl -t static-module -w es6 --no-delimited --force-long --no-convert -p /defs/protos + - run: ls /defs/gen/ + - uses: actions/upload-artifact@master + with: + name: generated + path: /defs/gen + + generate-swagger-code: + runs-on: ubuntu-latest + name: Generate Swagger Code + needs: [generate-js-code] + container: + image: docker.io/lyft/swagger-codegen-cli:dc5ce6ec6d7d4d980fa882d6bd13a83cba3be3c3 + options: --cpus 1 + volumes: + - /github/workspace:/defs + env: + REPO_BLOB_SHA: master + PROJECT_ANNOTATION_PREFIX: flyte.interface + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: "Clean Generated" + run: rm -rf ./gen + - uses: actions/download-artifact@master + with: + name: generated + path: ./gen + - run: java -jar /opt/swagger-codegen-cli/swagger-codegen-cli.jar generate -i ./gen/pb-go/flyteidl/service/admin.swagger.json -l go -o ./gen/pb-go/flyteidl/service/flyteadmin --additional-properties=packageName=flyteadmin + - run: java -jar /opt/swagger-codegen-cli/swagger-codegen-cli.jar generate -i ./gen/pb-go/flyteidl/service/admin.swagger.json -l python -o ./gen/pb_python/flyteidl/service/flyteadmin --additional-properties=packageName=flyteadmin + - uses: actions/upload-artifact@master + with: + name: generated + path: ./gen + + test-proto-changes: + runs-on: ubuntu-latest + name: Test Proto Changes + needs: [generate-swagger-code] + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: "Clean Generated" + run: rm -rf ./gen + - uses: actions/download-artifact@master + with: + name: generated + path: ./gen + - name: Test + run: ./scripts/test_diff.sh diff --git a/flyteidl/.golangci.yml b/flyteidl/.golangci.yml index a414f33f7..746d5d616 100644 --- a/flyteidl/.golangci.yml +++ b/flyteidl/.golangci.yml @@ -6,6 +6,7 @@ run: skip-dirs: - pkg/client + - gen linters: disable-all: true diff --git a/flyteidl/.travis.yml b/flyteidl/.travis.yml deleted file mode 100644 index aba2dae8d..000000000 --- a/flyteidl/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -sudo: required -language: go -go: - - "1.13" -services: - - docker -jobs: - include: - - stage: test - name: protos - install: true - script: make test - - stage: test - name: unit tests - install: make install - script: make test_unit diff --git a/flyteidl/clients/go/admin/client.go b/flyteidl/clients/go/admin/client.go index ff61018d2..4ffbae937 100644 --- a/flyteidl/clients/go/admin/client.go +++ b/flyteidl/clients/go/admin/client.go @@ -4,6 +4,11 @@ import ( "context" "errors" "fmt" + "io/ioutil" + "net/http" + "strings" + "sync" + "github.com/coreos/go-oidc" grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware" grpc_retry "github.com/grpc-ecosystem/go-grpc-middleware/retry" @@ -14,10 +19,6 @@ import ( "golang.org/x/oauth2/clientcredentials" "google.golang.org/grpc" "google.golang.org/grpc/credentials" - "io/ioutil" - "net/http" - "strings" - "sync" ) var ( @@ -97,7 +98,7 @@ func getAuthenticationDialOption(ctx context.Context, cfg Config) (grpc.DialOpti secret := strings.TrimSpace(string(secretBytes)) ccConfig := clientcredentials.Config{ - ClientID: cfg.ClientId, + ClientID: cfg.ClientID, ClientSecret: secret, TokenURL: tokenURL, Scopes: cfg.Scopes, @@ -117,7 +118,7 @@ func NewAdminConnection(ctx context.Context, cfg Config) (*grpc.ClientConn, erro creds := credentials.NewClientTLSFromCert(nil, "") opts = append(opts, grpc.WithTransportCredentials(creds)) if cfg.UseAuth { - logger.Infof(ctx, "Instantiating a token source to authenticate against Admin, ID: %s", cfg.ClientId) + logger.Infof(ctx, "Instantiating a token source to authenticate against Admin, ID: %s", cfg.ClientID) jwtDialOption, err := getAuthenticationDialOption(ctx, cfg) if err != nil { return nil, err diff --git a/flyteidl/clients/go/admin/config.go b/flyteidl/clients/go/admin/config.go index edeac0b69..75ca3b850 100644 --- a/flyteidl/clients/go/admin/config.go +++ b/flyteidl/clients/go/admin/config.go @@ -22,7 +22,7 @@ type Config struct { // Auth can only be used if also running with a secure connection. If UseInsecureConnection is set to true, none // of the following options will even be referenced. UseAuth bool `json:"useAuth" pflag:",Whether or not to try to authenticate with options below"` - ClientId string `json:"clientId" pflag:",Client ID"` + ClientID string `json:"clientId" pflag:",Client ID"` ClientSecretLocation string `json:"clientSecretLocation" pflag:",File containing the client secret"` Scopes []string `json:"scopes" pflag:",List of scopes to request"` diff --git a/flyteidl/clients/go/admin/config_flags.go b/flyteidl/clients/go/admin/config_flags.go index d683be478..541634d86 100755 --- a/flyteidl/clients/go/admin/config_flags.go +++ b/flyteidl/clients/go/admin/config_flags.go @@ -47,7 +47,7 @@ func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet { cmdFlags.String(fmt.Sprintf("%v%v", prefix, "perRetryTimeout"), defaultConfig.PerRetryTimeout.String(), "gRPC per retry timeout") cmdFlags.Int(fmt.Sprintf("%v%v", prefix, "maxRetries"), defaultConfig.MaxRetries, "Max number of gRPC retries") cmdFlags.Bool(fmt.Sprintf("%v%v", prefix, "useAuth"), defaultConfig.UseAuth, "Whether or not to try to authenticate with options below") - cmdFlags.String(fmt.Sprintf("%v%v", prefix, "clientId"), defaultConfig.ClientId, "Client ID") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "clientId"), defaultConfig.ClientID, "Client ID") cmdFlags.String(fmt.Sprintf("%v%v", prefix, "clientSecretLocation"), defaultConfig.ClientSecretLocation, "File containing the client secret") cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "scopes"), []string{}, "List of scopes to request") cmdFlags.String(fmt.Sprintf("%v%v", prefix, "authorizationServerUrl"), defaultConfig.AuthorizationServerURL, "This is the URL to your IDP's authorization server'") diff --git a/flyteidl/clients/go/admin/config_flags_test.go b/flyteidl/clients/go/admin/config_flags_test.go index be2e3fe13..4a7440c8a 100755 --- a/flyteidl/clients/go/admin/config_flags_test.go +++ b/flyteidl/clients/go/admin/config_flags_test.go @@ -235,7 +235,7 @@ func TestConfig_SetFlags(t *testing.T) { t.Run("DefaultValue", func(t *testing.T) { // Test that default value is set properly if vString, err := cmdFlags.GetString("clientId"); err == nil { - assert.Equal(t, string(defaultConfig.ClientId), vString) + assert.Equal(t, string(defaultConfig.ClientID), vString) } else { assert.FailNow(t, err.Error()) } @@ -246,7 +246,7 @@ func TestConfig_SetFlags(t *testing.T) { cmdFlags.Set("clientId", testValue) if vString, err := cmdFlags.GetString("clientId"); err == nil { - testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.ClientId) + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.ClientID) } else { assert.FailNow(t, err.Error()) diff --git a/flyteidl/clients/go/admin/token_source.go b/flyteidl/clients/go/admin/token_source.go index d8e9012bc..374d8d186 100644 --- a/flyteidl/clients/go/admin/token_source.go +++ b/flyteidl/clients/go/admin/token_source.go @@ -1,7 +1,10 @@ package admin -import "golang.org/x/oauth2" -import "context" +import ( + "context" + + "golang.org/x/oauth2" +) // This class is here because we cannot use the normal "github.com/grpc/grpc-go/credentials/oauth" package to satisfy // the credentials.PerRPCCredentials interface. This is because we want to be able to support a different 'header' diff --git a/flyteidl/clients/go/admin/token_source_test.go b/flyteidl/clients/go/admin/token_source_test.go index ba47fedeb..3dc780090 100644 --- a/flyteidl/clients/go/admin/token_source_test.go +++ b/flyteidl/clients/go/admin/token_source_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/stretchr/testify/assert" + "golang.org/x/oauth2" ) -import "golang.org/x/oauth2" type DummyTestTokenSource struct { oauth2.TokenSource diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc new file mode 100644 index 000000000..e75ee51d4 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc @@ -0,0 +1,213 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/datacatalog/datacatalog.proto + +#include "flyteidl/datacatalog/datacatalog.pb.h" +#include "flyteidl/datacatalog/datacatalog.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace pb { +namespace lyft { +namespace datacatalog { + +static const char* Artifacts_method_names[] = { + "/pb.lyft.datacatalog.Artifacts/Get", + "/pb.lyft.datacatalog.Artifacts/Query", + "/pb.lyft.datacatalog.Artifacts/Create", + "/pb.lyft.datacatalog.Artifacts/GenerateProvenance", +}; + +std::unique_ptr< Artifacts::Stub> Artifacts::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< Artifacts::Stub> stub(new Artifacts::Stub(channel)); + return stub; +} + +Artifacts::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_Get_(Artifacts_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Query_(Artifacts_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Create_(Artifacts_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GenerateProvenance_(Artifacts_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status Artifacts::Stub::Get(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest& request, ::pb::lyft::datacatalog::GetResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Get_, context, request, response); +} + +void Artifacts::Stub::experimental_async::Get(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Get_, context, request, response, std::move(f)); +} + +void Artifacts::Stub::experimental_async::Get(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::GetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Get_, context, request, response, std::move(f)); +} + +void Artifacts::Stub::experimental_async::Get(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Get_, context, request, response, reactor); +} + +void Artifacts::Stub::experimental_async::Get(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::GetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Get_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GetResponse>* Artifacts::Stub::AsyncGetRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::pb::lyft::datacatalog::GetResponse>::Create(channel_.get(), cq, rpcmethod_Get_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GetResponse>* Artifacts::Stub::PrepareAsyncGetRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::pb::lyft::datacatalog::GetResponse>::Create(channel_.get(), cq, rpcmethod_Get_, context, request, false); +} + +::grpc::Status Artifacts::Stub::Query(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest& request, ::pb::lyft::datacatalog::QueryResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Query_, context, request, response); +} + +void Artifacts::Stub::experimental_async::Query(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest* request, ::pb::lyft::datacatalog::QueryResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Query_, context, request, response, std::move(f)); +} + +void Artifacts::Stub::experimental_async::Query(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::QueryResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Query_, context, request, response, std::move(f)); +} + +void Artifacts::Stub::experimental_async::Query(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest* request, ::pb::lyft::datacatalog::QueryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Query_, context, request, response, reactor); +} + +void Artifacts::Stub::experimental_async::Query(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::QueryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Query_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::QueryResponse>* Artifacts::Stub::AsyncQueryRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::pb::lyft::datacatalog::QueryResponse>::Create(channel_.get(), cq, rpcmethod_Query_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::QueryResponse>* Artifacts::Stub::PrepareAsyncQueryRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::pb::lyft::datacatalog::QueryResponse>::Create(channel_.get(), cq, rpcmethod_Query_, context, request, false); +} + +::grpc::Status Artifacts::Stub::Create(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest& request, ::pb::lyft::datacatalog::CreateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Create_, context, request, response); +} + +void Artifacts::Stub::experimental_async::Create(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest* request, ::pb::lyft::datacatalog::CreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Create_, context, request, response, std::move(f)); +} + +void Artifacts::Stub::experimental_async::Create(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::CreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Create_, context, request, response, std::move(f)); +} + +void Artifacts::Stub::experimental_async::Create(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest* request, ::pb::lyft::datacatalog::CreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Create_, context, request, response, reactor); +} + +void Artifacts::Stub::experimental_async::Create(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::CreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Create_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::CreateResponse>* Artifacts::Stub::AsyncCreateRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::pb::lyft::datacatalog::CreateResponse>::Create(channel_.get(), cq, rpcmethod_Create_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::CreateResponse>* Artifacts::Stub::PrepareAsyncCreateRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::pb::lyft::datacatalog::CreateResponse>::Create(channel_.get(), cq, rpcmethod_Create_, context, request, false); +} + +::grpc::Status Artifacts::Stub::GenerateProvenance(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest& request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GenerateProvenance_, context, request, response); +} + +void Artifacts::Stub::experimental_async::GenerateProvenance(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GenerateProvenance_, context, request, response, std::move(f)); +} + +void Artifacts::Stub::experimental_async::GenerateProvenance(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GenerateProvenance_, context, request, response, std::move(f)); +} + +void Artifacts::Stub::experimental_async::GenerateProvenance(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GenerateProvenance_, context, request, response, reactor); +} + +void Artifacts::Stub::experimental_async::GenerateProvenance(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GenerateProvenance_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GenerateProvenanceResponse>* Artifacts::Stub::AsyncGenerateProvenanceRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::pb::lyft::datacatalog::GenerateProvenanceResponse>::Create(channel_.get(), cq, rpcmethod_GenerateProvenance_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GenerateProvenanceResponse>* Artifacts::Stub::PrepareAsyncGenerateProvenanceRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::pb::lyft::datacatalog::GenerateProvenanceResponse>::Create(channel_.get(), cq, rpcmethod_GenerateProvenance_, context, request, false); +} + +Artifacts::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + Artifacts_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Artifacts::Service, ::pb::lyft::datacatalog::GetRequest, ::pb::lyft::datacatalog::GetResponse>( + std::mem_fn(&Artifacts::Service::Get), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Artifacts_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Artifacts::Service, ::pb::lyft::datacatalog::QueryRequest, ::pb::lyft::datacatalog::QueryResponse>( + std::mem_fn(&Artifacts::Service::Query), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Artifacts_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Artifacts::Service, ::pb::lyft::datacatalog::CreateRequest, ::pb::lyft::datacatalog::CreateResponse>( + std::mem_fn(&Artifacts::Service::Create), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Artifacts_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Artifacts::Service, ::pb::lyft::datacatalog::GenerateProvenanceRequest, ::pb::lyft::datacatalog::GenerateProvenanceResponse>( + std::mem_fn(&Artifacts::Service::GenerateProvenance), this))); +} + +Artifacts::Service::~Service() { +} + +::grpc::Status Artifacts::Service::Get(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status Artifacts::Service::Query(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::QueryRequest* request, ::pb::lyft::datacatalog::QueryResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status Artifacts::Service::Create(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::CreateRequest* request, ::pb::lyft::datacatalog::CreateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status Artifacts::Service::GenerateProvenance(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace pb +} // namespace lyft +} // namespace datacatalog + diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h new file mode 100644 index 000000000..96a75de12 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h @@ -0,0 +1,740 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/datacatalog/datacatalog.proto +#ifndef GRPC_flyteidl_2fdatacatalog_2fdatacatalog_2eproto__INCLUDED +#define GRPC_flyteidl_2fdatacatalog_2fdatacatalog_2eproto__INCLUDED + +#include "flyteidl/datacatalog/datacatalog.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace pb { +namespace lyft { +namespace datacatalog { + +class Artifacts final { + public: + static constexpr char const* service_full_name() { + return "pb.lyft.datacatalog.Artifacts"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status Get(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest& request, ::pb::lyft::datacatalog::GetResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::GetResponse>> AsyncGet(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::GetResponse>>(AsyncGetRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::GetResponse>> PrepareAsyncGet(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::GetResponse>>(PrepareAsyncGetRaw(context, request, cq)); + } + virtual ::grpc::Status Query(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest& request, ::pb::lyft::datacatalog::QueryResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::QueryResponse>> AsyncQuery(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::QueryResponse>>(AsyncQueryRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::QueryResponse>> PrepareAsyncQuery(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::QueryResponse>>(PrepareAsyncQueryRaw(context, request, cq)); + } + virtual ::grpc::Status Create(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest& request, ::pb::lyft::datacatalog::CreateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::CreateResponse>> AsyncCreate(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::CreateResponse>>(AsyncCreateRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::CreateResponse>> PrepareAsyncCreate(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::CreateResponse>>(PrepareAsyncCreateRaw(context, request, cq)); + } + virtual ::grpc::Status GenerateProvenance(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest& request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::GenerateProvenanceResponse>> AsyncGenerateProvenance(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::GenerateProvenanceResponse>>(AsyncGenerateProvenanceRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::GenerateProvenanceResponse>> PrepareAsyncGenerateProvenance(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::GenerateProvenanceResponse>>(PrepareAsyncGenerateProvenanceRaw(context, request, cq)); + } + class experimental_async_interface { + public: + virtual ~experimental_async_interface() {} + virtual void Get(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response, std::function) = 0; + virtual void Get(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::GetResponse* response, std::function) = 0; + virtual void Get(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void Get(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::GetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void Query(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest* request, ::pb::lyft::datacatalog::QueryResponse* response, std::function) = 0; + virtual void Query(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::QueryResponse* response, std::function) = 0; + virtual void Query(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest* request, ::pb::lyft::datacatalog::QueryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void Query(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::QueryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void Create(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest* request, ::pb::lyft::datacatalog::CreateResponse* response, std::function) = 0; + virtual void Create(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::CreateResponse* response, std::function) = 0; + virtual void Create(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest* request, ::pb::lyft::datacatalog::CreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void Create(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::CreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GenerateProvenance(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response, std::function) = 0; + virtual void GenerateProvenance(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response, std::function) = 0; + virtual void GenerateProvenance(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GenerateProvenance(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + }; + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::GetResponse>* AsyncGetRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::GetResponse>* PrepareAsyncGetRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::QueryResponse>* AsyncQueryRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::QueryResponse>* PrepareAsyncQueryRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::CreateResponse>* AsyncCreateRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::CreateResponse>* PrepareAsyncCreateRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::GenerateProvenanceResponse>* AsyncGenerateProvenanceRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::pb::lyft::datacatalog::GenerateProvenanceResponse>* PrepareAsyncGenerateProvenanceRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status Get(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest& request, ::pb::lyft::datacatalog::GetResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GetResponse>> AsyncGet(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GetResponse>>(AsyncGetRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GetResponse>> PrepareAsyncGet(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GetResponse>>(PrepareAsyncGetRaw(context, request, cq)); + } + ::grpc::Status Query(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest& request, ::pb::lyft::datacatalog::QueryResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::QueryResponse>> AsyncQuery(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::QueryResponse>>(AsyncQueryRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::QueryResponse>> PrepareAsyncQuery(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::QueryResponse>>(PrepareAsyncQueryRaw(context, request, cq)); + } + ::grpc::Status Create(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest& request, ::pb::lyft::datacatalog::CreateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::CreateResponse>> AsyncCreate(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::CreateResponse>>(AsyncCreateRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::CreateResponse>> PrepareAsyncCreate(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::CreateResponse>>(PrepareAsyncCreateRaw(context, request, cq)); + } + ::grpc::Status GenerateProvenance(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest& request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GenerateProvenanceResponse>> AsyncGenerateProvenance(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GenerateProvenanceResponse>>(AsyncGenerateProvenanceRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GenerateProvenanceResponse>> PrepareAsyncGenerateProvenance(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GenerateProvenanceResponse>>(PrepareAsyncGenerateProvenanceRaw(context, request, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { + public: + void Get(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response, std::function) override; + void Get(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::GetResponse* response, std::function) override; + void Get(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void Get(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::GetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void Query(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest* request, ::pb::lyft::datacatalog::QueryResponse* response, std::function) override; + void Query(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::QueryResponse* response, std::function) override; + void Query(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest* request, ::pb::lyft::datacatalog::QueryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void Query(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::QueryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void Create(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest* request, ::pb::lyft::datacatalog::CreateResponse* response, std::function) override; + void Create(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::CreateResponse* response, std::function) override; + void Create(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest* request, ::pb::lyft::datacatalog::CreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void Create(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::CreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GenerateProvenance(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response, std::function) override; + void GenerateProvenance(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response, std::function) override; + void GenerateProvenance(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GenerateProvenance(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit experimental_async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class experimental_async_interface* experimental_async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class experimental_async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GetResponse>* AsyncGetRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GetResponse>* PrepareAsyncGetRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::QueryResponse>* AsyncQueryRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::QueryResponse>* PrepareAsyncQueryRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::QueryRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::CreateResponse>* AsyncCreateRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::CreateResponse>* PrepareAsyncCreateRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::CreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GenerateProvenanceResponse>* AsyncGenerateProvenanceRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::pb::lyft::datacatalog::GenerateProvenanceResponse>* PrepareAsyncGenerateProvenanceRaw(::grpc::ClientContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_Get_; + const ::grpc::internal::RpcMethod rpcmethod_Query_; + const ::grpc::internal::RpcMethod rpcmethod_Create_; + const ::grpc::internal::RpcMethod rpcmethod_GenerateProvenance_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status Get(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response); + virtual ::grpc::Status Query(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::QueryRequest* request, ::pb::lyft::datacatalog::QueryResponse* response); + virtual ::grpc::Status Create(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::CreateRequest* request, ::pb::lyft::datacatalog::CreateResponse* response); + virtual ::grpc::Status GenerateProvenance(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response); + }; + template + class WithAsyncMethod_Get : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_Get() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Get() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Get(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGet(::grpc::ServerContext* context, ::pb::lyft::datacatalog::GetRequest* request, ::grpc::ServerAsyncResponseWriter< ::pb::lyft::datacatalog::GetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_Query : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_Query() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_Query() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Query(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::QueryRequest* request, ::pb::lyft::datacatalog::QueryResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestQuery(::grpc::ServerContext* context, ::pb::lyft::datacatalog::QueryRequest* request, ::grpc::ServerAsyncResponseWriter< ::pb::lyft::datacatalog::QueryResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_Create : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_Create() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_Create() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Create(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::CreateRequest* request, ::pb::lyft::datacatalog::CreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreate(::grpc::ServerContext* context, ::pb::lyft::datacatalog::CreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::pb::lyft::datacatalog::CreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GenerateProvenance : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GenerateProvenance() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_GenerateProvenance() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GenerateProvenance(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGenerateProvenance(::grpc::ServerContext* context, ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::grpc::ServerAsyncResponseWriter< ::pb::lyft::datacatalog::GenerateProvenanceResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Get > > > AsyncService; + template + class ExperimentalWithCallbackMethod_Get : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_Get() { + ::grpc::Service::experimental().MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::pb::lyft::datacatalog::GetRequest, ::pb::lyft::datacatalog::GetResponse>( + [this](::grpc::ServerContext* context, + const ::pb::lyft::datacatalog::GetRequest* request, + ::pb::lyft::datacatalog::GetResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->Get(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_Get( + ::grpc::experimental::MessageAllocator< ::pb::lyft::datacatalog::GetRequest, ::pb::lyft::datacatalog::GetResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::pb::lyft::datacatalog::GetRequest, ::pb::lyft::datacatalog::GetResponse>*>( + ::grpc::Service::experimental().GetHandler(0)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_Get() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Get(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void Get(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_Query : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_Query() { + ::grpc::Service::experimental().MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::pb::lyft::datacatalog::QueryRequest, ::pb::lyft::datacatalog::QueryResponse>( + [this](::grpc::ServerContext* context, + const ::pb::lyft::datacatalog::QueryRequest* request, + ::pb::lyft::datacatalog::QueryResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->Query(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_Query( + ::grpc::experimental::MessageAllocator< ::pb::lyft::datacatalog::QueryRequest, ::pb::lyft::datacatalog::QueryResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::pb::lyft::datacatalog::QueryRequest, ::pb::lyft::datacatalog::QueryResponse>*>( + ::grpc::Service::experimental().GetHandler(1)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_Query() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Query(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::QueryRequest* request, ::pb::lyft::datacatalog::QueryResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void Query(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::QueryRequest* request, ::pb::lyft::datacatalog::QueryResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_Create : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_Create() { + ::grpc::Service::experimental().MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::pb::lyft::datacatalog::CreateRequest, ::pb::lyft::datacatalog::CreateResponse>( + [this](::grpc::ServerContext* context, + const ::pb::lyft::datacatalog::CreateRequest* request, + ::pb::lyft::datacatalog::CreateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->Create(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_Create( + ::grpc::experimental::MessageAllocator< ::pb::lyft::datacatalog::CreateRequest, ::pb::lyft::datacatalog::CreateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::pb::lyft::datacatalog::CreateRequest, ::pb::lyft::datacatalog::CreateResponse>*>( + ::grpc::Service::experimental().GetHandler(2)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_Create() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Create(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::CreateRequest* request, ::pb::lyft::datacatalog::CreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void Create(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::CreateRequest* request, ::pb::lyft::datacatalog::CreateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GenerateProvenance : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GenerateProvenance() { + ::grpc::Service::experimental().MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::pb::lyft::datacatalog::GenerateProvenanceRequest, ::pb::lyft::datacatalog::GenerateProvenanceResponse>( + [this](::grpc::ServerContext* context, + const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, + ::pb::lyft::datacatalog::GenerateProvenanceResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GenerateProvenance(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GenerateProvenance( + ::grpc::experimental::MessageAllocator< ::pb::lyft::datacatalog::GenerateProvenanceRequest, ::pb::lyft::datacatalog::GenerateProvenanceResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::pb::lyft::datacatalog::GenerateProvenanceRequest, ::pb::lyft::datacatalog::GenerateProvenanceResponse>*>( + ::grpc::Service::experimental().GetHandler(3)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GenerateProvenance() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GenerateProvenance(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GenerateProvenance(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_Get > > > ExperimentalCallbackService; + template + class WithGenericMethod_Get : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_Get() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Get() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Get(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Query : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_Query() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_Query() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Query(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::QueryRequest* request, ::pb::lyft::datacatalog::QueryResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Create : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_Create() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_Create() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Create(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::CreateRequest* request, ::pb::lyft::datacatalog::CreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GenerateProvenance : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GenerateProvenance() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_GenerateProvenance() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GenerateProvenance(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Get : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_Get() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Get() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Get(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGet(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_Query : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_Query() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_Query() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Query(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::QueryRequest* request, ::pb::lyft::datacatalog::QueryResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestQuery(::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(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_Create : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_Create() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_Create() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Create(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::CreateRequest* request, ::pb::lyft::datacatalog::CreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreate(::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(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GenerateProvenance : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GenerateProvenance() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_GenerateProvenance() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GenerateProvenance(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGenerateProvenance(::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(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_Get : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_Get() { + ::grpc::Service::experimental().MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->Get(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_Get() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Get(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void Get(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_Query : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_Query() { + ::grpc::Service::experimental().MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->Query(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_Query() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Query(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::QueryRequest* request, ::pb::lyft::datacatalog::QueryResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void Query(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_Create : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_Create() { + ::grpc::Service::experimental().MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->Create(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_Create() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Create(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::CreateRequest* request, ::pb::lyft::datacatalog::CreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void Create(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GenerateProvenance : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GenerateProvenance() { + ::grpc::Service::experimental().MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GenerateProvenance(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GenerateProvenance() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GenerateProvenance(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GenerateProvenance(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class WithStreamedUnaryMethod_Get : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_Get() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< ::pb::lyft::datacatalog::GetRequest, ::pb::lyft::datacatalog::GetResponse>(std::bind(&WithStreamedUnaryMethod_Get::StreamedGet, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_Get() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Get(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGet(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::pb::lyft::datacatalog::GetRequest,::pb::lyft::datacatalog::GetResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Query : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_Query() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< ::pb::lyft::datacatalog::QueryRequest, ::pb::lyft::datacatalog::QueryResponse>(std::bind(&WithStreamedUnaryMethod_Query::StreamedQuery, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_Query() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Query(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::QueryRequest* request, ::pb::lyft::datacatalog::QueryResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedQuery(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::pb::lyft::datacatalog::QueryRequest,::pb::lyft::datacatalog::QueryResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Create : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_Create() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< ::pb::lyft::datacatalog::CreateRequest, ::pb::lyft::datacatalog::CreateResponse>(std::bind(&WithStreamedUnaryMethod_Create::StreamedCreate, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_Create() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Create(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::CreateRequest* request, ::pb::lyft::datacatalog::CreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreate(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::pb::lyft::datacatalog::CreateRequest,::pb::lyft::datacatalog::CreateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GenerateProvenance : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GenerateProvenance() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< ::pb::lyft::datacatalog::GenerateProvenanceRequest, ::pb::lyft::datacatalog::GenerateProvenanceResponse>(std::bind(&WithStreamedUnaryMethod_GenerateProvenance::StreamedGenerateProvenance, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GenerateProvenance() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GenerateProvenance(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, ::pb::lyft::datacatalog::GenerateProvenanceResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGenerateProvenance(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::pb::lyft::datacatalog::GenerateProvenanceRequest,::pb::lyft::datacatalog::GenerateProvenanceResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_Get > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_Get > > > StreamedService; +}; + +} // namespace datacatalog +} // namespace lyft +} // namespace pb + + +#endif // GRPC_flyteidl_2fdatacatalog_2fdatacatalog_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc new file mode 100644 index 000000000..24ba8acc2 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc @@ -0,0 +1,6109 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/datacatalog/datacatalog.proto + +#include "flyteidl/datacatalog/datacatalog.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntRangeFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Parameter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ArtifactId_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_IntQueryKey_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +namespace pb { +namespace lyft { +namespace datacatalog { +class ParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Parameter_default_instance_; +class ArtifactDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Artifact_default_instance_; +class ArtifactIdDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ArtifactId_default_instance_; +class GetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr provenance_; + const ::pb::lyft::datacatalog::ArtifactId* artifact_id_; +} _GetRequest_default_instance_; +class GetResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetResponse_default_instance_; +class IntFilterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _IntFilter_default_instance_; +class IntRangeFilterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _IntRangeFilter_default_instance_; +class IntQueryKeyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::pb::lyft::datacatalog::IntFilter* val_; + const ::pb::lyft::datacatalog::IntRangeFilter* range_; +} _IntQueryKey_default_instance_; +class QueryRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _QueryRequest_default_instance_; +class QueryResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _QueryResponse_default_instance_; +class CreateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateRequest_default_instance_; +class CreateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateResponse_default_instance_; +class GenerateProvenanceRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GenerateProvenanceRequest_default_instance_; +class GenerateProvenanceResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GenerateProvenanceResponse_default_instance_; +} // namespace datacatalog +} // namespace lyft +} // namespace pb +static void InitDefaultsParameter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pb::lyft::datacatalog::_Parameter_default_instance_; + new (ptr) ::pb::lyft::datacatalog::Parameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pb::lyft::datacatalog::Parameter::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Parameter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsParameter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsArtifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pb::lyft::datacatalog::_Artifact_default_instance_; + new (ptr) ::pb::lyft::datacatalog::Artifact(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pb::lyft::datacatalog::Artifact::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsArtifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Parameter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsArtifactId_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pb::lyft::datacatalog::_ArtifactId_default_instance_; + new (ptr) ::pb::lyft::datacatalog::ArtifactId(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pb::lyft::datacatalog::ArtifactId::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ArtifactId_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsArtifactId_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Parameter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsGetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pb::lyft::datacatalog::_GetRequest_default_instance_; + new (ptr) ::pb::lyft::datacatalog::GetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pb::lyft::datacatalog::GetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_ArtifactId_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsGetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pb::lyft::datacatalog::_GetResponse_default_instance_; + new (ptr) ::pb::lyft::datacatalog::GetResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pb::lyft::datacatalog::GetResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsIntFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pb::lyft::datacatalog::_IntFilter_default_instance_; + new (ptr) ::pb::lyft::datacatalog::IntFilter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pb::lyft::datacatalog::IntFilter::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_IntFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsIntRangeFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pb::lyft::datacatalog::_IntRangeFilter_default_instance_; + new (ptr) ::pb::lyft::datacatalog::IntRangeFilter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pb::lyft::datacatalog::IntRangeFilter::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_IntRangeFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntRangeFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsIntQueryKey_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pb::lyft::datacatalog::_IntQueryKey_default_instance_; + new (ptr) ::pb::lyft::datacatalog::IntQueryKey(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pb::lyft::datacatalog::IntQueryKey::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_IntQueryKey_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsIntQueryKey_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_IntFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_IntRangeFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsQueryRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pb::lyft::datacatalog::_QueryRequest_default_instance_; + new (ptr) ::pb::lyft::datacatalog::QueryRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pb::lyft::datacatalog::QueryRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_QueryRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsQueryRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_IntQueryKey_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsQueryResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pb::lyft::datacatalog::_QueryResponse_default_instance_; + new (ptr) ::pb::lyft::datacatalog::QueryResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pb::lyft::datacatalog::QueryResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_QueryResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsQueryResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsCreateRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pb::lyft::datacatalog::_CreateRequest_default_instance_; + new (ptr) ::pb::lyft::datacatalog::CreateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pb::lyft::datacatalog::CreateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_CreateRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsCreateRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_ArtifactId_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_Parameter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsCreateResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pb::lyft::datacatalog::_CreateResponse_default_instance_; + new (ptr) ::pb::lyft::datacatalog::CreateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pb::lyft::datacatalog::CreateResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_CreateResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsGenerateProvenanceRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pb::lyft::datacatalog::_GenerateProvenanceRequest_default_instance_; + new (ptr) ::pb::lyft::datacatalog::GenerateProvenanceRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pb::lyft::datacatalog::GenerateProvenanceRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GenerateProvenanceRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGenerateProvenanceRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_ArtifactId_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsGenerateProvenanceResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pb::lyft::datacatalog::_GenerateProvenanceResponse_default_instance_; + new (ptr) ::pb::lyft::datacatalog::GenerateProvenanceResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pb::lyft::datacatalog::GenerateProvenanceResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_GenerateProvenanceResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGenerateProvenanceResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +void InitDefaults_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_Parameter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ArtifactId_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_IntFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_IntRangeFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_IntQueryKey_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_QueryRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_QueryResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GenerateProvenanceRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GenerateProvenanceResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[14]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[2]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::Parameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::Parameter, name_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::Parameter, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::Artifact, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::Artifact, provenance_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::Artifact, name_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::Artifact, version_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::Artifact, revision_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::Artifact, created_at_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::Artifact, reference_id_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::Artifact, inputs_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::Artifact, outputs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::ArtifactId, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::ArtifactId, name_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::ArtifactId, version_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::ArtifactId, inputs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::GetRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::GetRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::pb::lyft::datacatalog::GetRequestDefaultTypeInternal, provenance_), + offsetof(::pb::lyft::datacatalog::GetRequestDefaultTypeInternal, artifact_id_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::GetRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::GetResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::GetResponse, artifact_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::IntFilter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::IntFilter, value_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::IntFilter, operator__), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::IntRangeFilter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::IntRangeFilter, min_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::IntRangeFilter, max_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::IntQueryKey, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::IntQueryKey, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::pb::lyft::datacatalog::IntQueryKeyDefaultTypeInternal, val_), + offsetof(::pb::lyft::datacatalog::IntQueryKeyDefaultTypeInternal, range_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::IntQueryKey, filter_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::QueryRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::QueryRequest, name_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::QueryRequest, version_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::QueryRequest, revision_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::QueryRequest, created_at_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::QueryRequest, reference_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::QueryResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::QueryResponse, artifact_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::CreateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::CreateRequest, ref_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::CreateRequest, reference_id_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::CreateRequest, revision_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::CreateRequest, outputs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::CreateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::CreateResponse, artifact_), + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::CreateResponse, status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::GenerateProvenanceRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::GenerateProvenanceRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::GenerateProvenanceResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::pb::lyft::datacatalog::GenerateProvenanceResponse, provenance_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::pb::lyft::datacatalog::Parameter)}, + { 7, -1, sizeof(::pb::lyft::datacatalog::Artifact)}, + { 20, -1, sizeof(::pb::lyft::datacatalog::ArtifactId)}, + { 28, -1, sizeof(::pb::lyft::datacatalog::GetRequest)}, + { 36, -1, sizeof(::pb::lyft::datacatalog::GetResponse)}, + { 42, -1, sizeof(::pb::lyft::datacatalog::IntFilter)}, + { 49, -1, sizeof(::pb::lyft::datacatalog::IntRangeFilter)}, + { 56, -1, sizeof(::pb::lyft::datacatalog::IntQueryKey)}, + { 64, -1, sizeof(::pb::lyft::datacatalog::QueryRequest)}, + { 74, -1, sizeof(::pb::lyft::datacatalog::QueryResponse)}, + { 80, -1, sizeof(::pb::lyft::datacatalog::CreateRequest)}, + { 89, -1, sizeof(::pb::lyft::datacatalog::CreateResponse)}, + { 96, -1, sizeof(::pb::lyft::datacatalog::GenerateProvenanceRequest)}, + { 102, -1, sizeof(::pb::lyft::datacatalog::GenerateProvenanceResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::pb::lyft::datacatalog::_Parameter_default_instance_), + reinterpret_cast(&::pb::lyft::datacatalog::_Artifact_default_instance_), + reinterpret_cast(&::pb::lyft::datacatalog::_ArtifactId_default_instance_), + reinterpret_cast(&::pb::lyft::datacatalog::_GetRequest_default_instance_), + reinterpret_cast(&::pb::lyft::datacatalog::_GetResponse_default_instance_), + reinterpret_cast(&::pb::lyft::datacatalog::_IntFilter_default_instance_), + reinterpret_cast(&::pb::lyft::datacatalog::_IntRangeFilter_default_instance_), + reinterpret_cast(&::pb::lyft::datacatalog::_IntQueryKey_default_instance_), + reinterpret_cast(&::pb::lyft::datacatalog::_QueryRequest_default_instance_), + reinterpret_cast(&::pb::lyft::datacatalog::_QueryResponse_default_instance_), + reinterpret_cast(&::pb::lyft::datacatalog::_CreateRequest_default_instance_), + reinterpret_cast(&::pb::lyft::datacatalog::_CreateResponse_default_instance_), + reinterpret_cast(&::pb::lyft::datacatalog::_GenerateProvenanceRequest_default_instance_), + reinterpret_cast(&::pb::lyft::datacatalog::_GenerateProvenanceResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = { + {}, AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, "flyteidl/datacatalog/datacatalog.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto::offsets, + file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, 14, file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, file_level_service_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[] = + "\n&flyteidl/datacatalog/datacatalog.proto" + "\022\023pb.lyft.datacatalog\"(\n\tParameter\022\014\n\004na" + "me\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\332\001\n\010Artifact\022\022\n\n" + "provenance\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\017\n\007versio" + "n\030\003 \001(\t\022\020\n\010revision\030\004 \001(\003\022\022\n\ncreated_at\030" + "\005 \001(\003\022\024\n\014reference_id\030\006 \001(\t\022.\n\006inputs\030\007 " + "\003(\0132\036.pb.lyft.datacatalog.Parameter\022/\n\007o" + "utputs\030\010 \003(\0132\036.pb.lyft.datacatalog.Param" + "eter\"[\n\nArtifactId\022\014\n\004name\030\001 \001(\t\022\017\n\007vers" + "ion\030\002 \001(\t\022.\n\006inputs\030\003 \003(\0132\036.pb.lyft.data" + "catalog.Parameter\"`\n\nGetRequest\022\024\n\nprove" + "nance\030\001 \001(\tH\000\0226\n\013artifact_id\030\002 \001(\0132\037.pb." + "lyft.datacatalog.ArtifactIdH\000B\004\n\002id\">\n\013G" + "etResponse\022/\n\010artifact\030\001 \001(\0132\035.pb.lyft.d" + "atacatalog.Artifact\"P\n\tIntFilter\022\r\n\005valu" + "e\030\001 \001(\003\0224\n\010operator\030\002 \001(\0162\".pb.lyft.data" + "catalog.QueryOperator\"*\n\016IntRangeFilter\022" + "\013\n\003min\030\001 \001(\003\022\013\n\003max\030\002 \001(\003\"|\n\013IntQueryKey" + "\022-\n\003val\030\001 \001(\0132\036.pb.lyft.datacatalog.IntF" + "ilterH\000\0224\n\005range\030\002 \001(\0132#.pb.lyft.datacat" + "alog.IntRangeFilterH\000B\010\n\006filter\"\213\001\n\014Quer" + "yRequest\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022" + "2\n\010revision\030\003 \001(\0132 .pb.lyft.datacatalog." + "IntQueryKey\022\022\n\ncreated_at\030\004 \001(\003\022\024\n\014refer" + "ence_id\030\005 \001(\t\"@\n\rQueryResponse\022/\n\010artifa" + "ct\030\001 \003(\0132\035.pb.lyft.datacatalog.Artifact\"" + "\226\001\n\rCreateRequest\022,\n\003ref\030\001 \001(\0132\037.pb.lyft" + ".datacatalog.ArtifactId\022\024\n\014reference_id\030" + "\002 \001(\t\022\020\n\010revision\030\003 \001(\003\022/\n\007outputs\030\004 \003(\013" + "2\036.pb.lyft.datacatalog.Parameter\"\250\001\n\016Cre" + "ateResponse\022/\n\010artifact\030\001 \001(\0132\035.pb.lyft." + "datacatalog.Artifact\022:\n\006status\030\002 \001(\0162*.p" + "b.lyft.datacatalog.CreateResponse.Status" + "\")\n\006Status\022\022\n\016ALREADY_EXISTS\020\000\022\013\n\007CREATE" + "D\020\001\"H\n\031GenerateProvenanceRequest\022+\n\002id\030\001" + " \001(\0132\037.pb.lyft.datacatalog.ArtifactId\"0\n" + "\032GenerateProvenanceResponse\022\022\n\nprovenanc" + "e\030\001 \001(\t*=\n\rQueryOperator\022\t\n\005EQUAL\020\000\022\020\n\014G" + "REATER_THAN\020\001\022\017\n\013LESSER_THAN\020\0022\367\002\n\tArtif" + "acts\022J\n\003Get\022\037.pb.lyft.datacatalog.GetReq" + "uest\032 .pb.lyft.datacatalog.GetResponse\"\000" + "\022P\n\005Query\022!.pb.lyft.datacatalog.QueryReq" + "uest\032\".pb.lyft.datacatalog.QueryResponse" + "\"\000\022S\n\006Create\022\".pb.lyft.datacatalog.Creat" + "eRequest\032#.pb.lyft.datacatalog.CreateRes" + "ponse\"\000\022w\n\022GenerateProvenance\022..pb.lyft." + "datacatalog.GenerateProvenanceRequest\032/." + "pb.lyft.datacatalog.GenerateProvenanceRe" + "sponse\"\000B\020Z\013datacatalog\220\001\001b\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = { + false, InitDefaults_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, + descriptor_table_protodef_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, + "flyteidl/datacatalog/datacatalog.proto", &assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, 1954, +}; + +void AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = []() { AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto(); return true; }(); +namespace pb { +namespace lyft { +namespace datacatalog { +const ::google::protobuf::EnumDescriptor* CreateResponse_Status_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[0]; +} +bool CreateResponse_Status_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const CreateResponse_Status CreateResponse::ALREADY_EXISTS; +const CreateResponse_Status CreateResponse::CREATED; +const CreateResponse_Status CreateResponse::Status_MIN; +const CreateResponse_Status CreateResponse::Status_MAX; +const int CreateResponse::Status_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* QueryOperator_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[1]; +} +bool QueryOperator_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + + +// =================================================================== + +void Parameter::InitAsDefaultInstance() { +} +class Parameter::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Parameter::kNameFieldNumber; +const int Parameter::kValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Parameter::Parameter() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.Parameter) +} +Parameter::Parameter(const Parameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.value().size() > 0) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.Parameter) +} + +void Parameter::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Parameter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +Parameter::~Parameter() { + // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.Parameter) + SharedDtor(); +} + +void Parameter::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Parameter::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Parameter& Parameter::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Parameter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void Parameter::Clear() { +// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.Parameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Parameter::_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) { + // string name = 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); + ctx->extra_parse_data().SetFieldName("pb.lyft.datacatalog.Parameter.name"); + object = msg->mutable_name(); + 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 value = 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("pb.lyft.datacatalog.Parameter.value"); + object = msg->mutable_value(); + 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 Parameter::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:pb.lyft.datacatalog.Parameter) + 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 name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "pb.lyft.datacatalog.Parameter.name")); + } else { + goto handle_unusual; + } + break; + } + + // string value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_value())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "pb.lyft.datacatalog.Parameter.value")); + } 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:pb.lyft.datacatalog.Parameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.Parameter) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Parameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.Parameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.Parameter.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // string value = 2; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.Parameter.value"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->value(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:pb.lyft.datacatalog.Parameter) +} + +::google::protobuf::uint8* Parameter::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.Parameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.Parameter.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // string value = 2; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.Parameter.value"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->value(), 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:pb.lyft.datacatalog.Parameter) + return target; +} + +size_t Parameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.Parameter) + 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 name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string value = 2; + if (this->value().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->value()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Parameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.Parameter) + GOOGLE_DCHECK_NE(&from, this); + const Parameter* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.Parameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.Parameter) + MergeFrom(*source); + } +} + +void Parameter::MergeFrom(const Parameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.Parameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.value().size() > 0) { + + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } +} + +void Parameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.Parameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Parameter::CopyFrom(const Parameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:pb.lyft.datacatalog.Parameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Parameter::IsInitialized() const { + return true; +} + +void Parameter::Swap(Parameter* other) { + if (other == this) return; + InternalSwap(other); +} +void Parameter::InternalSwap(Parameter* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata Parameter::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Artifact::InitAsDefaultInstance() { +} +class Artifact::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Artifact::kProvenanceFieldNumber; +const int Artifact::kNameFieldNumber; +const int Artifact::kVersionFieldNumber; +const int Artifact::kRevisionFieldNumber; +const int Artifact::kCreatedAtFieldNumber; +const int Artifact::kReferenceIdFieldNumber; +const int Artifact::kInputsFieldNumber; +const int Artifact::kOutputsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Artifact::Artifact() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.Artifact) +} +Artifact::Artifact(const Artifact& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + inputs_(from.inputs_), + outputs_(from.outputs_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + provenance_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.provenance().size() > 0) { + provenance_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.provenance_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.version().size() > 0) { + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + reference_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.reference_id().size() > 0) { + reference_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reference_id_); + } + ::memcpy(&revision_, &from.revision_, + static_cast(reinterpret_cast(&created_at_) - + reinterpret_cast(&revision_)) + sizeof(created_at_)); + // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.Artifact) +} + +void Artifact::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + provenance_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reference_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&revision_, 0, static_cast( + reinterpret_cast(&created_at_) - + reinterpret_cast(&revision_)) + sizeof(created_at_)); +} + +Artifact::~Artifact() { + // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.Artifact) + SharedDtor(); +} + +void Artifact::SharedDtor() { + provenance_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reference_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Artifact::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Artifact& Artifact::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void Artifact::Clear() { +// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.Artifact) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + inputs_.Clear(); + outputs_.Clear(); + provenance_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reference_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&revision_, 0, static_cast( + reinterpret_cast(&created_at_) - + reinterpret_cast(&revision_)) + sizeof(created_at_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Artifact::_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) { + // string provenance = 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); + ctx->extra_parse_data().SetFieldName("pb.lyft.datacatalog.Artifact.provenance"); + object = msg->mutable_provenance(); + 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 name = 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("pb.lyft.datacatalog.Artifact.name"); + object = msg->mutable_name(); + 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 = 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("pb.lyft.datacatalog.Artifact.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; + } + // int64 revision = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_revision(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 created_at = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; + msg->set_created_at(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string reference_id = 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("pb.lyft.datacatalog.Artifact.reference_id"); + object = msg->mutable_reference_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; + break; + } + // repeated .pb.lyft.datacatalog.Parameter inputs = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::pb::lyft::datacatalog::Parameter::_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) == 58 && (ptr += 1)); + break; + } + // repeated .pb.lyft.datacatalog.Parameter outputs = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::pb::lyft::datacatalog::Parameter::_InternalParse; + object = msg->add_outputs(); + 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) == 66 && (ptr += 1)); + 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 Artifact::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:pb.lyft.datacatalog.Artifact) + 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 provenance = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_provenance())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->provenance().data(), static_cast(this->provenance().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "pb.lyft.datacatalog.Artifact.provenance")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "pb.lyft.datacatalog.Artifact.name")); + } else { + goto handle_unusual; + } + break; + } + + // string version = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 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, + "pb.lyft.datacatalog.Artifact.version")); + } else { + goto handle_unusual; + } + break; + } + + // int64 revision = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &revision_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 created_at = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &created_at_))); + } else { + goto handle_unusual; + } + break; + } + + // string reference_id = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_reference_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reference_id().data(), static_cast(this->reference_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "pb.lyft.datacatalog.Artifact.reference_id")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .pb.lyft.datacatalog.Parameter inputs = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .pb.lyft.datacatalog.Parameter outputs = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_outputs())); + } 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:pb.lyft.datacatalog.Artifact) + return true; +failure: + // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.Artifact) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Artifact::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.Artifact) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string provenance = 1; + if (this->provenance().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->provenance().data(), static_cast(this->provenance().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.Artifact.provenance"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->provenance(), output); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.Artifact.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + // string version = 3; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.Artifact.version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->version(), output); + } + + // int64 revision = 4; + if (this->revision() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->revision(), output); + } + + // int64 created_at = 5; + if (this->created_at() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->created_at(), output); + } + + // string reference_id = 6; + if (this->reference_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reference_id().data(), static_cast(this->reference_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.Artifact.reference_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->reference_id(), output); + } + + // repeated .pb.lyft.datacatalog.Parameter inputs = 7; + for (unsigned int i = 0, + n = static_cast(this->inputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, + this->inputs(static_cast(i)), + output); + } + + // repeated .pb.lyft.datacatalog.Parameter outputs = 8; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, + this->outputs(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:pb.lyft.datacatalog.Artifact) +} + +::google::protobuf::uint8* Artifact::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.Artifact) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string provenance = 1; + if (this->provenance().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->provenance().data(), static_cast(this->provenance().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.Artifact.provenance"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->provenance(), target); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.Artifact.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + // string version = 3; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.Artifact.version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->version(), target); + } + + // int64 revision = 4; + if (this->revision() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->revision(), target); + } + + // int64 created_at = 5; + if (this->created_at() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->created_at(), target); + } + + // string reference_id = 6; + if (this->reference_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reference_id().data(), static_cast(this->reference_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.Artifact.reference_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->reference_id(), target); + } + + // repeated .pb.lyft.datacatalog.Parameter inputs = 7; + for (unsigned int i = 0, + n = static_cast(this->inputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, this->inputs(static_cast(i)), target); + } + + // repeated .pb.lyft.datacatalog.Parameter outputs = 8; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, this->outputs(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:pb.lyft.datacatalog.Artifact) + return target; +} + +size_t Artifact::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.Artifact) + 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; + + // repeated .pb.lyft.datacatalog.Parameter inputs = 7; + { + 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( + this->inputs(static_cast(i))); + } + } + + // repeated .pb.lyft.datacatalog.Parameter outputs = 8; + { + unsigned int count = static_cast(this->outputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->outputs(static_cast(i))); + } + } + + // string provenance = 1; + if (this->provenance().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->provenance()); + } + + // string name = 2; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string version = 3; + if (this->version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->version()); + } + + // string reference_id = 6; + if (this->reference_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->reference_id()); + } + + // int64 revision = 4; + if (this->revision() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->revision()); + } + + // int64 created_at = 5; + if (this->created_at() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->created_at()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Artifact::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.Artifact) + GOOGLE_DCHECK_NE(&from, this); + const Artifact* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.Artifact) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.Artifact) + MergeFrom(*source); + } +} + +void Artifact::MergeFrom(const Artifact& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.Artifact) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + inputs_.MergeFrom(from.inputs_); + outputs_.MergeFrom(from.outputs_); + if (from.provenance().size() > 0) { + + provenance_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.provenance_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.version().size() > 0) { + + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + if (from.reference_id().size() > 0) { + + reference_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reference_id_); + } + if (from.revision() != 0) { + set_revision(from.revision()); + } + if (from.created_at() != 0) { + set_created_at(from.created_at()); + } +} + +void Artifact::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.Artifact) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Artifact::CopyFrom(const Artifact& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:pb.lyft.datacatalog.Artifact) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Artifact::IsInitialized() const { + return true; +} + +void Artifact::Swap(Artifact* other) { + if (other == this) return; + InternalSwap(other); +} +void Artifact::InternalSwap(Artifact* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&inputs_)->InternalSwap(CastToBase(&other->inputs_)); + CastToBase(&outputs_)->InternalSwap(CastToBase(&other->outputs_)); + provenance_.Swap(&other->provenance_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + reference_id_.Swap(&other->reference_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(revision_, other->revision_); + swap(created_at_, other->created_at_); +} + +::google::protobuf::Metadata Artifact::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ArtifactId::InitAsDefaultInstance() { +} +class ArtifactId::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ArtifactId::kNameFieldNumber; +const int ArtifactId::kVersionFieldNumber; +const int ArtifactId::kInputsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ArtifactId::ArtifactId() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.ArtifactId) +} +ArtifactId::ArtifactId(const ArtifactId& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + inputs_(from.inputs_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.version().size() > 0) { + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.ArtifactId) +} + +void ArtifactId::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ArtifactId_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +ArtifactId::~ArtifactId() { + // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.ArtifactId) + SharedDtor(); +} + +void ArtifactId::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ArtifactId::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ArtifactId& ArtifactId::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactId_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ArtifactId::Clear() { +// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.ArtifactId) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + inputs_.Clear(); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ArtifactId::_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) { + // string name = 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); + ctx->extra_parse_data().SetFieldName("pb.lyft.datacatalog.ArtifactId.name"); + object = msg->mutable_name(); + 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 = 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("pb.lyft.datacatalog.ArtifactId.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; + } + // repeated .pb.lyft.datacatalog.Parameter inputs = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::pb::lyft::datacatalog::Parameter::_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) == 26 && (ptr += 1)); + 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 ArtifactId::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:pb.lyft.datacatalog.ArtifactId) + 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 name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "pb.lyft.datacatalog.ArtifactId.name")); + } else { + goto handle_unusual; + } + break; + } + + // string version = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 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, + "pb.lyft.datacatalog.ArtifactId.version")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .pb.lyft.datacatalog.Parameter inputs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_inputs())); + } 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:pb.lyft.datacatalog.ArtifactId) + return true; +failure: + // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.ArtifactId) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ArtifactId::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.ArtifactId) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.ArtifactId.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // string version = 2; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.ArtifactId.version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->version(), output); + } + + // repeated .pb.lyft.datacatalog.Parameter inputs = 3; + for (unsigned int i = 0, + n = static_cast(this->inputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + 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:pb.lyft.datacatalog.ArtifactId) +} + +::google::protobuf::uint8* ArtifactId::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.ArtifactId) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.ArtifactId.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // string version = 2; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.ArtifactId.version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->version(), target); + } + + // repeated .pb.lyft.datacatalog.Parameter inputs = 3; + for (unsigned int i = 0, + n = static_cast(this->inputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, 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:pb.lyft.datacatalog.ArtifactId) + return target; +} + +size_t ArtifactId::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.ArtifactId) + 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; + + // repeated .pb.lyft.datacatalog.Parameter inputs = 3; + { + 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( + this->inputs(static_cast(i))); + } + } + + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string version = 2; + if (this->version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->version()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ArtifactId::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.ArtifactId) + GOOGLE_DCHECK_NE(&from, this); + const ArtifactId* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.ArtifactId) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.ArtifactId) + MergeFrom(*source); + } +} + +void ArtifactId::MergeFrom(const ArtifactId& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.ArtifactId) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + inputs_.MergeFrom(from.inputs_); + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.version().size() > 0) { + + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } +} + +void ArtifactId::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.ArtifactId) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ArtifactId::CopyFrom(const ArtifactId& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:pb.lyft.datacatalog.ArtifactId) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ArtifactId::IsInitialized() const { + return true; +} + +void ArtifactId::Swap(ArtifactId* other) { + if (other == this) return; + InternalSwap(other); +} +void ArtifactId::InternalSwap(ArtifactId* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&inputs_)->InternalSwap(CastToBase(&other->inputs_)); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata ArtifactId::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetRequest::InitAsDefaultInstance() { + ::pb::lyft::datacatalog::_GetRequest_default_instance_.provenance_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::pb::lyft::datacatalog::_GetRequest_default_instance_.artifact_id_ = const_cast< ::pb::lyft::datacatalog::ArtifactId*>( + ::pb::lyft::datacatalog::ArtifactId::internal_default_instance()); +} +class GetRequest::HasBitSetters { + public: + static const ::pb::lyft::datacatalog::ArtifactId& artifact_id(const GetRequest* msg); +}; + +const ::pb::lyft::datacatalog::ArtifactId& +GetRequest::HasBitSetters::artifact_id(const GetRequest* msg) { + return *msg->id_.artifact_id_; +} +void GetRequest::set_allocated_artifact_id(::pb::lyft::datacatalog::ArtifactId* artifact_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_id(); + if (artifact_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + artifact_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, artifact_id, submessage_arena); + } + set_has_artifact_id(); + id_.artifact_id_ = artifact_id; + } + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.GetRequest.artifact_id) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetRequest::kProvenanceFieldNumber; +const int GetRequest::kArtifactIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetRequest::GetRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.GetRequest) +} +GetRequest::GetRequest(const GetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_id(); + switch (from.id_case()) { + case kProvenance: { + set_provenance(from.provenance()); + break; + } + case kArtifactId: { + mutable_artifact_id()->::pb::lyft::datacatalog::ArtifactId::MergeFrom(from.artifact_id()); + break; + } + case ID_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.GetRequest) +} + +void GetRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + clear_has_id(); +} + +GetRequest::~GetRequest() { + // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.GetRequest) + SharedDtor(); +} + +void GetRequest::SharedDtor() { + if (has_id()) { + clear_id(); + } +} + +void GetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetRequest& GetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GetRequest::clear_id() { +// @@protoc_insertion_point(one_of_clear_start:pb.lyft.datacatalog.GetRequest) + switch (id_case()) { + case kProvenance: { + id_.provenance_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kArtifactId: { + delete id_.artifact_id_; + break; + } + case ID_NOT_SET: { + break; + } + } + _oneof_case_[0] = ID_NOT_SET; +} + + +void GetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.GetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_id(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetRequest::_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) { + // string provenance = 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); + ctx->extra_parse_data().SetFieldName("pb.lyft.datacatalog.GetRequest.provenance"); + object = msg->mutable_provenance(); + 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; + } + // .pb.lyft.datacatalog.ArtifactId artifact_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 = ::pb::lyft::datacatalog::ArtifactId::_InternalParse; + object = msg->mutable_artifact_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; + } + 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 GetRequest::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:pb.lyft.datacatalog.GetRequest) + 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 provenance = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_provenance())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->provenance().data(), static_cast(this->provenance().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "pb.lyft.datacatalog.GetRequest.provenance")); + } else { + goto handle_unusual; + } + break; + } + + // .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_artifact_id())); + } 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:pb.lyft.datacatalog.GetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.GetRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.GetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string provenance = 1; + if (has_provenance()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->provenance().data(), static_cast(this->provenance().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.GetRequest.provenance"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->provenance(), output); + } + + // .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + if (has_artifact_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::artifact_id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:pb.lyft.datacatalog.GetRequest) +} + +::google::protobuf::uint8* GetRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.GetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string provenance = 1; + if (has_provenance()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->provenance().data(), static_cast(this->provenance().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.GetRequest.provenance"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->provenance(), target); + } + + // .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + if (has_artifact_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::artifact_id(this), 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:pb.lyft.datacatalog.GetRequest) + return target; +} + +size_t GetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.GetRequest) + 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; + + switch (id_case()) { + // string provenance = 1; + case kProvenance: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->provenance()); + break; + } + // .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + case kArtifactId: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_.artifact_id_); + break; + } + case ID_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.GetRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.GetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.GetRequest) + MergeFrom(*source); + } +} + +void GetRequest::MergeFrom(const GetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.GetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.id_case()) { + case kProvenance: { + set_provenance(from.provenance()); + break; + } + case kArtifactId: { + mutable_artifact_id()->::pb::lyft::datacatalog::ArtifactId::MergeFrom(from.artifact_id()); + break; + } + case ID_NOT_SET: { + break; + } + } +} + +void GetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.GetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetRequest::CopyFrom(const GetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:pb.lyft.datacatalog.GetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRequest::IsInitialized() const { + return true; +} + +void GetRequest::Swap(GetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GetRequest::InternalSwap(GetRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata GetRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetResponse::InitAsDefaultInstance() { + ::pb::lyft::datacatalog::_GetResponse_default_instance_._instance.get_mutable()->artifact_ = const_cast< ::pb::lyft::datacatalog::Artifact*>( + ::pb::lyft::datacatalog::Artifact::internal_default_instance()); +} +class GetResponse::HasBitSetters { + public: + static const ::pb::lyft::datacatalog::Artifact& artifact(const GetResponse* msg); +}; + +const ::pb::lyft::datacatalog::Artifact& +GetResponse::HasBitSetters::artifact(const GetResponse* msg) { + return *msg->artifact_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetResponse::kArtifactFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetResponse::GetResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.GetResponse) +} +GetResponse::GetResponse(const GetResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_artifact()) { + artifact_ = new ::pb::lyft::datacatalog::Artifact(*from.artifact_); + } else { + artifact_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.GetResponse) +} + +void GetResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + artifact_ = nullptr; +} + +GetResponse::~GetResponse() { + // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.GetResponse) + SharedDtor(); +} + +void GetResponse::SharedDtor() { + if (this != internal_default_instance()) delete artifact_; +} + +void GetResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetResponse& GetResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GetResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.GetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { + delete artifact_; + } + artifact_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetResponse::_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) { + // .pb.lyft.datacatalog.Artifact artifact = 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 = ::pb::lyft::datacatalog::Artifact::_InternalParse; + object = msg->mutable_artifact(); + 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) { + 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; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetResponse::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:pb.lyft.datacatalog.GetResponse) + 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)) { + // .pb.lyft.datacatalog.Artifact artifact = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_artifact())); + } 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:pb.lyft.datacatalog.GetResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.GetResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.GetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .pb.lyft.datacatalog.Artifact artifact = 1; + if (this->has_artifact()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::artifact(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:pb.lyft.datacatalog.GetResponse) +} + +::google::protobuf::uint8* GetResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.GetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .pb.lyft.datacatalog.Artifact artifact = 1; + if (this->has_artifact()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::artifact(this), 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:pb.lyft.datacatalog.GetResponse) + return target; +} + +size_t GetResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.GetResponse) + 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; + + // .pb.lyft.datacatalog.Artifact artifact = 1; + if (this->has_artifact()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *artifact_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.GetResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.GetResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.GetResponse) + MergeFrom(*source); + } +} + +void GetResponse::MergeFrom(const GetResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.GetResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_artifact()) { + mutable_artifact()->::pb::lyft::datacatalog::Artifact::MergeFrom(from.artifact()); + } +} + +void GetResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.GetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetResponse::CopyFrom(const GetResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:pb.lyft.datacatalog.GetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetResponse::IsInitialized() const { + return true; +} + +void GetResponse::Swap(GetResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetResponse::InternalSwap(GetResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(artifact_, other->artifact_); +} + +::google::protobuf::Metadata GetResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void IntFilter::InitAsDefaultInstance() { +} +class IntFilter::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int IntFilter::kValueFieldNumber; +const int IntFilter::kOperatorFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +IntFilter::IntFilter() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.IntFilter) +} +IntFilter::IntFilter(const IntFilter& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&value_, &from.value_, + static_cast(reinterpret_cast(&operator__) - + reinterpret_cast(&value_)) + sizeof(operator__)); + // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.IntFilter) +} + +void IntFilter::SharedCtor() { + ::memset(&value_, 0, static_cast( + reinterpret_cast(&operator__) - + reinterpret_cast(&value_)) + sizeof(operator__)); +} + +IntFilter::~IntFilter() { + // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.IntFilter) + SharedDtor(); +} + +void IntFilter::SharedDtor() { +} + +void IntFilter::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IntFilter& IntFilter::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_IntFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void IntFilter::Clear() { +// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.IntFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&value_, 0, static_cast( + reinterpret_cast(&operator__) - + reinterpret_cast(&value_)) + sizeof(operator__)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IntFilter::_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) { + // int64 value = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_value(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .pb.lyft.datacatalog.QueryOperator operator = 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_operator_(static_cast<::pb::lyft::datacatalog::QueryOperator>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + 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; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool IntFilter::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:pb.lyft.datacatalog.IntFilter) + 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)) { + // int64 value = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &value_))); + } else { + goto handle_unusual; + } + break; + } + + // .pb.lyft.datacatalog.QueryOperator operator = 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_operator_(static_cast< ::pb::lyft::datacatalog::QueryOperator >(value)); + } 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:pb.lyft.datacatalog.IntFilter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.IntFilter) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IntFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.IntFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 value = 1; + if (this->value() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->value(), output); + } + + // .pb.lyft.datacatalog.QueryOperator operator = 2; + if (this->operator_() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->operator_(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:pb.lyft.datacatalog.IntFilter) +} + +::google::protobuf::uint8* IntFilter::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.IntFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 value = 1; + if (this->value() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->value(), target); + } + + // .pb.lyft.datacatalog.QueryOperator operator = 2; + if (this->operator_() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->operator_(), 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:pb.lyft.datacatalog.IntFilter) + return target; +} + +size_t IntFilter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.IntFilter) + 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; + + // int64 value = 1; + if (this->value() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->value()); + } + + // .pb.lyft.datacatalog.QueryOperator operator = 2; + if (this->operator_() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->operator_()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IntFilter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.IntFilter) + GOOGLE_DCHECK_NE(&from, this); + const IntFilter* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.IntFilter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.IntFilter) + MergeFrom(*source); + } +} + +void IntFilter::MergeFrom(const IntFilter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.IntFilter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.value() != 0) { + set_value(from.value()); + } + if (from.operator_() != 0) { + set_operator_(from.operator_()); + } +} + +void IntFilter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.IntFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IntFilter::CopyFrom(const IntFilter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:pb.lyft.datacatalog.IntFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IntFilter::IsInitialized() const { + return true; +} + +void IntFilter::Swap(IntFilter* other) { + if (other == this) return; + InternalSwap(other); +} +void IntFilter::InternalSwap(IntFilter* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(value_, other->value_); + swap(operator__, other->operator__); +} + +::google::protobuf::Metadata IntFilter::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void IntRangeFilter::InitAsDefaultInstance() { +} +class IntRangeFilter::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int IntRangeFilter::kMinFieldNumber; +const int IntRangeFilter::kMaxFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +IntRangeFilter::IntRangeFilter() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.IntRangeFilter) +} +IntRangeFilter::IntRangeFilter(const IntRangeFilter& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&min_, &from.min_, + static_cast(reinterpret_cast(&max_) - + reinterpret_cast(&min_)) + sizeof(max_)); + // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.IntRangeFilter) +} + +void IntRangeFilter::SharedCtor() { + ::memset(&min_, 0, static_cast( + reinterpret_cast(&max_) - + reinterpret_cast(&min_)) + sizeof(max_)); +} + +IntRangeFilter::~IntRangeFilter() { + // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.IntRangeFilter) + SharedDtor(); +} + +void IntRangeFilter::SharedDtor() { +} + +void IntRangeFilter::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IntRangeFilter& IntRangeFilter::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_IntRangeFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void IntRangeFilter::Clear() { +// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.IntRangeFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&min_, 0, static_cast( + reinterpret_cast(&max_) - + reinterpret_cast(&min_)) + sizeof(max_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IntRangeFilter::_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) { + // int64 min = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_min(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 max = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_max(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + 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; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool IntRangeFilter::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:pb.lyft.datacatalog.IntRangeFilter) + 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)) { + // int64 min = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &min_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 max = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &max_))); + } 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:pb.lyft.datacatalog.IntRangeFilter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.IntRangeFilter) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IntRangeFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.IntRangeFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 min = 1; + if (this->min() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->min(), output); + } + + // int64 max = 2; + if (this->max() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->max(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:pb.lyft.datacatalog.IntRangeFilter) +} + +::google::protobuf::uint8* IntRangeFilter::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.IntRangeFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 min = 1; + if (this->min() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->min(), target); + } + + // int64 max = 2; + if (this->max() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->max(), 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:pb.lyft.datacatalog.IntRangeFilter) + return target; +} + +size_t IntRangeFilter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.IntRangeFilter) + 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; + + // int64 min = 1; + if (this->min() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->min()); + } + + // int64 max = 2; + if (this->max() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->max()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IntRangeFilter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.IntRangeFilter) + GOOGLE_DCHECK_NE(&from, this); + const IntRangeFilter* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.IntRangeFilter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.IntRangeFilter) + MergeFrom(*source); + } +} + +void IntRangeFilter::MergeFrom(const IntRangeFilter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.IntRangeFilter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.min() != 0) { + set_min(from.min()); + } + if (from.max() != 0) { + set_max(from.max()); + } +} + +void IntRangeFilter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.IntRangeFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IntRangeFilter::CopyFrom(const IntRangeFilter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:pb.lyft.datacatalog.IntRangeFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IntRangeFilter::IsInitialized() const { + return true; +} + +void IntRangeFilter::Swap(IntRangeFilter* other) { + if (other == this) return; + InternalSwap(other); +} +void IntRangeFilter::InternalSwap(IntRangeFilter* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(min_, other->min_); + swap(max_, other->max_); +} + +::google::protobuf::Metadata IntRangeFilter::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void IntQueryKey::InitAsDefaultInstance() { + ::pb::lyft::datacatalog::_IntQueryKey_default_instance_.val_ = const_cast< ::pb::lyft::datacatalog::IntFilter*>( + ::pb::lyft::datacatalog::IntFilter::internal_default_instance()); + ::pb::lyft::datacatalog::_IntQueryKey_default_instance_.range_ = const_cast< ::pb::lyft::datacatalog::IntRangeFilter*>( + ::pb::lyft::datacatalog::IntRangeFilter::internal_default_instance()); +} +class IntQueryKey::HasBitSetters { + public: + static const ::pb::lyft::datacatalog::IntFilter& val(const IntQueryKey* msg); + static const ::pb::lyft::datacatalog::IntRangeFilter& range(const IntQueryKey* msg); +}; + +const ::pb::lyft::datacatalog::IntFilter& +IntQueryKey::HasBitSetters::val(const IntQueryKey* msg) { + return *msg->filter_.val_; +} +const ::pb::lyft::datacatalog::IntRangeFilter& +IntQueryKey::HasBitSetters::range(const IntQueryKey* msg) { + return *msg->filter_.range_; +} +void IntQueryKey::set_allocated_val(::pb::lyft::datacatalog::IntFilter* val) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_filter(); + if (val) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + val = ::google::protobuf::internal::GetOwnedMessage( + message_arena, val, submessage_arena); + } + set_has_val(); + filter_.val_ = val; + } + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.IntQueryKey.val) +} +void IntQueryKey::set_allocated_range(::pb::lyft::datacatalog::IntRangeFilter* range) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_filter(); + if (range) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + range = ::google::protobuf::internal::GetOwnedMessage( + message_arena, range, submessage_arena); + } + set_has_range(); + filter_.range_ = range; + } + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.IntQueryKey.range) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int IntQueryKey::kValFieldNumber; +const int IntQueryKey::kRangeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +IntQueryKey::IntQueryKey() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.IntQueryKey) +} +IntQueryKey::IntQueryKey(const IntQueryKey& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_filter(); + switch (from.filter_case()) { + case kVal: { + mutable_val()->::pb::lyft::datacatalog::IntFilter::MergeFrom(from.val()); + break; + } + case kRange: { + mutable_range()->::pb::lyft::datacatalog::IntRangeFilter::MergeFrom(from.range()); + break; + } + case FILTER_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.IntQueryKey) +} + +void IntQueryKey::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_IntQueryKey_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + clear_has_filter(); +} + +IntQueryKey::~IntQueryKey() { + // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.IntQueryKey) + SharedDtor(); +} + +void IntQueryKey::SharedDtor() { + if (has_filter()) { + clear_filter(); + } +} + +void IntQueryKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IntQueryKey& IntQueryKey::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_IntQueryKey_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void IntQueryKey::clear_filter() { +// @@protoc_insertion_point(one_of_clear_start:pb.lyft.datacatalog.IntQueryKey) + switch (filter_case()) { + case kVal: { + delete filter_.val_; + break; + } + case kRange: { + delete filter_.range_; + break; + } + case FILTER_NOT_SET: { + break; + } + } + _oneof_case_[0] = FILTER_NOT_SET; +} + + +void IntQueryKey::Clear() { +// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.IntQueryKey) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_filter(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IntQueryKey::_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) { + // .pb.lyft.datacatalog.IntFilter val = 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 = ::pb::lyft::datacatalog::IntFilter::_InternalParse; + object = msg->mutable_val(); + 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; + } + // .pb.lyft.datacatalog.IntRangeFilter range = 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 = ::pb::lyft::datacatalog::IntRangeFilter::_InternalParse; + object = msg->mutable_range(); + 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) { + 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; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool IntQueryKey::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:pb.lyft.datacatalog.IntQueryKey) + 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)) { + // .pb.lyft.datacatalog.IntFilter val = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_val())); + } else { + goto handle_unusual; + } + break; + } + + // .pb.lyft.datacatalog.IntRangeFilter range = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_range())); + } 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:pb.lyft.datacatalog.IntQueryKey) + return true; +failure: + // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.IntQueryKey) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IntQueryKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.IntQueryKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .pb.lyft.datacatalog.IntFilter val = 1; + if (has_val()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::val(this), output); + } + + // .pb.lyft.datacatalog.IntRangeFilter range = 2; + if (has_range()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::range(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:pb.lyft.datacatalog.IntQueryKey) +} + +::google::protobuf::uint8* IntQueryKey::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.IntQueryKey) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .pb.lyft.datacatalog.IntFilter val = 1; + if (has_val()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::val(this), target); + } + + // .pb.lyft.datacatalog.IntRangeFilter range = 2; + if (has_range()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::range(this), 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:pb.lyft.datacatalog.IntQueryKey) + return target; +} + +size_t IntQueryKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.IntQueryKey) + 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; + + switch (filter_case()) { + // .pb.lyft.datacatalog.IntFilter val = 1; + case kVal: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *filter_.val_); + break; + } + // .pb.lyft.datacatalog.IntRangeFilter range = 2; + case kRange: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *filter_.range_); + break; + } + case FILTER_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IntQueryKey::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.IntQueryKey) + GOOGLE_DCHECK_NE(&from, this); + const IntQueryKey* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.IntQueryKey) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.IntQueryKey) + MergeFrom(*source); + } +} + +void IntQueryKey::MergeFrom(const IntQueryKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.IntQueryKey) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.filter_case()) { + case kVal: { + mutable_val()->::pb::lyft::datacatalog::IntFilter::MergeFrom(from.val()); + break; + } + case kRange: { + mutable_range()->::pb::lyft::datacatalog::IntRangeFilter::MergeFrom(from.range()); + break; + } + case FILTER_NOT_SET: { + break; + } + } +} + +void IntQueryKey::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.IntQueryKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IntQueryKey::CopyFrom(const IntQueryKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:pb.lyft.datacatalog.IntQueryKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IntQueryKey::IsInitialized() const { + return true; +} + +void IntQueryKey::Swap(IntQueryKey* other) { + if (other == this) return; + InternalSwap(other); +} +void IntQueryKey::InternalSwap(IntQueryKey* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(filter_, other->filter_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata IntQueryKey::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void QueryRequest::InitAsDefaultInstance() { + ::pb::lyft::datacatalog::_QueryRequest_default_instance_._instance.get_mutable()->revision_ = const_cast< ::pb::lyft::datacatalog::IntQueryKey*>( + ::pb::lyft::datacatalog::IntQueryKey::internal_default_instance()); +} +class QueryRequest::HasBitSetters { + public: + static const ::pb::lyft::datacatalog::IntQueryKey& revision(const QueryRequest* msg); +}; + +const ::pb::lyft::datacatalog::IntQueryKey& +QueryRequest::HasBitSetters::revision(const QueryRequest* msg) { + return *msg->revision_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int QueryRequest::kNameFieldNumber; +const int QueryRequest::kVersionFieldNumber; +const int QueryRequest::kRevisionFieldNumber; +const int QueryRequest::kCreatedAtFieldNumber; +const int QueryRequest::kReferenceIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +QueryRequest::QueryRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.QueryRequest) +} +QueryRequest::QueryRequest(const QueryRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.version().size() > 0) { + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + reference_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.reference_id().size() > 0) { + reference_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reference_id_); + } + if (from.has_revision()) { + revision_ = new ::pb::lyft::datacatalog::IntQueryKey(*from.revision_); + } else { + revision_ = nullptr; + } + created_at_ = from.created_at_; + // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.QueryRequest) +} + +void QueryRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_QueryRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reference_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&revision_, 0, static_cast( + reinterpret_cast(&created_at_) - + reinterpret_cast(&revision_)) + sizeof(created_at_)); +} + +QueryRequest::~QueryRequest() { + // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.QueryRequest) + SharedDtor(); +} + +void QueryRequest::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reference_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete revision_; +} + +void QueryRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const QueryRequest& QueryRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_QueryRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void QueryRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.QueryRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reference_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && revision_ != nullptr) { + delete revision_; + } + revision_ = nullptr; + created_at_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* QueryRequest::_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) { + // string name = 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); + ctx->extra_parse_data().SetFieldName("pb.lyft.datacatalog.QueryRequest.name"); + object = msg->mutable_name(); + 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 = 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("pb.lyft.datacatalog.QueryRequest.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; + } + // .pb.lyft.datacatalog.IntQueryKey revision = 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 = ::pb::lyft::datacatalog::IntQueryKey::_InternalParse; + object = msg->mutable_revision(); + 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; + } + // int64 created_at = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_created_at(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string reference_id = 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("pb.lyft.datacatalog.QueryRequest.reference_id"); + object = msg->mutable_reference_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; + 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 QueryRequest::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:pb.lyft.datacatalog.QueryRequest) + 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 name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "pb.lyft.datacatalog.QueryRequest.name")); + } else { + goto handle_unusual; + } + break; + } + + // string version = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 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, + "pb.lyft.datacatalog.QueryRequest.version")); + } else { + goto handle_unusual; + } + break; + } + + // .pb.lyft.datacatalog.IntQueryKey revision = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_revision())); + } else { + goto handle_unusual; + } + break; + } + + // int64 created_at = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &created_at_))); + } else { + goto handle_unusual; + } + break; + } + + // string reference_id = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_reference_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reference_id().data(), static_cast(this->reference_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "pb.lyft.datacatalog.QueryRequest.reference_id")); + } 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:pb.lyft.datacatalog.QueryRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.QueryRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void QueryRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.QueryRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.QueryRequest.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // string version = 2; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.QueryRequest.version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->version(), output); + } + + // .pb.lyft.datacatalog.IntQueryKey revision = 3; + if (this->has_revision()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::revision(this), output); + } + + // int64 created_at = 4; + if (this->created_at() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->created_at(), output); + } + + // string reference_id = 5; + if (this->reference_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reference_id().data(), static_cast(this->reference_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.QueryRequest.reference_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->reference_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:pb.lyft.datacatalog.QueryRequest) +} + +::google::protobuf::uint8* QueryRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.QueryRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.QueryRequest.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // string version = 2; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.QueryRequest.version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->version(), target); + } + + // .pb.lyft.datacatalog.IntQueryKey revision = 3; + if (this->has_revision()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::revision(this), target); + } + + // int64 created_at = 4; + if (this->created_at() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->created_at(), target); + } + + // string reference_id = 5; + if (this->reference_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reference_id().data(), static_cast(this->reference_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.QueryRequest.reference_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->reference_id(), 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:pb.lyft.datacatalog.QueryRequest) + return target; +} + +size_t QueryRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.QueryRequest) + 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 name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string version = 2; + if (this->version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->version()); + } + + // string reference_id = 5; + if (this->reference_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->reference_id()); + } + + // .pb.lyft.datacatalog.IntQueryKey revision = 3; + if (this->has_revision()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *revision_); + } + + // int64 created_at = 4; + if (this->created_at() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->created_at()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void QueryRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.QueryRequest) + GOOGLE_DCHECK_NE(&from, this); + const QueryRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.QueryRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.QueryRequest) + MergeFrom(*source); + } +} + +void QueryRequest::MergeFrom(const QueryRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.QueryRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.version().size() > 0) { + + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + if (from.reference_id().size() > 0) { + + reference_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reference_id_); + } + if (from.has_revision()) { + mutable_revision()->::pb::lyft::datacatalog::IntQueryKey::MergeFrom(from.revision()); + } + if (from.created_at() != 0) { + set_created_at(from.created_at()); + } +} + +void QueryRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.QueryRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void QueryRequest::CopyFrom(const QueryRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:pb.lyft.datacatalog.QueryRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool QueryRequest::IsInitialized() const { + return true; +} + +void QueryRequest::Swap(QueryRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void QueryRequest::InternalSwap(QueryRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + reference_id_.Swap(&other->reference_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(revision_, other->revision_); + swap(created_at_, other->created_at_); +} + +::google::protobuf::Metadata QueryRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void QueryResponse::InitAsDefaultInstance() { +} +class QueryResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int QueryResponse::kArtifactFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +QueryResponse::QueryResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.QueryResponse) +} +QueryResponse::QueryResponse(const QueryResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + artifact_(from.artifact_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.QueryResponse) +} + +void QueryResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_QueryResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); +} + +QueryResponse::~QueryResponse() { + // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.QueryResponse) + SharedDtor(); +} + +void QueryResponse::SharedDtor() { +} + +void QueryResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const QueryResponse& QueryResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_QueryResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void QueryResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.QueryResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + artifact_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* QueryResponse::_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) { + // repeated .pb.lyft.datacatalog.Artifact artifact = 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 = ::pb::lyft::datacatalog::Artifact::_InternalParse; + object = msg->add_artifact(); + 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; + } + 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; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool QueryResponse::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:pb.lyft.datacatalog.QueryResponse) + 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 .pb.lyft.datacatalog.Artifact artifact = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_artifact())); + } 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:pb.lyft.datacatalog.QueryResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.QueryResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void QueryResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.QueryResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .pb.lyft.datacatalog.Artifact artifact = 1; + for (unsigned int i = 0, + n = static_cast(this->artifact_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->artifact(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:pb.lyft.datacatalog.QueryResponse) +} + +::google::protobuf::uint8* QueryResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.QueryResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .pb.lyft.datacatalog.Artifact artifact = 1; + for (unsigned int i = 0, + n = static_cast(this->artifact_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->artifact(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:pb.lyft.datacatalog.QueryResponse) + return target; +} + +size_t QueryResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.QueryResponse) + 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; + + // repeated .pb.lyft.datacatalog.Artifact artifact = 1; + { + unsigned int count = static_cast(this->artifact_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->artifact(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void QueryResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.QueryResponse) + GOOGLE_DCHECK_NE(&from, this); + const QueryResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.QueryResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.QueryResponse) + MergeFrom(*source); + } +} + +void QueryResponse::MergeFrom(const QueryResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.QueryResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + artifact_.MergeFrom(from.artifact_); +} + +void QueryResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.QueryResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void QueryResponse::CopyFrom(const QueryResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:pb.lyft.datacatalog.QueryResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool QueryResponse::IsInitialized() const { + return true; +} + +void QueryResponse::Swap(QueryResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void QueryResponse::InternalSwap(QueryResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&artifact_)->InternalSwap(CastToBase(&other->artifact_)); +} + +::google::protobuf::Metadata QueryResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateRequest::InitAsDefaultInstance() { + ::pb::lyft::datacatalog::_CreateRequest_default_instance_._instance.get_mutable()->ref_ = const_cast< ::pb::lyft::datacatalog::ArtifactId*>( + ::pb::lyft::datacatalog::ArtifactId::internal_default_instance()); +} +class CreateRequest::HasBitSetters { + public: + static const ::pb::lyft::datacatalog::ArtifactId& ref(const CreateRequest* msg); +}; + +const ::pb::lyft::datacatalog::ArtifactId& +CreateRequest::HasBitSetters::ref(const CreateRequest* msg) { + return *msg->ref_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateRequest::kRefFieldNumber; +const int CreateRequest::kReferenceIdFieldNumber; +const int CreateRequest::kRevisionFieldNumber; +const int CreateRequest::kOutputsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateRequest::CreateRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.CreateRequest) +} +CreateRequest::CreateRequest(const CreateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + outputs_(from.outputs_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + reference_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.reference_id().size() > 0) { + reference_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reference_id_); + } + if (from.has_ref()) { + ref_ = new ::pb::lyft::datacatalog::ArtifactId(*from.ref_); + } else { + ref_ = nullptr; + } + revision_ = from.revision_; + // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.CreateRequest) +} + +void CreateRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + reference_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&ref_, 0, static_cast( + reinterpret_cast(&revision_) - + reinterpret_cast(&ref_)) + sizeof(revision_)); +} + +CreateRequest::~CreateRequest() { + // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.CreateRequest) + SharedDtor(); +} + +void CreateRequest::SharedDtor() { + reference_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete ref_; +} + +void CreateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateRequest& CreateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void CreateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.CreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + outputs_.Clear(); + reference_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && ref_ != nullptr) { + delete ref_; + } + ref_ = nullptr; + revision_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateRequest::_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) { + // .pb.lyft.datacatalog.ArtifactId ref = 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 = ::pb::lyft::datacatalog::ArtifactId::_InternalParse; + object = msg->mutable_ref(); + 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 reference_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); + ctx->extra_parse_data().SetFieldName("pb.lyft.datacatalog.CreateRequest.reference_id"); + object = msg->mutable_reference_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; + break; + } + // int64 revision = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_revision(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // repeated .pb.lyft.datacatalog.Parameter outputs = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::pb::lyft::datacatalog::Parameter::_InternalParse; + object = msg->add_outputs(); + 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) == 34 && (ptr += 1)); + 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 CreateRequest::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:pb.lyft.datacatalog.CreateRequest) + 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)) { + // .pb.lyft.datacatalog.ArtifactId ref = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_ref())); + } else { + goto handle_unusual; + } + break; + } + + // string reference_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_reference_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reference_id().data(), static_cast(this->reference_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "pb.lyft.datacatalog.CreateRequest.reference_id")); + } else { + goto handle_unusual; + } + break; + } + + // int64 revision = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &revision_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .pb.lyft.datacatalog.Parameter outputs = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_outputs())); + } 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:pb.lyft.datacatalog.CreateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.CreateRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.CreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .pb.lyft.datacatalog.ArtifactId ref = 1; + if (this->has_ref()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::ref(this), output); + } + + // string reference_id = 2; + if (this->reference_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reference_id().data(), static_cast(this->reference_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.CreateRequest.reference_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->reference_id(), output); + } + + // int64 revision = 3; + if (this->revision() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->revision(), output); + } + + // repeated .pb.lyft.datacatalog.Parameter outputs = 4; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->outputs(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:pb.lyft.datacatalog.CreateRequest) +} + +::google::protobuf::uint8* CreateRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.CreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .pb.lyft.datacatalog.ArtifactId ref = 1; + if (this->has_ref()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::ref(this), target); + } + + // string reference_id = 2; + if (this->reference_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reference_id().data(), static_cast(this->reference_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.CreateRequest.reference_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->reference_id(), target); + } + + // int64 revision = 3; + if (this->revision() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->revision(), target); + } + + // repeated .pb.lyft.datacatalog.Parameter outputs = 4; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->outputs(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:pb.lyft.datacatalog.CreateRequest) + return target; +} + +size_t CreateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.CreateRequest) + 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; + + // repeated .pb.lyft.datacatalog.Parameter outputs = 4; + { + unsigned int count = static_cast(this->outputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->outputs(static_cast(i))); + } + } + + // string reference_id = 2; + if (this->reference_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->reference_id()); + } + + // .pb.lyft.datacatalog.ArtifactId ref = 1; + if (this->has_ref()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *ref_); + } + + // int64 revision = 3; + if (this->revision() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->revision()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.CreateRequest) + GOOGLE_DCHECK_NE(&from, this); + const CreateRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.CreateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.CreateRequest) + MergeFrom(*source); + } +} + +void CreateRequest::MergeFrom(const CreateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.CreateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + outputs_.MergeFrom(from.outputs_); + if (from.reference_id().size() > 0) { + + reference_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reference_id_); + } + if (from.has_ref()) { + mutable_ref()->::pb::lyft::datacatalog::ArtifactId::MergeFrom(from.ref()); + } + if (from.revision() != 0) { + set_revision(from.revision()); + } +} + +void CreateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.CreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateRequest::CopyFrom(const CreateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:pb.lyft.datacatalog.CreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateRequest::IsInitialized() const { + return true; +} + +void CreateRequest::Swap(CreateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateRequest::InternalSwap(CreateRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&outputs_)->InternalSwap(CastToBase(&other->outputs_)); + reference_id_.Swap(&other->reference_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(ref_, other->ref_); + swap(revision_, other->revision_); +} + +::google::protobuf::Metadata CreateRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateResponse::InitAsDefaultInstance() { + ::pb::lyft::datacatalog::_CreateResponse_default_instance_._instance.get_mutable()->artifact_ = const_cast< ::pb::lyft::datacatalog::Artifact*>( + ::pb::lyft::datacatalog::Artifact::internal_default_instance()); +} +class CreateResponse::HasBitSetters { + public: + static const ::pb::lyft::datacatalog::Artifact& artifact(const CreateResponse* msg); +}; + +const ::pb::lyft::datacatalog::Artifact& +CreateResponse::HasBitSetters::artifact(const CreateResponse* msg) { + return *msg->artifact_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateResponse::kArtifactFieldNumber; +const int CreateResponse::kStatusFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateResponse::CreateResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.CreateResponse) +} +CreateResponse::CreateResponse(const CreateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_artifact()) { + artifact_ = new ::pb::lyft::datacatalog::Artifact(*from.artifact_); + } else { + artifact_ = nullptr; + } + status_ = from.status_; + // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.CreateResponse) +} + +void CreateResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::memset(&artifact_, 0, static_cast( + reinterpret_cast(&status_) - + reinterpret_cast(&artifact_)) + sizeof(status_)); +} + +CreateResponse::~CreateResponse() { + // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.CreateResponse) + SharedDtor(); +} + +void CreateResponse::SharedDtor() { + if (this != internal_default_instance()) delete artifact_; +} + +void CreateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateResponse& CreateResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void CreateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.CreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { + delete artifact_; + } + artifact_ = nullptr; + status_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateResponse::_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) { + // .pb.lyft.datacatalog.Artifact artifact = 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 = ::pb::lyft::datacatalog::Artifact::_InternalParse; + object = msg->mutable_artifact(); + 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; + } + // .pb.lyft.datacatalog.CreateResponse.Status status = 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_status(static_cast<::pb::lyft::datacatalog::CreateResponse_Status>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + 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; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateResponse::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:pb.lyft.datacatalog.CreateResponse) + 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)) { + // .pb.lyft.datacatalog.Artifact artifact = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_artifact())); + } else { + goto handle_unusual; + } + break; + } + + // .pb.lyft.datacatalog.CreateResponse.Status status = 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_status(static_cast< ::pb::lyft::datacatalog::CreateResponse_Status >(value)); + } 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:pb.lyft.datacatalog.CreateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.CreateResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.CreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .pb.lyft.datacatalog.Artifact artifact = 1; + if (this->has_artifact()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::artifact(this), output); + } + + // .pb.lyft.datacatalog.CreateResponse.Status status = 2; + if (this->status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->status(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:pb.lyft.datacatalog.CreateResponse) +} + +::google::protobuf::uint8* CreateResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.CreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .pb.lyft.datacatalog.Artifact artifact = 1; + if (this->has_artifact()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::artifact(this), target); + } + + // .pb.lyft.datacatalog.CreateResponse.Status status = 2; + if (this->status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->status(), 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:pb.lyft.datacatalog.CreateResponse) + return target; +} + +size_t CreateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.CreateResponse) + 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; + + // .pb.lyft.datacatalog.Artifact artifact = 1; + if (this->has_artifact()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *artifact_); + } + + // .pb.lyft.datacatalog.CreateResponse.Status status = 2; + if (this->status() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.CreateResponse) + GOOGLE_DCHECK_NE(&from, this); + const CreateResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.CreateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.CreateResponse) + MergeFrom(*source); + } +} + +void CreateResponse::MergeFrom(const CreateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.CreateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_artifact()) { + mutable_artifact()->::pb::lyft::datacatalog::Artifact::MergeFrom(from.artifact()); + } + if (from.status() != 0) { + set_status(from.status()); + } +} + +void CreateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.CreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateResponse::CopyFrom(const CreateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:pb.lyft.datacatalog.CreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateResponse::IsInitialized() const { + return true; +} + +void CreateResponse::Swap(CreateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateResponse::InternalSwap(CreateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(artifact_, other->artifact_); + swap(status_, other->status_); +} + +::google::protobuf::Metadata CreateResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GenerateProvenanceRequest::InitAsDefaultInstance() { + ::pb::lyft::datacatalog::_GenerateProvenanceRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::pb::lyft::datacatalog::ArtifactId*>( + ::pb::lyft::datacatalog::ArtifactId::internal_default_instance()); +} +class GenerateProvenanceRequest::HasBitSetters { + public: + static const ::pb::lyft::datacatalog::ArtifactId& id(const GenerateProvenanceRequest* msg); +}; + +const ::pb::lyft::datacatalog::ArtifactId& +GenerateProvenanceRequest::HasBitSetters::id(const GenerateProvenanceRequest* msg) { + return *msg->id_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GenerateProvenanceRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GenerateProvenanceRequest::GenerateProvenanceRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.GenerateProvenanceRequest) +} +GenerateProvenanceRequest::GenerateProvenanceRequest(const GenerateProvenanceRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::pb::lyft::datacatalog::ArtifactId(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.GenerateProvenanceRequest) +} + +void GenerateProvenanceRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GenerateProvenanceRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + id_ = nullptr; +} + +GenerateProvenanceRequest::~GenerateProvenanceRequest() { + // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.GenerateProvenanceRequest) + SharedDtor(); +} + +void GenerateProvenanceRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void GenerateProvenanceRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GenerateProvenanceRequest& GenerateProvenanceRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GenerateProvenanceRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GenerateProvenanceRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.GenerateProvenanceRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GenerateProvenanceRequest::_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) { + // .pb.lyft.datacatalog.ArtifactId 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 = ::pb::lyft::datacatalog::ArtifactId::_InternalParse; + object = msg->mutable_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; + } + 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; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GenerateProvenanceRequest::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:pb.lyft.datacatalog.GenerateProvenanceRequest) + 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)) { + // .pb.lyft.datacatalog.ArtifactId id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } 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:pb.lyft.datacatalog.GenerateProvenanceRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.GenerateProvenanceRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GenerateProvenanceRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.GenerateProvenanceRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .pb.lyft.datacatalog.ArtifactId id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:pb.lyft.datacatalog.GenerateProvenanceRequest) +} + +::google::protobuf::uint8* GenerateProvenanceRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.GenerateProvenanceRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .pb.lyft.datacatalog.ArtifactId id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), 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:pb.lyft.datacatalog.GenerateProvenanceRequest) + return target; +} + +size_t GenerateProvenanceRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.GenerateProvenanceRequest) + 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; + + // .pb.lyft.datacatalog.ArtifactId id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GenerateProvenanceRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.GenerateProvenanceRequest) + GOOGLE_DCHECK_NE(&from, this); + const GenerateProvenanceRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.GenerateProvenanceRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.GenerateProvenanceRequest) + MergeFrom(*source); + } +} + +void GenerateProvenanceRequest::MergeFrom(const GenerateProvenanceRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.GenerateProvenanceRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::pb::lyft::datacatalog::ArtifactId::MergeFrom(from.id()); + } +} + +void GenerateProvenanceRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.GenerateProvenanceRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GenerateProvenanceRequest::CopyFrom(const GenerateProvenanceRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:pb.lyft.datacatalog.GenerateProvenanceRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GenerateProvenanceRequest::IsInitialized() const { + return true; +} + +void GenerateProvenanceRequest::Swap(GenerateProvenanceRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GenerateProvenanceRequest::InternalSwap(GenerateProvenanceRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); +} + +::google::protobuf::Metadata GenerateProvenanceRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GenerateProvenanceResponse::InitAsDefaultInstance() { +} +class GenerateProvenanceResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GenerateProvenanceResponse::kProvenanceFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GenerateProvenanceResponse::GenerateProvenanceResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.GenerateProvenanceResponse) +} +GenerateProvenanceResponse::GenerateProvenanceResponse(const GenerateProvenanceResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + provenance_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.provenance().size() > 0) { + provenance_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.provenance_); + } + // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.GenerateProvenanceResponse) +} + +void GenerateProvenanceResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GenerateProvenanceResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + provenance_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +GenerateProvenanceResponse::~GenerateProvenanceResponse() { + // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.GenerateProvenanceResponse) + SharedDtor(); +} + +void GenerateProvenanceResponse::SharedDtor() { + provenance_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void GenerateProvenanceResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GenerateProvenanceResponse& GenerateProvenanceResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GenerateProvenanceResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GenerateProvenanceResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.GenerateProvenanceResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + provenance_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GenerateProvenanceResponse::_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) { + // string provenance = 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); + ctx->extra_parse_data().SetFieldName("pb.lyft.datacatalog.GenerateProvenanceResponse.provenance"); + object = msg->mutable_provenance(); + 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 GenerateProvenanceResponse::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:pb.lyft.datacatalog.GenerateProvenanceResponse) + 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 provenance = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_provenance())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->provenance().data(), static_cast(this->provenance().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "pb.lyft.datacatalog.GenerateProvenanceResponse.provenance")); + } 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:pb.lyft.datacatalog.GenerateProvenanceResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.GenerateProvenanceResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GenerateProvenanceResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.GenerateProvenanceResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string provenance = 1; + if (this->provenance().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->provenance().data(), static_cast(this->provenance().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.GenerateProvenanceResponse.provenance"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->provenance(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:pb.lyft.datacatalog.GenerateProvenanceResponse) +} + +::google::protobuf::uint8* GenerateProvenanceResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.GenerateProvenanceResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string provenance = 1; + if (this->provenance().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->provenance().data(), static_cast(this->provenance().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "pb.lyft.datacatalog.GenerateProvenanceResponse.provenance"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->provenance(), 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:pb.lyft.datacatalog.GenerateProvenanceResponse) + return target; +} + +size_t GenerateProvenanceResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.GenerateProvenanceResponse) + 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 provenance = 1; + if (this->provenance().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->provenance()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GenerateProvenanceResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.GenerateProvenanceResponse) + GOOGLE_DCHECK_NE(&from, this); + const GenerateProvenanceResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.GenerateProvenanceResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.GenerateProvenanceResponse) + MergeFrom(*source); + } +} + +void GenerateProvenanceResponse::MergeFrom(const GenerateProvenanceResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.GenerateProvenanceResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.provenance().size() > 0) { + + provenance_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.provenance_); + } +} + +void GenerateProvenanceResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.GenerateProvenanceResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GenerateProvenanceResponse::CopyFrom(const GenerateProvenanceResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:pb.lyft.datacatalog.GenerateProvenanceResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GenerateProvenanceResponse::IsInitialized() const { + return true; +} + +void GenerateProvenanceResponse::Swap(GenerateProvenanceResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GenerateProvenanceResponse::InternalSwap(GenerateProvenanceResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + provenance_.Swap(&other->provenance_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata GenerateProvenanceResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace datacatalog +} // namespace lyft +} // namespace pb +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::pb::lyft::datacatalog::Parameter* Arena::CreateMaybeMessage< ::pb::lyft::datacatalog::Parameter >(Arena* arena) { + return Arena::CreateInternal< ::pb::lyft::datacatalog::Parameter >(arena); +} +template<> PROTOBUF_NOINLINE ::pb::lyft::datacatalog::Artifact* Arena::CreateMaybeMessage< ::pb::lyft::datacatalog::Artifact >(Arena* arena) { + return Arena::CreateInternal< ::pb::lyft::datacatalog::Artifact >(arena); +} +template<> PROTOBUF_NOINLINE ::pb::lyft::datacatalog::ArtifactId* Arena::CreateMaybeMessage< ::pb::lyft::datacatalog::ArtifactId >(Arena* arena) { + return Arena::CreateInternal< ::pb::lyft::datacatalog::ArtifactId >(arena); +} +template<> PROTOBUF_NOINLINE ::pb::lyft::datacatalog::GetRequest* Arena::CreateMaybeMessage< ::pb::lyft::datacatalog::GetRequest >(Arena* arena) { + return Arena::CreateInternal< ::pb::lyft::datacatalog::GetRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::pb::lyft::datacatalog::GetResponse* Arena::CreateMaybeMessage< ::pb::lyft::datacatalog::GetResponse >(Arena* arena) { + return Arena::CreateInternal< ::pb::lyft::datacatalog::GetResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::pb::lyft::datacatalog::IntFilter* Arena::CreateMaybeMessage< ::pb::lyft::datacatalog::IntFilter >(Arena* arena) { + return Arena::CreateInternal< ::pb::lyft::datacatalog::IntFilter >(arena); +} +template<> PROTOBUF_NOINLINE ::pb::lyft::datacatalog::IntRangeFilter* Arena::CreateMaybeMessage< ::pb::lyft::datacatalog::IntRangeFilter >(Arena* arena) { + return Arena::CreateInternal< ::pb::lyft::datacatalog::IntRangeFilter >(arena); +} +template<> PROTOBUF_NOINLINE ::pb::lyft::datacatalog::IntQueryKey* Arena::CreateMaybeMessage< ::pb::lyft::datacatalog::IntQueryKey >(Arena* arena) { + return Arena::CreateInternal< ::pb::lyft::datacatalog::IntQueryKey >(arena); +} +template<> PROTOBUF_NOINLINE ::pb::lyft::datacatalog::QueryRequest* Arena::CreateMaybeMessage< ::pb::lyft::datacatalog::QueryRequest >(Arena* arena) { + return Arena::CreateInternal< ::pb::lyft::datacatalog::QueryRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::pb::lyft::datacatalog::QueryResponse* Arena::CreateMaybeMessage< ::pb::lyft::datacatalog::QueryResponse >(Arena* arena) { + return Arena::CreateInternal< ::pb::lyft::datacatalog::QueryResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::pb::lyft::datacatalog::CreateRequest* Arena::CreateMaybeMessage< ::pb::lyft::datacatalog::CreateRequest >(Arena* arena) { + return Arena::CreateInternal< ::pb::lyft::datacatalog::CreateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::pb::lyft::datacatalog::CreateResponse* Arena::CreateMaybeMessage< ::pb::lyft::datacatalog::CreateResponse >(Arena* arena) { + return Arena::CreateInternal< ::pb::lyft::datacatalog::CreateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::pb::lyft::datacatalog::GenerateProvenanceRequest* Arena::CreateMaybeMessage< ::pb::lyft::datacatalog::GenerateProvenanceRequest >(Arena* arena) { + return Arena::CreateInternal< ::pb::lyft::datacatalog::GenerateProvenanceRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::pb::lyft::datacatalog::GenerateProvenanceResponse* Arena::CreateMaybeMessage< ::pb::lyft::datacatalog::GenerateProvenanceResponse >(Arena* arena) { + return Arena::CreateInternal< ::pb::lyft::datacatalog::GenerateProvenanceResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h new file mode 100644 index 000000000..602ea488a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h @@ -0,0 +1,3690 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/datacatalog/datacatalog.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fdatacatalog_2fdatacatalog_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fdatacatalog_2fdatacatalog_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[14] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto(); +namespace pb { +namespace lyft { +namespace datacatalog { +class Artifact; +class ArtifactDefaultTypeInternal; +extern ArtifactDefaultTypeInternal _Artifact_default_instance_; +class ArtifactId; +class ArtifactIdDefaultTypeInternal; +extern ArtifactIdDefaultTypeInternal _ArtifactId_default_instance_; +class CreateRequest; +class CreateRequestDefaultTypeInternal; +extern CreateRequestDefaultTypeInternal _CreateRequest_default_instance_; +class CreateResponse; +class CreateResponseDefaultTypeInternal; +extern CreateResponseDefaultTypeInternal _CreateResponse_default_instance_; +class GenerateProvenanceRequest; +class GenerateProvenanceRequestDefaultTypeInternal; +extern GenerateProvenanceRequestDefaultTypeInternal _GenerateProvenanceRequest_default_instance_; +class GenerateProvenanceResponse; +class GenerateProvenanceResponseDefaultTypeInternal; +extern GenerateProvenanceResponseDefaultTypeInternal _GenerateProvenanceResponse_default_instance_; +class GetRequest; +class GetRequestDefaultTypeInternal; +extern GetRequestDefaultTypeInternal _GetRequest_default_instance_; +class GetResponse; +class GetResponseDefaultTypeInternal; +extern GetResponseDefaultTypeInternal _GetResponse_default_instance_; +class IntFilter; +class IntFilterDefaultTypeInternal; +extern IntFilterDefaultTypeInternal _IntFilter_default_instance_; +class IntQueryKey; +class IntQueryKeyDefaultTypeInternal; +extern IntQueryKeyDefaultTypeInternal _IntQueryKey_default_instance_; +class IntRangeFilter; +class IntRangeFilterDefaultTypeInternal; +extern IntRangeFilterDefaultTypeInternal _IntRangeFilter_default_instance_; +class Parameter; +class ParameterDefaultTypeInternal; +extern ParameterDefaultTypeInternal _Parameter_default_instance_; +class QueryRequest; +class QueryRequestDefaultTypeInternal; +extern QueryRequestDefaultTypeInternal _QueryRequest_default_instance_; +class QueryResponse; +class QueryResponseDefaultTypeInternal; +extern QueryResponseDefaultTypeInternal _QueryResponse_default_instance_; +} // namespace datacatalog +} // namespace lyft +} // namespace pb +namespace google { +namespace protobuf { +template<> ::pb::lyft::datacatalog::Artifact* Arena::CreateMaybeMessage<::pb::lyft::datacatalog::Artifact>(Arena*); +template<> ::pb::lyft::datacatalog::ArtifactId* Arena::CreateMaybeMessage<::pb::lyft::datacatalog::ArtifactId>(Arena*); +template<> ::pb::lyft::datacatalog::CreateRequest* Arena::CreateMaybeMessage<::pb::lyft::datacatalog::CreateRequest>(Arena*); +template<> ::pb::lyft::datacatalog::CreateResponse* Arena::CreateMaybeMessage<::pb::lyft::datacatalog::CreateResponse>(Arena*); +template<> ::pb::lyft::datacatalog::GenerateProvenanceRequest* Arena::CreateMaybeMessage<::pb::lyft::datacatalog::GenerateProvenanceRequest>(Arena*); +template<> ::pb::lyft::datacatalog::GenerateProvenanceResponse* Arena::CreateMaybeMessage<::pb::lyft::datacatalog::GenerateProvenanceResponse>(Arena*); +template<> ::pb::lyft::datacatalog::GetRequest* Arena::CreateMaybeMessage<::pb::lyft::datacatalog::GetRequest>(Arena*); +template<> ::pb::lyft::datacatalog::GetResponse* Arena::CreateMaybeMessage<::pb::lyft::datacatalog::GetResponse>(Arena*); +template<> ::pb::lyft::datacatalog::IntFilter* Arena::CreateMaybeMessage<::pb::lyft::datacatalog::IntFilter>(Arena*); +template<> ::pb::lyft::datacatalog::IntQueryKey* Arena::CreateMaybeMessage<::pb::lyft::datacatalog::IntQueryKey>(Arena*); +template<> ::pb::lyft::datacatalog::IntRangeFilter* Arena::CreateMaybeMessage<::pb::lyft::datacatalog::IntRangeFilter>(Arena*); +template<> ::pb::lyft::datacatalog::Parameter* Arena::CreateMaybeMessage<::pb::lyft::datacatalog::Parameter>(Arena*); +template<> ::pb::lyft::datacatalog::QueryRequest* Arena::CreateMaybeMessage<::pb::lyft::datacatalog::QueryRequest>(Arena*); +template<> ::pb::lyft::datacatalog::QueryResponse* Arena::CreateMaybeMessage<::pb::lyft::datacatalog::QueryResponse>(Arena*); +} // namespace protobuf +} // namespace google +namespace pb { +namespace lyft { +namespace datacatalog { + +enum CreateResponse_Status { + CreateResponse_Status_ALREADY_EXISTS = 0, + CreateResponse_Status_CREATED = 1, + CreateResponse_Status_CreateResponse_Status_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + CreateResponse_Status_CreateResponse_Status_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool CreateResponse_Status_IsValid(int value); +const CreateResponse_Status CreateResponse_Status_Status_MIN = CreateResponse_Status_ALREADY_EXISTS; +const CreateResponse_Status CreateResponse_Status_Status_MAX = CreateResponse_Status_CREATED; +const int CreateResponse_Status_Status_ARRAYSIZE = CreateResponse_Status_Status_MAX + 1; + +const ::google::protobuf::EnumDescriptor* CreateResponse_Status_descriptor(); +inline const ::std::string& CreateResponse_Status_Name(CreateResponse_Status value) { + return ::google::protobuf::internal::NameOfEnum( + CreateResponse_Status_descriptor(), value); +} +inline bool CreateResponse_Status_Parse( + const ::std::string& name, CreateResponse_Status* value) { + return ::google::protobuf::internal::ParseNamedEnum( + CreateResponse_Status_descriptor(), name, value); +} +enum QueryOperator { + EQUAL = 0, + GREATER_THAN = 1, + LESSER_THAN = 2, + QueryOperator_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + QueryOperator_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool QueryOperator_IsValid(int value); +const QueryOperator QueryOperator_MIN = EQUAL; +const QueryOperator QueryOperator_MAX = LESSER_THAN; +const int QueryOperator_ARRAYSIZE = QueryOperator_MAX + 1; + +const ::google::protobuf::EnumDescriptor* QueryOperator_descriptor(); +inline const ::std::string& QueryOperator_Name(QueryOperator value) { + return ::google::protobuf::internal::NameOfEnum( + QueryOperator_descriptor(), value); +} +inline bool QueryOperator_Parse( + const ::std::string& name, QueryOperator* value) { + return ::google::protobuf::internal::ParseNamedEnum( + QueryOperator_descriptor(), name, value); +} +// =================================================================== + +class Parameter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.Parameter) */ { + public: + Parameter(); + virtual ~Parameter(); + + Parameter(const Parameter& from); + + inline Parameter& operator=(const Parameter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Parameter(Parameter&& from) noexcept + : Parameter() { + *this = ::std::move(from); + } + + inline Parameter& operator=(Parameter&& 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 Parameter& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Parameter* internal_default_instance() { + return reinterpret_cast( + &_Parameter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(Parameter* other); + friend void swap(Parameter& a, Parameter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Parameter* New() const final { + return CreateMaybeMessage(nullptr); + } + + Parameter* 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 Parameter& from); + void MergeFrom(const Parameter& 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(Parameter* 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 name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string value = 2; + void clear_value(); + static const int kValueFieldNumber = 2; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const char* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.Parameter) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class Artifact final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.Artifact) */ { + public: + Artifact(); + virtual ~Artifact(); + + Artifact(const Artifact& from); + + inline Artifact& operator=(const Artifact& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Artifact(Artifact&& from) noexcept + : Artifact() { + *this = ::std::move(from); + } + + inline Artifact& operator=(Artifact&& 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 Artifact& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Artifact* internal_default_instance() { + return reinterpret_cast( + &_Artifact_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(Artifact* other); + friend void swap(Artifact& a, Artifact& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Artifact* New() const final { + return CreateMaybeMessage(nullptr); + } + + Artifact* 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 Artifact& from); + void MergeFrom(const Artifact& 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(Artifact* 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 ------------------------------------------------------- + + // repeated .pb.lyft.datacatalog.Parameter inputs = 7; + int inputs_size() const; + void clear_inputs(); + static const int kInputsFieldNumber = 7; + ::pb::lyft::datacatalog::Parameter* mutable_inputs(int index); + ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >* + mutable_inputs(); + const ::pb::lyft::datacatalog::Parameter& inputs(int index) const; + ::pb::lyft::datacatalog::Parameter* add_inputs(); + const ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >& + inputs() const; + + // repeated .pb.lyft.datacatalog.Parameter outputs = 8; + int outputs_size() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 8; + ::pb::lyft::datacatalog::Parameter* mutable_outputs(int index); + ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >* + mutable_outputs(); + const ::pb::lyft::datacatalog::Parameter& outputs(int index) const; + ::pb::lyft::datacatalog::Parameter* add_outputs(); + const ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >& + outputs() const; + + // string provenance = 1; + void clear_provenance(); + static const int kProvenanceFieldNumber = 1; + const ::std::string& provenance() const; + void set_provenance(const ::std::string& value); + #if LANG_CXX11 + void set_provenance(::std::string&& value); + #endif + void set_provenance(const char* value); + void set_provenance(const char* value, size_t size); + ::std::string* mutable_provenance(); + ::std::string* release_provenance(); + void set_allocated_provenance(::std::string* provenance); + + // string name = 2; + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string version = 3; + void clear_version(); + static const int kVersionFieldNumber = 3; + const ::std::string& version() const; + void set_version(const ::std::string& value); + #if LANG_CXX11 + void set_version(::std::string&& value); + #endif + 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 reference_id = 6; + void clear_reference_id(); + static const int kReferenceIdFieldNumber = 6; + const ::std::string& reference_id() const; + void set_reference_id(const ::std::string& value); + #if LANG_CXX11 + void set_reference_id(::std::string&& value); + #endif + void set_reference_id(const char* value); + void set_reference_id(const char* value, size_t size); + ::std::string* mutable_reference_id(); + ::std::string* release_reference_id(); + void set_allocated_reference_id(::std::string* reference_id); + + // int64 revision = 4; + void clear_revision(); + static const int kRevisionFieldNumber = 4; + ::google::protobuf::int64 revision() const; + void set_revision(::google::protobuf::int64 value); + + // int64 created_at = 5; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 5; + ::google::protobuf::int64 created_at() const; + void set_created_at(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.Artifact) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter > inputs_; + ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter > outputs_; + ::google::protobuf::internal::ArenaStringPtr provenance_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr version_; + ::google::protobuf::internal::ArenaStringPtr reference_id_; + ::google::protobuf::int64 revision_; + ::google::protobuf::int64 created_at_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class ArtifactId final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.ArtifactId) */ { + public: + ArtifactId(); + virtual ~ArtifactId(); + + ArtifactId(const ArtifactId& from); + + inline ArtifactId& operator=(const ArtifactId& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ArtifactId(ArtifactId&& from) noexcept + : ArtifactId() { + *this = ::std::move(from); + } + + inline ArtifactId& operator=(ArtifactId&& 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 ArtifactId& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ArtifactId* internal_default_instance() { + return reinterpret_cast( + &_ArtifactId_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(ArtifactId* other); + friend void swap(ArtifactId& a, ArtifactId& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ArtifactId* New() const final { + return CreateMaybeMessage(nullptr); + } + + ArtifactId* 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 ArtifactId& from); + void MergeFrom(const ArtifactId& 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(ArtifactId* 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 ------------------------------------------------------- + + // repeated .pb.lyft.datacatalog.Parameter inputs = 3; + int inputs_size() const; + void clear_inputs(); + static const int kInputsFieldNumber = 3; + ::pb::lyft::datacatalog::Parameter* mutable_inputs(int index); + ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >* + mutable_inputs(); + const ::pb::lyft::datacatalog::Parameter& inputs(int index) const; + ::pb::lyft::datacatalog::Parameter* add_inputs(); + const ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >& + inputs() const; + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string version = 2; + void clear_version(); + static const int kVersionFieldNumber = 2; + const ::std::string& version() const; + void set_version(const ::std::string& value); + #if LANG_CXX11 + void set_version(::std::string&& value); + #endif + 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); + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.ArtifactId) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter > inputs_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr version_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class GetRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.GetRequest) */ { + public: + GetRequest(); + virtual ~GetRequest(); + + GetRequest(const GetRequest& from); + + inline GetRequest& operator=(const GetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetRequest(GetRequest&& from) noexcept + : GetRequest() { + *this = ::std::move(from); + } + + inline GetRequest& operator=(GetRequest&& 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 GetRequest& default_instance(); + + enum IdCase { + kProvenance = 1, + kArtifactId = 2, + ID_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetRequest* internal_default_instance() { + return reinterpret_cast( + &_GetRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(GetRequest* other); + friend void swap(GetRequest& a, GetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetRequest* 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 GetRequest& from); + void MergeFrom(const GetRequest& 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(GetRequest* 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 provenance = 1; + private: + bool has_provenance() const; + public: + void clear_provenance(); + static const int kProvenanceFieldNumber = 1; + const ::std::string& provenance() const; + void set_provenance(const ::std::string& value); + #if LANG_CXX11 + void set_provenance(::std::string&& value); + #endif + void set_provenance(const char* value); + void set_provenance(const char* value, size_t size); + ::std::string* mutable_provenance(); + ::std::string* release_provenance(); + void set_allocated_provenance(::std::string* provenance); + + // .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + bool has_artifact_id() const; + void clear_artifact_id(); + static const int kArtifactIdFieldNumber = 2; + const ::pb::lyft::datacatalog::ArtifactId& artifact_id() const; + ::pb::lyft::datacatalog::ArtifactId* release_artifact_id(); + ::pb::lyft::datacatalog::ArtifactId* mutable_artifact_id(); + void set_allocated_artifact_id(::pb::lyft::datacatalog::ArtifactId* artifact_id); + + void clear_id(); + IdCase id_case() const; + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GetRequest) + private: + class HasBitSetters; + void set_has_provenance(); + void set_has_artifact_id(); + + inline bool has_id() const; + inline void clear_has_id(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union IdUnion { + IdUnion() {} + ::google::protobuf::internal::ArenaStringPtr provenance_; + ::pb::lyft::datacatalog::ArtifactId* artifact_id_; + } id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class GetResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.GetResponse) */ { + public: + GetResponse(); + virtual ~GetResponse(); + + GetResponse(const GetResponse& from); + + inline GetResponse& operator=(const GetResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetResponse(GetResponse&& from) noexcept + : GetResponse() { + *this = ::std::move(from); + } + + inline GetResponse& operator=(GetResponse&& 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 GetResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetResponse* internal_default_instance() { + return reinterpret_cast( + &_GetResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(GetResponse* other); + friend void swap(GetResponse& a, GetResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetResponse* 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 GetResponse& from); + void MergeFrom(const GetResponse& 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(GetResponse* 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 ------------------------------------------------------- + + // .pb.lyft.datacatalog.Artifact artifact = 1; + bool has_artifact() const; + void clear_artifact(); + static const int kArtifactFieldNumber = 1; + const ::pb::lyft::datacatalog::Artifact& artifact() const; + ::pb::lyft::datacatalog::Artifact* release_artifact(); + ::pb::lyft::datacatalog::Artifact* mutable_artifact(); + void set_allocated_artifact(::pb::lyft::datacatalog::Artifact* artifact); + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GetResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::pb::lyft::datacatalog::Artifact* artifact_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class IntFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.IntFilter) */ { + public: + IntFilter(); + virtual ~IntFilter(); + + IntFilter(const IntFilter& from); + + inline IntFilter& operator=(const IntFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + IntFilter(IntFilter&& from) noexcept + : IntFilter() { + *this = ::std::move(from); + } + + inline IntFilter& operator=(IntFilter&& 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 IntFilter& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IntFilter* internal_default_instance() { + return reinterpret_cast( + &_IntFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(IntFilter* other); + friend void swap(IntFilter& a, IntFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline IntFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + IntFilter* 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 IntFilter& from); + void MergeFrom(const IntFilter& 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(IntFilter* 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 ------------------------------------------------------- + + // int64 value = 1; + void clear_value(); + static const int kValueFieldNumber = 1; + ::google::protobuf::int64 value() const; + void set_value(::google::protobuf::int64 value); + + // .pb.lyft.datacatalog.QueryOperator operator = 2; + void clear_operator_(); + static const int kOperatorFieldNumber = 2; + ::pb::lyft::datacatalog::QueryOperator operator_() const; + void set_operator_(::pb::lyft::datacatalog::QueryOperator value); + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.IntFilter) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int64 value_; + int operator__; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class IntRangeFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.IntRangeFilter) */ { + public: + IntRangeFilter(); + virtual ~IntRangeFilter(); + + IntRangeFilter(const IntRangeFilter& from); + + inline IntRangeFilter& operator=(const IntRangeFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + IntRangeFilter(IntRangeFilter&& from) noexcept + : IntRangeFilter() { + *this = ::std::move(from); + } + + inline IntRangeFilter& operator=(IntRangeFilter&& 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 IntRangeFilter& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IntRangeFilter* internal_default_instance() { + return reinterpret_cast( + &_IntRangeFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(IntRangeFilter* other); + friend void swap(IntRangeFilter& a, IntRangeFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline IntRangeFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + IntRangeFilter* 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 IntRangeFilter& from); + void MergeFrom(const IntRangeFilter& 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(IntRangeFilter* 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 ------------------------------------------------------- + + // int64 min = 1; + void clear_min(); + static const int kMinFieldNumber = 1; + ::google::protobuf::int64 min() const; + void set_min(::google::protobuf::int64 value); + + // int64 max = 2; + void clear_max(); + static const int kMaxFieldNumber = 2; + ::google::protobuf::int64 max() const; + void set_max(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.IntRangeFilter) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int64 min_; + ::google::protobuf::int64 max_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class IntQueryKey final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.IntQueryKey) */ { + public: + IntQueryKey(); + virtual ~IntQueryKey(); + + IntQueryKey(const IntQueryKey& from); + + inline IntQueryKey& operator=(const IntQueryKey& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + IntQueryKey(IntQueryKey&& from) noexcept + : IntQueryKey() { + *this = ::std::move(from); + } + + inline IntQueryKey& operator=(IntQueryKey&& 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 IntQueryKey& default_instance(); + + enum FilterCase { + kVal = 1, + kRange = 2, + FILTER_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IntQueryKey* internal_default_instance() { + return reinterpret_cast( + &_IntQueryKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(IntQueryKey* other); + friend void swap(IntQueryKey& a, IntQueryKey& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline IntQueryKey* New() const final { + return CreateMaybeMessage(nullptr); + } + + IntQueryKey* 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 IntQueryKey& from); + void MergeFrom(const IntQueryKey& 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(IntQueryKey* 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 ------------------------------------------------------- + + // .pb.lyft.datacatalog.IntFilter val = 1; + bool has_val() const; + void clear_val(); + static const int kValFieldNumber = 1; + const ::pb::lyft::datacatalog::IntFilter& val() const; + ::pb::lyft::datacatalog::IntFilter* release_val(); + ::pb::lyft::datacatalog::IntFilter* mutable_val(); + void set_allocated_val(::pb::lyft::datacatalog::IntFilter* val); + + // .pb.lyft.datacatalog.IntRangeFilter range = 2; + bool has_range() const; + void clear_range(); + static const int kRangeFieldNumber = 2; + const ::pb::lyft::datacatalog::IntRangeFilter& range() const; + ::pb::lyft::datacatalog::IntRangeFilter* release_range(); + ::pb::lyft::datacatalog::IntRangeFilter* mutable_range(); + void set_allocated_range(::pb::lyft::datacatalog::IntRangeFilter* range); + + void clear_filter(); + FilterCase filter_case() const; + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.IntQueryKey) + private: + class HasBitSetters; + void set_has_val(); + void set_has_range(); + + inline bool has_filter() const; + inline void clear_has_filter(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union FilterUnion { + FilterUnion() {} + ::pb::lyft::datacatalog::IntFilter* val_; + ::pb::lyft::datacatalog::IntRangeFilter* range_; + } filter_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class QueryRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.QueryRequest) */ { + public: + QueryRequest(); + virtual ~QueryRequest(); + + QueryRequest(const QueryRequest& from); + + inline QueryRequest& operator=(const QueryRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + QueryRequest(QueryRequest&& from) noexcept + : QueryRequest() { + *this = ::std::move(from); + } + + inline QueryRequest& operator=(QueryRequest&& 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 QueryRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const QueryRequest* internal_default_instance() { + return reinterpret_cast( + &_QueryRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(QueryRequest* other); + friend void swap(QueryRequest& a, QueryRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline QueryRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + QueryRequest* 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 QueryRequest& from); + void MergeFrom(const QueryRequest& 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(QueryRequest* 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 name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string version = 2; + void clear_version(); + static const int kVersionFieldNumber = 2; + const ::std::string& version() const; + void set_version(const ::std::string& value); + #if LANG_CXX11 + void set_version(::std::string&& value); + #endif + 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 reference_id = 5; + void clear_reference_id(); + static const int kReferenceIdFieldNumber = 5; + const ::std::string& reference_id() const; + void set_reference_id(const ::std::string& value); + #if LANG_CXX11 + void set_reference_id(::std::string&& value); + #endif + void set_reference_id(const char* value); + void set_reference_id(const char* value, size_t size); + ::std::string* mutable_reference_id(); + ::std::string* release_reference_id(); + void set_allocated_reference_id(::std::string* reference_id); + + // .pb.lyft.datacatalog.IntQueryKey revision = 3; + bool has_revision() const; + void clear_revision(); + static const int kRevisionFieldNumber = 3; + const ::pb::lyft::datacatalog::IntQueryKey& revision() const; + ::pb::lyft::datacatalog::IntQueryKey* release_revision(); + ::pb::lyft::datacatalog::IntQueryKey* mutable_revision(); + void set_allocated_revision(::pb::lyft::datacatalog::IntQueryKey* revision); + + // int64 created_at = 4; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 4; + ::google::protobuf::int64 created_at() const; + void set_created_at(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.QueryRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr version_; + ::google::protobuf::internal::ArenaStringPtr reference_id_; + ::pb::lyft::datacatalog::IntQueryKey* revision_; + ::google::protobuf::int64 created_at_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class QueryResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.QueryResponse) */ { + public: + QueryResponse(); + virtual ~QueryResponse(); + + QueryResponse(const QueryResponse& from); + + inline QueryResponse& operator=(const QueryResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + QueryResponse(QueryResponse&& from) noexcept + : QueryResponse() { + *this = ::std::move(from); + } + + inline QueryResponse& operator=(QueryResponse&& 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 QueryResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const QueryResponse* internal_default_instance() { + return reinterpret_cast( + &_QueryResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(QueryResponse* other); + friend void swap(QueryResponse& a, QueryResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline QueryResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + QueryResponse* 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 QueryResponse& from); + void MergeFrom(const QueryResponse& 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(QueryResponse* 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 ------------------------------------------------------- + + // repeated .pb.lyft.datacatalog.Artifact artifact = 1; + int artifact_size() const; + void clear_artifact(); + static const int kArtifactFieldNumber = 1; + ::pb::lyft::datacatalog::Artifact* mutable_artifact(int index); + ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Artifact >* + mutable_artifact(); + const ::pb::lyft::datacatalog::Artifact& artifact(int index) const; + ::pb::lyft::datacatalog::Artifact* add_artifact(); + const ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Artifact >& + artifact() const; + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.QueryResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Artifact > artifact_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.CreateRequest) */ { + public: + CreateRequest(); + virtual ~CreateRequest(); + + CreateRequest(const CreateRequest& from); + + inline CreateRequest& operator=(const CreateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateRequest(CreateRequest&& from) noexcept + : CreateRequest() { + *this = ::std::move(from); + } + + inline CreateRequest& operator=(CreateRequest&& 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 CreateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(CreateRequest* other); + friend void swap(CreateRequest& a, CreateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateRequest* 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 CreateRequest& from); + void MergeFrom(const CreateRequest& 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(CreateRequest* 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 ------------------------------------------------------- + + // repeated .pb.lyft.datacatalog.Parameter outputs = 4; + int outputs_size() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 4; + ::pb::lyft::datacatalog::Parameter* mutable_outputs(int index); + ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >* + mutable_outputs(); + const ::pb::lyft::datacatalog::Parameter& outputs(int index) const; + ::pb::lyft::datacatalog::Parameter* add_outputs(); + const ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >& + outputs() const; + + // string reference_id = 2; + void clear_reference_id(); + static const int kReferenceIdFieldNumber = 2; + const ::std::string& reference_id() const; + void set_reference_id(const ::std::string& value); + #if LANG_CXX11 + void set_reference_id(::std::string&& value); + #endif + void set_reference_id(const char* value); + void set_reference_id(const char* value, size_t size); + ::std::string* mutable_reference_id(); + ::std::string* release_reference_id(); + void set_allocated_reference_id(::std::string* reference_id); + + // .pb.lyft.datacatalog.ArtifactId ref = 1; + bool has_ref() const; + void clear_ref(); + static const int kRefFieldNumber = 1; + const ::pb::lyft::datacatalog::ArtifactId& ref() const; + ::pb::lyft::datacatalog::ArtifactId* release_ref(); + ::pb::lyft::datacatalog::ArtifactId* mutable_ref(); + void set_allocated_ref(::pb::lyft::datacatalog::ArtifactId* ref); + + // int64 revision = 3; + void clear_revision(); + static const int kRevisionFieldNumber = 3; + ::google::protobuf::int64 revision() const; + void set_revision(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.CreateRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter > outputs_; + ::google::protobuf::internal::ArenaStringPtr reference_id_; + ::pb::lyft::datacatalog::ArtifactId* ref_; + ::google::protobuf::int64 revision_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.CreateResponse) */ { + public: + CreateResponse(); + virtual ~CreateResponse(); + + CreateResponse(const CreateResponse& from); + + inline CreateResponse& operator=(const CreateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateResponse(CreateResponse&& from) noexcept + : CreateResponse() { + *this = ::std::move(from); + } + + inline CreateResponse& operator=(CreateResponse&& 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 CreateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(CreateResponse* other); + friend void swap(CreateResponse& a, CreateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateResponse* 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 CreateResponse& from); + void MergeFrom(const CreateResponse& 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(CreateResponse* 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 CreateResponse_Status Status; + static const Status ALREADY_EXISTS = + CreateResponse_Status_ALREADY_EXISTS; + static const Status CREATED = + CreateResponse_Status_CREATED; + static inline bool Status_IsValid(int value) { + return CreateResponse_Status_IsValid(value); + } + static const Status Status_MIN = + CreateResponse_Status_Status_MIN; + static const Status Status_MAX = + CreateResponse_Status_Status_MAX; + static const int Status_ARRAYSIZE = + CreateResponse_Status_Status_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Status_descriptor() { + return CreateResponse_Status_descriptor(); + } + static inline const ::std::string& Status_Name(Status value) { + return CreateResponse_Status_Name(value); + } + static inline bool Status_Parse(const ::std::string& name, + Status* value) { + return CreateResponse_Status_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // .pb.lyft.datacatalog.Artifact artifact = 1; + bool has_artifact() const; + void clear_artifact(); + static const int kArtifactFieldNumber = 1; + const ::pb::lyft::datacatalog::Artifact& artifact() const; + ::pb::lyft::datacatalog::Artifact* release_artifact(); + ::pb::lyft::datacatalog::Artifact* mutable_artifact(); + void set_allocated_artifact(::pb::lyft::datacatalog::Artifact* artifact); + + // .pb.lyft.datacatalog.CreateResponse.Status status = 2; + void clear_status(); + static const int kStatusFieldNumber = 2; + ::pb::lyft::datacatalog::CreateResponse_Status status() const; + void set_status(::pb::lyft::datacatalog::CreateResponse_Status value); + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.CreateResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::pb::lyft::datacatalog::Artifact* artifact_; + int status_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class GenerateProvenanceRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.GenerateProvenanceRequest) */ { + public: + GenerateProvenanceRequest(); + virtual ~GenerateProvenanceRequest(); + + GenerateProvenanceRequest(const GenerateProvenanceRequest& from); + + inline GenerateProvenanceRequest& operator=(const GenerateProvenanceRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GenerateProvenanceRequest(GenerateProvenanceRequest&& from) noexcept + : GenerateProvenanceRequest() { + *this = ::std::move(from); + } + + inline GenerateProvenanceRequest& operator=(GenerateProvenanceRequest&& 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 GenerateProvenanceRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GenerateProvenanceRequest* internal_default_instance() { + return reinterpret_cast( + &_GenerateProvenanceRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(GenerateProvenanceRequest* other); + friend void swap(GenerateProvenanceRequest& a, GenerateProvenanceRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GenerateProvenanceRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + GenerateProvenanceRequest* 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 GenerateProvenanceRequest& from); + void MergeFrom(const GenerateProvenanceRequest& 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(GenerateProvenanceRequest* 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 ------------------------------------------------------- + + // .pb.lyft.datacatalog.ArtifactId id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::pb::lyft::datacatalog::ArtifactId& id() const; + ::pb::lyft::datacatalog::ArtifactId* release_id(); + ::pb::lyft::datacatalog::ArtifactId* mutable_id(); + void set_allocated_id(::pb::lyft::datacatalog::ArtifactId* id); + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GenerateProvenanceRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::pb::lyft::datacatalog::ArtifactId* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class GenerateProvenanceResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.GenerateProvenanceResponse) */ { + public: + GenerateProvenanceResponse(); + virtual ~GenerateProvenanceResponse(); + + GenerateProvenanceResponse(const GenerateProvenanceResponse& from); + + inline GenerateProvenanceResponse& operator=(const GenerateProvenanceResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GenerateProvenanceResponse(GenerateProvenanceResponse&& from) noexcept + : GenerateProvenanceResponse() { + *this = ::std::move(from); + } + + inline GenerateProvenanceResponse& operator=(GenerateProvenanceResponse&& 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 GenerateProvenanceResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GenerateProvenanceResponse* internal_default_instance() { + return reinterpret_cast( + &_GenerateProvenanceResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + void Swap(GenerateProvenanceResponse* other); + friend void swap(GenerateProvenanceResponse& a, GenerateProvenanceResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GenerateProvenanceResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + GenerateProvenanceResponse* 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 GenerateProvenanceResponse& from); + void MergeFrom(const GenerateProvenanceResponse& 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(GenerateProvenanceResponse* 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 provenance = 1; + void clear_provenance(); + static const int kProvenanceFieldNumber = 1; + const ::std::string& provenance() const; + void set_provenance(const ::std::string& value); + #if LANG_CXX11 + void set_provenance(::std::string&& value); + #endif + void set_provenance(const char* value); + void set_provenance(const char* value, size_t size); + ::std::string* mutable_provenance(); + ::std::string* release_provenance(); + void set_allocated_provenance(::std::string* provenance); + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GenerateProvenanceResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr provenance_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Parameter + +// string name = 1; +inline void Parameter::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Parameter::name() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.Parameter.name) + return name_.GetNoArena(); +} +inline void Parameter::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.Parameter.name) +} +#if LANG_CXX11 +inline void Parameter::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.Parameter.name) +} +#endif +inline void Parameter::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:pb.lyft.datacatalog.Parameter.name) +} +inline void Parameter::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.Parameter.name) +} +inline ::std::string* Parameter::mutable_name() { + + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.Parameter.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Parameter::release_name() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.Parameter.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Parameter::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.Parameter.name) +} + +// string value = 2; +inline void Parameter::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Parameter::value() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.Parameter.value) + return value_.GetNoArena(); +} +inline void Parameter::set_value(const ::std::string& value) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.Parameter.value) +} +#if LANG_CXX11 +inline void Parameter::set_value(::std::string&& value) { + + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.Parameter.value) +} +#endif +inline void Parameter::set_value(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:pb.lyft.datacatalog.Parameter.value) +} +inline void Parameter::set_value(const char* value, size_t size) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.Parameter.value) +} +inline ::std::string* Parameter::mutable_value() { + + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.Parameter.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Parameter::release_value() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.Parameter.value) + + return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Parameter::set_allocated_value(::std::string* value) { + if (value != nullptr) { + + } else { + + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.Parameter.value) +} + +// ------------------------------------------------------------------- + +// Artifact + +// string provenance = 1; +inline void Artifact::clear_provenance() { + provenance_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Artifact::provenance() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.Artifact.provenance) + return provenance_.GetNoArena(); +} +inline void Artifact::set_provenance(const ::std::string& value) { + + provenance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.Artifact.provenance) +} +#if LANG_CXX11 +inline void Artifact::set_provenance(::std::string&& value) { + + provenance_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.Artifact.provenance) +} +#endif +inline void Artifact::set_provenance(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + provenance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:pb.lyft.datacatalog.Artifact.provenance) +} +inline void Artifact::set_provenance(const char* value, size_t size) { + + provenance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.Artifact.provenance) +} +inline ::std::string* Artifact::mutable_provenance() { + + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.Artifact.provenance) + return provenance_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Artifact::release_provenance() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.Artifact.provenance) + + return provenance_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Artifact::set_allocated_provenance(::std::string* provenance) { + if (provenance != nullptr) { + + } else { + + } + provenance_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), provenance); + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.Artifact.provenance) +} + +// string name = 2; +inline void Artifact::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Artifact::name() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.Artifact.name) + return name_.GetNoArena(); +} +inline void Artifact::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.Artifact.name) +} +#if LANG_CXX11 +inline void Artifact::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.Artifact.name) +} +#endif +inline void Artifact::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:pb.lyft.datacatalog.Artifact.name) +} +inline void Artifact::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.Artifact.name) +} +inline ::std::string* Artifact::mutable_name() { + + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.Artifact.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Artifact::release_name() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.Artifact.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Artifact::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.Artifact.name) +} + +// string version = 3; +inline void Artifact::clear_version() { + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Artifact::version() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.Artifact.version) + return version_.GetNoArena(); +} +inline void Artifact::set_version(const ::std::string& value) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.Artifact.version) +} +#if LANG_CXX11 +inline void Artifact::set_version(::std::string&& value) { + + version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.Artifact.version) +} +#endif +inline void Artifact::set_version(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:pb.lyft.datacatalog.Artifact.version) +} +inline void Artifact::set_version(const char* value, size_t size) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.Artifact.version) +} +inline ::std::string* Artifact::mutable_version() { + + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.Artifact.version) + return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Artifact::release_version() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.Artifact.version) + + return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Artifact::set_allocated_version(::std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.Artifact.version) +} + +// int64 revision = 4; +inline void Artifact::clear_revision() { + revision_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 Artifact::revision() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.Artifact.revision) + return revision_; +} +inline void Artifact::set_revision(::google::protobuf::int64 value) { + + revision_ = value; + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.Artifact.revision) +} + +// int64 created_at = 5; +inline void Artifact::clear_created_at() { + created_at_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 Artifact::created_at() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.Artifact.created_at) + return created_at_; +} +inline void Artifact::set_created_at(::google::protobuf::int64 value) { + + created_at_ = value; + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.Artifact.created_at) +} + +// string reference_id = 6; +inline void Artifact::clear_reference_id() { + reference_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Artifact::reference_id() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.Artifact.reference_id) + return reference_id_.GetNoArena(); +} +inline void Artifact::set_reference_id(const ::std::string& value) { + + reference_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.Artifact.reference_id) +} +#if LANG_CXX11 +inline void Artifact::set_reference_id(::std::string&& value) { + + reference_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.Artifact.reference_id) +} +#endif +inline void Artifact::set_reference_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + reference_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:pb.lyft.datacatalog.Artifact.reference_id) +} +inline void Artifact::set_reference_id(const char* value, size_t size) { + + reference_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.Artifact.reference_id) +} +inline ::std::string* Artifact::mutable_reference_id() { + + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.Artifact.reference_id) + return reference_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Artifact::release_reference_id() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.Artifact.reference_id) + + return reference_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Artifact::set_allocated_reference_id(::std::string* reference_id) { + if (reference_id != nullptr) { + + } else { + + } + reference_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reference_id); + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.Artifact.reference_id) +} + +// repeated .pb.lyft.datacatalog.Parameter inputs = 7; +inline int Artifact::inputs_size() const { + return inputs_.size(); +} +inline void Artifact::clear_inputs() { + inputs_.Clear(); +} +inline ::pb::lyft::datacatalog::Parameter* Artifact::mutable_inputs(int index) { + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.Artifact.inputs) + return inputs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >* +Artifact::mutable_inputs() { + // @@protoc_insertion_point(field_mutable_list:pb.lyft.datacatalog.Artifact.inputs) + return &inputs_; +} +inline const ::pb::lyft::datacatalog::Parameter& Artifact::inputs(int index) const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.Artifact.inputs) + return inputs_.Get(index); +} +inline ::pb::lyft::datacatalog::Parameter* Artifact::add_inputs() { + // @@protoc_insertion_point(field_add:pb.lyft.datacatalog.Artifact.inputs) + return inputs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >& +Artifact::inputs() const { + // @@protoc_insertion_point(field_list:pb.lyft.datacatalog.Artifact.inputs) + return inputs_; +} + +// repeated .pb.lyft.datacatalog.Parameter outputs = 8; +inline int Artifact::outputs_size() const { + return outputs_.size(); +} +inline void Artifact::clear_outputs() { + outputs_.Clear(); +} +inline ::pb::lyft::datacatalog::Parameter* Artifact::mutable_outputs(int index) { + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.Artifact.outputs) + return outputs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >* +Artifact::mutable_outputs() { + // @@protoc_insertion_point(field_mutable_list:pb.lyft.datacatalog.Artifact.outputs) + return &outputs_; +} +inline const ::pb::lyft::datacatalog::Parameter& Artifact::outputs(int index) const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.Artifact.outputs) + return outputs_.Get(index); +} +inline ::pb::lyft::datacatalog::Parameter* Artifact::add_outputs() { + // @@protoc_insertion_point(field_add:pb.lyft.datacatalog.Artifact.outputs) + return outputs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >& +Artifact::outputs() const { + // @@protoc_insertion_point(field_list:pb.lyft.datacatalog.Artifact.outputs) + return outputs_; +} + +// ------------------------------------------------------------------- + +// ArtifactId + +// string name = 1; +inline void ArtifactId::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ArtifactId::name() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.ArtifactId.name) + return name_.GetNoArena(); +} +inline void ArtifactId::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.ArtifactId.name) +} +#if LANG_CXX11 +inline void ArtifactId::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.ArtifactId.name) +} +#endif +inline void ArtifactId::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:pb.lyft.datacatalog.ArtifactId.name) +} +inline void ArtifactId::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.ArtifactId.name) +} +inline ::std::string* ArtifactId::mutable_name() { + + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.ArtifactId.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ArtifactId::release_name() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.ArtifactId.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ArtifactId::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.ArtifactId.name) +} + +// string version = 2; +inline void ArtifactId::clear_version() { + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ArtifactId::version() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.ArtifactId.version) + return version_.GetNoArena(); +} +inline void ArtifactId::set_version(const ::std::string& value) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.ArtifactId.version) +} +#if LANG_CXX11 +inline void ArtifactId::set_version(::std::string&& value) { + + version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.ArtifactId.version) +} +#endif +inline void ArtifactId::set_version(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:pb.lyft.datacatalog.ArtifactId.version) +} +inline void ArtifactId::set_version(const char* value, size_t size) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.ArtifactId.version) +} +inline ::std::string* ArtifactId::mutable_version() { + + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.ArtifactId.version) + return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ArtifactId::release_version() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.ArtifactId.version) + + return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ArtifactId::set_allocated_version(::std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.ArtifactId.version) +} + +// repeated .pb.lyft.datacatalog.Parameter inputs = 3; +inline int ArtifactId::inputs_size() const { + return inputs_.size(); +} +inline void ArtifactId::clear_inputs() { + inputs_.Clear(); +} +inline ::pb::lyft::datacatalog::Parameter* ArtifactId::mutable_inputs(int index) { + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.ArtifactId.inputs) + return inputs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >* +ArtifactId::mutable_inputs() { + // @@protoc_insertion_point(field_mutable_list:pb.lyft.datacatalog.ArtifactId.inputs) + return &inputs_; +} +inline const ::pb::lyft::datacatalog::Parameter& ArtifactId::inputs(int index) const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.ArtifactId.inputs) + return inputs_.Get(index); +} +inline ::pb::lyft::datacatalog::Parameter* ArtifactId::add_inputs() { + // @@protoc_insertion_point(field_add:pb.lyft.datacatalog.ArtifactId.inputs) + return inputs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >& +ArtifactId::inputs() const { + // @@protoc_insertion_point(field_list:pb.lyft.datacatalog.ArtifactId.inputs) + return inputs_; +} + +// ------------------------------------------------------------------- + +// GetRequest + +// string provenance = 1; +inline bool GetRequest::has_provenance() const { + return id_case() == kProvenance; +} +inline void GetRequest::set_has_provenance() { + _oneof_case_[0] = kProvenance; +} +inline void GetRequest::clear_provenance() { + if (has_provenance()) { + id_.provenance_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_id(); + } +} +inline const ::std::string& GetRequest::provenance() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.GetRequest.provenance) + if (has_provenance()) { + return id_.provenance_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void GetRequest::set_provenance(const ::std::string& value) { + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.GetRequest.provenance) + if (!has_provenance()) { + clear_id(); + set_has_provenance(); + id_.provenance_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + id_.provenance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.GetRequest.provenance) +} +#if LANG_CXX11 +inline void GetRequest::set_provenance(::std::string&& value) { + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.GetRequest.provenance) + if (!has_provenance()) { + clear_id(); + set_has_provenance(); + id_.provenance_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + id_.provenance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.GetRequest.provenance) +} +#endif +inline void GetRequest::set_provenance(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_provenance()) { + clear_id(); + set_has_provenance(); + id_.provenance_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + id_.provenance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:pb.lyft.datacatalog.GetRequest.provenance) +} +inline void GetRequest::set_provenance(const char* value, size_t size) { + if (!has_provenance()) { + clear_id(); + set_has_provenance(); + id_.provenance_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + id_.provenance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.GetRequest.provenance) +} +inline ::std::string* GetRequest::mutable_provenance() { + if (!has_provenance()) { + clear_id(); + set_has_provenance(); + id_.provenance_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.GetRequest.provenance) + return id_.provenance_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetRequest::release_provenance() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.GetRequest.provenance) + if (has_provenance()) { + clear_has_id(); + return id_.provenance_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void GetRequest::set_allocated_provenance(::std::string* provenance) { + if (has_id()) { + clear_id(); + } + if (provenance != nullptr) { + set_has_provenance(); + id_.provenance_.UnsafeSetDefault(provenance); + } + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.GetRequest.provenance) +} + +// .pb.lyft.datacatalog.ArtifactId artifact_id = 2; +inline bool GetRequest::has_artifact_id() const { + return id_case() == kArtifactId; +} +inline void GetRequest::set_has_artifact_id() { + _oneof_case_[0] = kArtifactId; +} +inline void GetRequest::clear_artifact_id() { + if (has_artifact_id()) { + delete id_.artifact_id_; + clear_has_id(); + } +} +inline ::pb::lyft::datacatalog::ArtifactId* GetRequest::release_artifact_id() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.GetRequest.artifact_id) + if (has_artifact_id()) { + clear_has_id(); + ::pb::lyft::datacatalog::ArtifactId* temp = id_.artifact_id_; + id_.artifact_id_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::pb::lyft::datacatalog::ArtifactId& GetRequest::artifact_id() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.GetRequest.artifact_id) + return has_artifact_id() + ? *id_.artifact_id_ + : *reinterpret_cast< ::pb::lyft::datacatalog::ArtifactId*>(&::pb::lyft::datacatalog::_ArtifactId_default_instance_); +} +inline ::pb::lyft::datacatalog::ArtifactId* GetRequest::mutable_artifact_id() { + if (!has_artifact_id()) { + clear_id(); + set_has_artifact_id(); + id_.artifact_id_ = CreateMaybeMessage< ::pb::lyft::datacatalog::ArtifactId >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.GetRequest.artifact_id) + return id_.artifact_id_; +} + +inline bool GetRequest::has_id() const { + return id_case() != ID_NOT_SET; +} +inline void GetRequest::clear_has_id() { + _oneof_case_[0] = ID_NOT_SET; +} +inline GetRequest::IdCase GetRequest::id_case() const { + return GetRequest::IdCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// GetResponse + +// .pb.lyft.datacatalog.Artifact artifact = 1; +inline bool GetResponse::has_artifact() const { + return this != internal_default_instance() && artifact_ != nullptr; +} +inline void GetResponse::clear_artifact() { + if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { + delete artifact_; + } + artifact_ = nullptr; +} +inline const ::pb::lyft::datacatalog::Artifact& GetResponse::artifact() const { + const ::pb::lyft::datacatalog::Artifact* p = artifact_; + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.GetResponse.artifact) + return p != nullptr ? *p : *reinterpret_cast( + &::pb::lyft::datacatalog::_Artifact_default_instance_); +} +inline ::pb::lyft::datacatalog::Artifact* GetResponse::release_artifact() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.GetResponse.artifact) + + ::pb::lyft::datacatalog::Artifact* temp = artifact_; + artifact_ = nullptr; + return temp; +} +inline ::pb::lyft::datacatalog::Artifact* GetResponse::mutable_artifact() { + + if (artifact_ == nullptr) { + auto* p = CreateMaybeMessage<::pb::lyft::datacatalog::Artifact>(GetArenaNoVirtual()); + artifact_ = p; + } + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.GetResponse.artifact) + return artifact_; +} +inline void GetResponse::set_allocated_artifact(::pb::lyft::datacatalog::Artifact* artifact) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete artifact_; + } + if (artifact) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + artifact = ::google::protobuf::internal::GetOwnedMessage( + message_arena, artifact, submessage_arena); + } + + } else { + + } + artifact_ = artifact; + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.GetResponse.artifact) +} + +// ------------------------------------------------------------------- + +// IntFilter + +// int64 value = 1; +inline void IntFilter::clear_value() { + value_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 IntFilter::value() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.IntFilter.value) + return value_; +} +inline void IntFilter::set_value(::google::protobuf::int64 value) { + + value_ = value; + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.IntFilter.value) +} + +// .pb.lyft.datacatalog.QueryOperator operator = 2; +inline void IntFilter::clear_operator_() { + operator__ = 0; +} +inline ::pb::lyft::datacatalog::QueryOperator IntFilter::operator_() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.IntFilter.operator) + return static_cast< ::pb::lyft::datacatalog::QueryOperator >(operator__); +} +inline void IntFilter::set_operator_(::pb::lyft::datacatalog::QueryOperator value) { + + operator__ = value; + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.IntFilter.operator) +} + +// ------------------------------------------------------------------- + +// IntRangeFilter + +// int64 min = 1; +inline void IntRangeFilter::clear_min() { + min_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 IntRangeFilter::min() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.IntRangeFilter.min) + return min_; +} +inline void IntRangeFilter::set_min(::google::protobuf::int64 value) { + + min_ = value; + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.IntRangeFilter.min) +} + +// int64 max = 2; +inline void IntRangeFilter::clear_max() { + max_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 IntRangeFilter::max() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.IntRangeFilter.max) + return max_; +} +inline void IntRangeFilter::set_max(::google::protobuf::int64 value) { + + max_ = value; + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.IntRangeFilter.max) +} + +// ------------------------------------------------------------------- + +// IntQueryKey + +// .pb.lyft.datacatalog.IntFilter val = 1; +inline bool IntQueryKey::has_val() const { + return filter_case() == kVal; +} +inline void IntQueryKey::set_has_val() { + _oneof_case_[0] = kVal; +} +inline void IntQueryKey::clear_val() { + if (has_val()) { + delete filter_.val_; + clear_has_filter(); + } +} +inline ::pb::lyft::datacatalog::IntFilter* IntQueryKey::release_val() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.IntQueryKey.val) + if (has_val()) { + clear_has_filter(); + ::pb::lyft::datacatalog::IntFilter* temp = filter_.val_; + filter_.val_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::pb::lyft::datacatalog::IntFilter& IntQueryKey::val() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.IntQueryKey.val) + return has_val() + ? *filter_.val_ + : *reinterpret_cast< ::pb::lyft::datacatalog::IntFilter*>(&::pb::lyft::datacatalog::_IntFilter_default_instance_); +} +inline ::pb::lyft::datacatalog::IntFilter* IntQueryKey::mutable_val() { + if (!has_val()) { + clear_filter(); + set_has_val(); + filter_.val_ = CreateMaybeMessage< ::pb::lyft::datacatalog::IntFilter >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.IntQueryKey.val) + return filter_.val_; +} + +// .pb.lyft.datacatalog.IntRangeFilter range = 2; +inline bool IntQueryKey::has_range() const { + return filter_case() == kRange; +} +inline void IntQueryKey::set_has_range() { + _oneof_case_[0] = kRange; +} +inline void IntQueryKey::clear_range() { + if (has_range()) { + delete filter_.range_; + clear_has_filter(); + } +} +inline ::pb::lyft::datacatalog::IntRangeFilter* IntQueryKey::release_range() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.IntQueryKey.range) + if (has_range()) { + clear_has_filter(); + ::pb::lyft::datacatalog::IntRangeFilter* temp = filter_.range_; + filter_.range_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::pb::lyft::datacatalog::IntRangeFilter& IntQueryKey::range() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.IntQueryKey.range) + return has_range() + ? *filter_.range_ + : *reinterpret_cast< ::pb::lyft::datacatalog::IntRangeFilter*>(&::pb::lyft::datacatalog::_IntRangeFilter_default_instance_); +} +inline ::pb::lyft::datacatalog::IntRangeFilter* IntQueryKey::mutable_range() { + if (!has_range()) { + clear_filter(); + set_has_range(); + filter_.range_ = CreateMaybeMessage< ::pb::lyft::datacatalog::IntRangeFilter >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.IntQueryKey.range) + return filter_.range_; +} + +inline bool IntQueryKey::has_filter() const { + return filter_case() != FILTER_NOT_SET; +} +inline void IntQueryKey::clear_has_filter() { + _oneof_case_[0] = FILTER_NOT_SET; +} +inline IntQueryKey::FilterCase IntQueryKey::filter_case() const { + return IntQueryKey::FilterCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// QueryRequest + +// string name = 1; +inline void QueryRequest::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& QueryRequest::name() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.QueryRequest.name) + return name_.GetNoArena(); +} +inline void QueryRequest::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.QueryRequest.name) +} +#if LANG_CXX11 +inline void QueryRequest::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.QueryRequest.name) +} +#endif +inline void QueryRequest::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:pb.lyft.datacatalog.QueryRequest.name) +} +inline void QueryRequest::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.QueryRequest.name) +} +inline ::std::string* QueryRequest::mutable_name() { + + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.QueryRequest.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* QueryRequest::release_name() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.QueryRequest.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void QueryRequest::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.QueryRequest.name) +} + +// string version = 2; +inline void QueryRequest::clear_version() { + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& QueryRequest::version() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.QueryRequest.version) + return version_.GetNoArena(); +} +inline void QueryRequest::set_version(const ::std::string& value) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.QueryRequest.version) +} +#if LANG_CXX11 +inline void QueryRequest::set_version(::std::string&& value) { + + version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.QueryRequest.version) +} +#endif +inline void QueryRequest::set_version(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:pb.lyft.datacatalog.QueryRequest.version) +} +inline void QueryRequest::set_version(const char* value, size_t size) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.QueryRequest.version) +} +inline ::std::string* QueryRequest::mutable_version() { + + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.QueryRequest.version) + return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* QueryRequest::release_version() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.QueryRequest.version) + + return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void QueryRequest::set_allocated_version(::std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.QueryRequest.version) +} + +// .pb.lyft.datacatalog.IntQueryKey revision = 3; +inline bool QueryRequest::has_revision() const { + return this != internal_default_instance() && revision_ != nullptr; +} +inline void QueryRequest::clear_revision() { + if (GetArenaNoVirtual() == nullptr && revision_ != nullptr) { + delete revision_; + } + revision_ = nullptr; +} +inline const ::pb::lyft::datacatalog::IntQueryKey& QueryRequest::revision() const { + const ::pb::lyft::datacatalog::IntQueryKey* p = revision_; + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.QueryRequest.revision) + return p != nullptr ? *p : *reinterpret_cast( + &::pb::lyft::datacatalog::_IntQueryKey_default_instance_); +} +inline ::pb::lyft::datacatalog::IntQueryKey* QueryRequest::release_revision() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.QueryRequest.revision) + + ::pb::lyft::datacatalog::IntQueryKey* temp = revision_; + revision_ = nullptr; + return temp; +} +inline ::pb::lyft::datacatalog::IntQueryKey* QueryRequest::mutable_revision() { + + if (revision_ == nullptr) { + auto* p = CreateMaybeMessage<::pb::lyft::datacatalog::IntQueryKey>(GetArenaNoVirtual()); + revision_ = p; + } + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.QueryRequest.revision) + return revision_; +} +inline void QueryRequest::set_allocated_revision(::pb::lyft::datacatalog::IntQueryKey* revision) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete revision_; + } + if (revision) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + revision = ::google::protobuf::internal::GetOwnedMessage( + message_arena, revision, submessage_arena); + } + + } else { + + } + revision_ = revision; + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.QueryRequest.revision) +} + +// int64 created_at = 4; +inline void QueryRequest::clear_created_at() { + created_at_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 QueryRequest::created_at() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.QueryRequest.created_at) + return created_at_; +} +inline void QueryRequest::set_created_at(::google::protobuf::int64 value) { + + created_at_ = value; + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.QueryRequest.created_at) +} + +// string reference_id = 5; +inline void QueryRequest::clear_reference_id() { + reference_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& QueryRequest::reference_id() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.QueryRequest.reference_id) + return reference_id_.GetNoArena(); +} +inline void QueryRequest::set_reference_id(const ::std::string& value) { + + reference_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.QueryRequest.reference_id) +} +#if LANG_CXX11 +inline void QueryRequest::set_reference_id(::std::string&& value) { + + reference_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.QueryRequest.reference_id) +} +#endif +inline void QueryRequest::set_reference_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + reference_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:pb.lyft.datacatalog.QueryRequest.reference_id) +} +inline void QueryRequest::set_reference_id(const char* value, size_t size) { + + reference_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.QueryRequest.reference_id) +} +inline ::std::string* QueryRequest::mutable_reference_id() { + + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.QueryRequest.reference_id) + return reference_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* QueryRequest::release_reference_id() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.QueryRequest.reference_id) + + return reference_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void QueryRequest::set_allocated_reference_id(::std::string* reference_id) { + if (reference_id != nullptr) { + + } else { + + } + reference_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reference_id); + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.QueryRequest.reference_id) +} + +// ------------------------------------------------------------------- + +// QueryResponse + +// repeated .pb.lyft.datacatalog.Artifact artifact = 1; +inline int QueryResponse::artifact_size() const { + return artifact_.size(); +} +inline void QueryResponse::clear_artifact() { + artifact_.Clear(); +} +inline ::pb::lyft::datacatalog::Artifact* QueryResponse::mutable_artifact(int index) { + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.QueryResponse.artifact) + return artifact_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Artifact >* +QueryResponse::mutable_artifact() { + // @@protoc_insertion_point(field_mutable_list:pb.lyft.datacatalog.QueryResponse.artifact) + return &artifact_; +} +inline const ::pb::lyft::datacatalog::Artifact& QueryResponse::artifact(int index) const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.QueryResponse.artifact) + return artifact_.Get(index); +} +inline ::pb::lyft::datacatalog::Artifact* QueryResponse::add_artifact() { + // @@protoc_insertion_point(field_add:pb.lyft.datacatalog.QueryResponse.artifact) + return artifact_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Artifact >& +QueryResponse::artifact() const { + // @@protoc_insertion_point(field_list:pb.lyft.datacatalog.QueryResponse.artifact) + return artifact_; +} + +// ------------------------------------------------------------------- + +// CreateRequest + +// .pb.lyft.datacatalog.ArtifactId ref = 1; +inline bool CreateRequest::has_ref() const { + return this != internal_default_instance() && ref_ != nullptr; +} +inline void CreateRequest::clear_ref() { + if (GetArenaNoVirtual() == nullptr && ref_ != nullptr) { + delete ref_; + } + ref_ = nullptr; +} +inline const ::pb::lyft::datacatalog::ArtifactId& CreateRequest::ref() const { + const ::pb::lyft::datacatalog::ArtifactId* p = ref_; + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.CreateRequest.ref) + return p != nullptr ? *p : *reinterpret_cast( + &::pb::lyft::datacatalog::_ArtifactId_default_instance_); +} +inline ::pb::lyft::datacatalog::ArtifactId* CreateRequest::release_ref() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.CreateRequest.ref) + + ::pb::lyft::datacatalog::ArtifactId* temp = ref_; + ref_ = nullptr; + return temp; +} +inline ::pb::lyft::datacatalog::ArtifactId* CreateRequest::mutable_ref() { + + if (ref_ == nullptr) { + auto* p = CreateMaybeMessage<::pb::lyft::datacatalog::ArtifactId>(GetArenaNoVirtual()); + ref_ = p; + } + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.CreateRequest.ref) + return ref_; +} +inline void CreateRequest::set_allocated_ref(::pb::lyft::datacatalog::ArtifactId* ref) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete ref_; + } + if (ref) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + ref = ::google::protobuf::internal::GetOwnedMessage( + message_arena, ref, submessage_arena); + } + + } else { + + } + ref_ = ref; + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.CreateRequest.ref) +} + +// string reference_id = 2; +inline void CreateRequest::clear_reference_id() { + reference_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CreateRequest::reference_id() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.CreateRequest.reference_id) + return reference_id_.GetNoArena(); +} +inline void CreateRequest::set_reference_id(const ::std::string& value) { + + reference_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.CreateRequest.reference_id) +} +#if LANG_CXX11 +inline void CreateRequest::set_reference_id(::std::string&& value) { + + reference_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.CreateRequest.reference_id) +} +#endif +inline void CreateRequest::set_reference_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + reference_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:pb.lyft.datacatalog.CreateRequest.reference_id) +} +inline void CreateRequest::set_reference_id(const char* value, size_t size) { + + reference_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.CreateRequest.reference_id) +} +inline ::std::string* CreateRequest::mutable_reference_id() { + + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.CreateRequest.reference_id) + return reference_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateRequest::release_reference_id() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.CreateRequest.reference_id) + + return reference_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateRequest::set_allocated_reference_id(::std::string* reference_id) { + if (reference_id != nullptr) { + + } else { + + } + reference_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reference_id); + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.CreateRequest.reference_id) +} + +// int64 revision = 3; +inline void CreateRequest::clear_revision() { + revision_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 CreateRequest::revision() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.CreateRequest.revision) + return revision_; +} +inline void CreateRequest::set_revision(::google::protobuf::int64 value) { + + revision_ = value; + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.CreateRequest.revision) +} + +// repeated .pb.lyft.datacatalog.Parameter outputs = 4; +inline int CreateRequest::outputs_size() const { + return outputs_.size(); +} +inline void CreateRequest::clear_outputs() { + outputs_.Clear(); +} +inline ::pb::lyft::datacatalog::Parameter* CreateRequest::mutable_outputs(int index) { + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.CreateRequest.outputs) + return outputs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >* +CreateRequest::mutable_outputs() { + // @@protoc_insertion_point(field_mutable_list:pb.lyft.datacatalog.CreateRequest.outputs) + return &outputs_; +} +inline const ::pb::lyft::datacatalog::Parameter& CreateRequest::outputs(int index) const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.CreateRequest.outputs) + return outputs_.Get(index); +} +inline ::pb::lyft::datacatalog::Parameter* CreateRequest::add_outputs() { + // @@protoc_insertion_point(field_add:pb.lyft.datacatalog.CreateRequest.outputs) + return outputs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >& +CreateRequest::outputs() const { + // @@protoc_insertion_point(field_list:pb.lyft.datacatalog.CreateRequest.outputs) + return outputs_; +} + +// ------------------------------------------------------------------- + +// CreateResponse + +// .pb.lyft.datacatalog.Artifact artifact = 1; +inline bool CreateResponse::has_artifact() const { + return this != internal_default_instance() && artifact_ != nullptr; +} +inline void CreateResponse::clear_artifact() { + if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { + delete artifact_; + } + artifact_ = nullptr; +} +inline const ::pb::lyft::datacatalog::Artifact& CreateResponse::artifact() const { + const ::pb::lyft::datacatalog::Artifact* p = artifact_; + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.CreateResponse.artifact) + return p != nullptr ? *p : *reinterpret_cast( + &::pb::lyft::datacatalog::_Artifact_default_instance_); +} +inline ::pb::lyft::datacatalog::Artifact* CreateResponse::release_artifact() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.CreateResponse.artifact) + + ::pb::lyft::datacatalog::Artifact* temp = artifact_; + artifact_ = nullptr; + return temp; +} +inline ::pb::lyft::datacatalog::Artifact* CreateResponse::mutable_artifact() { + + if (artifact_ == nullptr) { + auto* p = CreateMaybeMessage<::pb::lyft::datacatalog::Artifact>(GetArenaNoVirtual()); + artifact_ = p; + } + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.CreateResponse.artifact) + return artifact_; +} +inline void CreateResponse::set_allocated_artifact(::pb::lyft::datacatalog::Artifact* artifact) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete artifact_; + } + if (artifact) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + artifact = ::google::protobuf::internal::GetOwnedMessage( + message_arena, artifact, submessage_arena); + } + + } else { + + } + artifact_ = artifact; + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.CreateResponse.artifact) +} + +// .pb.lyft.datacatalog.CreateResponse.Status status = 2; +inline void CreateResponse::clear_status() { + status_ = 0; +} +inline ::pb::lyft::datacatalog::CreateResponse_Status CreateResponse::status() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.CreateResponse.status) + return static_cast< ::pb::lyft::datacatalog::CreateResponse_Status >(status_); +} +inline void CreateResponse::set_status(::pb::lyft::datacatalog::CreateResponse_Status value) { + + status_ = value; + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.CreateResponse.status) +} + +// ------------------------------------------------------------------- + +// GenerateProvenanceRequest + +// .pb.lyft.datacatalog.ArtifactId id = 1; +inline bool GenerateProvenanceRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline void GenerateProvenanceRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +inline const ::pb::lyft::datacatalog::ArtifactId& GenerateProvenanceRequest::id() const { + const ::pb::lyft::datacatalog::ArtifactId* p = id_; + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.GenerateProvenanceRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::pb::lyft::datacatalog::_ArtifactId_default_instance_); +} +inline ::pb::lyft::datacatalog::ArtifactId* GenerateProvenanceRequest::release_id() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.GenerateProvenanceRequest.id) + + ::pb::lyft::datacatalog::ArtifactId* temp = id_; + id_ = nullptr; + return temp; +} +inline ::pb::lyft::datacatalog::ArtifactId* GenerateProvenanceRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::pb::lyft::datacatalog::ArtifactId>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.GenerateProvenanceRequest.id) + return id_; +} +inline void GenerateProvenanceRequest::set_allocated_id(::pb::lyft::datacatalog::ArtifactId* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete id_; + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.GenerateProvenanceRequest.id) +} + +// ------------------------------------------------------------------- + +// GenerateProvenanceResponse + +// string provenance = 1; +inline void GenerateProvenanceResponse::clear_provenance() { + provenance_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GenerateProvenanceResponse::provenance() const { + // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.GenerateProvenanceResponse.provenance) + return provenance_.GetNoArena(); +} +inline void GenerateProvenanceResponse::set_provenance(const ::std::string& value) { + + provenance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.GenerateProvenanceResponse.provenance) +} +#if LANG_CXX11 +inline void GenerateProvenanceResponse::set_provenance(::std::string&& value) { + + provenance_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.GenerateProvenanceResponse.provenance) +} +#endif +inline void GenerateProvenanceResponse::set_provenance(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + provenance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:pb.lyft.datacatalog.GenerateProvenanceResponse.provenance) +} +inline void GenerateProvenanceResponse::set_provenance(const char* value, size_t size) { + + provenance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.GenerateProvenanceResponse.provenance) +} +inline ::std::string* GenerateProvenanceResponse::mutable_provenance() { + + // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.GenerateProvenanceResponse.provenance) + return provenance_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GenerateProvenanceResponse::release_provenance() { + // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.GenerateProvenanceResponse.provenance) + + return provenance_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GenerateProvenanceResponse::set_allocated_provenance(::std::string* provenance) { + if (provenance != nullptr) { + + } else { + + } + provenance_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), provenance); + // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.GenerateProvenanceResponse.provenance) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace datacatalog +} // namespace lyft +} // namespace pb + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::pb::lyft::datacatalog::CreateResponse_Status> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::pb::lyft::datacatalog::CreateResponse_Status>() { + return ::pb::lyft::datacatalog::CreateResponse_Status_descriptor(); +} +template <> struct is_proto_enum< ::pb::lyft::datacatalog::QueryOperator> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::pb::lyft::datacatalog::QueryOperator>() { + return ::pb::lyft::datacatalog::QueryOperator_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fdatacatalog_2fdatacatalog_2eproto diff --git a/flyteidl/gen/pb-java/pb/lyft/datacatalog/Datacatalog.java b/flyteidl/gen/pb-java/pb/lyft/datacatalog/Datacatalog.java new file mode 100644 index 000000000..0ae8a27ac --- /dev/null +++ b/flyteidl/gen/pb-java/pb/lyft/datacatalog/Datacatalog.java @@ -0,0 +1,12529 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/datacatalog/datacatalog.proto + +package pb.lyft.datacatalog; + +public final class Datacatalog { + private Datacatalog() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code pb.lyft.datacatalog.QueryOperator} + */ + public enum QueryOperator + implements com.google.protobuf.ProtocolMessageEnum { + /** + * EQUAL = 0; + */ + EQUAL(0), + /** + * GREATER_THAN = 1; + */ + GREATER_THAN(1), + /** + * LESSER_THAN = 2; + */ + LESSER_THAN(2), + UNRECOGNIZED(-1), + ; + + /** + * EQUAL = 0; + */ + public static final int EQUAL_VALUE = 0; + /** + * GREATER_THAN = 1; + */ + public static final int GREATER_THAN_VALUE = 1; + /** + * LESSER_THAN = 2; + */ + public static final int LESSER_THAN_VALUE = 2; + + + 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 QueryOperator valueOf(int value) { + return forNumber(value); + } + + public static QueryOperator forNumber(int value) { + switch (value) { + case 0: return EQUAL; + case 1: return GREATER_THAN; + case 2: return LESSER_THAN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + QueryOperator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public QueryOperator findValueByNumber(int number) { + return QueryOperator.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 pb.lyft.datacatalog.Datacatalog.getDescriptor().getEnumTypes().get(0); + } + + private static final QueryOperator[] VALUES = values(); + + public static QueryOperator 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 QueryOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:pb.lyft.datacatalog.QueryOperator) + } + + public interface ParameterOrBuilder extends + // @@protoc_insertion_point(interface_extends:pb.lyft.datacatalog.Parameter) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + */ + java.lang.String getName(); + /** + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string value = 2; + */ + java.lang.String getValue(); + /** + * string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code pb.lyft.datacatalog.Parameter} + */ + public static final class Parameter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pb.lyft.datacatalog.Parameter) + ParameterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Parameter.newBuilder() to construct. + private Parameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Parameter() { + name_ = ""; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Parameter( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + 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 pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_Parameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.Parameter.class, pb.lyft.datacatalog.Datacatalog.Parameter.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + /** + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + 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 pb.lyft.datacatalog.Datacatalog.Parameter)) { + return super.equals(obj); + } + pb.lyft.datacatalog.Datacatalog.Parameter other = (pb.lyft.datacatalog.Datacatalog.Parameter) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pb.lyft.datacatalog.Datacatalog.Parameter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.Parameter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.Parameter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.Parameter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.Parameter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.Parameter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.Parameter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.Parameter 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 pb.lyft.datacatalog.Datacatalog.Parameter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.Parameter 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 pb.lyft.datacatalog.Datacatalog.Parameter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.Parameter 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(pb.lyft.datacatalog.Datacatalog.Parameter 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 pb.lyft.datacatalog.Parameter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pb.lyft.datacatalog.Parameter) + pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_Parameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.Parameter.class, pb.lyft.datacatalog.Datacatalog.Parameter.Builder.class); + } + + // Construct using pb.lyft.datacatalog.Datacatalog.Parameter.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(); + name_ = ""; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_Parameter_descriptor; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.Parameter getDefaultInstanceForType() { + return pb.lyft.datacatalog.Datacatalog.Parameter.getDefaultInstance(); + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.Parameter build() { + pb.lyft.datacatalog.Datacatalog.Parameter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.Parameter buildPartial() { + pb.lyft.datacatalog.Datacatalog.Parameter result = new pb.lyft.datacatalog.Datacatalog.Parameter(this); + result.name_ = name_; + result.value_ = value_; + 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 pb.lyft.datacatalog.Datacatalog.Parameter) { + return mergeFrom((pb.lyft.datacatalog.Datacatalog.Parameter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pb.lyft.datacatalog.Datacatalog.Parameter other) { + if (other == pb.lyft.datacatalog.Datacatalog.Parameter.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + 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 { + pb.lyft.datacatalog.Datacatalog.Parameter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (pb.lyft.datacatalog.Datacatalog.Parameter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * string value = 2; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * string value = 2; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = 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:pb.lyft.datacatalog.Parameter) + } + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.Parameter) + private static final pb.lyft.datacatalog.Datacatalog.Parameter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pb.lyft.datacatalog.Datacatalog.Parameter(); + } + + public static pb.lyft.datacatalog.Datacatalog.Parameter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Parameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Parameter(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 pb.lyft.datacatalog.Datacatalog.Parameter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ArtifactOrBuilder extends + // @@protoc_insertion_point(interface_extends:pb.lyft.datacatalog.Artifact) + com.google.protobuf.MessageOrBuilder { + + /** + * string provenance = 1; + */ + java.lang.String getProvenance(); + /** + * string provenance = 1; + */ + com.google.protobuf.ByteString + getProvenanceBytes(); + + /** + * string name = 2; + */ + java.lang.String getName(); + /** + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string version = 3; + */ + java.lang.String getVersion(); + /** + * string version = 3; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+     * strictly increasing value set by users. users can do range query on this attribute.
+     * 
+ * + * int64 revision = 4; + */ + long getRevision(); + + /** + *
+     * the time when discovery service received the request.
+     * 
+ * + * int64 created_at = 5; + */ + long getCreatedAt(); + + /** + *
+     * this could be a workflow runid or something that ties it data elsewhere
+     * 
+ * + * string reference_id = 6; + */ + java.lang.String getReferenceId(); + /** + *
+     * this could be a workflow runid or something that ties it data elsewhere
+     * 
+ * + * string reference_id = 6; + */ + com.google.protobuf.ByteString + getReferenceIdBytes(); + + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + java.util.List + getInputsList(); + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + pb.lyft.datacatalog.Datacatalog.Parameter getInputs(int index); + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + int getInputsCount(); + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + java.util.List + getInputsOrBuilderList(); + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder getInputsOrBuilder( + int index); + + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + java.util.List + getOutputsList(); + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + pb.lyft.datacatalog.Datacatalog.Parameter getOutputs(int index); + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + int getOutputsCount(); + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + java.util.List + getOutputsOrBuilderList(); + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder getOutputsOrBuilder( + int index); + } + /** + *
+   * Before jumping to message definition, lets go over the expected flow-
+   *   An Artifact represents an unit-of-work identified by (task, version, inputs). This is
+   *   encoded as unique hash for faster queries(called provenance). An artifact is persisted with some other
+   *   attributes (revision, createdAt, reference_id, outputs).
+   *   Only Discovery service knows about the hashing algorithm; one can use the closure (task, version, inputs)
+   *   to query an artifact if it doesnt have the provenance value.
+   *   Before starting the work on a task, programming-model first checks if the task has been done.
+   *     Request:   GET (task, version, inputs)
+   *     Response:  (Exists, Artifact) or (NotFound, nil)
+   *   if not found, Task executor goes ahead with the execution and at the end of execution creates a new entry in
+   *   the discovery service
+   *     Request:  CREATE (task, version, inputs) + (revision, reference_id, outputs)
+   *     Response: (Exists, Artifact) or (Created, Artifact)
+   *   One can also Query all the artifacts by querying any subset of properties.
+   * Message Artifact represents the complete information of an artifact- field that unique define the artifact +
+   * properties.
+   * Message ArtifactInternal is our storage model where we create an additional derived column for faster queries.
+   * Message ArtifactId only represents field that uniquely define the artifact.
+   * 
+ * + * Protobuf type {@code pb.lyft.datacatalog.Artifact} + */ + public static final class Artifact extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pb.lyft.datacatalog.Artifact) + ArtifactOrBuilder { + private static final long serialVersionUID = 0L; + // Use Artifact.newBuilder() to construct. + private Artifact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Artifact() { + provenance_ = ""; + name_ = ""; + version_ = ""; + referenceId_ = ""; + inputs_ = java.util.Collections.emptyList(); + outputs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Artifact( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + provenance_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 32: { + + revision_ = input.readInt64(); + break; + } + case 40: { + + createdAt_ = input.readInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + referenceId_ = s; + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { + inputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + inputs_.add( + input.readMessage(pb.lyft.datacatalog.Datacatalog.Parameter.parser(), extensionRegistry)); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000080) != 0)) { + outputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + outputs_.add( + input.readMessage(pb.lyft.datacatalog.Datacatalog.Parameter.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000040) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + } + if (((mutable_bitField0_ & 0x00000080) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_Artifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_Artifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.Artifact.class, pb.lyft.datacatalog.Datacatalog.Artifact.Builder.class); + } + + private int bitField0_; + public static final int PROVENANCE_FIELD_NUMBER = 1; + private volatile java.lang.Object provenance_; + /** + * string provenance = 1; + */ + public java.lang.String getProvenance() { + java.lang.Object ref = provenance_; + 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(); + provenance_ = s; + return s; + } + } + /** + * string provenance = 1; + */ + public com.google.protobuf.ByteString + getProvenanceBytes() { + java.lang.Object ref = provenance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + provenance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 3; + private volatile java.lang.Object version_; + /** + * string version = 3; + */ + 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 = 3; + */ + 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 REVISION_FIELD_NUMBER = 4; + private long revision_; + /** + *
+     * strictly increasing value set by users. users can do range query on this attribute.
+     * 
+ * + * int64 revision = 4; + */ + public long getRevision() { + return revision_; + } + + public static final int CREATED_AT_FIELD_NUMBER = 5; + private long createdAt_; + /** + *
+     * the time when discovery service received the request.
+     * 
+ * + * int64 created_at = 5; + */ + public long getCreatedAt() { + return createdAt_; + } + + public static final int REFERENCE_ID_FIELD_NUMBER = 6; + private volatile java.lang.Object referenceId_; + /** + *
+     * this could be a workflow runid or something that ties it data elsewhere
+     * 
+ * + * string reference_id = 6; + */ + public java.lang.String getReferenceId() { + java.lang.Object ref = referenceId_; + 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(); + referenceId_ = s; + return s; + } + } + /** + *
+     * this could be a workflow runid or something that ties it data elsewhere
+     * 
+ * + * string reference_id = 6; + */ + public com.google.protobuf.ByteString + getReferenceIdBytes() { + java.lang.Object ref = referenceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + referenceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUTS_FIELD_NUMBER = 7; + private java.util.List inputs_; + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public java.util.List getInputsList() { + return inputs_; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public java.util.List + getInputsOrBuilderList() { + return inputs_; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public int getInputsCount() { + return inputs_.size(); + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter getInputs(int index) { + return inputs_.get(index); + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder getInputsOrBuilder( + int index) { + return inputs_.get(index); + } + + public static final int OUTPUTS_FIELD_NUMBER = 8; + private java.util.List outputs_; + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public java.util.List getOutputsList() { + return outputs_; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public java.util.List + getOutputsOrBuilderList() { + return outputs_; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public int getOutputsCount() { + return outputs_.size(); + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter getOutputs(int index) { + return outputs_.get(index); + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder getOutputsOrBuilder( + int index) { + return outputs_.get(index); + } + + 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 (!getProvenanceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, provenance_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_); + } + if (revision_ != 0L) { + output.writeInt64(4, revision_); + } + if (createdAt_ != 0L) { + output.writeInt64(5, createdAt_); + } + if (!getReferenceIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, referenceId_); + } + for (int i = 0; i < inputs_.size(); i++) { + output.writeMessage(7, inputs_.get(i)); + } + for (int i = 0; i < outputs_.size(); i++) { + output.writeMessage(8, outputs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProvenanceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, provenance_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); + } + if (revision_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, revision_); + } + if (createdAt_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, createdAt_); + } + if (!getReferenceIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, referenceId_); + } + for (int i = 0; i < inputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, inputs_.get(i)); + } + for (int i = 0; i < outputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, outputs_.get(i)); + } + 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 pb.lyft.datacatalog.Datacatalog.Artifact)) { + return super.equals(obj); + } + pb.lyft.datacatalog.Datacatalog.Artifact other = (pb.lyft.datacatalog.Datacatalog.Artifact) obj; + + if (!getProvenance() + .equals(other.getProvenance())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (getRevision() + != other.getRevision()) return false; + if (getCreatedAt() + != other.getCreatedAt()) return false; + if (!getReferenceId() + .equals(other.getReferenceId())) return false; + if (!getInputsList() + .equals(other.getInputsList())) return false; + if (!getOutputsList() + .equals(other.getOutputsList())) 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(); + hash = (37 * hash) + PROVENANCE_FIELD_NUMBER; + hash = (53 * hash) + getProvenance().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRevision()); + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreatedAt()); + hash = (37 * hash) + REFERENCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getReferenceId().hashCode(); + if (getInputsCount() > 0) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputsList().hashCode(); + } + if (getOutputsCount() > 0) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pb.lyft.datacatalog.Datacatalog.Artifact parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.Artifact parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.Artifact parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.Artifact parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.Artifact parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.Artifact parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.Artifact parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.Artifact 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 pb.lyft.datacatalog.Datacatalog.Artifact parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.Artifact 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 pb.lyft.datacatalog.Datacatalog.Artifact parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.Artifact 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(pb.lyft.datacatalog.Datacatalog.Artifact 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; + } + /** + *
+     * Before jumping to message definition, lets go over the expected flow-
+     *   An Artifact represents an unit-of-work identified by (task, version, inputs). This is
+     *   encoded as unique hash for faster queries(called provenance). An artifact is persisted with some other
+     *   attributes (revision, createdAt, reference_id, outputs).
+     *   Only Discovery service knows about the hashing algorithm; one can use the closure (task, version, inputs)
+     *   to query an artifact if it doesnt have the provenance value.
+     *   Before starting the work on a task, programming-model first checks if the task has been done.
+     *     Request:   GET (task, version, inputs)
+     *     Response:  (Exists, Artifact) or (NotFound, nil)
+     *   if not found, Task executor goes ahead with the execution and at the end of execution creates a new entry in
+     *   the discovery service
+     *     Request:  CREATE (task, version, inputs) + (revision, reference_id, outputs)
+     *     Response: (Exists, Artifact) or (Created, Artifact)
+     *   One can also Query all the artifacts by querying any subset of properties.
+     * Message Artifact represents the complete information of an artifact- field that unique define the artifact +
+     * properties.
+     * Message ArtifactInternal is our storage model where we create an additional derived column for faster queries.
+     * Message ArtifactId only represents field that uniquely define the artifact.
+     * 
+ * + * Protobuf type {@code pb.lyft.datacatalog.Artifact} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pb.lyft.datacatalog.Artifact) + pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_Artifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_Artifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.Artifact.class, pb.lyft.datacatalog.Datacatalog.Artifact.Builder.class); + } + + // Construct using pb.lyft.datacatalog.Datacatalog.Artifact.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getInputsFieldBuilder(); + getOutputsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + provenance_ = ""; + + name_ = ""; + + version_ = ""; + + revision_ = 0L; + + createdAt_ = 0L; + + referenceId_ = ""; + + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + inputsBuilder_.clear(); + } + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + outputsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_Artifact_descriptor; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.Artifact getDefaultInstanceForType() { + return pb.lyft.datacatalog.Datacatalog.Artifact.getDefaultInstance(); + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.Artifact build() { + pb.lyft.datacatalog.Datacatalog.Artifact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.Artifact buildPartial() { + pb.lyft.datacatalog.Datacatalog.Artifact result = new pb.lyft.datacatalog.Datacatalog.Artifact(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.provenance_ = provenance_; + result.name_ = name_; + result.version_ = version_; + result.revision_ = revision_; + result.createdAt_ = createdAt_; + result.referenceId_ = referenceId_; + if (inputsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 pb.lyft.datacatalog.Datacatalog.Artifact) { + return mergeFrom((pb.lyft.datacatalog.Datacatalog.Artifact)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pb.lyft.datacatalog.Datacatalog.Artifact other) { + if (other == pb.lyft.datacatalog.Datacatalog.Artifact.getDefaultInstance()) return this; + if (!other.getProvenance().isEmpty()) { + provenance_ = other.provenance_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (other.getRevision() != 0L) { + setRevision(other.getRevision()); + } + if (other.getCreatedAt() != 0L) { + setCreatedAt(other.getCreatedAt()); + } + if (!other.getReferenceId().isEmpty()) { + referenceId_ = other.referenceId_; + onChanged(); + } + if (inputsBuilder_ == null) { + if (!other.inputs_.isEmpty()) { + if (inputs_.isEmpty()) { + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureInputsIsMutable(); + inputs_.addAll(other.inputs_); + } + onChanged(); + } + } else { + if (!other.inputs_.isEmpty()) { + if (inputsBuilder_.isEmpty()) { + inputsBuilder_.dispose(); + inputsBuilder_ = null; + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000040); + inputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputsFieldBuilder() : null; + } else { + inputsBuilder_.addAllMessages(other.inputs_); + } + } + } + if (outputsBuilder_ == null) { + if (!other.outputs_.isEmpty()) { + if (outputs_.isEmpty()) { + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureOutputsIsMutable(); + outputs_.addAll(other.outputs_); + } + onChanged(); + } + } else { + if (!other.outputs_.isEmpty()) { + if (outputsBuilder_.isEmpty()) { + outputsBuilder_.dispose(); + outputsBuilder_ = null; + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000080); + outputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputsFieldBuilder() : null; + } else { + outputsBuilder_.addAllMessages(other.outputs_); + } + } + } + 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 { + pb.lyft.datacatalog.Datacatalog.Artifact parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (pb.lyft.datacatalog.Datacatalog.Artifact) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object provenance_ = ""; + /** + * string provenance = 1; + */ + public java.lang.String getProvenance() { + java.lang.Object ref = provenance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provenance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string provenance = 1; + */ + public com.google.protobuf.ByteString + getProvenanceBytes() { + java.lang.Object ref = provenance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + provenance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string provenance = 1; + */ + public Builder setProvenance( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + provenance_ = value; + onChanged(); + return this; + } + /** + * string provenance = 1; + */ + public Builder clearProvenance() { + + provenance_ = getDefaultInstance().getProvenance(); + onChanged(); + return this; + } + /** + * string provenance = 1; + */ + public Builder setProvenanceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + provenance_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * string version = 3; + */ + 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 (java.lang.String) ref; + } + } + /** + * string version = 3; + */ + 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 (com.google.protobuf.ByteString) ref; + } + } + /** + * string version = 3; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * string version = 3; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * string version = 3; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private long revision_ ; + /** + *
+       * strictly increasing value set by users. users can do range query on this attribute.
+       * 
+ * + * int64 revision = 4; + */ + public long getRevision() { + return revision_; + } + /** + *
+       * strictly increasing value set by users. users can do range query on this attribute.
+       * 
+ * + * int64 revision = 4; + */ + public Builder setRevision(long value) { + + revision_ = value; + onChanged(); + return this; + } + /** + *
+       * strictly increasing value set by users. users can do range query on this attribute.
+       * 
+ * + * int64 revision = 4; + */ + public Builder clearRevision() { + + revision_ = 0L; + onChanged(); + return this; + } + + private long createdAt_ ; + /** + *
+       * the time when discovery service received the request.
+       * 
+ * + * int64 created_at = 5; + */ + public long getCreatedAt() { + return createdAt_; + } + /** + *
+       * the time when discovery service received the request.
+       * 
+ * + * int64 created_at = 5; + */ + public Builder setCreatedAt(long value) { + + createdAt_ = value; + onChanged(); + return this; + } + /** + *
+       * the time when discovery service received the request.
+       * 
+ * + * int64 created_at = 5; + */ + public Builder clearCreatedAt() { + + createdAt_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object referenceId_ = ""; + /** + *
+       * this could be a workflow runid or something that ties it data elsewhere
+       * 
+ * + * string reference_id = 6; + */ + public java.lang.String getReferenceId() { + java.lang.Object ref = referenceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + referenceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * this could be a workflow runid or something that ties it data elsewhere
+       * 
+ * + * string reference_id = 6; + */ + public com.google.protobuf.ByteString + getReferenceIdBytes() { + java.lang.Object ref = referenceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + referenceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * this could be a workflow runid or something that ties it data elsewhere
+       * 
+ * + * string reference_id = 6; + */ + public Builder setReferenceId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + referenceId_ = value; + onChanged(); + return this; + } + /** + *
+       * this could be a workflow runid or something that ties it data elsewhere
+       * 
+ * + * string reference_id = 6; + */ + public Builder clearReferenceId() { + + referenceId_ = getDefaultInstance().getReferenceId(); + onChanged(); + return this; + } + /** + *
+       * this could be a workflow runid or something that ties it data elsewhere
+       * 
+ * + * string reference_id = 6; + */ + public Builder setReferenceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + referenceId_ = value; + onChanged(); + return this; + } + + private java.util.List inputs_ = + java.util.Collections.emptyList(); + private void ensureInputsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + inputs_ = new java.util.ArrayList(inputs_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Parameter, pb.lyft.datacatalog.Datacatalog.Parameter.Builder, pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder> inputsBuilder_; + + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public java.util.List getInputsList() { + if (inputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputs_); + } else { + return inputsBuilder_.getMessageList(); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public int getInputsCount() { + if (inputsBuilder_ == null) { + return inputs_.size(); + } else { + return inputsBuilder_.getCount(); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter getInputs(int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); + } else { + return inputsBuilder_.getMessage(index); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public Builder setInputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.set(index, value); + onChanged(); + } else { + inputsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public Builder setInputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.set(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public Builder addInputs(pb.lyft.datacatalog.Datacatalog.Parameter value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(value); + onChanged(); + } else { + inputsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public Builder addInputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(index, value); + onChanged(); + } else { + inputsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public Builder addInputs( + pb.lyft.datacatalog.Datacatalog.Parameter.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public Builder addInputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public Builder addAllInputs( + java.lang.Iterable values) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputs_); + onChanged(); + } else { + inputsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + inputsBuilder_.clear(); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public Builder removeInputs(int index) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.remove(index); + onChanged(); + } else { + inputsBuilder_.remove(index); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter.Builder getInputsBuilder( + int index) { + return getInputsFieldBuilder().getBuilder(index); + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder getInputsOrBuilder( + int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); } else { + return inputsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public java.util.List + getInputsOrBuilderList() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputs_); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter.Builder addInputsBuilder() { + return getInputsFieldBuilder().addBuilder( + pb.lyft.datacatalog.Datacatalog.Parameter.getDefaultInstance()); + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter.Builder addInputsBuilder( + int index) { + return getInputsFieldBuilder().addBuilder( + index, pb.lyft.datacatalog.Datacatalog.Parameter.getDefaultInstance()); + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 7; + */ + public java.util.List + getInputsBuilderList() { + return getInputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Parameter, pb.lyft.datacatalog.Datacatalog.Parameter.Builder, pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Parameter, pb.lyft.datacatalog.Datacatalog.Parameter.Builder, pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder>( + inputs_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private java.util.List outputs_ = + java.util.Collections.emptyList(); + private void ensureOutputsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + outputs_ = new java.util.ArrayList(outputs_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Parameter, pb.lyft.datacatalog.Datacatalog.Parameter.Builder, pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder> outputsBuilder_; + + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public java.util.List getOutputsList() { + if (outputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputs_); + } else { + return outputsBuilder_.getMessageList(); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public int getOutputsCount() { + if (outputsBuilder_ == null) { + return outputs_.size(); + } else { + return outputsBuilder_.getCount(); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter getOutputs(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessage(index); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public Builder setOutputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.set(index, value); + onChanged(); + } else { + outputsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public Builder setOutputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.set(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public Builder addOutputs(pb.lyft.datacatalog.Datacatalog.Parameter value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(value); + onChanged(); + } else { + outputsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public Builder addOutputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(index, value); + onChanged(); + } else { + outputsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public Builder addOutputs( + pb.lyft.datacatalog.Datacatalog.Parameter.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public Builder addOutputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public Builder addAllOutputs( + java.lang.Iterable values) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputs_); + onChanged(); + } else { + outputsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + outputsBuilder_.clear(); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public Builder removeOutputs(int index) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.remove(index); + onChanged(); + } else { + outputsBuilder_.remove(index); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter.Builder getOutputsBuilder( + int index) { + return getOutputsFieldBuilder().getBuilder(index); + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder getOutputsOrBuilder( + int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); } else { + return outputsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public java.util.List + getOutputsOrBuilderList() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputs_); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter.Builder addOutputsBuilder() { + return getOutputsFieldBuilder().addBuilder( + pb.lyft.datacatalog.Datacatalog.Parameter.getDefaultInstance()); + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter.Builder addOutputsBuilder( + int index) { + return getOutputsFieldBuilder().addBuilder( + index, pb.lyft.datacatalog.Datacatalog.Parameter.getDefaultInstance()); + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 8; + */ + public java.util.List + getOutputsBuilderList() { + return getOutputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Parameter, pb.lyft.datacatalog.Datacatalog.Parameter.Builder, pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Parameter, pb.lyft.datacatalog.Datacatalog.Parameter.Builder, pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder>( + outputs_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + @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:pb.lyft.datacatalog.Artifact) + } + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.Artifact) + private static final pb.lyft.datacatalog.Datacatalog.Artifact DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pb.lyft.datacatalog.Datacatalog.Artifact(); + } + + public static pb.lyft.datacatalog.Datacatalog.Artifact getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Artifact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Artifact(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 pb.lyft.datacatalog.Datacatalog.Artifact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ArtifactIdOrBuilder extends + // @@protoc_insertion_point(interface_extends:pb.lyft.datacatalog.ArtifactId) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + */ + java.lang.String getName(); + /** + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string version = 2; + */ + java.lang.String getVersion(); + /** + * string version = 2; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + java.util.List + getInputsList(); + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + pb.lyft.datacatalog.Datacatalog.Parameter getInputs(int index); + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + int getInputsCount(); + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + java.util.List + getInputsOrBuilderList(); + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder getInputsOrBuilder( + int index); + } + /** + * Protobuf type {@code pb.lyft.datacatalog.ArtifactId} + */ + public static final class ArtifactId extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pb.lyft.datacatalog.ArtifactId) + ArtifactIdOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArtifactId.newBuilder() to construct. + private ArtifactId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ArtifactId() { + name_ = ""; + version_ = ""; + inputs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ArtifactId( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + inputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + inputs_.add( + input.readMessage(pb.lyft.datacatalog.Datacatalog.Parameter.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000004) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_ArtifactId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_ArtifactId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.ArtifactId.class, pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object version_; + /** + * string version = 2; + */ + 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 = 2; + */ + 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 INPUTS_FIELD_NUMBER = 3; + private java.util.List inputs_; + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public java.util.List getInputsList() { + return inputs_; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public java.util.List + getInputsOrBuilderList() { + return inputs_; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public int getInputsCount() { + return inputs_.size(); + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter getInputs(int index) { + return inputs_.get(index); + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder getInputsOrBuilder( + int index) { + return inputs_.get(index); + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + for (int i = 0; i < inputs_.size(); i++) { + output.writeMessage(3, inputs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + for (int i = 0; i < inputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, inputs_.get(i)); + } + 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 pb.lyft.datacatalog.Datacatalog.ArtifactId)) { + return super.equals(obj); + } + pb.lyft.datacatalog.Datacatalog.ArtifactId other = (pb.lyft.datacatalog.Datacatalog.ArtifactId) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getInputsList() + .equals(other.getInputsList())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().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 pb.lyft.datacatalog.Datacatalog.ArtifactId parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.ArtifactId parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.ArtifactId parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.ArtifactId parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.ArtifactId parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.ArtifactId parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.ArtifactId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.ArtifactId 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 pb.lyft.datacatalog.Datacatalog.ArtifactId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.ArtifactId 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 pb.lyft.datacatalog.Datacatalog.ArtifactId parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.ArtifactId 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(pb.lyft.datacatalog.Datacatalog.ArtifactId 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 pb.lyft.datacatalog.ArtifactId} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pb.lyft.datacatalog.ArtifactId) + pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_ArtifactId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_ArtifactId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.ArtifactId.class, pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder.class); + } + + // Construct using pb.lyft.datacatalog.Datacatalog.ArtifactId.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getInputsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + version_ = ""; + + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + inputsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_ArtifactId_descriptor; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.ArtifactId getDefaultInstanceForType() { + return pb.lyft.datacatalog.Datacatalog.ArtifactId.getDefaultInstance(); + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.ArtifactId build() { + pb.lyft.datacatalog.Datacatalog.ArtifactId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.ArtifactId buildPartial() { + pb.lyft.datacatalog.Datacatalog.ArtifactId result = new pb.lyft.datacatalog.Datacatalog.ArtifactId(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.version_ = version_; + if (inputsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 pb.lyft.datacatalog.Datacatalog.ArtifactId) { + return mergeFrom((pb.lyft.datacatalog.Datacatalog.ArtifactId)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pb.lyft.datacatalog.Datacatalog.ArtifactId other) { + if (other == pb.lyft.datacatalog.Datacatalog.ArtifactId.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (inputsBuilder_ == null) { + if (!other.inputs_.isEmpty()) { + if (inputs_.isEmpty()) { + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureInputsIsMutable(); + inputs_.addAll(other.inputs_); + } + onChanged(); + } + } else { + if (!other.inputs_.isEmpty()) { + if (inputsBuilder_.isEmpty()) { + inputsBuilder_.dispose(); + inputsBuilder_ = null; + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000004); + inputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputsFieldBuilder() : null; + } else { + inputsBuilder_.addAllMessages(other.inputs_); + } + } + } + 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 { + pb.lyft.datacatalog.Datacatalog.ArtifactId parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (pb.lyft.datacatalog.Datacatalog.ArtifactId) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * string version = 2; + */ + 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 (java.lang.String) ref; + } + } + /** + * string version = 2; + */ + 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 (com.google.protobuf.ByteString) ref; + } + } + /** + * string version = 2; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * string version = 2; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * string version = 2; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.util.List inputs_ = + java.util.Collections.emptyList(); + private void ensureInputsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + inputs_ = new java.util.ArrayList(inputs_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Parameter, pb.lyft.datacatalog.Datacatalog.Parameter.Builder, pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder> inputsBuilder_; + + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public java.util.List getInputsList() { + if (inputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputs_); + } else { + return inputsBuilder_.getMessageList(); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public int getInputsCount() { + if (inputsBuilder_ == null) { + return inputs_.size(); + } else { + return inputsBuilder_.getCount(); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter getInputs(int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); + } else { + return inputsBuilder_.getMessage(index); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public Builder setInputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.set(index, value); + onChanged(); + } else { + inputsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public Builder setInputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.set(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public Builder addInputs(pb.lyft.datacatalog.Datacatalog.Parameter value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(value); + onChanged(); + } else { + inputsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public Builder addInputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(index, value); + onChanged(); + } else { + inputsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public Builder addInputs( + pb.lyft.datacatalog.Datacatalog.Parameter.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public Builder addInputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public Builder addAllInputs( + java.lang.Iterable values) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputs_); + onChanged(); + } else { + inputsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + inputsBuilder_.clear(); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public Builder removeInputs(int index) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.remove(index); + onChanged(); + } else { + inputsBuilder_.remove(index); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter.Builder getInputsBuilder( + int index) { + return getInputsFieldBuilder().getBuilder(index); + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder getInputsOrBuilder( + int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); } else { + return inputsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public java.util.List + getInputsOrBuilderList() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputs_); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter.Builder addInputsBuilder() { + return getInputsFieldBuilder().addBuilder( + pb.lyft.datacatalog.Datacatalog.Parameter.getDefaultInstance()); + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter.Builder addInputsBuilder( + int index) { + return getInputsFieldBuilder().addBuilder( + index, pb.lyft.datacatalog.Datacatalog.Parameter.getDefaultInstance()); + } + /** + * repeated .pb.lyft.datacatalog.Parameter inputs = 3; + */ + public java.util.List + getInputsBuilderList() { + return getInputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Parameter, pb.lyft.datacatalog.Datacatalog.Parameter.Builder, pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Parameter, pb.lyft.datacatalog.Datacatalog.Parameter.Builder, pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder>( + inputs_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + @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:pb.lyft.datacatalog.ArtifactId) + } + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.ArtifactId) + private static final pb.lyft.datacatalog.Datacatalog.ArtifactId DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pb.lyft.datacatalog.Datacatalog.ArtifactId(); + } + + public static pb.lyft.datacatalog.Datacatalog.ArtifactId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArtifactId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArtifactId(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 pb.lyft.datacatalog.Datacatalog.ArtifactId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:pb.lyft.datacatalog.GetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string provenance = 1; + */ + java.lang.String getProvenance(); + /** + * string provenance = 1; + */ + com.google.protobuf.ByteString + getProvenanceBytes(); + + /** + * .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + */ + boolean hasArtifactId(); + /** + * .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + */ + pb.lyft.datacatalog.Datacatalog.ArtifactId getArtifactId(); + /** + * .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + */ + pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder getArtifactIdOrBuilder(); + + public pb.lyft.datacatalog.Datacatalog.GetRequest.IdCase getIdCase(); + } + /** + * Protobuf type {@code pb.lyft.datacatalog.GetRequest} + */ + public static final class GetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pb.lyft.datacatalog.GetRequest) + GetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetRequest.newBuilder() to construct. + private GetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetRequest( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + idCase_ = 1; + id_ = s; + break; + } + case 18: { + pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder subBuilder = null; + if (idCase_ == 2) { + subBuilder = ((pb.lyft.datacatalog.Datacatalog.ArtifactId) id_).toBuilder(); + } + id_ = + input.readMessage(pb.lyft.datacatalog.Datacatalog.ArtifactId.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((pb.lyft.datacatalog.Datacatalog.ArtifactId) id_); + id_ = subBuilder.buildPartial(); + } + idCase_ = 2; + 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 pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.GetRequest.class, pb.lyft.datacatalog.Datacatalog.GetRequest.Builder.class); + } + + private int idCase_ = 0; + private java.lang.Object id_; + public enum IdCase + implements com.google.protobuf.Internal.EnumLite { + PROVENANCE(1), + ARTIFACT_ID(2), + ID_NOT_SET(0); + private final int value; + private IdCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IdCase valueOf(int value) { + return forNumber(value); + } + + public static IdCase forNumber(int value) { + switch (value) { + case 1: return PROVENANCE; + case 2: return ARTIFACT_ID; + case 0: return ID_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public IdCase + getIdCase() { + return IdCase.forNumber( + idCase_); + } + + public static final int PROVENANCE_FIELD_NUMBER = 1; + /** + * string provenance = 1; + */ + public java.lang.String getProvenance() { + java.lang.Object ref = ""; + if (idCase_ == 1) { + ref = id_; + } + 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(); + if (idCase_ == 1) { + id_ = s; + } + return s; + } + } + /** + * string provenance = 1; + */ + public com.google.protobuf.ByteString + getProvenanceBytes() { + java.lang.Object ref = ""; + if (idCase_ == 1) { + ref = id_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (idCase_ == 1) { + id_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARTIFACT_ID_FIELD_NUMBER = 2; + /** + * .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + */ + public boolean hasArtifactId() { + return idCase_ == 2; + } + /** + * .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactId getArtifactId() { + if (idCase_ == 2) { + return (pb.lyft.datacatalog.Datacatalog.ArtifactId) id_; + } + return pb.lyft.datacatalog.Datacatalog.ArtifactId.getDefaultInstance(); + } + /** + * .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder getArtifactIdOrBuilder() { + if (idCase_ == 2) { + return (pb.lyft.datacatalog.Datacatalog.ArtifactId) id_; + } + return pb.lyft.datacatalog.Datacatalog.ArtifactId.getDefaultInstance(); + } + + 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 (idCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (idCase_ == 2) { + output.writeMessage(2, (pb.lyft.datacatalog.Datacatalog.ArtifactId) id_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (idCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (idCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (pb.lyft.datacatalog.Datacatalog.ArtifactId) id_); + } + 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 pb.lyft.datacatalog.Datacatalog.GetRequest)) { + return super.equals(obj); + } + pb.lyft.datacatalog.Datacatalog.GetRequest other = (pb.lyft.datacatalog.Datacatalog.GetRequest) obj; + + if (!getIdCase().equals(other.getIdCase())) return false; + switch (idCase_) { + case 1: + if (!getProvenance() + .equals(other.getProvenance())) return false; + break; + case 2: + if (!getArtifactId() + .equals(other.getArtifactId())) return false; + break; + case 0: + default: + } + 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(); + switch (idCase_) { + case 1: + hash = (37 * hash) + PROVENANCE_FIELD_NUMBER; + hash = (53 * hash) + getProvenance().hashCode(); + break; + case 2: + hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getArtifactId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pb.lyft.datacatalog.Datacatalog.GetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.GetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.GetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.GetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.GetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.GetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.GetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.GetRequest 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 pb.lyft.datacatalog.Datacatalog.GetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.GetRequest 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 pb.lyft.datacatalog.Datacatalog.GetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.GetRequest 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(pb.lyft.datacatalog.Datacatalog.GetRequest 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 pb.lyft.datacatalog.GetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pb.lyft.datacatalog.GetRequest) + pb.lyft.datacatalog.Datacatalog.GetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.GetRequest.class, pb.lyft.datacatalog.Datacatalog.GetRequest.Builder.class); + } + + // Construct using pb.lyft.datacatalog.Datacatalog.GetRequest.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(); + idCase_ = 0; + id_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GetRequest_descriptor; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.GetRequest getDefaultInstanceForType() { + return pb.lyft.datacatalog.Datacatalog.GetRequest.getDefaultInstance(); + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.GetRequest build() { + pb.lyft.datacatalog.Datacatalog.GetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.GetRequest buildPartial() { + pb.lyft.datacatalog.Datacatalog.GetRequest result = new pb.lyft.datacatalog.Datacatalog.GetRequest(this); + if (idCase_ == 1) { + result.id_ = id_; + } + if (idCase_ == 2) { + if (artifactIdBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = artifactIdBuilder_.build(); + } + } + result.idCase_ = idCase_; + 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 pb.lyft.datacatalog.Datacatalog.GetRequest) { + return mergeFrom((pb.lyft.datacatalog.Datacatalog.GetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pb.lyft.datacatalog.Datacatalog.GetRequest other) { + if (other == pb.lyft.datacatalog.Datacatalog.GetRequest.getDefaultInstance()) return this; + switch (other.getIdCase()) { + case PROVENANCE: { + idCase_ = 1; + id_ = other.id_; + onChanged(); + break; + } + case ARTIFACT_ID: { + mergeArtifactId(other.getArtifactId()); + break; + } + case ID_NOT_SET: { + break; + } + } + 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 { + pb.lyft.datacatalog.Datacatalog.GetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (pb.lyft.datacatalog.Datacatalog.GetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int idCase_ = 0; + private java.lang.Object id_; + public IdCase + getIdCase() { + return IdCase.forNumber( + idCase_); + } + + public Builder clearId() { + idCase_ = 0; + id_ = null; + onChanged(); + return this; + } + + + /** + * string provenance = 1; + */ + public java.lang.String getProvenance() { + java.lang.Object ref = ""; + if (idCase_ == 1) { + ref = id_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idCase_ == 1) { + id_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string provenance = 1; + */ + public com.google.protobuf.ByteString + getProvenanceBytes() { + java.lang.Object ref = ""; + if (idCase_ == 1) { + ref = id_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (idCase_ == 1) { + id_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string provenance = 1; + */ + public Builder setProvenance( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + idCase_ = 1; + id_ = value; + onChanged(); + return this; + } + /** + * string provenance = 1; + */ + public Builder clearProvenance() { + if (idCase_ == 1) { + idCase_ = 0; + id_ = null; + onChanged(); + } + return this; + } + /** + * string provenance = 1; + */ + public Builder setProvenanceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + idCase_ = 1; + id_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.ArtifactId, pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder> artifactIdBuilder_; + /** + * .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + */ + public boolean hasArtifactId() { + return idCase_ == 2; + } + /** + * .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactId getArtifactId() { + if (artifactIdBuilder_ == null) { + if (idCase_ == 2) { + return (pb.lyft.datacatalog.Datacatalog.ArtifactId) id_; + } + return pb.lyft.datacatalog.Datacatalog.ArtifactId.getDefaultInstance(); + } else { + if (idCase_ == 2) { + return artifactIdBuilder_.getMessage(); + } + return pb.lyft.datacatalog.Datacatalog.ArtifactId.getDefaultInstance(); + } + } + /** + * .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + */ + public Builder setArtifactId(pb.lyft.datacatalog.Datacatalog.ArtifactId value) { + if (artifactIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + artifactIdBuilder_.setMessage(value); + } + idCase_ = 2; + return this; + } + /** + * .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + */ + public Builder setArtifactId( + pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder builderForValue) { + if (artifactIdBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + artifactIdBuilder_.setMessage(builderForValue.build()); + } + idCase_ = 2; + return this; + } + /** + * .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + */ + public Builder mergeArtifactId(pb.lyft.datacatalog.Datacatalog.ArtifactId value) { + if (artifactIdBuilder_ == null) { + if (idCase_ == 2 && + id_ != pb.lyft.datacatalog.Datacatalog.ArtifactId.getDefaultInstance()) { + id_ = pb.lyft.datacatalog.Datacatalog.ArtifactId.newBuilder((pb.lyft.datacatalog.Datacatalog.ArtifactId) id_) + .mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + if (idCase_ == 2) { + artifactIdBuilder_.mergeFrom(value); + } + artifactIdBuilder_.setMessage(value); + } + idCase_ = 2; + return this; + } + /** + * .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + */ + public Builder clearArtifactId() { + if (artifactIdBuilder_ == null) { + if (idCase_ == 2) { + idCase_ = 0; + id_ = null; + onChanged(); + } + } else { + if (idCase_ == 2) { + idCase_ = 0; + id_ = null; + } + artifactIdBuilder_.clear(); + } + return this; + } + /** + * .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder getArtifactIdBuilder() { + return getArtifactIdFieldBuilder().getBuilder(); + } + /** + * .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder getArtifactIdOrBuilder() { + if ((idCase_ == 2) && (artifactIdBuilder_ != null)) { + return artifactIdBuilder_.getMessageOrBuilder(); + } else { + if (idCase_ == 2) { + return (pb.lyft.datacatalog.Datacatalog.ArtifactId) id_; + } + return pb.lyft.datacatalog.Datacatalog.ArtifactId.getDefaultInstance(); + } + } + /** + * .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.ArtifactId, pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder> + getArtifactIdFieldBuilder() { + if (artifactIdBuilder_ == null) { + if (!(idCase_ == 2)) { + id_ = pb.lyft.datacatalog.Datacatalog.ArtifactId.getDefaultInstance(); + } + artifactIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.ArtifactId, pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder>( + (pb.lyft.datacatalog.Datacatalog.ArtifactId) id_, + getParentForChildren(), + isClean()); + id_ = null; + } + idCase_ = 2; + onChanged();; + return artifactIdBuilder_; + } + @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:pb.lyft.datacatalog.GetRequest) + } + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GetRequest) + private static final pb.lyft.datacatalog.Datacatalog.GetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pb.lyft.datacatalog.Datacatalog.GetRequest(); + } + + public static pb.lyft.datacatalog.Datacatalog.GetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetRequest(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 pb.lyft.datacatalog.Datacatalog.GetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:pb.lyft.datacatalog.GetResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + boolean hasArtifact(); + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + pb.lyft.datacatalog.Datacatalog.Artifact getArtifact(); + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder(); + } + /** + * Protobuf type {@code pb.lyft.datacatalog.GetResponse} + */ + public static final class GetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pb.lyft.datacatalog.GetResponse) + GetResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetResponse.newBuilder() to construct. + private GetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetResponse( + 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: { + pb.lyft.datacatalog.Datacatalog.Artifact.Builder subBuilder = null; + if (artifact_ != null) { + subBuilder = artifact_.toBuilder(); + } + artifact_ = input.readMessage(pb.lyft.datacatalog.Datacatalog.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 pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.GetResponse.class, pb.lyft.datacatalog.Datacatalog.GetResponse.Builder.class); + } + + public static final int ARTIFACT_FIELD_NUMBER = 1; + private pb.lyft.datacatalog.Datacatalog.Artifact artifact_; + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return artifact_ != null; + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.Artifact getArtifact() { + return artifact_ == null ? pb.lyft.datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.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 pb.lyft.datacatalog.Datacatalog.GetResponse)) { + return super.equals(obj); + } + pb.lyft.datacatalog.Datacatalog.GetResponse other = (pb.lyft.datacatalog.Datacatalog.GetResponse) 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 pb.lyft.datacatalog.Datacatalog.GetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.GetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.GetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.GetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.GetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.GetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.GetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.GetResponse 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 pb.lyft.datacatalog.Datacatalog.GetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.GetResponse 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 pb.lyft.datacatalog.Datacatalog.GetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.GetResponse 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(pb.lyft.datacatalog.Datacatalog.GetResponse 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 pb.lyft.datacatalog.GetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pb.lyft.datacatalog.GetResponse) + pb.lyft.datacatalog.Datacatalog.GetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.GetResponse.class, pb.lyft.datacatalog.Datacatalog.GetResponse.Builder.class); + } + + // Construct using pb.lyft.datacatalog.Datacatalog.GetResponse.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 pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GetResponse_descriptor; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.GetResponse getDefaultInstanceForType() { + return pb.lyft.datacatalog.Datacatalog.GetResponse.getDefaultInstance(); + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.GetResponse build() { + pb.lyft.datacatalog.Datacatalog.GetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.GetResponse buildPartial() { + pb.lyft.datacatalog.Datacatalog.GetResponse result = new pb.lyft.datacatalog.Datacatalog.GetResponse(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 pb.lyft.datacatalog.Datacatalog.GetResponse) { + return mergeFrom((pb.lyft.datacatalog.Datacatalog.GetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pb.lyft.datacatalog.Datacatalog.GetResponse other) { + if (other == pb.lyft.datacatalog.Datacatalog.GetResponse.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 { + pb.lyft.datacatalog.Datacatalog.GetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (pb.lyft.datacatalog.Datacatalog.GetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private pb.lyft.datacatalog.Datacatalog.Artifact artifact_; + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Artifact, pb.lyft.datacatalog.Datacatalog.Artifact.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder> artifactBuilder_; + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return artifactBuilder_ != null || artifact_ != null; + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.Artifact getArtifact() { + if (artifactBuilder_ == null) { + return artifact_ == null ? pb.lyft.datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } else { + return artifactBuilder_.getMessage(); + } + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact(pb.lyft.datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifact_ = value; + onChanged(); + } else { + artifactBuilder_.setMessage(value); + } + + return this; + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact( + pb.lyft.datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactBuilder_ == null) { + artifact_ = builderForValue.build(); + onChanged(); + } else { + artifactBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder mergeArtifact(pb.lyft.datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (artifact_ != null) { + artifact_ = + pb.lyft.datacatalog.Datacatalog.Artifact.newBuilder(artifact_).mergeFrom(value).buildPartial(); + } else { + artifact_ = value; + } + onChanged(); + } else { + artifactBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder clearArtifact() { + if (artifactBuilder_ == null) { + artifact_ = null; + onChanged(); + } else { + artifact_ = null; + artifactBuilder_ = null; + } + + return this; + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.Artifact.Builder getArtifactBuilder() { + + onChanged(); + return getArtifactFieldBuilder().getBuilder(); + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder() { + if (artifactBuilder_ != null) { + return artifactBuilder_.getMessageOrBuilder(); + } else { + return artifact_ == null ? + pb.lyft.datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Artifact, pb.lyft.datacatalog.Datacatalog.Artifact.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder> + getArtifactFieldBuilder() { + if (artifactBuilder_ == null) { + artifactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Artifact, pb.lyft.datacatalog.Datacatalog.Artifact.Builder, pb.lyft.datacatalog.Datacatalog.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); + } + + + // @@protoc_insertion_point(builder_scope:pb.lyft.datacatalog.GetResponse) + } + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GetResponse) + private static final pb.lyft.datacatalog.Datacatalog.GetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pb.lyft.datacatalog.Datacatalog.GetResponse(); + } + + public static pb.lyft.datacatalog.Datacatalog.GetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetResponse(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 pb.lyft.datacatalog.Datacatalog.GetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IntFilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:pb.lyft.datacatalog.IntFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 value = 1; + */ + long getValue(); + + /** + * .pb.lyft.datacatalog.QueryOperator operator = 2; + */ + int getOperatorValue(); + /** + * .pb.lyft.datacatalog.QueryOperator operator = 2; + */ + pb.lyft.datacatalog.Datacatalog.QueryOperator getOperator(); + } + /** + * Protobuf type {@code pb.lyft.datacatalog.IntFilter} + */ + public static final class IntFilter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pb.lyft.datacatalog.IntFilter) + IntFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntFilter.newBuilder() to construct. + private IntFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IntFilter() { + operator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IntFilter( + 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 8: { + + value_ = input.readInt64(); + break; + } + case 16: { + int rawValue = input.readEnum(); + + operator_ = rawValue; + 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 pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_IntFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_IntFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.IntFilter.class, pb.lyft.datacatalog.Datacatalog.IntFilter.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private long value_; + /** + * int64 value = 1; + */ + public long getValue() { + return value_; + } + + public static final int OPERATOR_FIELD_NUMBER = 2; + private int operator_; + /** + * .pb.lyft.datacatalog.QueryOperator operator = 2; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .pb.lyft.datacatalog.QueryOperator operator = 2; + */ + public pb.lyft.datacatalog.Datacatalog.QueryOperator getOperator() { + @SuppressWarnings("deprecation") + pb.lyft.datacatalog.Datacatalog.QueryOperator result = pb.lyft.datacatalog.Datacatalog.QueryOperator.valueOf(operator_); + return result == null ? pb.lyft.datacatalog.Datacatalog.QueryOperator.UNRECOGNIZED : result; + } + + 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_ != 0L) { + output.writeInt64(1, value_); + } + if (operator_ != pb.lyft.datacatalog.Datacatalog.QueryOperator.EQUAL.getNumber()) { + output.writeEnum(2, operator_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (value_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, value_); + } + if (operator_ != pb.lyft.datacatalog.Datacatalog.QueryOperator.EQUAL.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, operator_); + } + 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 pb.lyft.datacatalog.Datacatalog.IntFilter)) { + return super.equals(obj); + } + pb.lyft.datacatalog.Datacatalog.IntFilter other = (pb.lyft.datacatalog.Datacatalog.IntFilter) obj; + + if (getValue() + != other.getValue()) return false; + if (operator_ != other.operator_) 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(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getValue()); + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pb.lyft.datacatalog.Datacatalog.IntFilter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.IntFilter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.IntFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.IntFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.IntFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.IntFilter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.IntFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.IntFilter 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 pb.lyft.datacatalog.Datacatalog.IntFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.IntFilter 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 pb.lyft.datacatalog.Datacatalog.IntFilter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.IntFilter 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(pb.lyft.datacatalog.Datacatalog.IntFilter 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 pb.lyft.datacatalog.IntFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pb.lyft.datacatalog.IntFilter) + pb.lyft.datacatalog.Datacatalog.IntFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_IntFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_IntFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.IntFilter.class, pb.lyft.datacatalog.Datacatalog.IntFilter.Builder.class); + } + + // Construct using pb.lyft.datacatalog.Datacatalog.IntFilter.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(); + value_ = 0L; + + operator_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_IntFilter_descriptor; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.IntFilter getDefaultInstanceForType() { + return pb.lyft.datacatalog.Datacatalog.IntFilter.getDefaultInstance(); + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.IntFilter build() { + pb.lyft.datacatalog.Datacatalog.IntFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.IntFilter buildPartial() { + pb.lyft.datacatalog.Datacatalog.IntFilter result = new pb.lyft.datacatalog.Datacatalog.IntFilter(this); + result.value_ = value_; + result.operator_ = operator_; + 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 pb.lyft.datacatalog.Datacatalog.IntFilter) { + return mergeFrom((pb.lyft.datacatalog.Datacatalog.IntFilter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pb.lyft.datacatalog.Datacatalog.IntFilter other) { + if (other == pb.lyft.datacatalog.Datacatalog.IntFilter.getDefaultInstance()) return this; + if (other.getValue() != 0L) { + setValue(other.getValue()); + } + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + 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 { + pb.lyft.datacatalog.Datacatalog.IntFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (pb.lyft.datacatalog.Datacatalog.IntFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long value_ ; + /** + * int64 value = 1; + */ + public long getValue() { + return value_; + } + /** + * int64 value = 1; + */ + public Builder setValue(long value) { + + value_ = value; + onChanged(); + return this; + } + /** + * int64 value = 1; + */ + public Builder clearValue() { + + value_ = 0L; + onChanged(); + return this; + } + + private int operator_ = 0; + /** + * .pb.lyft.datacatalog.QueryOperator operator = 2; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .pb.lyft.datacatalog.QueryOperator operator = 2; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + * .pb.lyft.datacatalog.QueryOperator operator = 2; + */ + public pb.lyft.datacatalog.Datacatalog.QueryOperator getOperator() { + @SuppressWarnings("deprecation") + pb.lyft.datacatalog.Datacatalog.QueryOperator result = pb.lyft.datacatalog.Datacatalog.QueryOperator.valueOf(operator_); + return result == null ? pb.lyft.datacatalog.Datacatalog.QueryOperator.UNRECOGNIZED : result; + } + /** + * .pb.lyft.datacatalog.QueryOperator operator = 2; + */ + public Builder setOperator(pb.lyft.datacatalog.Datacatalog.QueryOperator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .pb.lyft.datacatalog.QueryOperator operator = 2; + */ + public Builder clearOperator() { + + operator_ = 0; + 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:pb.lyft.datacatalog.IntFilter) + } + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.IntFilter) + private static final pb.lyft.datacatalog.Datacatalog.IntFilter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pb.lyft.datacatalog.Datacatalog.IntFilter(); + } + + public static pb.lyft.datacatalog.Datacatalog.IntFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IntFilter(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 pb.lyft.datacatalog.Datacatalog.IntFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IntRangeFilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:pb.lyft.datacatalog.IntRangeFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 min = 1; + */ + long getMin(); + + /** + * int64 max = 2; + */ + long getMax(); + } + /** + * Protobuf type {@code pb.lyft.datacatalog.IntRangeFilter} + */ + public static final class IntRangeFilter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pb.lyft.datacatalog.IntRangeFilter) + IntRangeFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntRangeFilter.newBuilder() to construct. + private IntRangeFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IntRangeFilter() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IntRangeFilter( + 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 8: { + + min_ = input.readInt64(); + break; + } + case 16: { + + max_ = input.readInt64(); + 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 pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_IntRangeFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_IntRangeFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.IntRangeFilter.class, pb.lyft.datacatalog.Datacatalog.IntRangeFilter.Builder.class); + } + + public static final int MIN_FIELD_NUMBER = 1; + private long min_; + /** + * int64 min = 1; + */ + public long getMin() { + return min_; + } + + public static final int MAX_FIELD_NUMBER = 2; + private long max_; + /** + * int64 max = 2; + */ + public long getMax() { + return max_; + } + + 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 (min_ != 0L) { + output.writeInt64(1, min_); + } + if (max_ != 0L) { + output.writeInt64(2, max_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (min_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, min_); + } + if (max_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, max_); + } + 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 pb.lyft.datacatalog.Datacatalog.IntRangeFilter)) { + return super.equals(obj); + } + pb.lyft.datacatalog.Datacatalog.IntRangeFilter other = (pb.lyft.datacatalog.Datacatalog.IntRangeFilter) obj; + + if (getMin() + != other.getMin()) return false; + if (getMax() + != other.getMax()) 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(); + hash = (37 * hash) + MIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMin()); + hash = (37 * hash) + MAX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMax()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pb.lyft.datacatalog.Datacatalog.IntRangeFilter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.IntRangeFilter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.IntRangeFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.IntRangeFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.IntRangeFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.IntRangeFilter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.IntRangeFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.IntRangeFilter 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 pb.lyft.datacatalog.Datacatalog.IntRangeFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.IntRangeFilter 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 pb.lyft.datacatalog.Datacatalog.IntRangeFilter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.IntRangeFilter 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(pb.lyft.datacatalog.Datacatalog.IntRangeFilter 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 pb.lyft.datacatalog.IntRangeFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pb.lyft.datacatalog.IntRangeFilter) + pb.lyft.datacatalog.Datacatalog.IntRangeFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_IntRangeFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_IntRangeFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.IntRangeFilter.class, pb.lyft.datacatalog.Datacatalog.IntRangeFilter.Builder.class); + } + + // Construct using pb.lyft.datacatalog.Datacatalog.IntRangeFilter.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(); + min_ = 0L; + + max_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_IntRangeFilter_descriptor; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.IntRangeFilter getDefaultInstanceForType() { + return pb.lyft.datacatalog.Datacatalog.IntRangeFilter.getDefaultInstance(); + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.IntRangeFilter build() { + pb.lyft.datacatalog.Datacatalog.IntRangeFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.IntRangeFilter buildPartial() { + pb.lyft.datacatalog.Datacatalog.IntRangeFilter result = new pb.lyft.datacatalog.Datacatalog.IntRangeFilter(this); + result.min_ = min_; + result.max_ = max_; + 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 pb.lyft.datacatalog.Datacatalog.IntRangeFilter) { + return mergeFrom((pb.lyft.datacatalog.Datacatalog.IntRangeFilter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pb.lyft.datacatalog.Datacatalog.IntRangeFilter other) { + if (other == pb.lyft.datacatalog.Datacatalog.IntRangeFilter.getDefaultInstance()) return this; + if (other.getMin() != 0L) { + setMin(other.getMin()); + } + if (other.getMax() != 0L) { + setMax(other.getMax()); + } + 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 { + pb.lyft.datacatalog.Datacatalog.IntRangeFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (pb.lyft.datacatalog.Datacatalog.IntRangeFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long min_ ; + /** + * int64 min = 1; + */ + public long getMin() { + return min_; + } + /** + * int64 min = 1; + */ + public Builder setMin(long value) { + + min_ = value; + onChanged(); + return this; + } + /** + * int64 min = 1; + */ + public Builder clearMin() { + + min_ = 0L; + onChanged(); + return this; + } + + private long max_ ; + /** + * int64 max = 2; + */ + public long getMax() { + return max_; + } + /** + * int64 max = 2; + */ + public Builder setMax(long value) { + + max_ = value; + onChanged(); + return this; + } + /** + * int64 max = 2; + */ + public Builder clearMax() { + + max_ = 0L; + 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:pb.lyft.datacatalog.IntRangeFilter) + } + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.IntRangeFilter) + private static final pb.lyft.datacatalog.Datacatalog.IntRangeFilter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pb.lyft.datacatalog.Datacatalog.IntRangeFilter(); + } + + public static pb.lyft.datacatalog.Datacatalog.IntRangeFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntRangeFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IntRangeFilter(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 pb.lyft.datacatalog.Datacatalog.IntRangeFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IntQueryKeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:pb.lyft.datacatalog.IntQueryKey) + com.google.protobuf.MessageOrBuilder { + + /** + * .pb.lyft.datacatalog.IntFilter val = 1; + */ + boolean hasVal(); + /** + * .pb.lyft.datacatalog.IntFilter val = 1; + */ + pb.lyft.datacatalog.Datacatalog.IntFilter getVal(); + /** + * .pb.lyft.datacatalog.IntFilter val = 1; + */ + pb.lyft.datacatalog.Datacatalog.IntFilterOrBuilder getValOrBuilder(); + + /** + * .pb.lyft.datacatalog.IntRangeFilter range = 2; + */ + boolean hasRange(); + /** + * .pb.lyft.datacatalog.IntRangeFilter range = 2; + */ + pb.lyft.datacatalog.Datacatalog.IntRangeFilter getRange(); + /** + * .pb.lyft.datacatalog.IntRangeFilter range = 2; + */ + pb.lyft.datacatalog.Datacatalog.IntRangeFilterOrBuilder getRangeOrBuilder(); + + public pb.lyft.datacatalog.Datacatalog.IntQueryKey.FilterCase getFilterCase(); + } + /** + * Protobuf type {@code pb.lyft.datacatalog.IntQueryKey} + */ + public static final class IntQueryKey extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pb.lyft.datacatalog.IntQueryKey) + IntQueryKeyOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntQueryKey.newBuilder() to construct. + private IntQueryKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IntQueryKey() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IntQueryKey( + 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: { + pb.lyft.datacatalog.Datacatalog.IntFilter.Builder subBuilder = null; + if (filterCase_ == 1) { + subBuilder = ((pb.lyft.datacatalog.Datacatalog.IntFilter) filter_).toBuilder(); + } + filter_ = + input.readMessage(pb.lyft.datacatalog.Datacatalog.IntFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((pb.lyft.datacatalog.Datacatalog.IntFilter) filter_); + filter_ = subBuilder.buildPartial(); + } + filterCase_ = 1; + break; + } + case 18: { + pb.lyft.datacatalog.Datacatalog.IntRangeFilter.Builder subBuilder = null; + if (filterCase_ == 2) { + subBuilder = ((pb.lyft.datacatalog.Datacatalog.IntRangeFilter) filter_).toBuilder(); + } + filter_ = + input.readMessage(pb.lyft.datacatalog.Datacatalog.IntRangeFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((pb.lyft.datacatalog.Datacatalog.IntRangeFilter) filter_); + filter_ = subBuilder.buildPartial(); + } + filterCase_ = 2; + 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 pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_IntQueryKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_IntQueryKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.IntQueryKey.class, pb.lyft.datacatalog.Datacatalog.IntQueryKey.Builder.class); + } + + private int filterCase_ = 0; + private java.lang.Object filter_; + public enum FilterCase + implements com.google.protobuf.Internal.EnumLite { + VAL(1), + RANGE(2), + FILTER_NOT_SET(0); + private final int value; + private FilterCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FilterCase valueOf(int value) { + return forNumber(value); + } + + public static FilterCase forNumber(int value) { + switch (value) { + case 1: return VAL; + case 2: return RANGE; + case 0: return FILTER_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public FilterCase + getFilterCase() { + return FilterCase.forNumber( + filterCase_); + } + + public static final int VAL_FIELD_NUMBER = 1; + /** + * .pb.lyft.datacatalog.IntFilter val = 1; + */ + public boolean hasVal() { + return filterCase_ == 1; + } + /** + * .pb.lyft.datacatalog.IntFilter val = 1; + */ + public pb.lyft.datacatalog.Datacatalog.IntFilter getVal() { + if (filterCase_ == 1) { + return (pb.lyft.datacatalog.Datacatalog.IntFilter) filter_; + } + return pb.lyft.datacatalog.Datacatalog.IntFilter.getDefaultInstance(); + } + /** + * .pb.lyft.datacatalog.IntFilter val = 1; + */ + public pb.lyft.datacatalog.Datacatalog.IntFilterOrBuilder getValOrBuilder() { + if (filterCase_ == 1) { + return (pb.lyft.datacatalog.Datacatalog.IntFilter) filter_; + } + return pb.lyft.datacatalog.Datacatalog.IntFilter.getDefaultInstance(); + } + + public static final int RANGE_FIELD_NUMBER = 2; + /** + * .pb.lyft.datacatalog.IntRangeFilter range = 2; + */ + public boolean hasRange() { + return filterCase_ == 2; + } + /** + * .pb.lyft.datacatalog.IntRangeFilter range = 2; + */ + public pb.lyft.datacatalog.Datacatalog.IntRangeFilter getRange() { + if (filterCase_ == 2) { + return (pb.lyft.datacatalog.Datacatalog.IntRangeFilter) filter_; + } + return pb.lyft.datacatalog.Datacatalog.IntRangeFilter.getDefaultInstance(); + } + /** + * .pb.lyft.datacatalog.IntRangeFilter range = 2; + */ + public pb.lyft.datacatalog.Datacatalog.IntRangeFilterOrBuilder getRangeOrBuilder() { + if (filterCase_ == 2) { + return (pb.lyft.datacatalog.Datacatalog.IntRangeFilter) filter_; + } + return pb.lyft.datacatalog.Datacatalog.IntRangeFilter.getDefaultInstance(); + } + + 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 (filterCase_ == 1) { + output.writeMessage(1, (pb.lyft.datacatalog.Datacatalog.IntFilter) filter_); + } + if (filterCase_ == 2) { + output.writeMessage(2, (pb.lyft.datacatalog.Datacatalog.IntRangeFilter) filter_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filterCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (pb.lyft.datacatalog.Datacatalog.IntFilter) filter_); + } + if (filterCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (pb.lyft.datacatalog.Datacatalog.IntRangeFilter) filter_); + } + 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 pb.lyft.datacatalog.Datacatalog.IntQueryKey)) { + return super.equals(obj); + } + pb.lyft.datacatalog.Datacatalog.IntQueryKey other = (pb.lyft.datacatalog.Datacatalog.IntQueryKey) obj; + + if (!getFilterCase().equals(other.getFilterCase())) return false; + switch (filterCase_) { + case 1: + if (!getVal() + .equals(other.getVal())) return false; + break; + case 2: + if (!getRange() + .equals(other.getRange())) return false; + break; + case 0: + default: + } + 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(); + switch (filterCase_) { + case 1: + hash = (37 * hash) + VAL_FIELD_NUMBER; + hash = (53 * hash) + getVal().hashCode(); + break; + case 2: + hash = (37 * hash) + RANGE_FIELD_NUMBER; + hash = (53 * hash) + getRange().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pb.lyft.datacatalog.Datacatalog.IntQueryKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.IntQueryKey parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.IntQueryKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.IntQueryKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.IntQueryKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.IntQueryKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.IntQueryKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.IntQueryKey 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 pb.lyft.datacatalog.Datacatalog.IntQueryKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.IntQueryKey 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 pb.lyft.datacatalog.Datacatalog.IntQueryKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.IntQueryKey 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(pb.lyft.datacatalog.Datacatalog.IntQueryKey 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 pb.lyft.datacatalog.IntQueryKey} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pb.lyft.datacatalog.IntQueryKey) + pb.lyft.datacatalog.Datacatalog.IntQueryKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_IntQueryKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_IntQueryKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.IntQueryKey.class, pb.lyft.datacatalog.Datacatalog.IntQueryKey.Builder.class); + } + + // Construct using pb.lyft.datacatalog.Datacatalog.IntQueryKey.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(); + filterCase_ = 0; + filter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_IntQueryKey_descriptor; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.IntQueryKey getDefaultInstanceForType() { + return pb.lyft.datacatalog.Datacatalog.IntQueryKey.getDefaultInstance(); + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.IntQueryKey build() { + pb.lyft.datacatalog.Datacatalog.IntQueryKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.IntQueryKey buildPartial() { + pb.lyft.datacatalog.Datacatalog.IntQueryKey result = new pb.lyft.datacatalog.Datacatalog.IntQueryKey(this); + if (filterCase_ == 1) { + if (valBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = valBuilder_.build(); + } + } + if (filterCase_ == 2) { + if (rangeBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = rangeBuilder_.build(); + } + } + result.filterCase_ = filterCase_; + 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 pb.lyft.datacatalog.Datacatalog.IntQueryKey) { + return mergeFrom((pb.lyft.datacatalog.Datacatalog.IntQueryKey)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pb.lyft.datacatalog.Datacatalog.IntQueryKey other) { + if (other == pb.lyft.datacatalog.Datacatalog.IntQueryKey.getDefaultInstance()) return this; + switch (other.getFilterCase()) { + case VAL: { + mergeVal(other.getVal()); + break; + } + case RANGE: { + mergeRange(other.getRange()); + break; + } + case FILTER_NOT_SET: { + break; + } + } + 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 { + pb.lyft.datacatalog.Datacatalog.IntQueryKey parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (pb.lyft.datacatalog.Datacatalog.IntQueryKey) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int filterCase_ = 0; + private java.lang.Object filter_; + public FilterCase + getFilterCase() { + return FilterCase.forNumber( + filterCase_); + } + + public Builder clearFilter() { + filterCase_ = 0; + filter_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.IntFilter, pb.lyft.datacatalog.Datacatalog.IntFilter.Builder, pb.lyft.datacatalog.Datacatalog.IntFilterOrBuilder> valBuilder_; + /** + * .pb.lyft.datacatalog.IntFilter val = 1; + */ + public boolean hasVal() { + return filterCase_ == 1; + } + /** + * .pb.lyft.datacatalog.IntFilter val = 1; + */ + public pb.lyft.datacatalog.Datacatalog.IntFilter getVal() { + if (valBuilder_ == null) { + if (filterCase_ == 1) { + return (pb.lyft.datacatalog.Datacatalog.IntFilter) filter_; + } + return pb.lyft.datacatalog.Datacatalog.IntFilter.getDefaultInstance(); + } else { + if (filterCase_ == 1) { + return valBuilder_.getMessage(); + } + return pb.lyft.datacatalog.Datacatalog.IntFilter.getDefaultInstance(); + } + } + /** + * .pb.lyft.datacatalog.IntFilter val = 1; + */ + public Builder setVal(pb.lyft.datacatalog.Datacatalog.IntFilter value) { + if (valBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + valBuilder_.setMessage(value); + } + filterCase_ = 1; + return this; + } + /** + * .pb.lyft.datacatalog.IntFilter val = 1; + */ + public Builder setVal( + pb.lyft.datacatalog.Datacatalog.IntFilter.Builder builderForValue) { + if (valBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + valBuilder_.setMessage(builderForValue.build()); + } + filterCase_ = 1; + return this; + } + /** + * .pb.lyft.datacatalog.IntFilter val = 1; + */ + public Builder mergeVal(pb.lyft.datacatalog.Datacatalog.IntFilter value) { + if (valBuilder_ == null) { + if (filterCase_ == 1 && + filter_ != pb.lyft.datacatalog.Datacatalog.IntFilter.getDefaultInstance()) { + filter_ = pb.lyft.datacatalog.Datacatalog.IntFilter.newBuilder((pb.lyft.datacatalog.Datacatalog.IntFilter) filter_) + .mergeFrom(value).buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + if (filterCase_ == 1) { + valBuilder_.mergeFrom(value); + } + valBuilder_.setMessage(value); + } + filterCase_ = 1; + return this; + } + /** + * .pb.lyft.datacatalog.IntFilter val = 1; + */ + public Builder clearVal() { + if (valBuilder_ == null) { + if (filterCase_ == 1) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + } else { + if (filterCase_ == 1) { + filterCase_ = 0; + filter_ = null; + } + valBuilder_.clear(); + } + return this; + } + /** + * .pb.lyft.datacatalog.IntFilter val = 1; + */ + public pb.lyft.datacatalog.Datacatalog.IntFilter.Builder getValBuilder() { + return getValFieldBuilder().getBuilder(); + } + /** + * .pb.lyft.datacatalog.IntFilter val = 1; + */ + public pb.lyft.datacatalog.Datacatalog.IntFilterOrBuilder getValOrBuilder() { + if ((filterCase_ == 1) && (valBuilder_ != null)) { + return valBuilder_.getMessageOrBuilder(); + } else { + if (filterCase_ == 1) { + return (pb.lyft.datacatalog.Datacatalog.IntFilter) filter_; + } + return pb.lyft.datacatalog.Datacatalog.IntFilter.getDefaultInstance(); + } + } + /** + * .pb.lyft.datacatalog.IntFilter val = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.IntFilter, pb.lyft.datacatalog.Datacatalog.IntFilter.Builder, pb.lyft.datacatalog.Datacatalog.IntFilterOrBuilder> + getValFieldBuilder() { + if (valBuilder_ == null) { + if (!(filterCase_ == 1)) { + filter_ = pb.lyft.datacatalog.Datacatalog.IntFilter.getDefaultInstance(); + } + valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.IntFilter, pb.lyft.datacatalog.Datacatalog.IntFilter.Builder, pb.lyft.datacatalog.Datacatalog.IntFilterOrBuilder>( + (pb.lyft.datacatalog.Datacatalog.IntFilter) filter_, + getParentForChildren(), + isClean()); + filter_ = null; + } + filterCase_ = 1; + onChanged();; + return valBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.IntRangeFilter, pb.lyft.datacatalog.Datacatalog.IntRangeFilter.Builder, pb.lyft.datacatalog.Datacatalog.IntRangeFilterOrBuilder> rangeBuilder_; + /** + * .pb.lyft.datacatalog.IntRangeFilter range = 2; + */ + public boolean hasRange() { + return filterCase_ == 2; + } + /** + * .pb.lyft.datacatalog.IntRangeFilter range = 2; + */ + public pb.lyft.datacatalog.Datacatalog.IntRangeFilter getRange() { + if (rangeBuilder_ == null) { + if (filterCase_ == 2) { + return (pb.lyft.datacatalog.Datacatalog.IntRangeFilter) filter_; + } + return pb.lyft.datacatalog.Datacatalog.IntRangeFilter.getDefaultInstance(); + } else { + if (filterCase_ == 2) { + return rangeBuilder_.getMessage(); + } + return pb.lyft.datacatalog.Datacatalog.IntRangeFilter.getDefaultInstance(); + } + } + /** + * .pb.lyft.datacatalog.IntRangeFilter range = 2; + */ + public Builder setRange(pb.lyft.datacatalog.Datacatalog.IntRangeFilter value) { + if (rangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + rangeBuilder_.setMessage(value); + } + filterCase_ = 2; + return this; + } + /** + * .pb.lyft.datacatalog.IntRangeFilter range = 2; + */ + public Builder setRange( + pb.lyft.datacatalog.Datacatalog.IntRangeFilter.Builder builderForValue) { + if (rangeBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + rangeBuilder_.setMessage(builderForValue.build()); + } + filterCase_ = 2; + return this; + } + /** + * .pb.lyft.datacatalog.IntRangeFilter range = 2; + */ + public Builder mergeRange(pb.lyft.datacatalog.Datacatalog.IntRangeFilter value) { + if (rangeBuilder_ == null) { + if (filterCase_ == 2 && + filter_ != pb.lyft.datacatalog.Datacatalog.IntRangeFilter.getDefaultInstance()) { + filter_ = pb.lyft.datacatalog.Datacatalog.IntRangeFilter.newBuilder((pb.lyft.datacatalog.Datacatalog.IntRangeFilter) filter_) + .mergeFrom(value).buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + if (filterCase_ == 2) { + rangeBuilder_.mergeFrom(value); + } + rangeBuilder_.setMessage(value); + } + filterCase_ = 2; + return this; + } + /** + * .pb.lyft.datacatalog.IntRangeFilter range = 2; + */ + public Builder clearRange() { + if (rangeBuilder_ == null) { + if (filterCase_ == 2) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + } else { + if (filterCase_ == 2) { + filterCase_ = 0; + filter_ = null; + } + rangeBuilder_.clear(); + } + return this; + } + /** + * .pb.lyft.datacatalog.IntRangeFilter range = 2; + */ + public pb.lyft.datacatalog.Datacatalog.IntRangeFilter.Builder getRangeBuilder() { + return getRangeFieldBuilder().getBuilder(); + } + /** + * .pb.lyft.datacatalog.IntRangeFilter range = 2; + */ + public pb.lyft.datacatalog.Datacatalog.IntRangeFilterOrBuilder getRangeOrBuilder() { + if ((filterCase_ == 2) && (rangeBuilder_ != null)) { + return rangeBuilder_.getMessageOrBuilder(); + } else { + if (filterCase_ == 2) { + return (pb.lyft.datacatalog.Datacatalog.IntRangeFilter) filter_; + } + return pb.lyft.datacatalog.Datacatalog.IntRangeFilter.getDefaultInstance(); + } + } + /** + * .pb.lyft.datacatalog.IntRangeFilter range = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.IntRangeFilter, pb.lyft.datacatalog.Datacatalog.IntRangeFilter.Builder, pb.lyft.datacatalog.Datacatalog.IntRangeFilterOrBuilder> + getRangeFieldBuilder() { + if (rangeBuilder_ == null) { + if (!(filterCase_ == 2)) { + filter_ = pb.lyft.datacatalog.Datacatalog.IntRangeFilter.getDefaultInstance(); + } + rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.IntRangeFilter, pb.lyft.datacatalog.Datacatalog.IntRangeFilter.Builder, pb.lyft.datacatalog.Datacatalog.IntRangeFilterOrBuilder>( + (pb.lyft.datacatalog.Datacatalog.IntRangeFilter) filter_, + getParentForChildren(), + isClean()); + filter_ = null; + } + filterCase_ = 2; + onChanged();; + return rangeBuilder_; + } + @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:pb.lyft.datacatalog.IntQueryKey) + } + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.IntQueryKey) + private static final pb.lyft.datacatalog.Datacatalog.IntQueryKey DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pb.lyft.datacatalog.Datacatalog.IntQueryKey(); + } + + public static pb.lyft.datacatalog.Datacatalog.IntQueryKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntQueryKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IntQueryKey(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 pb.lyft.datacatalog.Datacatalog.IntQueryKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QueryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:pb.lyft.datacatalog.QueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + */ + java.lang.String getName(); + /** + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string version = 2; + */ + java.lang.String getVersion(); + /** + * string version = 2; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + * .pb.lyft.datacatalog.IntQueryKey revision = 3; + */ + boolean hasRevision(); + /** + * .pb.lyft.datacatalog.IntQueryKey revision = 3; + */ + pb.lyft.datacatalog.Datacatalog.IntQueryKey getRevision(); + /** + * .pb.lyft.datacatalog.IntQueryKey revision = 3; + */ + pb.lyft.datacatalog.Datacatalog.IntQueryKeyOrBuilder getRevisionOrBuilder(); + + /** + * int64 created_at = 4; + */ + long getCreatedAt(); + + /** + * string reference_id = 5; + */ + java.lang.String getReferenceId(); + /** + * string reference_id = 5; + */ + com.google.protobuf.ByteString + getReferenceIdBytes(); + } + /** + *
+   * QueryRequest allows queries on a range of values for revision column and point queries on created_at
+   * and reference_id
+   * 
+ * + * Protobuf type {@code pb.lyft.datacatalog.QueryRequest} + */ + public static final class QueryRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pb.lyft.datacatalog.QueryRequest) + QueryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryRequest.newBuilder() to construct. + private QueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QueryRequest() { + name_ = ""; + version_ = ""; + referenceId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QueryRequest( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 26: { + pb.lyft.datacatalog.Datacatalog.IntQueryKey.Builder subBuilder = null; + if (revision_ != null) { + subBuilder = revision_.toBuilder(); + } + revision_ = input.readMessage(pb.lyft.datacatalog.Datacatalog.IntQueryKey.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(revision_); + revision_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + + createdAt_ = input.readInt64(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + referenceId_ = s; + 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 pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_QueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_QueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.QueryRequest.class, pb.lyft.datacatalog.Datacatalog.QueryRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object version_; + /** + * string version = 2; + */ + 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 = 2; + */ + 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 REVISION_FIELD_NUMBER = 3; + private pb.lyft.datacatalog.Datacatalog.IntQueryKey revision_; + /** + * .pb.lyft.datacatalog.IntQueryKey revision = 3; + */ + public boolean hasRevision() { + return revision_ != null; + } + /** + * .pb.lyft.datacatalog.IntQueryKey revision = 3; + */ + public pb.lyft.datacatalog.Datacatalog.IntQueryKey getRevision() { + return revision_ == null ? pb.lyft.datacatalog.Datacatalog.IntQueryKey.getDefaultInstance() : revision_; + } + /** + * .pb.lyft.datacatalog.IntQueryKey revision = 3; + */ + public pb.lyft.datacatalog.Datacatalog.IntQueryKeyOrBuilder getRevisionOrBuilder() { + return getRevision(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 4; + private long createdAt_; + /** + * int64 created_at = 4; + */ + public long getCreatedAt() { + return createdAt_; + } + + public static final int REFERENCE_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object referenceId_; + /** + * string reference_id = 5; + */ + public java.lang.String getReferenceId() { + java.lang.Object ref = referenceId_; + 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(); + referenceId_ = s; + return s; + } + } + /** + * string reference_id = 5; + */ + public com.google.protobuf.ByteString + getReferenceIdBytes() { + java.lang.Object ref = referenceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + referenceId_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + if (revision_ != null) { + output.writeMessage(3, getRevision()); + } + if (createdAt_ != 0L) { + output.writeInt64(4, createdAt_); + } + if (!getReferenceIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, referenceId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + if (revision_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRevision()); + } + if (createdAt_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, createdAt_); + } + if (!getReferenceIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, referenceId_); + } + 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 pb.lyft.datacatalog.Datacatalog.QueryRequest)) { + return super.equals(obj); + } + pb.lyft.datacatalog.Datacatalog.QueryRequest other = (pb.lyft.datacatalog.Datacatalog.QueryRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (hasRevision() != other.hasRevision()) return false; + if (hasRevision()) { + if (!getRevision() + .equals(other.getRevision())) return false; + } + if (getCreatedAt() + != other.getCreatedAt()) return false; + if (!getReferenceId() + .equals(other.getReferenceId())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + if (hasRevision()) { + hash = (37 * hash) + REVISION_FIELD_NUMBER; + hash = (53 * hash) + getRevision().hashCode(); + } + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreatedAt()); + hash = (37 * hash) + REFERENCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getReferenceId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pb.lyft.datacatalog.Datacatalog.QueryRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.QueryRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.QueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.QueryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.QueryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.QueryRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.QueryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.QueryRequest 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 pb.lyft.datacatalog.Datacatalog.QueryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.QueryRequest 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 pb.lyft.datacatalog.Datacatalog.QueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.QueryRequest 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(pb.lyft.datacatalog.Datacatalog.QueryRequest 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; + } + /** + *
+     * QueryRequest allows queries on a range of values for revision column and point queries on created_at
+     * and reference_id
+     * 
+ * + * Protobuf type {@code pb.lyft.datacatalog.QueryRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pb.lyft.datacatalog.QueryRequest) + pb.lyft.datacatalog.Datacatalog.QueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_QueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_QueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.QueryRequest.class, pb.lyft.datacatalog.Datacatalog.QueryRequest.Builder.class); + } + + // Construct using pb.lyft.datacatalog.Datacatalog.QueryRequest.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(); + name_ = ""; + + version_ = ""; + + if (revisionBuilder_ == null) { + revision_ = null; + } else { + revision_ = null; + revisionBuilder_ = null; + } + createdAt_ = 0L; + + referenceId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_QueryRequest_descriptor; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.QueryRequest getDefaultInstanceForType() { + return pb.lyft.datacatalog.Datacatalog.QueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.QueryRequest build() { + pb.lyft.datacatalog.Datacatalog.QueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.QueryRequest buildPartial() { + pb.lyft.datacatalog.Datacatalog.QueryRequest result = new pb.lyft.datacatalog.Datacatalog.QueryRequest(this); + result.name_ = name_; + result.version_ = version_; + if (revisionBuilder_ == null) { + result.revision_ = revision_; + } else { + result.revision_ = revisionBuilder_.build(); + } + result.createdAt_ = createdAt_; + result.referenceId_ = referenceId_; + 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 pb.lyft.datacatalog.Datacatalog.QueryRequest) { + return mergeFrom((pb.lyft.datacatalog.Datacatalog.QueryRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pb.lyft.datacatalog.Datacatalog.QueryRequest other) { + if (other == pb.lyft.datacatalog.Datacatalog.QueryRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (other.hasRevision()) { + mergeRevision(other.getRevision()); + } + if (other.getCreatedAt() != 0L) { + setCreatedAt(other.getCreatedAt()); + } + if (!other.getReferenceId().isEmpty()) { + referenceId_ = other.referenceId_; + onChanged(); + } + 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 { + pb.lyft.datacatalog.Datacatalog.QueryRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (pb.lyft.datacatalog.Datacatalog.QueryRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * string version = 2; + */ + 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 (java.lang.String) ref; + } + } + /** + * string version = 2; + */ + 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 (com.google.protobuf.ByteString) ref; + } + } + /** + * string version = 2; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * string version = 2; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * string version = 2; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private pb.lyft.datacatalog.Datacatalog.IntQueryKey revision_; + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.IntQueryKey, pb.lyft.datacatalog.Datacatalog.IntQueryKey.Builder, pb.lyft.datacatalog.Datacatalog.IntQueryKeyOrBuilder> revisionBuilder_; + /** + * .pb.lyft.datacatalog.IntQueryKey revision = 3; + */ + public boolean hasRevision() { + return revisionBuilder_ != null || revision_ != null; + } + /** + * .pb.lyft.datacatalog.IntQueryKey revision = 3; + */ + public pb.lyft.datacatalog.Datacatalog.IntQueryKey getRevision() { + if (revisionBuilder_ == null) { + return revision_ == null ? pb.lyft.datacatalog.Datacatalog.IntQueryKey.getDefaultInstance() : revision_; + } else { + return revisionBuilder_.getMessage(); + } + } + /** + * .pb.lyft.datacatalog.IntQueryKey revision = 3; + */ + public Builder setRevision(pb.lyft.datacatalog.Datacatalog.IntQueryKey value) { + if (revisionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + revision_ = value; + onChanged(); + } else { + revisionBuilder_.setMessage(value); + } + + return this; + } + /** + * .pb.lyft.datacatalog.IntQueryKey revision = 3; + */ + public Builder setRevision( + pb.lyft.datacatalog.Datacatalog.IntQueryKey.Builder builderForValue) { + if (revisionBuilder_ == null) { + revision_ = builderForValue.build(); + onChanged(); + } else { + revisionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .pb.lyft.datacatalog.IntQueryKey revision = 3; + */ + public Builder mergeRevision(pb.lyft.datacatalog.Datacatalog.IntQueryKey value) { + if (revisionBuilder_ == null) { + if (revision_ != null) { + revision_ = + pb.lyft.datacatalog.Datacatalog.IntQueryKey.newBuilder(revision_).mergeFrom(value).buildPartial(); + } else { + revision_ = value; + } + onChanged(); + } else { + revisionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .pb.lyft.datacatalog.IntQueryKey revision = 3; + */ + public Builder clearRevision() { + if (revisionBuilder_ == null) { + revision_ = null; + onChanged(); + } else { + revision_ = null; + revisionBuilder_ = null; + } + + return this; + } + /** + * .pb.lyft.datacatalog.IntQueryKey revision = 3; + */ + public pb.lyft.datacatalog.Datacatalog.IntQueryKey.Builder getRevisionBuilder() { + + onChanged(); + return getRevisionFieldBuilder().getBuilder(); + } + /** + * .pb.lyft.datacatalog.IntQueryKey revision = 3; + */ + public pb.lyft.datacatalog.Datacatalog.IntQueryKeyOrBuilder getRevisionOrBuilder() { + if (revisionBuilder_ != null) { + return revisionBuilder_.getMessageOrBuilder(); + } else { + return revision_ == null ? + pb.lyft.datacatalog.Datacatalog.IntQueryKey.getDefaultInstance() : revision_; + } + } + /** + * .pb.lyft.datacatalog.IntQueryKey revision = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.IntQueryKey, pb.lyft.datacatalog.Datacatalog.IntQueryKey.Builder, pb.lyft.datacatalog.Datacatalog.IntQueryKeyOrBuilder> + getRevisionFieldBuilder() { + if (revisionBuilder_ == null) { + revisionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.IntQueryKey, pb.lyft.datacatalog.Datacatalog.IntQueryKey.Builder, pb.lyft.datacatalog.Datacatalog.IntQueryKeyOrBuilder>( + getRevision(), + getParentForChildren(), + isClean()); + revision_ = null; + } + return revisionBuilder_; + } + + private long createdAt_ ; + /** + * int64 created_at = 4; + */ + public long getCreatedAt() { + return createdAt_; + } + /** + * int64 created_at = 4; + */ + public Builder setCreatedAt(long value) { + + createdAt_ = value; + onChanged(); + return this; + } + /** + * int64 created_at = 4; + */ + public Builder clearCreatedAt() { + + createdAt_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object referenceId_ = ""; + /** + * string reference_id = 5; + */ + public java.lang.String getReferenceId() { + java.lang.Object ref = referenceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + referenceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string reference_id = 5; + */ + public com.google.protobuf.ByteString + getReferenceIdBytes() { + java.lang.Object ref = referenceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + referenceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string reference_id = 5; + */ + public Builder setReferenceId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + referenceId_ = value; + onChanged(); + return this; + } + /** + * string reference_id = 5; + */ + public Builder clearReferenceId() { + + referenceId_ = getDefaultInstance().getReferenceId(); + onChanged(); + return this; + } + /** + * string reference_id = 5; + */ + public Builder setReferenceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + referenceId_ = 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:pb.lyft.datacatalog.QueryRequest) + } + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.QueryRequest) + private static final pb.lyft.datacatalog.Datacatalog.QueryRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pb.lyft.datacatalog.Datacatalog.QueryRequest(); + } + + public static pb.lyft.datacatalog.Datacatalog.QueryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QueryRequest(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 pb.lyft.datacatalog.Datacatalog.QueryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QueryResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:pb.lyft.datacatalog.QueryResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + java.util.List + getArtifactList(); + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + pb.lyft.datacatalog.Datacatalog.Artifact getArtifact(int index); + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + int getArtifactCount(); + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + java.util.List + getArtifactOrBuilderList(); + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder( + int index); + } + /** + * Protobuf type {@code pb.lyft.datacatalog.QueryResponse} + */ + public static final class QueryResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pb.lyft.datacatalog.QueryResponse) + QueryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryResponse.newBuilder() to construct. + private QueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QueryResponse() { + artifact_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QueryResponse( + 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: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + artifact_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + artifact_.add( + input.readMessage(pb.lyft.datacatalog.Datacatalog.Artifact.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + artifact_ = java.util.Collections.unmodifiableList(artifact_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_QueryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_QueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.QueryResponse.class, pb.lyft.datacatalog.Datacatalog.QueryResponse.Builder.class); + } + + public static final int ARTIFACT_FIELD_NUMBER = 1; + private java.util.List artifact_; + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public java.util.List getArtifactList() { + return artifact_; + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public java.util.List + getArtifactOrBuilderList() { + return artifact_; + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public int getArtifactCount() { + return artifact_.size(); + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.Artifact getArtifact(int index) { + return artifact_.get(index); + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder( + int index) { + return artifact_.get(index); + } + + 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 { + for (int i = 0; i < artifact_.size(); i++) { + output.writeMessage(1, artifact_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < artifact_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, artifact_.get(i)); + } + 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 pb.lyft.datacatalog.Datacatalog.QueryResponse)) { + return super.equals(obj); + } + pb.lyft.datacatalog.Datacatalog.QueryResponse other = (pb.lyft.datacatalog.Datacatalog.QueryResponse) obj; + + if (!getArtifactList() + .equals(other.getArtifactList())) 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 (getArtifactCount() > 0) { + hash = (37 * hash) + ARTIFACT_FIELD_NUMBER; + hash = (53 * hash) + getArtifactList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pb.lyft.datacatalog.Datacatalog.QueryResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.QueryResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.QueryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.QueryResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.QueryResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.QueryResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.QueryResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.QueryResponse 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 pb.lyft.datacatalog.Datacatalog.QueryResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.QueryResponse 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 pb.lyft.datacatalog.Datacatalog.QueryResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.QueryResponse 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(pb.lyft.datacatalog.Datacatalog.QueryResponse 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 pb.lyft.datacatalog.QueryResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pb.lyft.datacatalog.QueryResponse) + pb.lyft.datacatalog.Datacatalog.QueryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_QueryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_QueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.QueryResponse.class, pb.lyft.datacatalog.Datacatalog.QueryResponse.Builder.class); + } + + // Construct using pb.lyft.datacatalog.Datacatalog.QueryResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getArtifactFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (artifactBuilder_ == null) { + artifact_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + artifactBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_QueryResponse_descriptor; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.QueryResponse getDefaultInstanceForType() { + return pb.lyft.datacatalog.Datacatalog.QueryResponse.getDefaultInstance(); + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.QueryResponse build() { + pb.lyft.datacatalog.Datacatalog.QueryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.QueryResponse buildPartial() { + pb.lyft.datacatalog.Datacatalog.QueryResponse result = new pb.lyft.datacatalog.Datacatalog.QueryResponse(this); + int from_bitField0_ = bitField0_; + if (artifactBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + artifact_ = java.util.Collections.unmodifiableList(artifact_); + bitField0_ = (bitField0_ & ~0x00000001); + } + 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 pb.lyft.datacatalog.Datacatalog.QueryResponse) { + return mergeFrom((pb.lyft.datacatalog.Datacatalog.QueryResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pb.lyft.datacatalog.Datacatalog.QueryResponse other) { + if (other == pb.lyft.datacatalog.Datacatalog.QueryResponse.getDefaultInstance()) return this; + if (artifactBuilder_ == null) { + if (!other.artifact_.isEmpty()) { + if (artifact_.isEmpty()) { + artifact_ = other.artifact_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureArtifactIsMutable(); + artifact_.addAll(other.artifact_); + } + onChanged(); + } + } else { + if (!other.artifact_.isEmpty()) { + if (artifactBuilder_.isEmpty()) { + artifactBuilder_.dispose(); + artifactBuilder_ = null; + artifact_ = other.artifact_; + bitField0_ = (bitField0_ & ~0x00000001); + artifactBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getArtifactFieldBuilder() : null; + } else { + artifactBuilder_.addAllMessages(other.artifact_); + } + } + } + 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 { + pb.lyft.datacatalog.Datacatalog.QueryResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (pb.lyft.datacatalog.Datacatalog.QueryResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List artifact_ = + java.util.Collections.emptyList(); + private void ensureArtifactIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + artifact_ = new java.util.ArrayList(artifact_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Artifact, pb.lyft.datacatalog.Datacatalog.Artifact.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder> artifactBuilder_; + + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public java.util.List getArtifactList() { + if (artifactBuilder_ == null) { + return java.util.Collections.unmodifiableList(artifact_); + } else { + return artifactBuilder_.getMessageList(); + } + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public int getArtifactCount() { + if (artifactBuilder_ == null) { + return artifact_.size(); + } else { + return artifactBuilder_.getCount(); + } + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.Artifact getArtifact(int index) { + if (artifactBuilder_ == null) { + return artifact_.get(index); + } else { + return artifactBuilder_.getMessage(index); + } + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact( + int index, pb.lyft.datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactIsMutable(); + artifact_.set(index, value); + onChanged(); + } else { + artifactBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact( + int index, pb.lyft.datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactBuilder_ == null) { + ensureArtifactIsMutable(); + artifact_.set(index, builderForValue.build()); + onChanged(); + } else { + artifactBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder addArtifact(pb.lyft.datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactIsMutable(); + artifact_.add(value); + onChanged(); + } else { + artifactBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder addArtifact( + int index, pb.lyft.datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactIsMutable(); + artifact_.add(index, value); + onChanged(); + } else { + artifactBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder addArtifact( + pb.lyft.datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactBuilder_ == null) { + ensureArtifactIsMutable(); + artifact_.add(builderForValue.build()); + onChanged(); + } else { + artifactBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder addArtifact( + int index, pb.lyft.datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactBuilder_ == null) { + ensureArtifactIsMutable(); + artifact_.add(index, builderForValue.build()); + onChanged(); + } else { + artifactBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder addAllArtifact( + java.lang.Iterable values) { + if (artifactBuilder_ == null) { + ensureArtifactIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, artifact_); + onChanged(); + } else { + artifactBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder clearArtifact() { + if (artifactBuilder_ == null) { + artifact_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + artifactBuilder_.clear(); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder removeArtifact(int index) { + if (artifactBuilder_ == null) { + ensureArtifactIsMutable(); + artifact_.remove(index); + onChanged(); + } else { + artifactBuilder_.remove(index); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.Artifact.Builder getArtifactBuilder( + int index) { + return getArtifactFieldBuilder().getBuilder(index); + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder( + int index) { + if (artifactBuilder_ == null) { + return artifact_.get(index); } else { + return artifactBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public java.util.List + getArtifactOrBuilderList() { + if (artifactBuilder_ != null) { + return artifactBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(artifact_); + } + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.Artifact.Builder addArtifactBuilder() { + return getArtifactFieldBuilder().addBuilder( + pb.lyft.datacatalog.Datacatalog.Artifact.getDefaultInstance()); + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.Artifact.Builder addArtifactBuilder( + int index) { + return getArtifactFieldBuilder().addBuilder( + index, pb.lyft.datacatalog.Datacatalog.Artifact.getDefaultInstance()); + } + /** + * repeated .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public java.util.List + getArtifactBuilderList() { + return getArtifactFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Artifact, pb.lyft.datacatalog.Datacatalog.Artifact.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder> + getArtifactFieldBuilder() { + if (artifactBuilder_ == null) { + artifactBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Artifact, pb.lyft.datacatalog.Datacatalog.Artifact.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder>( + artifact_, + ((bitField0_ & 0x00000001) != 0), + 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); + } + + + // @@protoc_insertion_point(builder_scope:pb.lyft.datacatalog.QueryResponse) + } + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.QueryResponse) + private static final pb.lyft.datacatalog.Datacatalog.QueryResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pb.lyft.datacatalog.Datacatalog.QueryResponse(); + } + + public static pb.lyft.datacatalog.Datacatalog.QueryResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QueryResponse(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 pb.lyft.datacatalog.Datacatalog.QueryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:pb.lyft.datacatalog.CreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .pb.lyft.datacatalog.ArtifactId ref = 1; + */ + boolean hasRef(); + /** + * .pb.lyft.datacatalog.ArtifactId ref = 1; + */ + pb.lyft.datacatalog.Datacatalog.ArtifactId getRef(); + /** + * .pb.lyft.datacatalog.ArtifactId ref = 1; + */ + pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder getRefOrBuilder(); + + /** + * string reference_id = 2; + */ + java.lang.String getReferenceId(); + /** + * string reference_id = 2; + */ + com.google.protobuf.ByteString + getReferenceIdBytes(); + + /** + * int64 revision = 3; + */ + long getRevision(); + + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + java.util.List + getOutputsList(); + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + pb.lyft.datacatalog.Datacatalog.Parameter getOutputs(int index); + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + int getOutputsCount(); + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + java.util.List + getOutputsOrBuilderList(); + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder getOutputsOrBuilder( + int index); + } + /** + * Protobuf type {@code pb.lyft.datacatalog.CreateRequest} + */ + public static final class CreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pb.lyft.datacatalog.CreateRequest) + CreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateRequest.newBuilder() to construct. + private CreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateRequest() { + referenceId_ = ""; + outputs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateRequest( + 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: { + pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder subBuilder = null; + if (ref_ != null) { + subBuilder = ref_.toBuilder(); + } + ref_ = input.readMessage(pb.lyft.datacatalog.Datacatalog.ArtifactId.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ref_); + ref_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + referenceId_ = s; + break; + } + case 24: { + + revision_ = input.readInt64(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + outputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + outputs_.add( + input.readMessage(pb.lyft.datacatalog.Datacatalog.Parameter.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000008) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_CreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_CreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.CreateRequest.class, pb.lyft.datacatalog.Datacatalog.CreateRequest.Builder.class); + } + + private int bitField0_; + public static final int REF_FIELD_NUMBER = 1; + private pb.lyft.datacatalog.Datacatalog.ArtifactId ref_; + /** + * .pb.lyft.datacatalog.ArtifactId ref = 1; + */ + public boolean hasRef() { + return ref_ != null; + } + /** + * .pb.lyft.datacatalog.ArtifactId ref = 1; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactId getRef() { + return ref_ == null ? pb.lyft.datacatalog.Datacatalog.ArtifactId.getDefaultInstance() : ref_; + } + /** + * .pb.lyft.datacatalog.ArtifactId ref = 1; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder getRefOrBuilder() { + return getRef(); + } + + public static final int REFERENCE_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object referenceId_; + /** + * string reference_id = 2; + */ + public java.lang.String getReferenceId() { + java.lang.Object ref = referenceId_; + 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(); + referenceId_ = s; + return s; + } + } + /** + * string reference_id = 2; + */ + public com.google.protobuf.ByteString + getReferenceIdBytes() { + java.lang.Object ref = referenceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + referenceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_FIELD_NUMBER = 3; + private long revision_; + /** + * int64 revision = 3; + */ + public long getRevision() { + return revision_; + } + + public static final int OUTPUTS_FIELD_NUMBER = 4; + private java.util.List outputs_; + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public java.util.List getOutputsList() { + return outputs_; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public java.util.List + getOutputsOrBuilderList() { + return outputs_; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public int getOutputsCount() { + return outputs_.size(); + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter getOutputs(int index) { + return outputs_.get(index); + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder getOutputsOrBuilder( + int index) { + return outputs_.get(index); + } + + 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 (ref_ != null) { + output.writeMessage(1, getRef()); + } + if (!getReferenceIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, referenceId_); + } + if (revision_ != 0L) { + output.writeInt64(3, revision_); + } + for (int i = 0; i < outputs_.size(); i++) { + output.writeMessage(4, outputs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ref_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRef()); + } + if (!getReferenceIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, referenceId_); + } + if (revision_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, revision_); + } + for (int i = 0; i < outputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, outputs_.get(i)); + } + 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 pb.lyft.datacatalog.Datacatalog.CreateRequest)) { + return super.equals(obj); + } + pb.lyft.datacatalog.Datacatalog.CreateRequest other = (pb.lyft.datacatalog.Datacatalog.CreateRequest) obj; + + if (hasRef() != other.hasRef()) return false; + if (hasRef()) { + if (!getRef() + .equals(other.getRef())) return false; + } + if (!getReferenceId() + .equals(other.getReferenceId())) return false; + if (getRevision() + != other.getRevision()) return false; + if (!getOutputsList() + .equals(other.getOutputsList())) 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 (hasRef()) { + hash = (37 * hash) + REF_FIELD_NUMBER; + hash = (53 * hash) + getRef().hashCode(); + } + hash = (37 * hash) + REFERENCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getReferenceId().hashCode(); + hash = (37 * hash) + REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRevision()); + if (getOutputsCount() > 0) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pb.lyft.datacatalog.Datacatalog.CreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.CreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.CreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.CreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.CreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.CreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.CreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.CreateRequest 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 pb.lyft.datacatalog.Datacatalog.CreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.CreateRequest 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 pb.lyft.datacatalog.Datacatalog.CreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.CreateRequest 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(pb.lyft.datacatalog.Datacatalog.CreateRequest 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 pb.lyft.datacatalog.CreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pb.lyft.datacatalog.CreateRequest) + pb.lyft.datacatalog.Datacatalog.CreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_CreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_CreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.CreateRequest.class, pb.lyft.datacatalog.Datacatalog.CreateRequest.Builder.class); + } + + // Construct using pb.lyft.datacatalog.Datacatalog.CreateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOutputsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (refBuilder_ == null) { + ref_ = null; + } else { + ref_ = null; + refBuilder_ = null; + } + referenceId_ = ""; + + revision_ = 0L; + + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + outputsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_CreateRequest_descriptor; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.CreateRequest getDefaultInstanceForType() { + return pb.lyft.datacatalog.Datacatalog.CreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.CreateRequest build() { + pb.lyft.datacatalog.Datacatalog.CreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.CreateRequest buildPartial() { + pb.lyft.datacatalog.Datacatalog.CreateRequest result = new pb.lyft.datacatalog.Datacatalog.CreateRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (refBuilder_ == null) { + result.ref_ = ref_; + } else { + result.ref_ = refBuilder_.build(); + } + result.referenceId_ = referenceId_; + result.revision_ = revision_; + if (outputsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + 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 pb.lyft.datacatalog.Datacatalog.CreateRequest) { + return mergeFrom((pb.lyft.datacatalog.Datacatalog.CreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pb.lyft.datacatalog.Datacatalog.CreateRequest other) { + if (other == pb.lyft.datacatalog.Datacatalog.CreateRequest.getDefaultInstance()) return this; + if (other.hasRef()) { + mergeRef(other.getRef()); + } + if (!other.getReferenceId().isEmpty()) { + referenceId_ = other.referenceId_; + onChanged(); + } + if (other.getRevision() != 0L) { + setRevision(other.getRevision()); + } + if (outputsBuilder_ == null) { + if (!other.outputs_.isEmpty()) { + if (outputs_.isEmpty()) { + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureOutputsIsMutable(); + outputs_.addAll(other.outputs_); + } + onChanged(); + } + } else { + if (!other.outputs_.isEmpty()) { + if (outputsBuilder_.isEmpty()) { + outputsBuilder_.dispose(); + outputsBuilder_ = null; + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000008); + outputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputsFieldBuilder() : null; + } else { + outputsBuilder_.addAllMessages(other.outputs_); + } + } + } + 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 { + pb.lyft.datacatalog.Datacatalog.CreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (pb.lyft.datacatalog.Datacatalog.CreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private pb.lyft.datacatalog.Datacatalog.ArtifactId ref_; + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.ArtifactId, pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder> refBuilder_; + /** + * .pb.lyft.datacatalog.ArtifactId ref = 1; + */ + public boolean hasRef() { + return refBuilder_ != null || ref_ != null; + } + /** + * .pb.lyft.datacatalog.ArtifactId ref = 1; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactId getRef() { + if (refBuilder_ == null) { + return ref_ == null ? pb.lyft.datacatalog.Datacatalog.ArtifactId.getDefaultInstance() : ref_; + } else { + return refBuilder_.getMessage(); + } + } + /** + * .pb.lyft.datacatalog.ArtifactId ref = 1; + */ + public Builder setRef(pb.lyft.datacatalog.Datacatalog.ArtifactId value) { + if (refBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ref_ = value; + onChanged(); + } else { + refBuilder_.setMessage(value); + } + + return this; + } + /** + * .pb.lyft.datacatalog.ArtifactId ref = 1; + */ + public Builder setRef( + pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder builderForValue) { + if (refBuilder_ == null) { + ref_ = builderForValue.build(); + onChanged(); + } else { + refBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .pb.lyft.datacatalog.ArtifactId ref = 1; + */ + public Builder mergeRef(pb.lyft.datacatalog.Datacatalog.ArtifactId value) { + if (refBuilder_ == null) { + if (ref_ != null) { + ref_ = + pb.lyft.datacatalog.Datacatalog.ArtifactId.newBuilder(ref_).mergeFrom(value).buildPartial(); + } else { + ref_ = value; + } + onChanged(); + } else { + refBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .pb.lyft.datacatalog.ArtifactId ref = 1; + */ + public Builder clearRef() { + if (refBuilder_ == null) { + ref_ = null; + onChanged(); + } else { + ref_ = null; + refBuilder_ = null; + } + + return this; + } + /** + * .pb.lyft.datacatalog.ArtifactId ref = 1; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder getRefBuilder() { + + onChanged(); + return getRefFieldBuilder().getBuilder(); + } + /** + * .pb.lyft.datacatalog.ArtifactId ref = 1; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder getRefOrBuilder() { + if (refBuilder_ != null) { + return refBuilder_.getMessageOrBuilder(); + } else { + return ref_ == null ? + pb.lyft.datacatalog.Datacatalog.ArtifactId.getDefaultInstance() : ref_; + } + } + /** + * .pb.lyft.datacatalog.ArtifactId ref = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.ArtifactId, pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder> + getRefFieldBuilder() { + if (refBuilder_ == null) { + refBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.ArtifactId, pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder>( + getRef(), + getParentForChildren(), + isClean()); + ref_ = null; + } + return refBuilder_; + } + + private java.lang.Object referenceId_ = ""; + /** + * string reference_id = 2; + */ + public java.lang.String getReferenceId() { + java.lang.Object ref = referenceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + referenceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string reference_id = 2; + */ + public com.google.protobuf.ByteString + getReferenceIdBytes() { + java.lang.Object ref = referenceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + referenceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string reference_id = 2; + */ + public Builder setReferenceId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + referenceId_ = value; + onChanged(); + return this; + } + /** + * string reference_id = 2; + */ + public Builder clearReferenceId() { + + referenceId_ = getDefaultInstance().getReferenceId(); + onChanged(); + return this; + } + /** + * string reference_id = 2; + */ + public Builder setReferenceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + referenceId_ = value; + onChanged(); + return this; + } + + private long revision_ ; + /** + * int64 revision = 3; + */ + public long getRevision() { + return revision_; + } + /** + * int64 revision = 3; + */ + public Builder setRevision(long value) { + + revision_ = value; + onChanged(); + return this; + } + /** + * int64 revision = 3; + */ + public Builder clearRevision() { + + revision_ = 0L; + onChanged(); + return this; + } + + private java.util.List outputs_ = + java.util.Collections.emptyList(); + private void ensureOutputsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + outputs_ = new java.util.ArrayList(outputs_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Parameter, pb.lyft.datacatalog.Datacatalog.Parameter.Builder, pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder> outputsBuilder_; + + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public java.util.List getOutputsList() { + if (outputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputs_); + } else { + return outputsBuilder_.getMessageList(); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public int getOutputsCount() { + if (outputsBuilder_ == null) { + return outputs_.size(); + } else { + return outputsBuilder_.getCount(); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter getOutputs(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessage(index); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public Builder setOutputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.set(index, value); + onChanged(); + } else { + outputsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public Builder setOutputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.set(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public Builder addOutputs(pb.lyft.datacatalog.Datacatalog.Parameter value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(value); + onChanged(); + } else { + outputsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public Builder addOutputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(index, value); + onChanged(); + } else { + outputsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public Builder addOutputs( + pb.lyft.datacatalog.Datacatalog.Parameter.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public Builder addOutputs( + int index, pb.lyft.datacatalog.Datacatalog.Parameter.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public Builder addAllOutputs( + java.lang.Iterable values) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputs_); + onChanged(); + } else { + outputsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + outputsBuilder_.clear(); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public Builder removeOutputs(int index) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.remove(index); + onChanged(); + } else { + outputsBuilder_.remove(index); + } + return this; + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter.Builder getOutputsBuilder( + int index) { + return getOutputsFieldBuilder().getBuilder(index); + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder getOutputsOrBuilder( + int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); } else { + return outputsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public java.util.List + getOutputsOrBuilderList() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputs_); + } + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter.Builder addOutputsBuilder() { + return getOutputsFieldBuilder().addBuilder( + pb.lyft.datacatalog.Datacatalog.Parameter.getDefaultInstance()); + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public pb.lyft.datacatalog.Datacatalog.Parameter.Builder addOutputsBuilder( + int index) { + return getOutputsFieldBuilder().addBuilder( + index, pb.lyft.datacatalog.Datacatalog.Parameter.getDefaultInstance()); + } + /** + * repeated .pb.lyft.datacatalog.Parameter outputs = 4; + */ + public java.util.List + getOutputsBuilderList() { + return getOutputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Parameter, pb.lyft.datacatalog.Datacatalog.Parameter.Builder, pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Parameter, pb.lyft.datacatalog.Datacatalog.Parameter.Builder, pb.lyft.datacatalog.Datacatalog.ParameterOrBuilder>( + outputs_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + @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:pb.lyft.datacatalog.CreateRequest) + } + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.CreateRequest) + private static final pb.lyft.datacatalog.Datacatalog.CreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pb.lyft.datacatalog.Datacatalog.CreateRequest(); + } + + public static pb.lyft.datacatalog.Datacatalog.CreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateRequest(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 pb.lyft.datacatalog.Datacatalog.CreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:pb.lyft.datacatalog.CreateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + boolean hasArtifact(); + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + pb.lyft.datacatalog.Datacatalog.Artifact getArtifact(); + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder(); + + /** + * .pb.lyft.datacatalog.CreateResponse.Status status = 2; + */ + int getStatusValue(); + /** + * .pb.lyft.datacatalog.CreateResponse.Status status = 2; + */ + pb.lyft.datacatalog.Datacatalog.CreateResponse.Status getStatus(); + } + /** + * Protobuf type {@code pb.lyft.datacatalog.CreateResponse} + */ + public static final class CreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pb.lyft.datacatalog.CreateResponse) + CreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateResponse.newBuilder() to construct. + private CreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateResponse() { + status_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateResponse( + 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: { + pb.lyft.datacatalog.Datacatalog.Artifact.Builder subBuilder = null; + if (artifact_ != null) { + subBuilder = artifact_.toBuilder(); + } + artifact_ = input.readMessage(pb.lyft.datacatalog.Datacatalog.Artifact.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(artifact_); + artifact_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + status_ = rawValue; + 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 pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_CreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_CreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.CreateResponse.class, pb.lyft.datacatalog.Datacatalog.CreateResponse.Builder.class); + } + + /** + * Protobuf enum {@code pb.lyft.datacatalog.CreateResponse.Status} + */ + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { + /** + * ALREADY_EXISTS = 0; + */ + ALREADY_EXISTS(0), + /** + * CREATED = 1; + */ + CREATED(1), + UNRECOGNIZED(-1), + ; + + /** + * ALREADY_EXISTS = 0; + */ + public static final int ALREADY_EXISTS_VALUE = 0; + /** + * CREATED = 1; + */ + public static final int CREATED_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 Status valueOf(int value) { + return forNumber(value); + } + + public static Status forNumber(int value) { + switch (value) { + case 0: return ALREADY_EXISTS; + case 1: return CREATED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.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 pb.lyft.datacatalog.Datacatalog.CreateResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status 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 Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:pb.lyft.datacatalog.CreateResponse.Status) + } + + public static final int ARTIFACT_FIELD_NUMBER = 1; + private pb.lyft.datacatalog.Datacatalog.Artifact artifact_; + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return artifact_ != null; + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.Artifact getArtifact() { + return artifact_ == null ? pb.lyft.datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder() { + return getArtifact(); + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_; + /** + * .pb.lyft.datacatalog.CreateResponse.Status status = 2; + */ + public int getStatusValue() { + return status_; + } + /** + * .pb.lyft.datacatalog.CreateResponse.Status status = 2; + */ + public pb.lyft.datacatalog.Datacatalog.CreateResponse.Status getStatus() { + @SuppressWarnings("deprecation") + pb.lyft.datacatalog.Datacatalog.CreateResponse.Status result = pb.lyft.datacatalog.Datacatalog.CreateResponse.Status.valueOf(status_); + return result == null ? pb.lyft.datacatalog.Datacatalog.CreateResponse.Status.UNRECOGNIZED : result; + } + + 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()); + } + if (status_ != pb.lyft.datacatalog.Datacatalog.CreateResponse.Status.ALREADY_EXISTS.getNumber()) { + output.writeEnum(2, status_); + } + 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()); + } + if (status_ != pb.lyft.datacatalog.Datacatalog.CreateResponse.Status.ALREADY_EXISTS.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, status_); + } + 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 pb.lyft.datacatalog.Datacatalog.CreateResponse)) { + return super.equals(obj); + } + pb.lyft.datacatalog.Datacatalog.CreateResponse other = (pb.lyft.datacatalog.Datacatalog.CreateResponse) obj; + + if (hasArtifact() != other.hasArtifact()) return false; + if (hasArtifact()) { + if (!getArtifact() + .equals(other.getArtifact())) return false; + } + if (status_ != other.status_) 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 = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pb.lyft.datacatalog.Datacatalog.CreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.CreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.CreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.CreateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.CreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.CreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.CreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.CreateResponse 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 pb.lyft.datacatalog.Datacatalog.CreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.CreateResponse 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 pb.lyft.datacatalog.Datacatalog.CreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.CreateResponse 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(pb.lyft.datacatalog.Datacatalog.CreateResponse 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 pb.lyft.datacatalog.CreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pb.lyft.datacatalog.CreateResponse) + pb.lyft.datacatalog.Datacatalog.CreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_CreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_CreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.CreateResponse.class, pb.lyft.datacatalog.Datacatalog.CreateResponse.Builder.class); + } + + // Construct using pb.lyft.datacatalog.Datacatalog.CreateResponse.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; + } + status_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_CreateResponse_descriptor; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.CreateResponse getDefaultInstanceForType() { + return pb.lyft.datacatalog.Datacatalog.CreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.CreateResponse build() { + pb.lyft.datacatalog.Datacatalog.CreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.CreateResponse buildPartial() { + pb.lyft.datacatalog.Datacatalog.CreateResponse result = new pb.lyft.datacatalog.Datacatalog.CreateResponse(this); + if (artifactBuilder_ == null) { + result.artifact_ = artifact_; + } else { + result.artifact_ = artifactBuilder_.build(); + } + result.status_ = status_; + 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 pb.lyft.datacatalog.Datacatalog.CreateResponse) { + return mergeFrom((pb.lyft.datacatalog.Datacatalog.CreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pb.lyft.datacatalog.Datacatalog.CreateResponse other) { + if (other == pb.lyft.datacatalog.Datacatalog.CreateResponse.getDefaultInstance()) return this; + if (other.hasArtifact()) { + mergeArtifact(other.getArtifact()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + 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 { + pb.lyft.datacatalog.Datacatalog.CreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (pb.lyft.datacatalog.Datacatalog.CreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private pb.lyft.datacatalog.Datacatalog.Artifact artifact_; + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Artifact, pb.lyft.datacatalog.Datacatalog.Artifact.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder> artifactBuilder_; + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return artifactBuilder_ != null || artifact_ != null; + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.Artifact getArtifact() { + if (artifactBuilder_ == null) { + return artifact_ == null ? pb.lyft.datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } else { + return artifactBuilder_.getMessage(); + } + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact(pb.lyft.datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifact_ = value; + onChanged(); + } else { + artifactBuilder_.setMessage(value); + } + + return this; + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact( + pb.lyft.datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactBuilder_ == null) { + artifact_ = builderForValue.build(); + onChanged(); + } else { + artifactBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder mergeArtifact(pb.lyft.datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (artifact_ != null) { + artifact_ = + pb.lyft.datacatalog.Datacatalog.Artifact.newBuilder(artifact_).mergeFrom(value).buildPartial(); + } else { + artifact_ = value; + } + onChanged(); + } else { + artifactBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public Builder clearArtifact() { + if (artifactBuilder_ == null) { + artifact_ = null; + onChanged(); + } else { + artifact_ = null; + artifactBuilder_ = null; + } + + return this; + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.Artifact.Builder getArtifactBuilder() { + + onChanged(); + return getArtifactFieldBuilder().getBuilder(); + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder() { + if (artifactBuilder_ != null) { + return artifactBuilder_.getMessageOrBuilder(); + } else { + return artifact_ == null ? + pb.lyft.datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } + } + /** + * .pb.lyft.datacatalog.Artifact artifact = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Artifact, pb.lyft.datacatalog.Datacatalog.Artifact.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder> + getArtifactFieldBuilder() { + if (artifactBuilder_ == null) { + artifactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.Artifact, pb.lyft.datacatalog.Datacatalog.Artifact.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactOrBuilder>( + getArtifact(), + getParentForChildren(), + isClean()); + artifact_ = null; + } + return artifactBuilder_; + } + + private int status_ = 0; + /** + * .pb.lyft.datacatalog.CreateResponse.Status status = 2; + */ + public int getStatusValue() { + return status_; + } + /** + * .pb.lyft.datacatalog.CreateResponse.Status status = 2; + */ + public Builder setStatusValue(int value) { + status_ = value; + onChanged(); + return this; + } + /** + * .pb.lyft.datacatalog.CreateResponse.Status status = 2; + */ + public pb.lyft.datacatalog.Datacatalog.CreateResponse.Status getStatus() { + @SuppressWarnings("deprecation") + pb.lyft.datacatalog.Datacatalog.CreateResponse.Status result = pb.lyft.datacatalog.Datacatalog.CreateResponse.Status.valueOf(status_); + return result == null ? pb.lyft.datacatalog.Datacatalog.CreateResponse.Status.UNRECOGNIZED : result; + } + /** + * .pb.lyft.datacatalog.CreateResponse.Status status = 2; + */ + public Builder setStatus(pb.lyft.datacatalog.Datacatalog.CreateResponse.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .pb.lyft.datacatalog.CreateResponse.Status status = 2; + */ + public Builder clearStatus() { + + status_ = 0; + 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:pb.lyft.datacatalog.CreateResponse) + } + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.CreateResponse) + private static final pb.lyft.datacatalog.Datacatalog.CreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pb.lyft.datacatalog.Datacatalog.CreateResponse(); + } + + public static pb.lyft.datacatalog.Datacatalog.CreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateResponse(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 pb.lyft.datacatalog.Datacatalog.CreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerateProvenanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:pb.lyft.datacatalog.GenerateProvenanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .pb.lyft.datacatalog.ArtifactId id = 1; + */ + boolean hasId(); + /** + * .pb.lyft.datacatalog.ArtifactId id = 1; + */ + pb.lyft.datacatalog.Datacatalog.ArtifactId getId(); + /** + * .pb.lyft.datacatalog.ArtifactId id = 1; + */ + pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder getIdOrBuilder(); + } + /** + * Protobuf type {@code pb.lyft.datacatalog.GenerateProvenanceRequest} + */ + public static final class GenerateProvenanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pb.lyft.datacatalog.GenerateProvenanceRequest) + GenerateProvenanceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerateProvenanceRequest.newBuilder() to construct. + private GenerateProvenanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerateProvenanceRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GenerateProvenanceRequest( + 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: { + pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(pb.lyft.datacatalog.Datacatalog.ArtifactId.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = 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 pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GenerateProvenanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GenerateProvenanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest.class, pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private pb.lyft.datacatalog.Datacatalog.ArtifactId id_; + /** + * .pb.lyft.datacatalog.ArtifactId id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .pb.lyft.datacatalog.ArtifactId id = 1; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactId getId() { + return id_ == null ? pb.lyft.datacatalog.Datacatalog.ArtifactId.getDefaultInstance() : id_; + } + /** + * .pb.lyft.datacatalog.ArtifactId id = 1; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder getIdOrBuilder() { + return getId(); + } + + 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 (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + 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 pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest)) { + return super.equals(obj); + } + pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest other = (pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) 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 (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest 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 pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest 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 pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest 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(pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest 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 pb.lyft.datacatalog.GenerateProvenanceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pb.lyft.datacatalog.GenerateProvenanceRequest) + pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GenerateProvenanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GenerateProvenanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest.class, pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest.Builder.class); + } + + // Construct using pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GenerateProvenanceRequest_descriptor; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest getDefaultInstanceForType() { + return pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest.getDefaultInstance(); + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest build() { + pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest buildPartial() { + pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest result = new pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.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 pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest) { + return mergeFrom((pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest other) { + if (other == pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + 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 { + pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private pb.lyft.datacatalog.Datacatalog.ArtifactId id_; + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.ArtifactId, pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder> idBuilder_; + /** + * .pb.lyft.datacatalog.ArtifactId id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .pb.lyft.datacatalog.ArtifactId id = 1; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactId getId() { + if (idBuilder_ == null) { + return id_ == null ? pb.lyft.datacatalog.Datacatalog.ArtifactId.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .pb.lyft.datacatalog.ArtifactId id = 1; + */ + public Builder setId(pb.lyft.datacatalog.Datacatalog.ArtifactId value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .pb.lyft.datacatalog.ArtifactId id = 1; + */ + public Builder setId( + pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .pb.lyft.datacatalog.ArtifactId id = 1; + */ + public Builder mergeId(pb.lyft.datacatalog.Datacatalog.ArtifactId value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + pb.lyft.datacatalog.Datacatalog.ArtifactId.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .pb.lyft.datacatalog.ArtifactId id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .pb.lyft.datacatalog.ArtifactId id = 1; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .pb.lyft.datacatalog.ArtifactId id = 1; + */ + public pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + pb.lyft.datacatalog.Datacatalog.ArtifactId.getDefaultInstance() : id_; + } + } + /** + * .pb.lyft.datacatalog.ArtifactId id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.ArtifactId, pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + pb.lyft.datacatalog.Datacatalog.ArtifactId, pb.lyft.datacatalog.Datacatalog.ArtifactId.Builder, pb.lyft.datacatalog.Datacatalog.ArtifactIdOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @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:pb.lyft.datacatalog.GenerateProvenanceRequest) + } + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GenerateProvenanceRequest) + private static final pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest(); + } + + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateProvenanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateProvenanceRequest(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 pb.lyft.datacatalog.Datacatalog.GenerateProvenanceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerateProvenanceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:pb.lyft.datacatalog.GenerateProvenanceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string provenance = 1; + */ + java.lang.String getProvenance(); + /** + * string provenance = 1; + */ + com.google.protobuf.ByteString + getProvenanceBytes(); + } + /** + * Protobuf type {@code pb.lyft.datacatalog.GenerateProvenanceResponse} + */ + public static final class GenerateProvenanceResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pb.lyft.datacatalog.GenerateProvenanceResponse) + GenerateProvenanceResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerateProvenanceResponse.newBuilder() to construct. + private GenerateProvenanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerateProvenanceResponse() { + provenance_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GenerateProvenanceResponse( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + provenance_ = s; + 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 pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GenerateProvenanceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GenerateProvenanceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse.class, pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse.Builder.class); + } + + public static final int PROVENANCE_FIELD_NUMBER = 1; + private volatile java.lang.Object provenance_; + /** + * string provenance = 1; + */ + public java.lang.String getProvenance() { + java.lang.Object ref = provenance_; + 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(); + provenance_ = s; + return s; + } + } + /** + * string provenance = 1; + */ + public com.google.protobuf.ByteString + getProvenanceBytes() { + java.lang.Object ref = provenance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + provenance_ = 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 (!getProvenanceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, provenance_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProvenanceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, provenance_); + } + 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 pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse)) { + return super.equals(obj); + } + pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse other = (pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse) obj; + + if (!getProvenance() + .equals(other.getProvenance())) 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(); + hash = (37 * hash) + PROVENANCE_FIELD_NUMBER; + hash = (53 * hash) + getProvenance().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse 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 pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse 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 pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse 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(pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse 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 pb.lyft.datacatalog.GenerateProvenanceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pb.lyft.datacatalog.GenerateProvenanceResponse) + pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GenerateProvenanceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GenerateProvenanceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse.class, pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse.Builder.class); + } + + // Construct using pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse.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(); + provenance_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pb.lyft.datacatalog.Datacatalog.internal_static_pb_lyft_datacatalog_GenerateProvenanceResponse_descriptor; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse getDefaultInstanceForType() { + return pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse.getDefaultInstance(); + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse build() { + pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse buildPartial() { + pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse result = new pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse(this); + result.provenance_ = provenance_; + 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 pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse) { + return mergeFrom((pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse other) { + if (other == pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse.getDefaultInstance()) return this; + if (!other.getProvenance().isEmpty()) { + provenance_ = other.provenance_; + onChanged(); + } + 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 { + pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object provenance_ = ""; + /** + * string provenance = 1; + */ + public java.lang.String getProvenance() { + java.lang.Object ref = provenance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provenance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string provenance = 1; + */ + public com.google.protobuf.ByteString + getProvenanceBytes() { + java.lang.Object ref = provenance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + provenance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string provenance = 1; + */ + public Builder setProvenance( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + provenance_ = value; + onChanged(); + return this; + } + /** + * string provenance = 1; + */ + public Builder clearProvenance() { + + provenance_ = getDefaultInstance().getProvenance(); + onChanged(); + return this; + } + /** + * string provenance = 1; + */ + public Builder setProvenanceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + provenance_ = 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:pb.lyft.datacatalog.GenerateProvenanceResponse) + } + + // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GenerateProvenanceResponse) + private static final pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse(); + } + + public static pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateProvenanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateProvenanceResponse(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 pb.lyft.datacatalog.Datacatalog.GenerateProvenanceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pb_lyft_datacatalog_Parameter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pb_lyft_datacatalog_Parameter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pb_lyft_datacatalog_Artifact_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pb_lyft_datacatalog_Artifact_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pb_lyft_datacatalog_ArtifactId_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pb_lyft_datacatalog_ArtifactId_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pb_lyft_datacatalog_GetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pb_lyft_datacatalog_GetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pb_lyft_datacatalog_GetResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pb_lyft_datacatalog_GetResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pb_lyft_datacatalog_IntFilter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pb_lyft_datacatalog_IntFilter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pb_lyft_datacatalog_IntRangeFilter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pb_lyft_datacatalog_IntRangeFilter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pb_lyft_datacatalog_IntQueryKey_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pb_lyft_datacatalog_IntQueryKey_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pb_lyft_datacatalog_QueryRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pb_lyft_datacatalog_QueryRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pb_lyft_datacatalog_QueryResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pb_lyft_datacatalog_QueryResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pb_lyft_datacatalog_CreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pb_lyft_datacatalog_CreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pb_lyft_datacatalog_CreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pb_lyft_datacatalog_CreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pb_lyft_datacatalog_GenerateProvenanceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pb_lyft_datacatalog_GenerateProvenanceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pb_lyft_datacatalog_GenerateProvenanceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pb_lyft_datacatalog_GenerateProvenanceResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n&flyteidl/datacatalog/datacatalog.proto" + + "\022\023pb.lyft.datacatalog\"(\n\tParameter\022\014\n\004na" + + "me\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\332\001\n\010Artifact\022\022\n\n" + + "provenance\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\017\n\007versio" + + "n\030\003 \001(\t\022\020\n\010revision\030\004 \001(\003\022\022\n\ncreated_at\030" + + "\005 \001(\003\022\024\n\014reference_id\030\006 \001(\t\022.\n\006inputs\030\007 " + + "\003(\0132\036.pb.lyft.datacatalog.Parameter\022/\n\007o" + + "utputs\030\010 \003(\0132\036.pb.lyft.datacatalog.Param" + + "eter\"[\n\nArtifactId\022\014\n\004name\030\001 \001(\t\022\017\n\007vers" + + "ion\030\002 \001(\t\022.\n\006inputs\030\003 \003(\0132\036.pb.lyft.data" + + "catalog.Parameter\"`\n\nGetRequest\022\024\n\nprove" + + "nance\030\001 \001(\tH\000\0226\n\013artifact_id\030\002 \001(\0132\037.pb." + + "lyft.datacatalog.ArtifactIdH\000B\004\n\002id\">\n\013G" + + "etResponse\022/\n\010artifact\030\001 \001(\0132\035.pb.lyft.d" + + "atacatalog.Artifact\"P\n\tIntFilter\022\r\n\005valu" + + "e\030\001 \001(\003\0224\n\010operator\030\002 \001(\0162\".pb.lyft.data" + + "catalog.QueryOperator\"*\n\016IntRangeFilter\022" + + "\013\n\003min\030\001 \001(\003\022\013\n\003max\030\002 \001(\003\"|\n\013IntQueryKey" + + "\022-\n\003val\030\001 \001(\0132\036.pb.lyft.datacatalog.IntF" + + "ilterH\000\0224\n\005range\030\002 \001(\0132#.pb.lyft.datacat" + + "alog.IntRangeFilterH\000B\010\n\006filter\"\213\001\n\014Quer" + + "yRequest\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022" + + "2\n\010revision\030\003 \001(\0132 .pb.lyft.datacatalog." + + "IntQueryKey\022\022\n\ncreated_at\030\004 \001(\003\022\024\n\014refer" + + "ence_id\030\005 \001(\t\"@\n\rQueryResponse\022/\n\010artifa" + + "ct\030\001 \003(\0132\035.pb.lyft.datacatalog.Artifact\"" + + "\226\001\n\rCreateRequest\022,\n\003ref\030\001 \001(\0132\037.pb.lyft" + + ".datacatalog.ArtifactId\022\024\n\014reference_id\030" + + "\002 \001(\t\022\020\n\010revision\030\003 \001(\003\022/\n\007outputs\030\004 \003(\013" + + "2\036.pb.lyft.datacatalog.Parameter\"\250\001\n\016Cre" + + "ateResponse\022/\n\010artifact\030\001 \001(\0132\035.pb.lyft." + + "datacatalog.Artifact\022:\n\006status\030\002 \001(\0162*.p" + + "b.lyft.datacatalog.CreateResponse.Status" + + "\")\n\006Status\022\022\n\016ALREADY_EXISTS\020\000\022\013\n\007CREATE" + + "D\020\001\"H\n\031GenerateProvenanceRequest\022+\n\002id\030\001" + + " \001(\0132\037.pb.lyft.datacatalog.ArtifactId\"0\n" + + "\032GenerateProvenanceResponse\022\022\n\nprovenanc" + + "e\030\001 \001(\t*=\n\rQueryOperator\022\t\n\005EQUAL\020\000\022\020\n\014G" + + "REATER_THAN\020\001\022\017\n\013LESSER_THAN\020\0022\367\002\n\tArtif" + + "acts\022J\n\003Get\022\037.pb.lyft.datacatalog.GetReq" + + "uest\032 .pb.lyft.datacatalog.GetResponse\"\000" + + "\022P\n\005Query\022!.pb.lyft.datacatalog.QueryReq" + + "uest\032\".pb.lyft.datacatalog.QueryResponse" + + "\"\000\022S\n\006Create\022\".pb.lyft.datacatalog.Creat" + + "eRequest\032#.pb.lyft.datacatalog.CreateRes" + + "ponse\"\000\022w\n\022GenerateProvenance\022..pb.lyft." + + "datacatalog.GenerateProvenanceRequest\032/." + + "pb.lyft.datacatalog.GenerateProvenanceRe" + + "sponse\"\000B\020Z\013datacatalog\220\001\001b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_pb_lyft_datacatalog_Parameter_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_pb_lyft_datacatalog_Parameter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_pb_lyft_datacatalog_Parameter_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_pb_lyft_datacatalog_Artifact_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_pb_lyft_datacatalog_Artifact_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_pb_lyft_datacatalog_Artifact_descriptor, + new java.lang.String[] { "Provenance", "Name", "Version", "Revision", "CreatedAt", "ReferenceId", "Inputs", "Outputs", }); + internal_static_pb_lyft_datacatalog_ArtifactId_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_pb_lyft_datacatalog_ArtifactId_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_pb_lyft_datacatalog_ArtifactId_descriptor, + new java.lang.String[] { "Name", "Version", "Inputs", }); + internal_static_pb_lyft_datacatalog_GetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_pb_lyft_datacatalog_GetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_pb_lyft_datacatalog_GetRequest_descriptor, + new java.lang.String[] { "Provenance", "ArtifactId", "Id", }); + internal_static_pb_lyft_datacatalog_GetResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_pb_lyft_datacatalog_GetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_pb_lyft_datacatalog_GetResponse_descriptor, + new java.lang.String[] { "Artifact", }); + internal_static_pb_lyft_datacatalog_IntFilter_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_pb_lyft_datacatalog_IntFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_pb_lyft_datacatalog_IntFilter_descriptor, + new java.lang.String[] { "Value", "Operator", }); + internal_static_pb_lyft_datacatalog_IntRangeFilter_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_pb_lyft_datacatalog_IntRangeFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_pb_lyft_datacatalog_IntRangeFilter_descriptor, + new java.lang.String[] { "Min", "Max", }); + internal_static_pb_lyft_datacatalog_IntQueryKey_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_pb_lyft_datacatalog_IntQueryKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_pb_lyft_datacatalog_IntQueryKey_descriptor, + new java.lang.String[] { "Val", "Range", "Filter", }); + internal_static_pb_lyft_datacatalog_QueryRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_pb_lyft_datacatalog_QueryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_pb_lyft_datacatalog_QueryRequest_descriptor, + new java.lang.String[] { "Name", "Version", "Revision", "CreatedAt", "ReferenceId", }); + internal_static_pb_lyft_datacatalog_QueryResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_pb_lyft_datacatalog_QueryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_pb_lyft_datacatalog_QueryResponse_descriptor, + new java.lang.String[] { "Artifact", }); + internal_static_pb_lyft_datacatalog_CreateRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_pb_lyft_datacatalog_CreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_pb_lyft_datacatalog_CreateRequest_descriptor, + new java.lang.String[] { "Ref", "ReferenceId", "Revision", "Outputs", }); + internal_static_pb_lyft_datacatalog_CreateResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_pb_lyft_datacatalog_CreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_pb_lyft_datacatalog_CreateResponse_descriptor, + new java.lang.String[] { "Artifact", "Status", }); + internal_static_pb_lyft_datacatalog_GenerateProvenanceRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_pb_lyft_datacatalog_GenerateProvenanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_pb_lyft_datacatalog_GenerateProvenanceRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_pb_lyft_datacatalog_GenerateProvenanceResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_pb_lyft_datacatalog_GenerateProvenanceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_pb_lyft_datacatalog_GenerateProvenanceResponse_descriptor, + new java.lang.String[] { "Provenance", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-protodoc/flyteidl/datacatalog/datacatalog.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/datacatalog/datacatalog.proto.rst new file mode 100644 index 000000000..d33a137b9 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/datacatalog/datacatalog.proto.rst @@ -0,0 +1,505 @@ +.. _api_file_flyteidl/datacatalog/datacatalog.proto: + +datacatalog.proto +====================================== + +.. _api_msg_pb.lyft.datacatalog.Parameter: + +pb.lyft.datacatalog.Parameter +----------------------------- + +`[pb.lyft.datacatalog.Parameter proto] `_ + + +.. code-block:: json + + { + "name": "...", + "value": "..." + } + +.. _api_field_pb.lyft.datacatalog.Parameter.name: + +name + (`string `_) + +.. _api_field_pb.lyft.datacatalog.Parameter.value: + +value + (`string `_) + + + +.. _api_msg_pb.lyft.datacatalog.Artifact: + +pb.lyft.datacatalog.Artifact +---------------------------- + +`[pb.lyft.datacatalog.Artifact proto] `_ + +Before jumping to message definition, lets go over the expected flow- + An Artifact represents an unit-of-work identified by (task, version, inputs). This is + encoded as unique hash for faster queries(called provenance). An artifact is persisted with some other + attributes (revision, createdAt, reference_id, outputs). + Only Discovery service knows about the hashing algorithm; one can use the closure (task, version, inputs) + to query an artifact if it doesnt have the provenance value. + + Before starting the work on a task, programming-model first checks if the task has been done. + Request: GET (task, version, inputs) + Response: (Exists, Artifact) or (NotFound, nil) + if not found, Task executor goes ahead with the execution and at the end of execution creates a new entry in + the discovery service + Request: CREATE (task, version, inputs) + (revision, reference_id, outputs) + Response: (Exists, Artifact) or (Created, Artifact) + + One can also Query all the artifacts by querying any subset of properties. +Message Artifact represents the complete information of an artifact- field that unique define the artifact + +properties. +Message ArtifactInternal is our storage model where we create an additional derived column for faster queries. +Message ArtifactId only represents field that uniquely define the artifact. + +.. code-block:: json + + { + "provenance": "...", + "name": "...", + "version": "...", + "revision": "...", + "created_at": "...", + "reference_id": "...", + "inputs": [], + "outputs": [] + } + +.. _api_field_pb.lyft.datacatalog.Artifact.provenance: + +provenance + (`string `_) + +.. _api_field_pb.lyft.datacatalog.Artifact.name: + +name + (`string `_) + +.. _api_field_pb.lyft.datacatalog.Artifact.version: + +version + (`string `_) + +.. _api_field_pb.lyft.datacatalog.Artifact.revision: + +revision + (`int64 `_) + +.. _api_field_pb.lyft.datacatalog.Artifact.created_at: + +created_at + (`int64 `_) + +.. _api_field_pb.lyft.datacatalog.Artifact.reference_id: + +reference_id + (`string `_) + +.. _api_field_pb.lyft.datacatalog.Artifact.inputs: + +inputs + (:ref:`pb.lyft.datacatalog.Parameter `) + +.. _api_field_pb.lyft.datacatalog.Artifact.outputs: + +outputs + (:ref:`pb.lyft.datacatalog.Parameter `) + + + +.. _api_msg_pb.lyft.datacatalog.ArtifactId: + +pb.lyft.datacatalog.ArtifactId +------------------------------ + +`[pb.lyft.datacatalog.ArtifactId proto] `_ + + +.. code-block:: json + + { + "name": "...", + "version": "...", + "inputs": [] + } + +.. _api_field_pb.lyft.datacatalog.ArtifactId.name: + +name + (`string `_) + +.. _api_field_pb.lyft.datacatalog.ArtifactId.version: + +version + (`string `_) + +.. _api_field_pb.lyft.datacatalog.ArtifactId.inputs: + +inputs + (:ref:`pb.lyft.datacatalog.Parameter `) + + + +.. _api_msg_pb.lyft.datacatalog.GetRequest: + +pb.lyft.datacatalog.GetRequest +------------------------------ + +`[pb.lyft.datacatalog.GetRequest proto] `_ + + +.. code-block:: json + + { + "provenance": "...", + "artifact_id": "{...}" + } + +.. _api_field_pb.lyft.datacatalog.GetRequest.provenance: + +provenance + (`string `_) + + + Only one of :ref:`provenance `, :ref:`artifact_id ` may be set. + +.. _api_field_pb.lyft.datacatalog.GetRequest.artifact_id: + +artifact_id + (:ref:`pb.lyft.datacatalog.ArtifactId `) + + + Only one of :ref:`provenance `, :ref:`artifact_id ` may be set. + + + +.. _api_msg_pb.lyft.datacatalog.GetResponse: + +pb.lyft.datacatalog.GetResponse +------------------------------- + +`[pb.lyft.datacatalog.GetResponse proto] `_ + + +.. code-block:: json + + { + "artifact": "{...}" + } + +.. _api_field_pb.lyft.datacatalog.GetResponse.artifact: + +artifact + (:ref:`pb.lyft.datacatalog.Artifact `) + + + +.. _api_msg_pb.lyft.datacatalog.IntFilter: + +pb.lyft.datacatalog.IntFilter +----------------------------- + +`[pb.lyft.datacatalog.IntFilter proto] `_ + + +.. code-block:: json + + { + "value": "...", + "operator": "..." + } + +.. _api_field_pb.lyft.datacatalog.IntFilter.value: + +value + (`int64 `_) + +.. _api_field_pb.lyft.datacatalog.IntFilter.operator: + +operator + (:ref:`pb.lyft.datacatalog.QueryOperator `) + + + +.. _api_msg_pb.lyft.datacatalog.IntRangeFilter: + +pb.lyft.datacatalog.IntRangeFilter +---------------------------------- + +`[pb.lyft.datacatalog.IntRangeFilter proto] `_ + + +.. code-block:: json + + { + "min": "...", + "max": "..." + } + +.. _api_field_pb.lyft.datacatalog.IntRangeFilter.min: + +min + (`int64 `_) + +.. _api_field_pb.lyft.datacatalog.IntRangeFilter.max: + +max + (`int64 `_) + + + +.. _api_msg_pb.lyft.datacatalog.IntQueryKey: + +pb.lyft.datacatalog.IntQueryKey +------------------------------- + +`[pb.lyft.datacatalog.IntQueryKey proto] `_ + + +.. code-block:: json + + { + "val": "{...}", + "range": "{...}" + } + +.. _api_field_pb.lyft.datacatalog.IntQueryKey.val: + +val + (:ref:`pb.lyft.datacatalog.IntFilter `) + + + Only one of :ref:`val `, :ref:`range ` may be set. + +.. _api_field_pb.lyft.datacatalog.IntQueryKey.range: + +range + (:ref:`pb.lyft.datacatalog.IntRangeFilter `) + + + Only one of :ref:`val `, :ref:`range ` may be set. + + + +.. _api_msg_pb.lyft.datacatalog.QueryRequest: + +pb.lyft.datacatalog.QueryRequest +-------------------------------- + +`[pb.lyft.datacatalog.QueryRequest proto] `_ + +QueryRequest allows queries on a range of values for revision column and point queries on created_at +and reference_id + +.. code-block:: json + + { + "name": "...", + "version": "...", + "revision": "{...}", + "created_at": "...", + "reference_id": "..." + } + +.. _api_field_pb.lyft.datacatalog.QueryRequest.name: + +name + (`string `_) + +.. _api_field_pb.lyft.datacatalog.QueryRequest.version: + +version + (`string `_) + +.. _api_field_pb.lyft.datacatalog.QueryRequest.revision: + +revision + (:ref:`pb.lyft.datacatalog.IntQueryKey `) + +.. _api_field_pb.lyft.datacatalog.QueryRequest.created_at: + +created_at + (`int64 `_) + +.. _api_field_pb.lyft.datacatalog.QueryRequest.reference_id: + +reference_id + (`string `_) + + + +.. _api_msg_pb.lyft.datacatalog.QueryResponse: + +pb.lyft.datacatalog.QueryResponse +--------------------------------- + +`[pb.lyft.datacatalog.QueryResponse proto] `_ + + +.. code-block:: json + + { + "artifact": [] + } + +.. _api_field_pb.lyft.datacatalog.QueryResponse.artifact: + +artifact + (:ref:`pb.lyft.datacatalog.Artifact `) + + + +.. _api_msg_pb.lyft.datacatalog.CreateRequest: + +pb.lyft.datacatalog.CreateRequest +--------------------------------- + +`[pb.lyft.datacatalog.CreateRequest proto] `_ + + +.. code-block:: json + + { + "ref": "{...}", + "reference_id": "...", + "revision": "...", + "outputs": [] + } + +.. _api_field_pb.lyft.datacatalog.CreateRequest.ref: + +ref + (:ref:`pb.lyft.datacatalog.ArtifactId `) + +.. _api_field_pb.lyft.datacatalog.CreateRequest.reference_id: + +reference_id + (`string `_) + +.. _api_field_pb.lyft.datacatalog.CreateRequest.revision: + +revision + (`int64 `_) + +.. _api_field_pb.lyft.datacatalog.CreateRequest.outputs: + +outputs + (:ref:`pb.lyft.datacatalog.Parameter `) + + + +.. _api_msg_pb.lyft.datacatalog.CreateResponse: + +pb.lyft.datacatalog.CreateResponse +---------------------------------- + +`[pb.lyft.datacatalog.CreateResponse proto] `_ + + +.. code-block:: json + + { + "artifact": "{...}", + "status": "..." + } + +.. _api_field_pb.lyft.datacatalog.CreateResponse.artifact: + +artifact + (:ref:`pb.lyft.datacatalog.Artifact `) + +.. _api_field_pb.lyft.datacatalog.CreateResponse.status: + +status + (:ref:`pb.lyft.datacatalog.CreateResponse.Status `) + + +.. _api_enum_pb.lyft.datacatalog.CreateResponse.Status: + +Enum pb.lyft.datacatalog.CreateResponse.Status +---------------------------------------------- + +`[pb.lyft.datacatalog.CreateResponse.Status proto] `_ + + +.. _api_enum_value_pb.lyft.datacatalog.CreateResponse.Status.ALREADY_EXISTS: + +ALREADY_EXISTS + *(DEFAULT)* ⁣ + +.. _api_enum_value_pb.lyft.datacatalog.CreateResponse.Status.CREATED: + +CREATED + ⁣ + + +.. _api_msg_pb.lyft.datacatalog.GenerateProvenanceRequest: + +pb.lyft.datacatalog.GenerateProvenanceRequest +--------------------------------------------- + +`[pb.lyft.datacatalog.GenerateProvenanceRequest proto] `_ + + +.. code-block:: json + + { + "id": "{...}" + } + +.. _api_field_pb.lyft.datacatalog.GenerateProvenanceRequest.id: + +id + (:ref:`pb.lyft.datacatalog.ArtifactId `) + + + +.. _api_msg_pb.lyft.datacatalog.GenerateProvenanceResponse: + +pb.lyft.datacatalog.GenerateProvenanceResponse +---------------------------------------------- + +`[pb.lyft.datacatalog.GenerateProvenanceResponse proto] `_ + + +.. code-block:: json + + { + "provenance": "..." + } + +.. _api_field_pb.lyft.datacatalog.GenerateProvenanceResponse.provenance: + +provenance + (`string `_) + + +.. _api_enum_pb.lyft.datacatalog.QueryOperator: + +Enum pb.lyft.datacatalog.QueryOperator +-------------------------------------- + +`[pb.lyft.datacatalog.QueryOperator proto] `_ + + +.. _api_enum_value_pb.lyft.datacatalog.QueryOperator.EQUAL: + +EQUAL + *(DEFAULT)* ⁣ + +.. _api_enum_value_pb.lyft.datacatalog.QueryOperator.GREATER_THAN: + +GREATER_THAN + ⁣ + +.. _api_enum_value_pb.lyft.datacatalog.QueryOperator.LESSER_THAN: + +LESSER_THAN + ⁣ + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/datacatalog/index.rst b/flyteidl/gen/pb-protodoc/flyteidl/datacatalog/index.rst new file mode 100644 index 000000000..54aac113e --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/datacatalog/index.rst @@ -0,0 +1,13 @@ +Flyte Legacy Catalog Service +============================ + +These protos provide interface definition for the datacatalog +service. This proto is under rapid development and not currently recommended for use. + + +.. toctree:: + :maxdepth: 1 + :caption: datacatalog + :name: datacatalogtoc + + datacatalog.proto diff --git a/flyteidl/gen/pb-protodoc/flyteidl/index.rst b/flyteidl/gen/pb-protodoc/flyteidl/index.rst index ddf2781d2..71644fdd5 100644 --- a/flyteidl/gen/pb-protodoc/flyteidl/index.rst +++ b/flyteidl/gen/pb-protodoc/flyteidl/index.rst @@ -13,6 +13,7 @@ and documentation of all these entities. admin/index core/index + datacatalog/index event/index plugins/index service/index diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/__init__.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py new file mode 100644 index 000000000..e085b81b5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py @@ -0,0 +1,885 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/datacatalog/datacatalog.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import service as _service +from google.protobuf import service_reflection +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/datacatalog/datacatalog.proto', + package='pb.lyft.datacatalog', + syntax='proto3', + serialized_options=_b('Z\013datacatalog\220\001\001'), + serialized_pb=_b('\n&flyteidl/datacatalog/datacatalog.proto\x12\x13pb.lyft.datacatalog\"(\n\tParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"\xda\x01\n\x08\x41rtifact\x12\x12\n\nprovenance\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x10\n\x08revision\x18\x04 \x01(\x03\x12\x12\n\ncreated_at\x18\x05 \x01(\x03\x12\x14\n\x0creference_id\x18\x06 \x01(\t\x12.\n\x06inputs\x18\x07 \x03(\x0b\x32\x1e.pb.lyft.datacatalog.Parameter\x12/\n\x07outputs\x18\x08 \x03(\x0b\x32\x1e.pb.lyft.datacatalog.Parameter\"[\n\nArtifactId\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12.\n\x06inputs\x18\x03 \x03(\x0b\x32\x1e.pb.lyft.datacatalog.Parameter\"`\n\nGetRequest\x12\x14\n\nprovenance\x18\x01 \x01(\tH\x00\x12\x36\n\x0b\x61rtifact_id\x18\x02 \x01(\x0b\x32\x1f.pb.lyft.datacatalog.ArtifactIdH\x00\x42\x04\n\x02id\">\n\x0bGetResponse\x12/\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1d.pb.lyft.datacatalog.Artifact\"P\n\tIntFilter\x12\r\n\x05value\x18\x01 \x01(\x03\x12\x34\n\x08operator\x18\x02 \x01(\x0e\x32\".pb.lyft.datacatalog.QueryOperator\"*\n\x0eIntRangeFilter\x12\x0b\n\x03min\x18\x01 \x01(\x03\x12\x0b\n\x03max\x18\x02 \x01(\x03\"|\n\x0bIntQueryKey\x12-\n\x03val\x18\x01 \x01(\x0b\x32\x1e.pb.lyft.datacatalog.IntFilterH\x00\x12\x34\n\x05range\x18\x02 \x01(\x0b\x32#.pb.lyft.datacatalog.IntRangeFilterH\x00\x42\x08\n\x06\x66ilter\"\x8b\x01\n\x0cQueryRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x32\n\x08revision\x18\x03 \x01(\x0b\x32 .pb.lyft.datacatalog.IntQueryKey\x12\x12\n\ncreated_at\x18\x04 \x01(\x03\x12\x14\n\x0creference_id\x18\x05 \x01(\t\"@\n\rQueryResponse\x12/\n\x08\x61rtifact\x18\x01 \x03(\x0b\x32\x1d.pb.lyft.datacatalog.Artifact\"\x96\x01\n\rCreateRequest\x12,\n\x03ref\x18\x01 \x01(\x0b\x32\x1f.pb.lyft.datacatalog.ArtifactId\x12\x14\n\x0creference_id\x18\x02 \x01(\t\x12\x10\n\x08revision\x18\x03 \x01(\x03\x12/\n\x07outputs\x18\x04 \x03(\x0b\x32\x1e.pb.lyft.datacatalog.Parameter\"\xa8\x01\n\x0e\x43reateResponse\x12/\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1d.pb.lyft.datacatalog.Artifact\x12:\n\x06status\x18\x02 \x01(\x0e\x32*.pb.lyft.datacatalog.CreateResponse.Status\")\n\x06Status\x12\x12\n\x0e\x41LREADY_EXISTS\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\"H\n\x19GenerateProvenanceRequest\x12+\n\x02id\x18\x01 \x01(\x0b\x32\x1f.pb.lyft.datacatalog.ArtifactId\"0\n\x1aGenerateProvenanceResponse\x12\x12\n\nprovenance\x18\x01 \x01(\t*=\n\rQueryOperator\x12\t\n\x05\x45QUAL\x10\x00\x12\x10\n\x0cGREATER_THAN\x10\x01\x12\x0f\n\x0bLESSER_THAN\x10\x02\x32\xf7\x02\n\tArtifacts\x12J\n\x03Get\x12\x1f.pb.lyft.datacatalog.GetRequest\x1a .pb.lyft.datacatalog.GetResponse\"\x00\x12P\n\x05Query\x12!.pb.lyft.datacatalog.QueryRequest\x1a\".pb.lyft.datacatalog.QueryResponse\"\x00\x12S\n\x06\x43reate\x12\".pb.lyft.datacatalog.CreateRequest\x1a#.pb.lyft.datacatalog.CreateResponse\"\x00\x12w\n\x12GenerateProvenance\x12..pb.lyft.datacatalog.GenerateProvenanceRequest\x1a/.pb.lyft.datacatalog.GenerateProvenanceResponse\"\x00\x42\x10Z\x0b\x64\x61tacatalog\x90\x01\x01\x62\x06proto3') +) + +_QUERYOPERATOR = _descriptor.EnumDescriptor( + name='QueryOperator', + full_name='pb.lyft.datacatalog.QueryOperator', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='EQUAL', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GREATER_THAN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LESSER_THAN', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=1489, + serialized_end=1550, +) +_sym_db.RegisterEnumDescriptor(_QUERYOPERATOR) + +QueryOperator = enum_type_wrapper.EnumTypeWrapper(_QUERYOPERATOR) +EQUAL = 0 +GREATER_THAN = 1 +LESSER_THAN = 2 + + +_CREATERESPONSE_STATUS = _descriptor.EnumDescriptor( + name='Status', + full_name='pb.lyft.datacatalog.CreateResponse.Status', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='ALREADY_EXISTS', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CREATED', index=1, number=1, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=1322, + serialized_end=1363, +) +_sym_db.RegisterEnumDescriptor(_CREATERESPONSE_STATUS) + + +_PARAMETER = _descriptor.Descriptor( + name='Parameter', + full_name='pb.lyft.datacatalog.Parameter', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='pb.lyft.datacatalog.Parameter.name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='pb.lyft.datacatalog.Parameter.value', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=63, + serialized_end=103, +) + + +_ARTIFACT = _descriptor.Descriptor( + name='Artifact', + full_name='pb.lyft.datacatalog.Artifact', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='provenance', full_name='pb.lyft.datacatalog.Artifact.provenance', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='pb.lyft.datacatalog.Artifact.name', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='version', full_name='pb.lyft.datacatalog.Artifact.version', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='revision', full_name='pb.lyft.datacatalog.Artifact.revision', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='created_at', full_name='pb.lyft.datacatalog.Artifact.created_at', index=4, + number=5, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='reference_id', full_name='pb.lyft.datacatalog.Artifact.reference_id', index=5, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='inputs', full_name='pb.lyft.datacatalog.Artifact.inputs', index=6, + number=7, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='outputs', full_name='pb.lyft.datacatalog.Artifact.outputs', index=7, + number=8, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=106, + serialized_end=324, +) + + +_ARTIFACTID = _descriptor.Descriptor( + name='ArtifactId', + full_name='pb.lyft.datacatalog.ArtifactId', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='pb.lyft.datacatalog.ArtifactId.name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='version', full_name='pb.lyft.datacatalog.ArtifactId.version', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='inputs', full_name='pb.lyft.datacatalog.ArtifactId.inputs', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=326, + serialized_end=417, +) + + +_GETREQUEST = _descriptor.Descriptor( + name='GetRequest', + full_name='pb.lyft.datacatalog.GetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='provenance', full_name='pb.lyft.datacatalog.GetRequest.provenance', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='artifact_id', full_name='pb.lyft.datacatalog.GetRequest.artifact_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='id', full_name='pb.lyft.datacatalog.GetRequest.id', + index=0, containing_type=None, fields=[]), + ], + serialized_start=419, + serialized_end=515, +) + + +_GETRESPONSE = _descriptor.Descriptor( + name='GetResponse', + full_name='pb.lyft.datacatalog.GetResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='artifact', full_name='pb.lyft.datacatalog.GetResponse.artifact', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=517, + serialized_end=579, +) + + +_INTFILTER = _descriptor.Descriptor( + name='IntFilter', + full_name='pb.lyft.datacatalog.IntFilter', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='value', full_name='pb.lyft.datacatalog.IntFilter.value', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operator', full_name='pb.lyft.datacatalog.IntFilter.operator', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=581, + serialized_end=661, +) + + +_INTRANGEFILTER = _descriptor.Descriptor( + name='IntRangeFilter', + full_name='pb.lyft.datacatalog.IntRangeFilter', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='min', full_name='pb.lyft.datacatalog.IntRangeFilter.min', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max', full_name='pb.lyft.datacatalog.IntRangeFilter.max', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=663, + serialized_end=705, +) + + +_INTQUERYKEY = _descriptor.Descriptor( + name='IntQueryKey', + full_name='pb.lyft.datacatalog.IntQueryKey', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='val', full_name='pb.lyft.datacatalog.IntQueryKey.val', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='range', full_name='pb.lyft.datacatalog.IntQueryKey.range', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='filter', full_name='pb.lyft.datacatalog.IntQueryKey.filter', + index=0, containing_type=None, fields=[]), + ], + serialized_start=707, + serialized_end=831, +) + + +_QUERYREQUEST = _descriptor.Descriptor( + name='QueryRequest', + full_name='pb.lyft.datacatalog.QueryRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='pb.lyft.datacatalog.QueryRequest.name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='version', full_name='pb.lyft.datacatalog.QueryRequest.version', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='revision', full_name='pb.lyft.datacatalog.QueryRequest.revision', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='created_at', full_name='pb.lyft.datacatalog.QueryRequest.created_at', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='reference_id', full_name='pb.lyft.datacatalog.QueryRequest.reference_id', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=834, + serialized_end=973, +) + + +_QUERYRESPONSE = _descriptor.Descriptor( + name='QueryResponse', + full_name='pb.lyft.datacatalog.QueryResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='artifact', full_name='pb.lyft.datacatalog.QueryResponse.artifact', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=975, + serialized_end=1039, +) + + +_CREATEREQUEST = _descriptor.Descriptor( + name='CreateRequest', + full_name='pb.lyft.datacatalog.CreateRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='ref', full_name='pb.lyft.datacatalog.CreateRequest.ref', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='reference_id', full_name='pb.lyft.datacatalog.CreateRequest.reference_id', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='revision', full_name='pb.lyft.datacatalog.CreateRequest.revision', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='outputs', full_name='pb.lyft.datacatalog.CreateRequest.outputs', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1042, + serialized_end=1192, +) + + +_CREATERESPONSE = _descriptor.Descriptor( + name='CreateResponse', + full_name='pb.lyft.datacatalog.CreateResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='artifact', full_name='pb.lyft.datacatalog.CreateResponse.artifact', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='pb.lyft.datacatalog.CreateResponse.status', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CREATERESPONSE_STATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1195, + serialized_end=1363, +) + + +_GENERATEPROVENANCEREQUEST = _descriptor.Descriptor( + name='GenerateProvenanceRequest', + full_name='pb.lyft.datacatalog.GenerateProvenanceRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='pb.lyft.datacatalog.GenerateProvenanceRequest.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1365, + serialized_end=1437, +) + + +_GENERATEPROVENANCERESPONSE = _descriptor.Descriptor( + name='GenerateProvenanceResponse', + full_name='pb.lyft.datacatalog.GenerateProvenanceResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='provenance', full_name='pb.lyft.datacatalog.GenerateProvenanceResponse.provenance', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1439, + serialized_end=1487, +) + +_ARTIFACT.fields_by_name['inputs'].message_type = _PARAMETER +_ARTIFACT.fields_by_name['outputs'].message_type = _PARAMETER +_ARTIFACTID.fields_by_name['inputs'].message_type = _PARAMETER +_GETREQUEST.fields_by_name['artifact_id'].message_type = _ARTIFACTID +_GETREQUEST.oneofs_by_name['id'].fields.append( + _GETREQUEST.fields_by_name['provenance']) +_GETREQUEST.fields_by_name['provenance'].containing_oneof = _GETREQUEST.oneofs_by_name['id'] +_GETREQUEST.oneofs_by_name['id'].fields.append( + _GETREQUEST.fields_by_name['artifact_id']) +_GETREQUEST.fields_by_name['artifact_id'].containing_oneof = _GETREQUEST.oneofs_by_name['id'] +_GETRESPONSE.fields_by_name['artifact'].message_type = _ARTIFACT +_INTFILTER.fields_by_name['operator'].enum_type = _QUERYOPERATOR +_INTQUERYKEY.fields_by_name['val'].message_type = _INTFILTER +_INTQUERYKEY.fields_by_name['range'].message_type = _INTRANGEFILTER +_INTQUERYKEY.oneofs_by_name['filter'].fields.append( + _INTQUERYKEY.fields_by_name['val']) +_INTQUERYKEY.fields_by_name['val'].containing_oneof = _INTQUERYKEY.oneofs_by_name['filter'] +_INTQUERYKEY.oneofs_by_name['filter'].fields.append( + _INTQUERYKEY.fields_by_name['range']) +_INTQUERYKEY.fields_by_name['range'].containing_oneof = _INTQUERYKEY.oneofs_by_name['filter'] +_QUERYREQUEST.fields_by_name['revision'].message_type = _INTQUERYKEY +_QUERYRESPONSE.fields_by_name['artifact'].message_type = _ARTIFACT +_CREATEREQUEST.fields_by_name['ref'].message_type = _ARTIFACTID +_CREATEREQUEST.fields_by_name['outputs'].message_type = _PARAMETER +_CREATERESPONSE.fields_by_name['artifact'].message_type = _ARTIFACT +_CREATERESPONSE.fields_by_name['status'].enum_type = _CREATERESPONSE_STATUS +_CREATERESPONSE_STATUS.containing_type = _CREATERESPONSE +_GENERATEPROVENANCEREQUEST.fields_by_name['id'].message_type = _ARTIFACTID +DESCRIPTOR.message_types_by_name['Parameter'] = _PARAMETER +DESCRIPTOR.message_types_by_name['Artifact'] = _ARTIFACT +DESCRIPTOR.message_types_by_name['ArtifactId'] = _ARTIFACTID +DESCRIPTOR.message_types_by_name['GetRequest'] = _GETREQUEST +DESCRIPTOR.message_types_by_name['GetResponse'] = _GETRESPONSE +DESCRIPTOR.message_types_by_name['IntFilter'] = _INTFILTER +DESCRIPTOR.message_types_by_name['IntRangeFilter'] = _INTRANGEFILTER +DESCRIPTOR.message_types_by_name['IntQueryKey'] = _INTQUERYKEY +DESCRIPTOR.message_types_by_name['QueryRequest'] = _QUERYREQUEST +DESCRIPTOR.message_types_by_name['QueryResponse'] = _QUERYRESPONSE +DESCRIPTOR.message_types_by_name['CreateRequest'] = _CREATEREQUEST +DESCRIPTOR.message_types_by_name['CreateResponse'] = _CREATERESPONSE +DESCRIPTOR.message_types_by_name['GenerateProvenanceRequest'] = _GENERATEPROVENANCEREQUEST +DESCRIPTOR.message_types_by_name['GenerateProvenanceResponse'] = _GENERATEPROVENANCERESPONSE +DESCRIPTOR.enum_types_by_name['QueryOperator'] = _QUERYOPERATOR +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Parameter = _reflection.GeneratedProtocolMessageType('Parameter', (_message.Message,), dict( + DESCRIPTOR = _PARAMETER, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.Parameter) + )) +_sym_db.RegisterMessage(Parameter) + +Artifact = _reflection.GeneratedProtocolMessageType('Artifact', (_message.Message,), dict( + DESCRIPTOR = _ARTIFACT, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.Artifact) + )) +_sym_db.RegisterMessage(Artifact) + +ArtifactId = _reflection.GeneratedProtocolMessageType('ArtifactId', (_message.Message,), dict( + DESCRIPTOR = _ARTIFACTID, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.ArtifactId) + )) +_sym_db.RegisterMessage(ArtifactId) + +GetRequest = _reflection.GeneratedProtocolMessageType('GetRequest', (_message.Message,), dict( + DESCRIPTOR = _GETREQUEST, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GetRequest) + )) +_sym_db.RegisterMessage(GetRequest) + +GetResponse = _reflection.GeneratedProtocolMessageType('GetResponse', (_message.Message,), dict( + DESCRIPTOR = _GETRESPONSE, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GetResponse) + )) +_sym_db.RegisterMessage(GetResponse) + +IntFilter = _reflection.GeneratedProtocolMessageType('IntFilter', (_message.Message,), dict( + DESCRIPTOR = _INTFILTER, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.IntFilter) + )) +_sym_db.RegisterMessage(IntFilter) + +IntRangeFilter = _reflection.GeneratedProtocolMessageType('IntRangeFilter', (_message.Message,), dict( + DESCRIPTOR = _INTRANGEFILTER, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.IntRangeFilter) + )) +_sym_db.RegisterMessage(IntRangeFilter) + +IntQueryKey = _reflection.GeneratedProtocolMessageType('IntQueryKey', (_message.Message,), dict( + DESCRIPTOR = _INTQUERYKEY, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.IntQueryKey) + )) +_sym_db.RegisterMessage(IntQueryKey) + +QueryRequest = _reflection.GeneratedProtocolMessageType('QueryRequest', (_message.Message,), dict( + DESCRIPTOR = _QUERYREQUEST, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.QueryRequest) + )) +_sym_db.RegisterMessage(QueryRequest) + +QueryResponse = _reflection.GeneratedProtocolMessageType('QueryResponse', (_message.Message,), dict( + DESCRIPTOR = _QUERYRESPONSE, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.QueryResponse) + )) +_sym_db.RegisterMessage(QueryResponse) + +CreateRequest = _reflection.GeneratedProtocolMessageType('CreateRequest', (_message.Message,), dict( + DESCRIPTOR = _CREATEREQUEST, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.CreateRequest) + )) +_sym_db.RegisterMessage(CreateRequest) + +CreateResponse = _reflection.GeneratedProtocolMessageType('CreateResponse', (_message.Message,), dict( + DESCRIPTOR = _CREATERESPONSE, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.CreateResponse) + )) +_sym_db.RegisterMessage(CreateResponse) + +GenerateProvenanceRequest = _reflection.GeneratedProtocolMessageType('GenerateProvenanceRequest', (_message.Message,), dict( + DESCRIPTOR = _GENERATEPROVENANCEREQUEST, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GenerateProvenanceRequest) + )) +_sym_db.RegisterMessage(GenerateProvenanceRequest) + +GenerateProvenanceResponse = _reflection.GeneratedProtocolMessageType('GenerateProvenanceResponse', (_message.Message,), dict( + DESCRIPTOR = _GENERATEPROVENANCERESPONSE, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GenerateProvenanceResponse) + )) +_sym_db.RegisterMessage(GenerateProvenanceResponse) + + +DESCRIPTOR._options = None + +_ARTIFACTS = _descriptor.ServiceDescriptor( + name='Artifacts', + full_name='pb.lyft.datacatalog.Artifacts', + file=DESCRIPTOR, + index=0, + serialized_options=None, + serialized_start=1553, + serialized_end=1928, + methods=[ + _descriptor.MethodDescriptor( + name='Get', + full_name='pb.lyft.datacatalog.Artifacts.Get', + index=0, + containing_service=None, + input_type=_GETREQUEST, + output_type=_GETRESPONSE, + serialized_options=None, + ), + _descriptor.MethodDescriptor( + name='Query', + full_name='pb.lyft.datacatalog.Artifacts.Query', + index=1, + containing_service=None, + input_type=_QUERYREQUEST, + output_type=_QUERYRESPONSE, + serialized_options=None, + ), + _descriptor.MethodDescriptor( + name='Create', + full_name='pb.lyft.datacatalog.Artifacts.Create', + index=2, + containing_service=None, + input_type=_CREATEREQUEST, + output_type=_CREATERESPONSE, + serialized_options=None, + ), + _descriptor.MethodDescriptor( + name='GenerateProvenance', + full_name='pb.lyft.datacatalog.Artifacts.GenerateProvenance', + index=3, + containing_service=None, + input_type=_GENERATEPROVENANCEREQUEST, + output_type=_GENERATEPROVENANCERESPONSE, + serialized_options=None, + ), +]) +_sym_db.RegisterServiceDescriptor(_ARTIFACTS) + +DESCRIPTOR.services_by_name['Artifacts'] = _ARTIFACTS + +Artifacts = service_reflection.GeneratedServiceType('Artifacts', (_service.Service,), dict( + DESCRIPTOR = _ARTIFACTS, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + )) + +Artifacts_Stub = service_reflection.GeneratedServiceStubType('Artifacts_Stub', (Artifacts,), dict( + DESCRIPTOR = _ARTIFACTS, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + )) + + +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py new file mode 100644 index 000000000..574ce939a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py @@ -0,0 +1,97 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from flyteidl.datacatalog import datacatalog_pb2 as flyteidl_dot_datacatalog_dot_datacatalog__pb2 + + +class ArtifactsStub(object): + # missing associated documentation comment in .proto file + pass + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Get = channel.unary_unary( + '/pb.lyft.datacatalog.Artifacts/Get', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetResponse.FromString, + ) + self.Query = channel.unary_unary( + '/pb.lyft.datacatalog.Artifacts/Query', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.QueryRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.QueryResponse.FromString, + ) + self.Create = channel.unary_unary( + '/pb.lyft.datacatalog.Artifacts/Create', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateResponse.FromString, + ) + self.GenerateProvenance = channel.unary_unary( + '/pb.lyft.datacatalog.Artifacts/GenerateProvenance', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GenerateProvenanceRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GenerateProvenanceResponse.FromString, + ) + + +class ArtifactsServicer(object): + # missing associated documentation comment in .proto file + pass + + def Get(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Query(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Create(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GenerateProvenance(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ArtifactsServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Get': grpc.unary_unary_rpc_method_handler( + servicer.Get, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetResponse.SerializeToString, + ), + 'Query': grpc.unary_unary_rpc_method_handler( + servicer.Query, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.QueryRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.QueryResponse.SerializeToString, + ), + 'Create': grpc.unary_unary_rpc_method_handler( + servicer.Create, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateResponse.SerializeToString, + ), + 'GenerateProvenance': grpc.unary_unary_rpc_method_handler( + servicer.GenerateProvenance, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GenerateProvenanceRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GenerateProvenanceResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'pb.lyft.datacatalog.Artifacts', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/flyteidl/generate_protos.sh b/flyteidl/generate_protos.sh index 6822fd20a..0fe5553a2 100755 --- a/flyteidl/generate_protos.sh +++ b/flyteidl/generate_protos.sh @@ -13,7 +13,7 @@ docker run --rm -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d pr docker run --rm -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/datacatalog -l go --go_source_relative --validate_out languages=("python" "cpp" "java") -idlfolders=("service" "admin" "core" "event" "plugins") +idlfolders=("service" "admin" "core" "event" "plugins" "datacatalog") for lang in "${languages[@]}" do @@ -29,6 +29,7 @@ docker run --rm -u $(id -u):$(id -g) -e REPO_BLOB_SHA=master -e PROJECT_ANNOTATI docker run --rm -u $(id -u):$(id -g) -e REPO_BLOB_SHA=master -e PROJECT_ANNOTATION_PREFIX=flyte.interface -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/core -l protodoc docker run --rm -u $(id -u):$(id -g) -e REPO_BLOB_SHA=master -e PROJECT_ANNOTATION_PREFIX=flyte.interface -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/event -l protodoc docker run --rm -u $(id -u):$(id -g) -e REPO_BLOB_SHA=master -e PROJECT_ANNOTATION_PREFIX=flyte.interface -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/plugins -l protodoc +docker run --rm -u $(id -u):$(id -g) -e REPO_BLOB_SHA=master -e PROJECT_ANNOTATION_PREFIX=flyte.interface -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/datacatalog -l protodoc # Generate binary data from OpenAPI 2 file docker run --rm -u $(id -u):$(id -g) -v $DIR/gen/pb-go/flyteidl/service:/service --entrypoint go-bindata $LYFT_IMAGE -pkg service -o /service/openapi.go -prefix /service/ -modtime 1562572800 /service/admin.swagger.json diff --git a/flyteidl/package.json b/flyteidl/package.json index 76cd4eb58..81a41cbdc 100644 --- a/flyteidl/package.json +++ b/flyteidl/package.json @@ -1,12 +1,12 @@ { - "name": "@lyft/flyteidl", - "version": "0.18.11", + "name": "@flyteorg/flyteidl", + "version": "0.18.12", "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", "repository": { "type": "git", - "url": "git@github.com:lyft/flyteidl" + "url": "git@github.com:flyteorg/flyteidl" }, - "author": "Randy Schott ", + "author": "Flyte Bot ", "license": "Apache-2.0", "keywords": [ "flyte", @@ -17,4 +17,4 @@ "protos", "gen/pb-js" ] -} +} \ No newline at end of file diff --git a/flyteidl/scripts/test_diff.sh b/flyteidl/scripts/test_diff.sh new file mode 100755 index 000000000..a07988ea4 --- /dev/null +++ b/flyteidl/scripts/test_diff.sh @@ -0,0 +1,29 @@ +#!/bin/bash +set -e +set -x + +# Remove documentation generated from the swagger-codegen-cli +rm -rf gen/pb-go/flyteidl/service/flyteadmin/docs +rm -rf gen/pb_python/flyteidl/service/flyteadmin/docs + + +# Unfortunately, the `--grpc-gateway-out` plugin doesn’t yet support the `source_relative` option. Until it does, we need to move the files from the autogenerated location to the source_relative location. +cp -r gen/pb-go/github.com/lyft/flyteidl/gen/* gen/ +rm -rf gen/pb-go/github.com + +# Copy the validate.py protos. +mkdir -p gen/pb_python/validate +cp -r validate/* gen/pb_python/validate/ + +DIRTY=$(git status --porcelain) +if [ -n "$DIRTY" ]; then + echo "FAILED: Protos updated without commiting generated code." + echo "Ensure make generate has run and all changes are committed." + DIFF=$(git diff) + echo "diff detected: $DIFF" + DIFF=$(git diff --name-only) + echo "files different: $DIFF" + exit 1 +else + echo "SUCCESS: Generated code is up to date." +fi diff --git a/flyteidl/setup.py b/flyteidl/setup.py index cba3e07bf..9a3170e24 100644 --- a/flyteidl/setup.py +++ b/flyteidl/setup.py @@ -1,14 +1,14 @@ from setuptools import setup, find_packages -__version__ = '0.18.11' +__version__ = '0.18.12' setup( name='flyteidl', version=__version__, description='IDL for Flyte Platform', - url='https://www.github.com/lyft/flyteidl', - maintainer='Lyft', - maintainer_email='flyte-eng@lyft.com', + url='https://www.github.com/flyteorg/flyteidl', + maintainer='FlyteOrg', + maintainer_email='admin@flyte.org', packages=find_packages('gen/pb_python'), package_dir={'': 'gen/pb_python'}, dependency_links=[],