diff --git a/clients/go/datacatalog/mocks/ArtifactsClient.go b/clients/go/datacatalog/mocks/ArtifactsClient.go deleted file mode 100644 index 845232635..000000000 --- a/clients/go/datacatalog/mocks/ArtifactsClient.go +++ /dev/null @@ -1,209 +0,0 @@ -// Code generated by mockery v1.0.1. DO NOT EDIT. - -package mocks - -import ( - context "context" - - datacatalog "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/datacatalog" - grpc "google.golang.org/grpc" - - mock "github.com/stretchr/testify/mock" -) - -// ArtifactsClient is an autogenerated mock type for the ArtifactsClient type -type ArtifactsClient struct { - mock.Mock -} - -type ArtifactsClient_Create struct { - *mock.Call -} - -func (_m ArtifactsClient_Create) Return(_a0 *datacatalog.CreateResponse, _a1 error) *ArtifactsClient_Create { - return &ArtifactsClient_Create{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *ArtifactsClient) OnCreate(ctx context.Context, in *datacatalog.CreateRequest, opts ...grpc.CallOption) *ArtifactsClient_Create { - c := _m.On("Create", ctx, in, opts) - return &ArtifactsClient_Create{Call: c} -} - -func (_m *ArtifactsClient) OnCreateMatch(matchers ...interface{}) *ArtifactsClient_Create { - c := _m.On("Create", matchers...) - return &ArtifactsClient_Create{Call: c} -} - -// Create provides a mock function with given fields: ctx, in, opts -func (_m *ArtifactsClient) Create(ctx context.Context, in *datacatalog.CreateRequest, opts ...grpc.CallOption) (*datacatalog.CreateResponse, error) { - _va := make([]interface{}, len(opts)) - for _i := range opts { - _va[_i] = opts[_i] - } - var _ca []interface{} - _ca = append(_ca, ctx, in) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *datacatalog.CreateResponse - if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.CreateRequest, ...grpc.CallOption) *datacatalog.CreateResponse); ok { - r0 = rf(ctx, in, opts...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*datacatalog.CreateResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.CreateRequest, ...grpc.CallOption) error); ok { - r1 = rf(ctx, in, opts...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -type ArtifactsClient_GenerateProvenance struct { - *mock.Call -} - -func (_m ArtifactsClient_GenerateProvenance) Return(_a0 *datacatalog.GenerateProvenanceResponse, _a1 error) *ArtifactsClient_GenerateProvenance { - return &ArtifactsClient_GenerateProvenance{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *ArtifactsClient) OnGenerateProvenance(ctx context.Context, in *datacatalog.GenerateProvenanceRequest, opts ...grpc.CallOption) *ArtifactsClient_GenerateProvenance { - c := _m.On("GenerateProvenance", ctx, in, opts) - return &ArtifactsClient_GenerateProvenance{Call: c} -} - -func (_m *ArtifactsClient) OnGenerateProvenanceMatch(matchers ...interface{}) *ArtifactsClient_GenerateProvenance { - c := _m.On("GenerateProvenance", matchers...) - return &ArtifactsClient_GenerateProvenance{Call: c} -} - -// GenerateProvenance provides a mock function with given fields: ctx, in, opts -func (_m *ArtifactsClient) GenerateProvenance(ctx context.Context, in *datacatalog.GenerateProvenanceRequest, opts ...grpc.CallOption) (*datacatalog.GenerateProvenanceResponse, error) { - _va := make([]interface{}, len(opts)) - for _i := range opts { - _va[_i] = opts[_i] - } - var _ca []interface{} - _ca = append(_ca, ctx, in) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *datacatalog.GenerateProvenanceResponse - if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.GenerateProvenanceRequest, ...grpc.CallOption) *datacatalog.GenerateProvenanceResponse); ok { - r0 = rf(ctx, in, opts...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*datacatalog.GenerateProvenanceResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.GenerateProvenanceRequest, ...grpc.CallOption) error); ok { - r1 = rf(ctx, in, opts...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -type ArtifactsClient_Get struct { - *mock.Call -} - -func (_m ArtifactsClient_Get) Return(_a0 *datacatalog.GetResponse, _a1 error) *ArtifactsClient_Get { - return &ArtifactsClient_Get{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *ArtifactsClient) OnGet(ctx context.Context, in *datacatalog.GetRequest, opts ...grpc.CallOption) *ArtifactsClient_Get { - c := _m.On("Get", ctx, in, opts) - return &ArtifactsClient_Get{Call: c} -} - -func (_m *ArtifactsClient) OnGetMatch(matchers ...interface{}) *ArtifactsClient_Get { - c := _m.On("Get", matchers...) - return &ArtifactsClient_Get{Call: c} -} - -// Get provides a mock function with given fields: ctx, in, opts -func (_m *ArtifactsClient) Get(ctx context.Context, in *datacatalog.GetRequest, opts ...grpc.CallOption) (*datacatalog.GetResponse, error) { - _va := make([]interface{}, len(opts)) - for _i := range opts { - _va[_i] = opts[_i] - } - var _ca []interface{} - _ca = append(_ca, ctx, in) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *datacatalog.GetResponse - if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.GetRequest, ...grpc.CallOption) *datacatalog.GetResponse); ok { - r0 = rf(ctx, in, opts...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*datacatalog.GetResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.GetRequest, ...grpc.CallOption) error); ok { - r1 = rf(ctx, in, opts...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -type ArtifactsClient_Query struct { - *mock.Call -} - -func (_m ArtifactsClient_Query) Return(_a0 *datacatalog.QueryResponse, _a1 error) *ArtifactsClient_Query { - return &ArtifactsClient_Query{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *ArtifactsClient) OnQuery(ctx context.Context, in *datacatalog.QueryRequest, opts ...grpc.CallOption) *ArtifactsClient_Query { - c := _m.On("Query", ctx, in, opts) - return &ArtifactsClient_Query{Call: c} -} - -func (_m *ArtifactsClient) OnQueryMatch(matchers ...interface{}) *ArtifactsClient_Query { - c := _m.On("Query", matchers...) - return &ArtifactsClient_Query{Call: c} -} - -// Query provides a mock function with given fields: ctx, in, opts -func (_m *ArtifactsClient) Query(ctx context.Context, in *datacatalog.QueryRequest, opts ...grpc.CallOption) (*datacatalog.QueryResponse, error) { - _va := make([]interface{}, len(opts)) - for _i := range opts { - _va[_i] = opts[_i] - } - var _ca []interface{} - _ca = append(_ca, ctx, in) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *datacatalog.QueryResponse - if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.QueryRequest, ...grpc.CallOption) *datacatalog.QueryResponse); ok { - r0 = rf(ctx, in, opts...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*datacatalog.QueryResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.QueryRequest, ...grpc.CallOption) error); ok { - r1 = rf(ctx, in, opts...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} diff --git a/clients/go/datacatalog/mocks/DataCatalogClient.go b/clients/go/datacatalog/mocks/DataCatalogClient.go new file mode 100644 index 000000000..972497a2f --- /dev/null +++ b/clients/go/datacatalog/mocks/DataCatalogClient.go @@ -0,0 +1,353 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + datacatalog "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/datacatalog" + grpc "google.golang.org/grpc" + + mock "github.com/stretchr/testify/mock" +) + +// DataCatalogClient is an autogenerated mock type for the DataCatalogClient type +type DataCatalogClient struct { + mock.Mock +} + +type DataCatalogClient_AddTag struct { + *mock.Call +} + +func (_m DataCatalogClient_AddTag) Return(_a0 *datacatalog.AddTagResponse, _a1 error) *DataCatalogClient_AddTag { + return &DataCatalogClient_AddTag{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnAddTag(ctx context.Context, in *datacatalog.AddTagRequest, opts ...grpc.CallOption) *DataCatalogClient_AddTag { + c := _m.On("AddTag", ctx, in, opts) + return &DataCatalogClient_AddTag{Call: c} +} + +func (_m *DataCatalogClient) OnAddTagMatch(matchers ...interface{}) *DataCatalogClient_AddTag { + c := _m.On("AddTag", matchers...) + return &DataCatalogClient_AddTag{Call: c} +} + +// AddTag provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) AddTag(ctx context.Context, in *datacatalog.AddTagRequest, opts ...grpc.CallOption) (*datacatalog.AddTagResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.AddTagResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.AddTagRequest, ...grpc.CallOption) *datacatalog.AddTagResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.AddTagResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.AddTagRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_CreateArtifact struct { + *mock.Call +} + +func (_m DataCatalogClient_CreateArtifact) Return(_a0 *datacatalog.CreateArtifactResponse, _a1 error) *DataCatalogClient_CreateArtifact { + return &DataCatalogClient_CreateArtifact{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnCreateArtifact(ctx context.Context, in *datacatalog.CreateArtifactRequest, opts ...grpc.CallOption) *DataCatalogClient_CreateArtifact { + c := _m.On("CreateArtifact", ctx, in, opts) + return &DataCatalogClient_CreateArtifact{Call: c} +} + +func (_m *DataCatalogClient) OnCreateArtifactMatch(matchers ...interface{}) *DataCatalogClient_CreateArtifact { + c := _m.On("CreateArtifact", matchers...) + return &DataCatalogClient_CreateArtifact{Call: c} +} + +// CreateArtifact provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) CreateArtifact(ctx context.Context, in *datacatalog.CreateArtifactRequest, opts ...grpc.CallOption) (*datacatalog.CreateArtifactResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.CreateArtifactResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.CreateArtifactRequest, ...grpc.CallOption) *datacatalog.CreateArtifactResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.CreateArtifactResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.CreateArtifactRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_CreateDataset struct { + *mock.Call +} + +func (_m DataCatalogClient_CreateDataset) Return(_a0 *datacatalog.CreateDatasetResponse, _a1 error) *DataCatalogClient_CreateDataset { + return &DataCatalogClient_CreateDataset{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnCreateDataset(ctx context.Context, in *datacatalog.CreateDatasetRequest, opts ...grpc.CallOption) *DataCatalogClient_CreateDataset { + c := _m.On("CreateDataset", ctx, in, opts) + return &DataCatalogClient_CreateDataset{Call: c} +} + +func (_m *DataCatalogClient) OnCreateDatasetMatch(matchers ...interface{}) *DataCatalogClient_CreateDataset { + c := _m.On("CreateDataset", matchers...) + return &DataCatalogClient_CreateDataset{Call: c} +} + +// CreateDataset provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) CreateDataset(ctx context.Context, in *datacatalog.CreateDatasetRequest, opts ...grpc.CallOption) (*datacatalog.CreateDatasetResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.CreateDatasetResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.CreateDatasetRequest, ...grpc.CallOption) *datacatalog.CreateDatasetResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.CreateDatasetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.CreateDatasetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_GetArtifact struct { + *mock.Call +} + +func (_m DataCatalogClient_GetArtifact) Return(_a0 *datacatalog.GetArtifactResponse, _a1 error) *DataCatalogClient_GetArtifact { + return &DataCatalogClient_GetArtifact{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnGetArtifact(ctx context.Context, in *datacatalog.GetArtifactRequest, opts ...grpc.CallOption) *DataCatalogClient_GetArtifact { + c := _m.On("GetArtifact", ctx, in, opts) + return &DataCatalogClient_GetArtifact{Call: c} +} + +func (_m *DataCatalogClient) OnGetArtifactMatch(matchers ...interface{}) *DataCatalogClient_GetArtifact { + c := _m.On("GetArtifact", matchers...) + return &DataCatalogClient_GetArtifact{Call: c} +} + +// GetArtifact provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) GetArtifact(ctx context.Context, in *datacatalog.GetArtifactRequest, opts ...grpc.CallOption) (*datacatalog.GetArtifactResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.GetArtifactResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.GetArtifactRequest, ...grpc.CallOption) *datacatalog.GetArtifactResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.GetArtifactResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.GetArtifactRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_GetDataset struct { + *mock.Call +} + +func (_m DataCatalogClient_GetDataset) Return(_a0 *datacatalog.GetDatasetResponse, _a1 error) *DataCatalogClient_GetDataset { + return &DataCatalogClient_GetDataset{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnGetDataset(ctx context.Context, in *datacatalog.GetDatasetRequest, opts ...grpc.CallOption) *DataCatalogClient_GetDataset { + c := _m.On("GetDataset", ctx, in, opts) + return &DataCatalogClient_GetDataset{Call: c} +} + +func (_m *DataCatalogClient) OnGetDatasetMatch(matchers ...interface{}) *DataCatalogClient_GetDataset { + c := _m.On("GetDataset", matchers...) + return &DataCatalogClient_GetDataset{Call: c} +} + +// GetDataset provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) GetDataset(ctx context.Context, in *datacatalog.GetDatasetRequest, opts ...grpc.CallOption) (*datacatalog.GetDatasetResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.GetDatasetResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.GetDatasetRequest, ...grpc.CallOption) *datacatalog.GetDatasetResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.GetDatasetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.GetDatasetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_ListArtifacts struct { + *mock.Call +} + +func (_m DataCatalogClient_ListArtifacts) Return(_a0 *datacatalog.ListArtifactsResponse, _a1 error) *DataCatalogClient_ListArtifacts { + return &DataCatalogClient_ListArtifacts{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnListArtifacts(ctx context.Context, in *datacatalog.ListArtifactsRequest, opts ...grpc.CallOption) *DataCatalogClient_ListArtifacts { + c := _m.On("ListArtifacts", ctx, in, opts) + return &DataCatalogClient_ListArtifacts{Call: c} +} + +func (_m *DataCatalogClient) OnListArtifactsMatch(matchers ...interface{}) *DataCatalogClient_ListArtifacts { + c := _m.On("ListArtifacts", matchers...) + return &DataCatalogClient_ListArtifacts{Call: c} +} + +// ListArtifacts provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) ListArtifacts(ctx context.Context, in *datacatalog.ListArtifactsRequest, opts ...grpc.CallOption) (*datacatalog.ListArtifactsResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.ListArtifactsResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.ListArtifactsRequest, ...grpc.CallOption) *datacatalog.ListArtifactsResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.ListArtifactsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.ListArtifactsRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_ListDatasets struct { + *mock.Call +} + +func (_m DataCatalogClient_ListDatasets) Return(_a0 *datacatalog.ListDatasetsResponse, _a1 error) *DataCatalogClient_ListDatasets { + return &DataCatalogClient_ListDatasets{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnListDatasets(ctx context.Context, in *datacatalog.ListDatasetsRequest, opts ...grpc.CallOption) *DataCatalogClient_ListDatasets { + c := _m.On("ListDatasets", ctx, in, opts) + return &DataCatalogClient_ListDatasets{Call: c} +} + +func (_m *DataCatalogClient) OnListDatasetsMatch(matchers ...interface{}) *DataCatalogClient_ListDatasets { + c := _m.On("ListDatasets", matchers...) + return &DataCatalogClient_ListDatasets{Call: c} +} + +// ListDatasets provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) ListDatasets(ctx context.Context, in *datacatalog.ListDatasetsRequest, opts ...grpc.CallOption) (*datacatalog.ListDatasetsResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.ListDatasetsResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.ListDatasetsRequest, ...grpc.CallOption) *datacatalog.ListDatasetsResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.ListDatasetsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.ListDatasetsRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc index e75ee51d4..d6c615aed 100644 --- a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc +++ b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc @@ -16,190 +16,314 @@ #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", +static const char* DataCatalog_method_names[] = { + "/datacatalog.DataCatalog/CreateDataset", + "/datacatalog.DataCatalog/GetDataset", + "/datacatalog.DataCatalog/CreateArtifact", + "/datacatalog.DataCatalog/GetArtifact", + "/datacatalog.DataCatalog/AddTag", + "/datacatalog.DataCatalog/ListArtifacts", + "/datacatalog.DataCatalog/ListDatasets", }; -std::unique_ptr< Artifacts::Stub> Artifacts::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { +std::unique_ptr< DataCatalog::Stub> DataCatalog::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< Artifacts::Stub> stub(new Artifacts::Stub(channel)); + std::unique_ptr< DataCatalog::Stub> stub(new DataCatalog::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) +DataCatalog::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_CreateDataset_(DataCatalog_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetDataset_(DataCatalog_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateArtifact_(DataCatalog_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetArtifact_(DataCatalog_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_AddTag_(DataCatalog_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListArtifacts_(DataCatalog_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListDatasets_(DataCatalog_method_names[6], ::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); +::grpc::Status DataCatalog::Stub::CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::datacatalog::CreateDatasetResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateDataset_, 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 DataCatalog::Stub::experimental_async::CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateDataset_, 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 DataCatalog::Stub::experimental_async::CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateDataset_, 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 DataCatalog::Stub::experimental_async::CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateDataset_, 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); +void DataCatalog::Stub::experimental_async::CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateDataset_, 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< ::datacatalog::CreateDatasetResponse>* DataCatalog::Stub::AsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::CreateDatasetResponse>::Create(channel_.get(), cq, rpcmethod_CreateDataset_, 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::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>* DataCatalog::Stub::PrepareAsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::CreateDatasetResponse>::Create(channel_.get(), cq, rpcmethod_CreateDataset_, 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); +::grpc::Status DataCatalog::Stub::GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::datacatalog::GetDatasetResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetDataset_, 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 DataCatalog::Stub::experimental_async::GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDataset_, 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 DataCatalog::Stub::experimental_async::GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDataset_, 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 DataCatalog::Stub::experimental_async::GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDataset_, 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); +void DataCatalog::Stub::experimental_async::GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDataset_, 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< ::datacatalog::GetDatasetResponse>* DataCatalog::Stub::AsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetDatasetResponse>::Create(channel_.get(), cq, rpcmethod_GetDataset_, 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::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>* DataCatalog::Stub::PrepareAsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetDatasetResponse>::Create(channel_.get(), cq, rpcmethod_GetDataset_, 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); +::grpc::Status DataCatalog::Stub::CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::datacatalog::CreateArtifactResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateArtifact_, 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 DataCatalog::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, 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 DataCatalog::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, 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 DataCatalog::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, 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); +void DataCatalog::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, 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< ::datacatalog::CreateArtifactResponse>* DataCatalog::Stub::AsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::CreateArtifactResponse>::Create(channel_.get(), cq, rpcmethod_CreateArtifact_, 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::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>* DataCatalog::Stub::PrepareAsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::CreateArtifactResponse>::Create(channel_.get(), cq, rpcmethod_CreateArtifact_, 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); +::grpc::Status DataCatalog::Stub::GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::datacatalog::GetArtifactResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetArtifact_, 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 DataCatalog::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, 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 DataCatalog::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, 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 DataCatalog::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, 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); +void DataCatalog::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, 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< ::datacatalog::GetArtifactResponse>* DataCatalog::Stub::AsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetArtifactResponse>::Create(channel_.get(), cq, rpcmethod_GetArtifact_, 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); +::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>* DataCatalog::Stub::PrepareAsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetArtifactResponse>::Create(channel_.get(), cq, rpcmethod_GetArtifact_, context, request, false); } -Artifacts::Service::Service() { +::grpc::Status DataCatalog::Stub::AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::datacatalog::AddTagResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_AddTag_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>* DataCatalog::Stub::AsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::AddTagResponse>::Create(channel_.get(), cq, rpcmethod_AddTag_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>* DataCatalog::Stub::PrepareAsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::AddTagResponse>::Create(channel_.get(), cq, rpcmethod_AddTag_, context, request, false); +} + +::grpc::Status DataCatalog::Stub::ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::datacatalog::ListArtifactsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListArtifacts_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListArtifacts_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListArtifacts_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListArtifacts_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListArtifacts_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>* DataCatalog::Stub::AsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ListArtifactsResponse>::Create(channel_.get(), cq, rpcmethod_ListArtifacts_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>* DataCatalog::Stub::PrepareAsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ListArtifactsResponse>::Create(channel_.get(), cq, rpcmethod_ListArtifacts_, context, request, false); +} + +::grpc::Status DataCatalog::Stub::ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::datacatalog::ListDatasetsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListDatasets_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListDatasets_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListDatasets_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListDatasets_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListDatasets_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* DataCatalog::Stub::AsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ListDatasetsResponse>::Create(channel_.get(), cq, rpcmethod_ListDatasets_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* DataCatalog::Stub::PrepareAsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ListDatasetsResponse>::Create(channel_.get(), cq, rpcmethod_ListDatasets_, context, request, false); +} + +DataCatalog::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( - Artifacts_method_names[0], + DataCatalog_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))); + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::CreateDatasetRequest, ::datacatalog::CreateDatasetResponse>( + std::mem_fn(&DataCatalog::Service::CreateDataset), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Artifacts_method_names[1], + DataCatalog_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))); + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::GetDatasetRequest, ::datacatalog::GetDatasetResponse>( + std::mem_fn(&DataCatalog::Service::GetDataset), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Artifacts_method_names[2], + DataCatalog_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))); + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::CreateArtifactRequest, ::datacatalog::CreateArtifactResponse>( + std::mem_fn(&DataCatalog::Service::CreateArtifact), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Artifacts_method_names[3], + DataCatalog_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))); + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::GetArtifactRequest, ::datacatalog::GetArtifactResponse>( + std::mem_fn(&DataCatalog::Service::GetArtifact), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::AddTagRequest, ::datacatalog::AddTagResponse>( + std::mem_fn(&DataCatalog::Service::AddTag), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::ListArtifactsRequest, ::datacatalog::ListArtifactsResponse>( + std::mem_fn(&DataCatalog::Service::ListArtifacts), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>( + std::mem_fn(&DataCatalog::Service::ListDatasets), this))); +} + +DataCatalog::Service::~Service() { } -Artifacts::Service::~Service() { +::grpc::Status DataCatalog::Service::CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataCatalog::Service::GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataCatalog::Service::CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Artifacts::Service::Get(::grpc::ServerContext* context, const ::pb::lyft::datacatalog::GetRequest* request, ::pb::lyft::datacatalog::GetResponse* response) { +::grpc::Status DataCatalog::Service::GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* 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) { +::grpc::Status DataCatalog::Service::AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* 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) { +::grpc::Status DataCatalog::Service::ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* 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) { +::grpc::Status DataCatalog::Service::ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) { (void) context; (void) request; (void) response; @@ -207,7 +331,5 @@ ::grpc::Status Artifacts::Service::GenerateProvenance(::grpc::ServerContext* con } -} // namespace pb -} // namespace lyft } // namespace datacatalog diff --git a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h index 96a75de12..bf96ef5fa 100644 --- a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h +++ b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h @@ -37,127 +37,197 @@ namespace grpc { class ServerContext; } // namespace grpc -namespace pb { -namespace lyft { namespace datacatalog { -class Artifacts final { +class DataCatalog final { public: static constexpr char const* service_full_name() { - return "pb.lyft.datacatalog.Artifacts"; + return "datacatalog.DataCatalog"; } 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)); + virtual ::grpc::Status CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::datacatalog::CreateDatasetResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>> AsyncCreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>>(AsyncCreateDatasetRaw(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)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>> PrepareAsyncCreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>>(PrepareAsyncCreateDatasetRaw(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)); + virtual ::grpc::Status GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::datacatalog::GetDatasetResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>> AsyncGetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>>(AsyncGetDatasetRaw(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)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>> PrepareAsyncGetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>>(PrepareAsyncGetDatasetRaw(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)); + virtual ::grpc::Status CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::datacatalog::CreateArtifactResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>> AsyncCreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>>(AsyncCreateArtifactRaw(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)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>> PrepareAsyncCreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>>(PrepareAsyncCreateArtifactRaw(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)); + virtual ::grpc::Status GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::datacatalog::GetArtifactResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>> AsyncGetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>>(AsyncGetArtifactRaw(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)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>> PrepareAsyncGetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>>(PrepareAsyncGetArtifactRaw(context, request, cq)); + } + virtual ::grpc::Status AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::datacatalog::AddTagResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>> AsyncAddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>>(AsyncAddTagRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>> PrepareAsyncAddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>>(PrepareAsyncAddTagRaw(context, request, cq)); + } + virtual ::grpc::Status ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::datacatalog::ListArtifactsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>> AsyncListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>>(AsyncListArtifactsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>> PrepareAsyncListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>>(PrepareAsyncListArtifactsRaw(context, request, cq)); + } + virtual ::grpc::Status ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::datacatalog::ListDatasetsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>> AsyncListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>>(AsyncListDatasetsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>> PrepareAsyncListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>>(PrepareAsyncListDatasetsRaw(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 void CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, std::function) = 0; + virtual void CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, std::function) = 0; + virtual void CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, std::function) = 0; + virtual void GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, std::function) = 0; + virtual void GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, std::function) = 0; + virtual void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, std::function) = 0; + virtual void CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, std::function) = 0; + virtual void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, std::function) = 0; + virtual void GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, std::function) = 0; + virtual void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, std::function) = 0; + virtual void AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, std::function) = 0; + virtual void ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, std::function) = 0; + virtual void ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, std::function) = 0; + virtual void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, std::function) = 0; + virtual void ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* 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; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>* AsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>* PrepareAsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>* AsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>* PrepareAsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>* AsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>* PrepareAsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>* AsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>* PrepareAsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>* AsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>* PrepareAsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>* AsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>* PrepareAsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>* AsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>* PrepareAsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& 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)); + ::grpc::Status CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::datacatalog::CreateDatasetResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>> AsyncCreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>>(AsyncCreateDatasetRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>> PrepareAsyncCreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>>(PrepareAsyncCreateDatasetRaw(context, request, cq)); + } + ::grpc::Status GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::datacatalog::GetDatasetResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>> AsyncGetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>>(AsyncGetDatasetRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>> PrepareAsyncGetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>>(PrepareAsyncGetDatasetRaw(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 CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::datacatalog::CreateArtifactResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>> AsyncCreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>>(AsyncCreateArtifactRaw(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< ::datacatalog::CreateArtifactResponse>> PrepareAsyncCreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>>(PrepareAsyncCreateArtifactRaw(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 GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::datacatalog::GetArtifactResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>> AsyncGetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>>(AsyncGetArtifactRaw(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< ::datacatalog::GetArtifactResponse>> PrepareAsyncGetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>>(PrepareAsyncGetArtifactRaw(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 AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::datacatalog::AddTagResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>> AsyncAddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>>(AsyncAddTagRaw(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< ::datacatalog::AddTagResponse>> PrepareAsyncAddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>>(PrepareAsyncAddTagRaw(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)); + ::grpc::Status ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::datacatalog::ListArtifactsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>> AsyncListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>>(AsyncListArtifactsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>> PrepareAsyncListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>>(PrepareAsyncListArtifactsRaw(context, request, cq)); + } + ::grpc::Status ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::datacatalog::ListDatasetsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>> AsyncListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>>(AsyncListDatasetsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>> PrepareAsyncListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>>(PrepareAsyncListDatasetsRaw(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; + void CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, std::function) override; + void CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, std::function) override; + void CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, std::function) override; + void GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, std::function) override; + void GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, std::function) override; + void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, std::function) override; + void CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, std::function) override; + void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, std::function) override; + void GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, std::function) override; + void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, std::function) override; + void AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, std::function) override; + void ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, std::function) override; + void ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, std::function) override; + void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, std::function) override; + void ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -169,18 +239,27 @@ class Artifacts final { 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_; + ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>* AsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>* PrepareAsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>* AsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>* PrepareAsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>* AsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>* PrepareAsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>* AsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>* PrepareAsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>* AsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>* PrepareAsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>* AsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>* PrepareAsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* AsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* PrepareAsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_CreateDataset_; + const ::grpc::internal::RpcMethod rpcmethod_GetDataset_; + const ::grpc::internal::RpcMethod rpcmethod_CreateArtifact_; + const ::grpc::internal::RpcMethod rpcmethod_GetArtifact_; + const ::grpc::internal::RpcMethod rpcmethod_AddTag_; + const ::grpc::internal::RpcMethod rpcmethod_ListArtifacts_; + const ::grpc::internal::RpcMethod rpcmethod_ListDatasets_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -188,553 +267,953 @@ class Artifacts final { 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); + virtual ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response); + virtual ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response); + virtual ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response); + virtual ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response); + virtual ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response); + virtual ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response); + virtual ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response); }; template - class WithAsyncMethod_Get : public BaseClass { + class WithAsyncMethod_CreateDataset : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_Get() { + WithAsyncMethod_CreateDataset() { ::grpc::Service::MarkMethodAsync(0); } - ~WithAsyncMethod_Get() override { + ~WithAsyncMethod_CreateDataset() 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 { + ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* 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) { + void RequestCreateDataset(::grpc::ServerContext* context, ::datacatalog::CreateDatasetRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::CreateDatasetResponse>* 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 { + class WithAsyncMethod_GetDataset : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_Query() { + WithAsyncMethod_GetDataset() { ::grpc::Service::MarkMethodAsync(1); } - ~WithAsyncMethod_Query() override { + ~WithAsyncMethod_GetDataset() 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 { + ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* 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) { + void RequestGetDataset(::grpc::ServerContext* context, ::datacatalog::GetDatasetRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::GetDatasetResponse>* 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 { + class WithAsyncMethod_CreateArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_Create() { + WithAsyncMethod_CreateArtifact() { ::grpc::Service::MarkMethodAsync(2); } - ~WithAsyncMethod_Create() override { + ~WithAsyncMethod_CreateArtifact() 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 { + ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* 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) { + void RequestCreateArtifact(::grpc::ServerContext* context, ::datacatalog::CreateArtifactRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::CreateArtifactResponse>* 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 { + class WithAsyncMethod_GetArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_GenerateProvenance() { + WithAsyncMethod_GetArtifact() { ::grpc::Service::MarkMethodAsync(3); } - ~WithAsyncMethod_GenerateProvenance() override { + ~WithAsyncMethod_GetArtifact() 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 { + ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* 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) { + void RequestGetArtifact(::grpc::ServerContext* context, ::datacatalog::GetArtifactRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::GetArtifactResponse>* 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 { + class WithAsyncMethod_AddTag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_AddTag() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_AddTag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddTag(::grpc::ServerContext* context, ::datacatalog::AddTagRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::AddTagResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListArtifacts() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_ListArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListArtifacts(::grpc::ServerContext* context, ::datacatalog::ListArtifactsRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::ListArtifactsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListDatasets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListDatasets() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_ListDatasets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListDatasets(::grpc::ServerContext* context, ::datacatalog::ListDatasetsRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::ListDatasetsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_CreateDataset > > > > > > AsyncService; + template + class ExperimentalWithCallbackMethod_CreateDataset : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_Get() { + ExperimentalWithCallbackMethod_CreateDataset() { ::grpc::Service::experimental().MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::pb::lyft::datacatalog::GetRequest, ::pb::lyft::datacatalog::GetResponse>( + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::CreateDatasetRequest, ::datacatalog::CreateDatasetResponse>( [this](::grpc::ServerContext* context, - const ::pb::lyft::datacatalog::GetRequest* request, - ::pb::lyft::datacatalog::GetResponse* response, + const ::datacatalog::CreateDatasetRequest* request, + ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->Get(context, request, response, controller); + return this->CreateDataset(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>*>( + void SetMessageAllocatorFor_CreateDataset( + ::grpc::experimental::MessageAllocator< ::datacatalog::CreateDatasetRequest, ::datacatalog::CreateDatasetResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::CreateDatasetRequest, ::datacatalog::CreateDatasetResponse>*>( ::grpc::Service::experimental().GetHandler(0)) ->SetMessageAllocator(allocator); } - ~ExperimentalWithCallbackMethod_Get() override { + ~ExperimentalWithCallbackMethod_CreateDataset() 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 { + ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* 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, "")); } + virtual void CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_Query : public BaseClass { + class ExperimentalWithCallbackMethod_GetDataset : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_Query() { + ExperimentalWithCallbackMethod_GetDataset() { ::grpc::Service::experimental().MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::pb::lyft::datacatalog::QueryRequest, ::pb::lyft::datacatalog::QueryResponse>( + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetDatasetRequest, ::datacatalog::GetDatasetResponse>( [this](::grpc::ServerContext* context, - const ::pb::lyft::datacatalog::QueryRequest* request, - ::pb::lyft::datacatalog::QueryResponse* response, + const ::datacatalog::GetDatasetRequest* request, + ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->Query(context, request, response, controller); + return this->GetDataset(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>*>( + void SetMessageAllocatorFor_GetDataset( + ::grpc::experimental::MessageAllocator< ::datacatalog::GetDatasetRequest, ::datacatalog::GetDatasetResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetDatasetRequest, ::datacatalog::GetDatasetResponse>*>( ::grpc::Service::experimental().GetHandler(1)) ->SetMessageAllocator(allocator); } - ~ExperimentalWithCallbackMethod_Query() override { + ~ExperimentalWithCallbackMethod_GetDataset() 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 { + ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* 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, "")); } + virtual void GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_Create : public BaseClass { + class ExperimentalWithCallbackMethod_CreateArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_Create() { + ExperimentalWithCallbackMethod_CreateArtifact() { ::grpc::Service::experimental().MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::pb::lyft::datacatalog::CreateRequest, ::pb::lyft::datacatalog::CreateResponse>( + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::CreateArtifactRequest, ::datacatalog::CreateArtifactResponse>( [this](::grpc::ServerContext* context, - const ::pb::lyft::datacatalog::CreateRequest* request, - ::pb::lyft::datacatalog::CreateResponse* response, + const ::datacatalog::CreateArtifactRequest* request, + ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->Create(context, request, response, controller); + return this->CreateArtifact(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>*>( + void SetMessageAllocatorFor_CreateArtifact( + ::grpc::experimental::MessageAllocator< ::datacatalog::CreateArtifactRequest, ::datacatalog::CreateArtifactResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::CreateArtifactRequest, ::datacatalog::CreateArtifactResponse>*>( ::grpc::Service::experimental().GetHandler(2)) ->SetMessageAllocator(allocator); } - ~ExperimentalWithCallbackMethod_Create() override { + ~ExperimentalWithCallbackMethod_CreateArtifact() 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 { + ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* 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, "")); } + virtual void CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_GenerateProvenance : public BaseClass { + class ExperimentalWithCallbackMethod_GetArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_GenerateProvenance() { + ExperimentalWithCallbackMethod_GetArtifact() { ::grpc::Service::experimental().MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::pb::lyft::datacatalog::GenerateProvenanceRequest, ::pb::lyft::datacatalog::GenerateProvenanceResponse>( + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetArtifactRequest, ::datacatalog::GetArtifactResponse>( [this](::grpc::ServerContext* context, - const ::pb::lyft::datacatalog::GenerateProvenanceRequest* request, - ::pb::lyft::datacatalog::GenerateProvenanceResponse* response, + const ::datacatalog::GetArtifactRequest* request, + ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GenerateProvenance(context, request, response, controller); + return this->GetArtifact(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>*>( + void SetMessageAllocatorFor_GetArtifact( + ::grpc::experimental::MessageAllocator< ::datacatalog::GetArtifactRequest, ::datacatalog::GetArtifactResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetArtifactRequest, ::datacatalog::GetArtifactResponse>*>( ::grpc::Service::experimental().GetHandler(3)) ->SetMessageAllocator(allocator); } - ~ExperimentalWithCallbackMethod_GenerateProvenance() override { + ~ExperimentalWithCallbackMethod_GetArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_AddTag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_AddTag() { + ::grpc::Service::experimental().MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::AddTagRequest, ::datacatalog::AddTagResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::AddTagRequest* request, + ::datacatalog::AddTagResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->AddTag(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_AddTag( + ::grpc::experimental::MessageAllocator< ::datacatalog::AddTagRequest, ::datacatalog::AddTagResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::AddTagRequest, ::datacatalog::AddTagResponse>*>( + ::grpc::Service::experimental().GetHandler(4)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_AddTag() 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 { + ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* 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, "")); } + virtual void AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; - typedef ExperimentalWithCallbackMethod_Get > > > ExperimentalCallbackService; template - class WithGenericMethod_Get : public BaseClass { + class ExperimentalWithCallbackMethod_ListArtifacts : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_Get() { + ExperimentalWithCallbackMethod_ListArtifacts() { + ::grpc::Service::experimental().MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::ListArtifactsRequest, ::datacatalog::ListArtifactsResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::ListArtifactsRequest* request, + ::datacatalog::ListArtifactsResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListArtifacts(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListArtifacts( + ::grpc::experimental::MessageAllocator< ::datacatalog::ListArtifactsRequest, ::datacatalog::ListArtifactsResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::ListArtifactsRequest, ::datacatalog::ListArtifactsResponse>*>( + ::grpc::Service::experimental().GetHandler(5)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListDatasets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListDatasets() { + ::grpc::Service::experimental().MarkMethodCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::ListDatasetsRequest* request, + ::datacatalog::ListDatasetsResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListDatasets(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListDatasets( + ::grpc::experimental::MessageAllocator< ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>*>( + ::grpc::Service::experimental().GetHandler(6)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListDatasets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_CreateDataset > > > > > > ExperimentalCallbackService; + template + class WithGenericMethod_CreateDataset : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateDataset() { ::grpc::Service::MarkMethodGeneric(0); } - ~WithGenericMethod_Get() override { + ~WithGenericMethod_CreateDataset() 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 { + ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_Query : public BaseClass { + class WithGenericMethod_GetDataset : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_Query() { + WithGenericMethod_GetDataset() { ::grpc::Service::MarkMethodGeneric(1); } - ~WithGenericMethod_Query() override { + ~WithGenericMethod_GetDataset() 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 { + ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_Create : public BaseClass { + class WithGenericMethod_CreateArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_Create() { + WithGenericMethod_CreateArtifact() { ::grpc::Service::MarkMethodGeneric(2); } - ~WithGenericMethod_Create() override { + ~WithGenericMethod_CreateArtifact() 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 { + ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_GenerateProvenance : public BaseClass { + class WithGenericMethod_GetArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_GenerateProvenance() { + WithGenericMethod_GetArtifact() { ::grpc::Service::MarkMethodGeneric(3); } - ~WithGenericMethod_GenerateProvenance() override { + ~WithGenericMethod_GetArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_AddTag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_AddTag() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_AddTag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListArtifacts() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_ListArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListDatasets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListDatasets() { + ::grpc::Service::MarkMethodGeneric(6); + } + ~WithGenericMethod_ListDatasets() 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 { + ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithRawMethod_Get : public BaseClass { + class WithRawMethod_CreateDataset : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_Get() { + WithRawMethod_CreateDataset() { ::grpc::Service::MarkMethodRaw(0); } - ~WithRawMethod_Get() override { + ~WithRawMethod_CreateDataset() 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 { + ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* 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) { + void RequestCreateDataset(::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 { + class WithRawMethod_GetDataset : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_Query() { + WithRawMethod_GetDataset() { ::grpc::Service::MarkMethodRaw(1); } - ~WithRawMethod_Query() override { + ~WithRawMethod_GetDataset() 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 { + ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* 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) { + void RequestGetDataset(::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 { + class WithRawMethod_CreateArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_Create() { + WithRawMethod_CreateArtifact() { ::grpc::Service::MarkMethodRaw(2); } - ~WithRawMethod_Create() override { + ~WithRawMethod_CreateArtifact() 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 { + ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* 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) { + void RequestCreateArtifact(::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 { + class WithRawMethod_GetArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_GenerateProvenance() { + WithRawMethod_GetArtifact() { ::grpc::Service::MarkMethodRaw(3); } - ~WithRawMethod_GenerateProvenance() override { + ~WithRawMethod_GetArtifact() 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 { + ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* 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) { + void RequestGetArtifact(::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 { + class WithRawMethod_AddTag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_AddTag() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_AddTag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddTag(::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(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListArtifacts() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_ListArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListArtifacts(::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(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListDatasets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListDatasets() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_ListDatasets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListDatasets(::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(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_CreateDataset : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_Get() { + ExperimentalWithRawCallbackMethod_CreateDataset() { ::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); + this->CreateDataset(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_Get() override { + ~ExperimentalWithRawCallbackMethod_CreateDataset() 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 { + ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* 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, "")); } + virtual void CreateDataset(::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 { + class ExperimentalWithRawCallbackMethod_GetDataset : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_Query() { + ExperimentalWithRawCallbackMethod_GetDataset() { ::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); + this->GetDataset(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_Query() override { + ~ExperimentalWithRawCallbackMethod_GetDataset() 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 { + ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* 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, "")); } + virtual void GetDataset(::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 { + class ExperimentalWithRawCallbackMethod_CreateArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_Create() { + ExperimentalWithRawCallbackMethod_CreateArtifact() { ::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); + this->CreateArtifact(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_Create() override { + ~ExperimentalWithRawCallbackMethod_CreateArtifact() 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 { + ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* 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, "")); } + virtual void CreateArtifact(::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 { + class ExperimentalWithRawCallbackMethod_GetArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_GenerateProvenance() { + ExperimentalWithRawCallbackMethod_GetArtifact() { ::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); + this->GetArtifact(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetArtifact(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_AddTag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_AddTag() { + ::grpc::Service::experimental().MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->AddTag(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_GenerateProvenance() override { + ~ExperimentalWithRawCallbackMethod_AddTag() 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 { + ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* 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, "")); } + virtual void AddTag(::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 { + class ExperimentalWithRawCallbackMethod_ListArtifacts : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_Get() { + ExperimentalWithRawCallbackMethod_ListArtifacts() { + ::grpc::Service::experimental().MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListArtifacts(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListArtifacts(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListDatasets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListDatasets() { + ::grpc::Service::experimental().MarkMethodRawCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListDatasets(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListDatasets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListDatasets(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class WithStreamedUnaryMethod_CreateDataset : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateDataset() { ::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))); + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::CreateDatasetRequest, ::datacatalog::CreateDatasetResponse>(std::bind(&WithStreamedUnaryMethod_CreateDataset::StreamedCreateDataset, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_Get() override { + ~WithStreamedUnaryMethod_CreateDataset() 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 { + ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* 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; + virtual ::grpc::Status StreamedCreateDataset(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::CreateDatasetRequest,::datacatalog::CreateDatasetResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_Query : public BaseClass { + class WithStreamedUnaryMethod_GetDataset : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_Query() { + WithStreamedUnaryMethod_GetDataset() { ::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))); + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::GetDatasetRequest, ::datacatalog::GetDatasetResponse>(std::bind(&WithStreamedUnaryMethod_GetDataset::StreamedGetDataset, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_Query() override { + ~WithStreamedUnaryMethod_GetDataset() 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 { + ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* 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; + virtual ::grpc::Status StreamedGetDataset(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::GetDatasetRequest,::datacatalog::GetDatasetResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_Create : public BaseClass { + class WithStreamedUnaryMethod_CreateArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_Create() { + WithStreamedUnaryMethod_CreateArtifact() { ::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))); + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::CreateArtifactRequest, ::datacatalog::CreateArtifactResponse>(std::bind(&WithStreamedUnaryMethod_CreateArtifact::StreamedCreateArtifact, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_Create() override { + ~WithStreamedUnaryMethod_CreateArtifact() 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 { + ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* 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; + virtual ::grpc::Status StreamedCreateArtifact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::CreateArtifactRequest,::datacatalog::CreateArtifactResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_GenerateProvenance : public BaseClass { + class WithStreamedUnaryMethod_GetArtifact : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_GenerateProvenance() { + WithStreamedUnaryMethod_GetArtifact() { ::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))); + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::GetArtifactRequest, ::datacatalog::GetArtifactResponse>(std::bind(&WithStreamedUnaryMethod_GetArtifact::StreamedGetArtifact, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetArtifact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::GetArtifactRequest,::datacatalog::GetArtifactResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_AddTag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_AddTag() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::AddTagRequest, ::datacatalog::AddTagResponse>(std::bind(&WithStreamedUnaryMethod_AddTag::StreamedAddTag, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_AddTag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedAddTag(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::AddTagRequest,::datacatalog::AddTagResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListArtifacts() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::ListArtifactsRequest, ::datacatalog::ListArtifactsResponse>(std::bind(&WithStreamedUnaryMethod_ListArtifacts::StreamedListArtifacts, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListArtifacts(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::ListArtifactsRequest,::datacatalog::ListArtifactsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListDatasets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListDatasets() { + ::grpc::Service::MarkMethodStreamed(6, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>(std::bind(&WithStreamedUnaryMethod_ListDatasets::StreamedListDatasets, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_GenerateProvenance() override { + ~WithStreamedUnaryMethod_ListDatasets() 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 { + ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* 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; + virtual ::grpc::Status StreamedListDatasets(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::ListDatasetsRequest,::datacatalog::ListDatasetsResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_Get > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_CreateDataset > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_Get > > > StreamedService; + typedef WithStreamedUnaryMethod_CreateDataset > > > > > > StreamedService; }; } // namespace datacatalog -} // namespace lyft -} // namespace pb #endif // GRPC_flyteidl_2fdatacatalog_2fdatacatalog_2eproto__INCLUDED diff --git a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc index 24ba8acc2..b0c37cc9f 100644 --- a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc +++ b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc @@ -16,637 +16,5923 @@ // @@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 { +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Metadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; namespace datacatalog { -class ParameterDefaultTypeInternal { +class CreateDatasetRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Parameter_default_instance_; + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateDatasetRequest_default_instance_; +class CreateDatasetResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateDatasetResponse_default_instance_; +class GetDatasetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetDatasetRequest_default_instance_; +class GetDatasetResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetDatasetResponse_default_instance_; +class GetArtifactRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + ::google::protobuf::internal::ArenaStringPtr tag_name_; +} _GetArtifactRequest_default_instance_; +class GetArtifactResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetArtifactResponse_default_instance_; +class CreateArtifactRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateArtifactRequest_default_instance_; +class CreateArtifactResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateArtifactResponse_default_instance_; +class AddTagRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AddTagRequest_default_instance_; +class AddTagResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AddTagResponse_default_instance_; +class ListArtifactsRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ListArtifactsRequest_default_instance_; +class ListArtifactsResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ListArtifactsResponse_default_instance_; +class ListDatasetsRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ListDatasetsRequest_default_instance_; +class ListDatasetsResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ListDatasetsResponse_default_instance_; +class DatasetDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Dataset_default_instance_; +class PartitionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Partition_default_instance_; +class DatasetIDDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DatasetID_default_instance_; class ArtifactDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Artifact_default_instance_; -class ArtifactIdDefaultTypeInternal { +class ArtifactDataDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ArtifactId_default_instance_; -class GetRequestDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ArtifactData_default_instance_; +class TagDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr provenance_; - const ::pb::lyft::datacatalog::ArtifactId* artifact_id_; -} _GetRequest_default_instance_; -class GetResponseDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Tag_default_instance_; +class Metadata_KeyMapEntry_DoNotUseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetResponse_default_instance_; -class IntFilterDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Metadata_KeyMapEntry_DoNotUse_default_instance_; +class MetadataDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _IntFilter_default_instance_; -class IntRangeFilterDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Metadata_default_instance_; +class FilterExpressionDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _IntRangeFilter_default_instance_; -class IntQueryKeyDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _FilterExpression_default_instance_; +class SinglePropertyFilterDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::pb::lyft::datacatalog::IntFilter* val_; - const ::pb::lyft::datacatalog::IntRangeFilter* range_; -} _IntQueryKey_default_instance_; -class QueryRequestDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::datacatalog::TagPropertyFilter* tag_filter_; + const ::datacatalog::PartitionPropertyFilter* partition_filter_; + const ::datacatalog::ArtifactPropertyFilter* artifact_filter_; + const ::datacatalog::DatasetPropertyFilter* dataset_filter_; +} _SinglePropertyFilter_default_instance_; +class ArtifactPropertyFilterDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _QueryRequest_default_instance_; -class QueryResponseDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr artifact_id_; +} _ArtifactPropertyFilter_default_instance_; +class TagPropertyFilterDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _QueryResponse_default_instance_; -class CreateRequestDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr tag_name_; +} _TagPropertyFilter_default_instance_; +class PartitionPropertyFilterDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateRequest_default_instance_; -class CreateResponseDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::datacatalog::KeyValuePair* key_val_; +} _PartitionPropertyFilter_default_instance_; +class KeyValuePairDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateResponse_default_instance_; -class GenerateProvenanceRequestDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _KeyValuePair_default_instance_; +class DatasetPropertyFilterDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GenerateProvenanceRequest_default_instance_; -class GenerateProvenanceResponseDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr version_; +} _DatasetPropertyFilter_default_instance_; +class PaginationOptionsDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GenerateProvenanceResponse_default_instance_; + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _PaginationOptions_default_instance_; } // namespace datacatalog -} // namespace lyft -} // namespace pb -static void InitDefaultsParameter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { +static void InitDefaultsCreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::pb::lyft::datacatalog::_Parameter_default_instance_; - new (ptr) ::pb::lyft::datacatalog::Parameter(); + void* ptr = &::datacatalog::_CreateDatasetRequest_default_instance_; + new (ptr) ::datacatalog::CreateDatasetRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::pb::lyft::datacatalog::Parameter::InitAsDefaultInstance(); + ::datacatalog::CreateDatasetRequest::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}, {}}; +::google::protobuf::internal::SCCInfo<1> scc_info_CreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; -static void InitDefaultsArtifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { +static void InitDefaultsCreateDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_CreateDatasetResponse_default_instance_; + new (ptr) ::datacatalog::CreateDatasetResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::CreateDatasetResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CreateDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCreateDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsGetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_GetDatasetRequest_default_instance_; + new (ptr) ::datacatalog::GetDatasetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::GetDatasetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsGetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_GetDatasetResponse_default_instance_; + new (ptr) ::datacatalog::GetDatasetResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::GetDatasetResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsGetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_GetArtifactRequest_default_instance_; + new (ptr) ::datacatalog::GetArtifactRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::GetArtifactRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsGetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_GetArtifactResponse_default_instance_; + new (ptr) ::datacatalog::GetArtifactResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::GetArtifactResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsCreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_CreateArtifactRequest_default_instance_; + new (ptr) ::datacatalog::CreateArtifactRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::CreateArtifactRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_CreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsCreateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_CreateArtifactResponse_default_instance_; + new (ptr) ::datacatalog::CreateArtifactResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::CreateArtifactResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CreateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCreateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsAddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::pb::lyft::datacatalog::_Artifact_default_instance_; - new (ptr) ::pb::lyft::datacatalog::Artifact(); + void* ptr = &::datacatalog::_AddTagRequest_default_instance_; + new (ptr) ::datacatalog::AddTagRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::pb::lyft::datacatalog::Artifact::InitAsDefaultInstance(); + ::datacatalog::AddTagRequest::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,}}; +::google::protobuf::internal::SCCInfo<1> scc_info_AddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; -static void InitDefaultsArtifactId_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { +static void InitDefaultsAddTagResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::pb::lyft::datacatalog::_ArtifactId_default_instance_; - new (ptr) ::pb::lyft::datacatalog::ArtifactId(); + void* ptr = &::datacatalog::_AddTagResponse_default_instance_; + new (ptr) ::datacatalog::AddTagResponse(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::pb::lyft::datacatalog::ArtifactId::InitAsDefaultInstance(); + ::datacatalog::AddTagResponse::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,}}; +::google::protobuf::internal::SCCInfo<0> scc_info_AddTagResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAddTagResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; -static void InitDefaultsGetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { +static void InitDefaultsListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::pb::lyft::datacatalog::_GetRequest_default_instance_; - new (ptr) ::pb::lyft::datacatalog::GetRequest(); + void* ptr = &::datacatalog::_ListArtifactsRequest_default_instance_; + new (ptr) ::datacatalog::ListArtifactsRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::pb::lyft::datacatalog::GetRequest::InitAsDefaultInstance(); + ::datacatalog::ListArtifactsRequest::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,}}; +::google::protobuf::internal::SCCInfo<3> scc_info_ListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; -static void InitDefaultsGetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { +static void InitDefaultsListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::pb::lyft::datacatalog::_GetResponse_default_instance_; - new (ptr) ::pb::lyft::datacatalog::GetResponse(); + void* ptr = &::datacatalog::_ListArtifactsResponse_default_instance_; + new (ptr) ::datacatalog::ListArtifactsResponse(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::pb::lyft::datacatalog::GetResponse::InitAsDefaultInstance(); + ::datacatalog::ListArtifactsResponse::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}, { +::google::protobuf::internal::SCCInfo<1> scc_info_ListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; -static void InitDefaultsIntFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { +static void InitDefaultsListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ListDatasetsRequest_default_instance_; + new (ptr) ::datacatalog::ListDatasetsRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ListDatasetsRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_ListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ListDatasetsResponse_default_instance_; + new (ptr) ::datacatalog::ListDatasetsResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ListDatasetsResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsDataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_Dataset_default_instance_; + new (ptr) ::datacatalog::Dataset(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::Dataset::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsPartition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_Partition_default_instance_; + new (ptr) ::datacatalog::Partition(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::Partition::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPartition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsDatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_DatasetID_default_instance_; + new (ptr) ::datacatalog::DatasetID(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::DatasetID::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsArtifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_Artifact_default_instance_; + new (ptr) ::datacatalog::Artifact(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::Artifact::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<6> scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsArtifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; + +static void InitDefaultsArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ArtifactData_default_instance_; + new (ptr) ::datacatalog::ArtifactData(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ArtifactData::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsTag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_Tag_default_instance_; + new (ptr) ::datacatalog::Tag(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::Tag::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsMetadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_Metadata_KeyMapEntry_DoNotUse_default_instance_; + new (ptr) ::datacatalog::Metadata_KeyMapEntry_DoNotUse(); + } + ::datacatalog::Metadata_KeyMapEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Metadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMetadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsMetadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_Metadata_default_instance_; + new (ptr) ::datacatalog::Metadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::Metadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMetadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Metadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsFilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_FilterExpression_default_instance_; + new (ptr) ::datacatalog::FilterExpression(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::FilterExpression::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsSinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_SinglePropertyFilter_default_instance_; + new (ptr) ::datacatalog::SinglePropertyFilter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::SinglePropertyFilter::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<4> scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsSinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ArtifactPropertyFilter_default_instance_; + new (ptr) ::datacatalog::ArtifactPropertyFilter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ArtifactPropertyFilter::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsTagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::pb::lyft::datacatalog::_IntFilter_default_instance_; - new (ptr) ::pb::lyft::datacatalog::IntFilter(); + void* ptr = &::datacatalog::_TagPropertyFilter_default_instance_; + new (ptr) ::datacatalog::TagPropertyFilter(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::pb::lyft::datacatalog::IntFilter::InitAsDefaultInstance(); + ::datacatalog::TagPropertyFilter::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}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; -static void InitDefaultsIntRangeFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { +static void InitDefaultsPartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::pb::lyft::datacatalog::_IntRangeFilter_default_instance_; - new (ptr) ::pb::lyft::datacatalog::IntRangeFilter(); + void* ptr = &::datacatalog::_PartitionPropertyFilter_default_instance_; + new (ptr) ::datacatalog::PartitionPropertyFilter(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::pb::lyft::datacatalog::IntRangeFilter::InitAsDefaultInstance(); + ::datacatalog::PartitionPropertyFilter::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}, {}}; +::google::protobuf::internal::SCCInfo<1> scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; -static void InitDefaultsIntQueryKey_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { +static void InitDefaultsKeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::pb::lyft::datacatalog::_IntQueryKey_default_instance_; - new (ptr) ::pb::lyft::datacatalog::IntQueryKey(); + void* ptr = &::datacatalog::_KeyValuePair_default_instance_; + new (ptr) ::datacatalog::KeyValuePair(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::pb::lyft::datacatalog::IntQueryKey::InitAsDefaultInstance(); + ::datacatalog::KeyValuePair::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,}}; +::google::protobuf::internal::SCCInfo<0> scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsKeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; -static void InitDefaultsQueryRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { +static void InitDefaultsDatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::pb::lyft::datacatalog::_QueryRequest_default_instance_; - new (ptr) ::pb::lyft::datacatalog::QueryRequest(); + void* ptr = &::datacatalog::_DatasetPropertyFilter_default_instance_; + new (ptr) ::datacatalog::DatasetPropertyFilter(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::pb::lyft::datacatalog::QueryRequest::InitAsDefaultInstance(); + ::datacatalog::DatasetPropertyFilter::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,}}; +::google::protobuf::internal::SCCInfo<0> scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; -static void InitDefaultsQueryResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { +static void InitDefaultsPaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::pb::lyft::datacatalog::_QueryResponse_default_instance_; - new (ptr) ::pb::lyft::datacatalog::QueryResponse(); + void* ptr = &::datacatalog::_PaginationOptions_default_instance_; + new (ptr) ::datacatalog::PaginationOptions(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::pb::lyft::datacatalog::QueryResponse::InitAsDefaultInstance(); + ::datacatalog::PaginationOptions::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +void InitDefaults_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_CreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AddTagResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Metadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[30]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[3]; +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(::datacatalog::CreateDatasetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::CreateDatasetRequest, dataset_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::CreateDatasetResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetDatasetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetDatasetRequest, dataset_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetDatasetResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetDatasetResponse, dataset_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactRequest, dataset_), + offsetof(::datacatalog::GetArtifactRequestDefaultTypeInternal, artifact_id_), + offsetof(::datacatalog::GetArtifactRequestDefaultTypeInternal, tag_name_), + PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactRequest, query_handle_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactResponse, artifact_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::CreateArtifactRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::CreateArtifactRequest, artifact_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::CreateArtifactResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::AddTagRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::AddTagRequest, tag_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::AddTagResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsRequest, dataset_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsRequest, filter_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsRequest, pagination_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsResponse, artifacts_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsResponse, next_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsRequest, filter_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsRequest, pagination_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsResponse, datasets_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsResponse, next_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Dataset, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Dataset, id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Dataset, metadata_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Dataset, partitionkeys_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Partition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Partition, key_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Partition, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, project_), + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, name_), + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, domain_), + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, version_), + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, uuid_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, dataset_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, data_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, metadata_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, partitions_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, tags_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, created_at_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactData, name_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactData, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Tag, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Tag, name_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Tag, artifact_id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Tag, dataset_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata_KeyMapEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata_KeyMapEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata_KeyMapEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata_KeyMapEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata, key_map_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::FilterExpression, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::FilterExpression, filters_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::SinglePropertyFilter, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::datacatalog::SinglePropertyFilter, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::datacatalog::SinglePropertyFilterDefaultTypeInternal, tag_filter_), + offsetof(::datacatalog::SinglePropertyFilterDefaultTypeInternal, partition_filter_), + offsetof(::datacatalog::SinglePropertyFilterDefaultTypeInternal, artifact_filter_), + offsetof(::datacatalog::SinglePropertyFilterDefaultTypeInternal, dataset_filter_), + PROTOBUF_FIELD_OFFSET(::datacatalog::SinglePropertyFilter, operator__), + PROTOBUF_FIELD_OFFSET(::datacatalog::SinglePropertyFilter, property_filter_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactPropertyFilter, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactPropertyFilter, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::datacatalog::ArtifactPropertyFilterDefaultTypeInternal, artifact_id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactPropertyFilter, property_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::TagPropertyFilter, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::datacatalog::TagPropertyFilter, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::datacatalog::TagPropertyFilterDefaultTypeInternal, tag_name_), + PROTOBUF_FIELD_OFFSET(::datacatalog::TagPropertyFilter, property_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::PartitionPropertyFilter, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::datacatalog::PartitionPropertyFilter, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::datacatalog::PartitionPropertyFilterDefaultTypeInternal, key_val_), + PROTOBUF_FIELD_OFFSET(::datacatalog::PartitionPropertyFilter, property_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::KeyValuePair, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::KeyValuePair, key_), + PROTOBUF_FIELD_OFFSET(::datacatalog::KeyValuePair, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetPropertyFilter, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetPropertyFilter, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::datacatalog::DatasetPropertyFilterDefaultTypeInternal, project_), + offsetof(::datacatalog::DatasetPropertyFilterDefaultTypeInternal, name_), + offsetof(::datacatalog::DatasetPropertyFilterDefaultTypeInternal, domain_), + offsetof(::datacatalog::DatasetPropertyFilterDefaultTypeInternal, version_), + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetPropertyFilter, property_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::PaginationOptions, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::PaginationOptions, limit_), + PROTOBUF_FIELD_OFFSET(::datacatalog::PaginationOptions, token_), + PROTOBUF_FIELD_OFFSET(::datacatalog::PaginationOptions, sortkey_), + PROTOBUF_FIELD_OFFSET(::datacatalog::PaginationOptions, sortorder_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::datacatalog::CreateDatasetRequest)}, + { 6, -1, sizeof(::datacatalog::CreateDatasetResponse)}, + { 11, -1, sizeof(::datacatalog::GetDatasetRequest)}, + { 17, -1, sizeof(::datacatalog::GetDatasetResponse)}, + { 23, -1, sizeof(::datacatalog::GetArtifactRequest)}, + { 32, -1, sizeof(::datacatalog::GetArtifactResponse)}, + { 38, -1, sizeof(::datacatalog::CreateArtifactRequest)}, + { 44, -1, sizeof(::datacatalog::CreateArtifactResponse)}, + { 49, -1, sizeof(::datacatalog::AddTagRequest)}, + { 55, -1, sizeof(::datacatalog::AddTagResponse)}, + { 60, -1, sizeof(::datacatalog::ListArtifactsRequest)}, + { 68, -1, sizeof(::datacatalog::ListArtifactsResponse)}, + { 75, -1, sizeof(::datacatalog::ListDatasetsRequest)}, + { 82, -1, sizeof(::datacatalog::ListDatasetsResponse)}, + { 89, -1, sizeof(::datacatalog::Dataset)}, + { 97, -1, sizeof(::datacatalog::Partition)}, + { 104, -1, sizeof(::datacatalog::DatasetID)}, + { 114, -1, sizeof(::datacatalog::Artifact)}, + { 126, -1, sizeof(::datacatalog::ArtifactData)}, + { 133, -1, sizeof(::datacatalog::Tag)}, + { 141, 148, sizeof(::datacatalog::Metadata_KeyMapEntry_DoNotUse)}, + { 150, -1, sizeof(::datacatalog::Metadata)}, + { 156, -1, sizeof(::datacatalog::FilterExpression)}, + { 162, -1, sizeof(::datacatalog::SinglePropertyFilter)}, + { 173, -1, sizeof(::datacatalog::ArtifactPropertyFilter)}, + { 180, -1, sizeof(::datacatalog::TagPropertyFilter)}, + { 187, -1, sizeof(::datacatalog::PartitionPropertyFilter)}, + { 194, -1, sizeof(::datacatalog::KeyValuePair)}, + { 201, -1, sizeof(::datacatalog::DatasetPropertyFilter)}, + { 211, -1, sizeof(::datacatalog::PaginationOptions)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::datacatalog::_CreateDatasetRequest_default_instance_), + reinterpret_cast(&::datacatalog::_CreateDatasetResponse_default_instance_), + reinterpret_cast(&::datacatalog::_GetDatasetRequest_default_instance_), + reinterpret_cast(&::datacatalog::_GetDatasetResponse_default_instance_), + reinterpret_cast(&::datacatalog::_GetArtifactRequest_default_instance_), + reinterpret_cast(&::datacatalog::_GetArtifactResponse_default_instance_), + reinterpret_cast(&::datacatalog::_CreateArtifactRequest_default_instance_), + reinterpret_cast(&::datacatalog::_CreateArtifactResponse_default_instance_), + reinterpret_cast(&::datacatalog::_AddTagRequest_default_instance_), + reinterpret_cast(&::datacatalog::_AddTagResponse_default_instance_), + reinterpret_cast(&::datacatalog::_ListArtifactsRequest_default_instance_), + reinterpret_cast(&::datacatalog::_ListArtifactsResponse_default_instance_), + reinterpret_cast(&::datacatalog::_ListDatasetsRequest_default_instance_), + reinterpret_cast(&::datacatalog::_ListDatasetsResponse_default_instance_), + reinterpret_cast(&::datacatalog::_Dataset_default_instance_), + reinterpret_cast(&::datacatalog::_Partition_default_instance_), + reinterpret_cast(&::datacatalog::_DatasetID_default_instance_), + reinterpret_cast(&::datacatalog::_Artifact_default_instance_), + reinterpret_cast(&::datacatalog::_ArtifactData_default_instance_), + reinterpret_cast(&::datacatalog::_Tag_default_instance_), + reinterpret_cast(&::datacatalog::_Metadata_KeyMapEntry_DoNotUse_default_instance_), + reinterpret_cast(&::datacatalog::_Metadata_default_instance_), + reinterpret_cast(&::datacatalog::_FilterExpression_default_instance_), + reinterpret_cast(&::datacatalog::_SinglePropertyFilter_default_instance_), + reinterpret_cast(&::datacatalog::_ArtifactPropertyFilter_default_instance_), + reinterpret_cast(&::datacatalog::_TagPropertyFilter_default_instance_), + reinterpret_cast(&::datacatalog::_PartitionPropertyFilter_default_instance_), + reinterpret_cast(&::datacatalog::_KeyValuePair_default_instance_), + reinterpret_cast(&::datacatalog::_DatasetPropertyFilter_default_instance_), + reinterpret_cast(&::datacatalog::_PaginationOptions_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, 30, 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\013datacatalog\032\034flyteidl/core/literals.pr" + "oto\032\037google/protobuf/timestamp.proto\"=\n\024" + "CreateDatasetRequest\022%\n\007dataset\030\001 \001(\0132\024." + "datacatalog.Dataset\"\027\n\025CreateDatasetResp" + "onse\"<\n\021GetDatasetRequest\022\'\n\007dataset\030\001 \001" + "(\0132\026.datacatalog.DatasetID\";\n\022GetDataset" + "Response\022%\n\007dataset\030\001 \001(\0132\024.datacatalog." + "Dataset\"x\n\022GetArtifactRequest\022\'\n\007dataset" + "\030\001 \001(\0132\026.datacatalog.DatasetID\022\025\n\013artifa" + "ct_id\030\002 \001(\tH\000\022\022\n\010tag_name\030\003 \001(\tH\000B\016\n\014que" + "ry_handle\">\n\023GetArtifactResponse\022\'\n\010arti" + "fact\030\001 \001(\0132\025.datacatalog.Artifact\"@\n\025Cre" + "ateArtifactRequest\022\'\n\010artifact\030\001 \001(\0132\025.d" + "atacatalog.Artifact\"\030\n\026CreateArtifactRes" + "ponse\".\n\rAddTagRequest\022\035\n\003tag\030\001 \001(\0132\020.da" + "tacatalog.Tag\"\020\n\016AddTagResponse\"\242\001\n\024List" + "ArtifactsRequest\022\'\n\007dataset\030\001 \001(\0132\026.data" + "catalog.DatasetID\022-\n\006filter\030\002 \001(\0132\035.data" + "catalog.FilterExpression\0222\n\npagination\030\003" + " \001(\0132\036.datacatalog.PaginationOptions\"U\n\025" + "ListArtifactsResponse\022(\n\tartifacts\030\001 \003(\013" + "2\025.datacatalog.Artifact\022\022\n\nnext_token\030\002 " + "\001(\t\"x\n\023ListDatasetsRequest\022-\n\006filter\030\001 \001" + "(\0132\035.datacatalog.FilterExpression\0222\n\npag" + "ination\030\002 \001(\0132\036.datacatalog.PaginationOp" + "tions\"R\n\024ListDatasetsResponse\022&\n\010dataset" + "s\030\001 \003(\0132\024.datacatalog.Dataset\022\022\n\nnext_to" + "ken\030\002 \001(\t\"m\n\007Dataset\022\"\n\002id\030\001 \001(\0132\026.datac" + "atalog.DatasetID\022\'\n\010metadata\030\002 \001(\0132\025.dat" + "acatalog.Metadata\022\025\n\rpartitionKeys\030\003 \003(\t" + "\"\'\n\tPartition\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + "\t\"Y\n\tDatasetID\022\017\n\007project\030\001 \001(\t\022\014\n\004name\030" + "\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\022\014" + "\n\004UUID\030\005 \001(\t\"\215\002\n\010Artifact\022\n\n\002id\030\001 \001(\t\022\'\n" + "\007dataset\030\002 \001(\0132\026.datacatalog.DatasetID\022\'" + "\n\004data\030\003 \003(\0132\031.datacatalog.ArtifactData\022" + "\'\n\010metadata\030\004 \001(\0132\025.datacatalog.Metadata" + "\022*\n\npartitions\030\005 \003(\0132\026.datacatalog.Parti" + "tion\022\036\n\004tags\030\006 \003(\0132\020.datacatalog.Tag\022.\n\n" + "created_at\030\007 \001(\0132\032.google.protobuf.Times" + "tamp\"C\n\014ArtifactData\022\014\n\004name\030\001 \001(\t\022%\n\005va" + "lue\030\002 \001(\0132\026.flyteidl.core.Literal\"Q\n\003Tag" + "\022\014\n\004name\030\001 \001(\t\022\023\n\013artifact_id\030\002 \001(\t\022\'\n\007d" + "ataset\030\003 \001(\0132\026.datacatalog.DatasetID\"m\n\010" + "Metadata\0222\n\007key_map\030\001 \003(\0132!.datacatalog." + "Metadata.KeyMapEntry\032-\n\013KeyMapEntry\022\013\n\003k" + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\020FilterExp" + "ression\0222\n\007filters\030\001 \003(\0132!.datacatalog.S" + "inglePropertyFilter\"\211\003\n\024SinglePropertyFi" + "lter\0224\n\ntag_filter\030\001 \001(\0132\036.datacatalog.T" + "agPropertyFilterH\000\022@\n\020partition_filter\030\002" + " \001(\0132$.datacatalog.PartitionPropertyFilt" + "erH\000\022>\n\017artifact_filter\030\003 \001(\0132#.datacata" + "log.ArtifactPropertyFilterH\000\022<\n\016dataset_" + "filter\030\004 \001(\0132\".datacatalog.DatasetProper" + "tyFilterH\000\022F\n\010operator\030\n \001(\01624.datacatal" + "og.SinglePropertyFilter.ComparisonOperat" + "or\" \n\022ComparisonOperator\022\n\n\006EQUALS\020\000B\021\n\017" + "property_filter\";\n\026ArtifactPropertyFilte" + "r\022\025\n\013artifact_id\030\001 \001(\tH\000B\n\n\010property\"3\n\021" + "TagPropertyFilter\022\022\n\010tag_name\030\001 \001(\tH\000B\n\n" + "\010property\"S\n\027PartitionPropertyFilter\022,\n\007" + "key_val\030\001 \001(\0132\031.datacatalog.KeyValuePair" + "H\000B\n\n\010property\"*\n\014KeyValuePair\022\013\n\003key\030\001 " + "\001(\t\022\r\n\005value\030\002 \001(\t\"k\n\025DatasetPropertyFil" + "ter\022\021\n\007project\030\001 \001(\tH\000\022\016\n\004name\030\002 \001(\tH\000\022\020" + "\n\006domain\030\003 \001(\tH\000\022\021\n\007version\030\004 \001(\tH\000B\n\n\010p" + "roperty\"\361\001\n\021PaginationOptions\022\r\n\005limit\030\001" + " \001(\r\022\r\n\005token\030\002 \001(\t\0227\n\007sortKey\030\003 \001(\0162&.d" + "atacatalog.PaginationOptions.SortKey\022;\n\t" + "sortOrder\030\004 \001(\0162(.datacatalog.Pagination" + "Options.SortOrder\"*\n\tSortOrder\022\016\n\nDESCEN" + "DING\020\000\022\r\n\tASCENDING\020\001\"\034\n\007SortKey\022\021\n\rCREA" + "TION_TIME\020\0002\321\004\n\013DataCatalog\022V\n\rCreateDat" + "aset\022!.datacatalog.CreateDatasetRequest\032" + "\".datacatalog.CreateDatasetResponse\022M\n\nG" + "etDataset\022\036.datacatalog.GetDatasetReques" + "t\032\037.datacatalog.GetDatasetResponse\022Y\n\016Cr" + "eateArtifact\022\".datacatalog.CreateArtifac" + "tRequest\032#.datacatalog.CreateArtifactRes" + "ponse\022P\n\013GetArtifact\022\037.datacatalog.GetAr" + "tifactRequest\032 .datacatalog.GetArtifactR" + "esponse\022A\n\006AddTag\022\032.datacatalog.AddTagRe" + "quest\032\033.datacatalog.AddTagResponse\022V\n\rLi" + "stArtifacts\022!.datacatalog.ListArtifactsR" + "equest\032\".datacatalog.ListArtifactsRespon" + "se\022S\n\014ListDatasets\022 .datacatalog.ListDat" + "asetsRequest\032!.datacatalog.ListDatasetsR" + "esponseb\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, 3575, +}; + +void AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = []() { AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto(); return true; }(); +namespace datacatalog { +const ::google::protobuf::EnumDescriptor* SinglePropertyFilter_ComparisonOperator_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[0]; +} +bool SinglePropertyFilter_ComparisonOperator_IsValid(int value) { + switch (value) { + case 0: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const SinglePropertyFilter_ComparisonOperator SinglePropertyFilter::EQUALS; +const SinglePropertyFilter_ComparisonOperator SinglePropertyFilter::ComparisonOperator_MIN; +const SinglePropertyFilter_ComparisonOperator SinglePropertyFilter::ComparisonOperator_MAX; +const int SinglePropertyFilter::ComparisonOperator_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* PaginationOptions_SortOrder_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[1]; +} +bool PaginationOptions_SortOrder_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const PaginationOptions_SortOrder PaginationOptions::DESCENDING; +const PaginationOptions_SortOrder PaginationOptions::ASCENDING; +const PaginationOptions_SortOrder PaginationOptions::SortOrder_MIN; +const PaginationOptions_SortOrder PaginationOptions::SortOrder_MAX; +const int PaginationOptions::SortOrder_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* PaginationOptions_SortKey_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[2]; +} +bool PaginationOptions_SortKey_IsValid(int value) { + switch (value) { + case 0: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const PaginationOptions_SortKey PaginationOptions::CREATION_TIME; +const PaginationOptions_SortKey PaginationOptions::SortKey_MIN; +const PaginationOptions_SortKey PaginationOptions::SortKey_MAX; +const int PaginationOptions::SortKey_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void CreateDatasetRequest::InitAsDefaultInstance() { + ::datacatalog::_CreateDatasetRequest_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::Dataset*>( + ::datacatalog::Dataset::internal_default_instance()); +} +class CreateDatasetRequest::HasBitSetters { + public: + static const ::datacatalog::Dataset& dataset(const CreateDatasetRequest* msg); +}; + +const ::datacatalog::Dataset& +CreateDatasetRequest::HasBitSetters::dataset(const CreateDatasetRequest* msg) { + return *msg->dataset_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateDatasetRequest::kDatasetFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateDatasetRequest::CreateDatasetRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.CreateDatasetRequest) +} +CreateDatasetRequest::CreateDatasetRequest(const CreateDatasetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_dataset()) { + dataset_ = new ::datacatalog::Dataset(*from.dataset_); + } else { + dataset_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.CreateDatasetRequest) +} + +void CreateDatasetRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + dataset_ = nullptr; +} + +CreateDatasetRequest::~CreateDatasetRequest() { + // @@protoc_insertion_point(destructor:datacatalog.CreateDatasetRequest) + SharedDtor(); +} + +void CreateDatasetRequest::SharedDtor() { + if (this != internal_default_instance()) delete dataset_; +} + +void CreateDatasetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateDatasetRequest& CreateDatasetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void CreateDatasetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.CreateDatasetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateDatasetRequest::_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) { + // .datacatalog.Dataset dataset = 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 = ::datacatalog::Dataset::_InternalParse; + object = msg->mutable_dataset(); + 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 CreateDatasetRequest::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:datacatalog.CreateDatasetRequest) + 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)) { + // .datacatalog.Dataset dataset = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset())); + } 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:datacatalog.CreateDatasetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.CreateDatasetRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateDatasetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.CreateDatasetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Dataset dataset = 1; + if (this->has_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.CreateDatasetRequest) +} + +::google::protobuf::uint8* CreateDatasetRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.CreateDatasetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Dataset dataset = 1; + if (this->has_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset(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:datacatalog.CreateDatasetRequest) + return target; +} + +size_t CreateDatasetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.CreateDatasetRequest) + 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; + + // .datacatalog.Dataset dataset = 1; + if (this->has_dataset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateDatasetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.CreateDatasetRequest) + GOOGLE_DCHECK_NE(&from, this); + const CreateDatasetRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.CreateDatasetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.CreateDatasetRequest) + MergeFrom(*source); + } +} + +void CreateDatasetRequest::MergeFrom(const CreateDatasetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.CreateDatasetRequest) + 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_dataset()) { + mutable_dataset()->::datacatalog::Dataset::MergeFrom(from.dataset()); + } +} + +void CreateDatasetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.CreateDatasetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateDatasetRequest::CopyFrom(const CreateDatasetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.CreateDatasetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateDatasetRequest::IsInitialized() const { + return true; +} + +void CreateDatasetRequest::Swap(CreateDatasetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateDatasetRequest::InternalSwap(CreateDatasetRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(dataset_, other->dataset_); +} + +::google::protobuf::Metadata CreateDatasetRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateDatasetResponse::InitAsDefaultInstance() { +} +class CreateDatasetResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateDatasetResponse::CreateDatasetResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.CreateDatasetResponse) +} +CreateDatasetResponse::CreateDatasetResponse(const CreateDatasetResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:datacatalog.CreateDatasetResponse) +} + +void CreateDatasetResponse::SharedCtor() { +} + +CreateDatasetResponse::~CreateDatasetResponse() { + // @@protoc_insertion_point(destructor:datacatalog.CreateDatasetResponse) + SharedDtor(); +} + +void CreateDatasetResponse::SharedDtor() { +} + +void CreateDatasetResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateDatasetResponse& CreateDatasetResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void CreateDatasetResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.CreateDatasetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateDatasetResponse::_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) { + default: { + 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 CreateDatasetResponse::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:datacatalog.CreateDatasetResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.CreateDatasetResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.CreateDatasetResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateDatasetResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.CreateDatasetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.CreateDatasetResponse) +} + +::google::protobuf::uint8* CreateDatasetResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.CreateDatasetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.CreateDatasetResponse) + return target; +} + +size_t CreateDatasetResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.CreateDatasetResponse) + 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; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateDatasetResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.CreateDatasetResponse) + GOOGLE_DCHECK_NE(&from, this); + const CreateDatasetResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.CreateDatasetResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.CreateDatasetResponse) + MergeFrom(*source); + } +} + +void CreateDatasetResponse::MergeFrom(const CreateDatasetResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.CreateDatasetResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void CreateDatasetResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.CreateDatasetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateDatasetResponse::CopyFrom(const CreateDatasetResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.CreateDatasetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateDatasetResponse::IsInitialized() const { + return true; +} + +void CreateDatasetResponse::Swap(CreateDatasetResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateDatasetResponse::InternalSwap(CreateDatasetResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CreateDatasetResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetDatasetRequest::InitAsDefaultInstance() { + ::datacatalog::_GetDatasetRequest_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); +} +class GetDatasetRequest::HasBitSetters { + public: + static const ::datacatalog::DatasetID& dataset(const GetDatasetRequest* msg); +}; + +const ::datacatalog::DatasetID& +GetDatasetRequest::HasBitSetters::dataset(const GetDatasetRequest* msg) { + return *msg->dataset_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetDatasetRequest::kDatasetFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetDatasetRequest::GetDatasetRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.GetDatasetRequest) +} +GetDatasetRequest::GetDatasetRequest(const GetDatasetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_dataset()) { + dataset_ = new ::datacatalog::DatasetID(*from.dataset_); + } else { + dataset_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.GetDatasetRequest) +} + +void GetDatasetRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + dataset_ = nullptr; +} + +GetDatasetRequest::~GetDatasetRequest() { + // @@protoc_insertion_point(destructor:datacatalog.GetDatasetRequest) + SharedDtor(); +} + +void GetDatasetRequest::SharedDtor() { + if (this != internal_default_instance()) delete dataset_; +} + +void GetDatasetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetDatasetRequest& GetDatasetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GetDatasetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.GetDatasetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetDatasetRequest::_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) { + // .datacatalog.DatasetID dataset = 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 = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset(); + 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 GetDatasetRequest::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:datacatalog.GetDatasetRequest) + 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)) { + // .datacatalog.DatasetID dataset = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset())); + } 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:datacatalog.GetDatasetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.GetDatasetRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetDatasetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.GetDatasetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.GetDatasetRequest) +} + +::google::protobuf::uint8* GetDatasetRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetDatasetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset(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:datacatalog.GetDatasetRequest) + return target; +} + +size_t GetDatasetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetDatasetRequest) + 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; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetDatasetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetDatasetRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetDatasetRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetDatasetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetDatasetRequest) + MergeFrom(*source); + } +} + +void GetDatasetRequest::MergeFrom(const GetDatasetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetDatasetRequest) + 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_dataset()) { + mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); + } +} + +void GetDatasetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetDatasetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetDatasetRequest::CopyFrom(const GetDatasetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetDatasetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetDatasetRequest::IsInitialized() const { + return true; +} + +void GetDatasetRequest::Swap(GetDatasetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GetDatasetRequest::InternalSwap(GetDatasetRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(dataset_, other->dataset_); +} + +::google::protobuf::Metadata GetDatasetRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetDatasetResponse::InitAsDefaultInstance() { + ::datacatalog::_GetDatasetResponse_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::Dataset*>( + ::datacatalog::Dataset::internal_default_instance()); +} +class GetDatasetResponse::HasBitSetters { + public: + static const ::datacatalog::Dataset& dataset(const GetDatasetResponse* msg); +}; + +const ::datacatalog::Dataset& +GetDatasetResponse::HasBitSetters::dataset(const GetDatasetResponse* msg) { + return *msg->dataset_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetDatasetResponse::kDatasetFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetDatasetResponse::GetDatasetResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.GetDatasetResponse) +} +GetDatasetResponse::GetDatasetResponse(const GetDatasetResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_dataset()) { + dataset_ = new ::datacatalog::Dataset(*from.dataset_); + } else { + dataset_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.GetDatasetResponse) +} + +void GetDatasetResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + dataset_ = nullptr; +} + +GetDatasetResponse::~GetDatasetResponse() { + // @@protoc_insertion_point(destructor:datacatalog.GetDatasetResponse) + SharedDtor(); +} + +void GetDatasetResponse::SharedDtor() { + if (this != internal_default_instance()) delete dataset_; +} + +void GetDatasetResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetDatasetResponse& GetDatasetResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GetDatasetResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.GetDatasetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetDatasetResponse::_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) { + // .datacatalog.Dataset dataset = 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 = ::datacatalog::Dataset::_InternalParse; + object = msg->mutable_dataset(); + 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 GetDatasetResponse::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:datacatalog.GetDatasetResponse) + 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)) { + // .datacatalog.Dataset dataset = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset())); + } 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:datacatalog.GetDatasetResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.GetDatasetResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetDatasetResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.GetDatasetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Dataset dataset = 1; + if (this->has_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.GetDatasetResponse) +} + +::google::protobuf::uint8* GetDatasetResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetDatasetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Dataset dataset = 1; + if (this->has_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset(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:datacatalog.GetDatasetResponse) + return target; +} + +size_t GetDatasetResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetDatasetResponse) + 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; + + // .datacatalog.Dataset dataset = 1; + if (this->has_dataset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetDatasetResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetDatasetResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetDatasetResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetDatasetResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetDatasetResponse) + MergeFrom(*source); + } +} + +void GetDatasetResponse::MergeFrom(const GetDatasetResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetDatasetResponse) + 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_dataset()) { + mutable_dataset()->::datacatalog::Dataset::MergeFrom(from.dataset()); + } +} + +void GetDatasetResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetDatasetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetDatasetResponse::CopyFrom(const GetDatasetResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetDatasetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetDatasetResponse::IsInitialized() const { + return true; +} + +void GetDatasetResponse::Swap(GetDatasetResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetDatasetResponse::InternalSwap(GetDatasetResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(dataset_, other->dataset_); +} + +::google::protobuf::Metadata GetDatasetResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetArtifactRequest::InitAsDefaultInstance() { + ::datacatalog::_GetArtifactRequest_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); + ::datacatalog::_GetArtifactRequest_default_instance_.artifact_id_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::datacatalog::_GetArtifactRequest_default_instance_.tag_name_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +class GetArtifactRequest::HasBitSetters { + public: + static const ::datacatalog::DatasetID& dataset(const GetArtifactRequest* msg); +}; + +const ::datacatalog::DatasetID& +GetArtifactRequest::HasBitSetters::dataset(const GetArtifactRequest* msg) { + return *msg->dataset_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetArtifactRequest::kDatasetFieldNumber; +const int GetArtifactRequest::kArtifactIdFieldNumber; +const int GetArtifactRequest::kTagNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetArtifactRequest::GetArtifactRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.GetArtifactRequest) +} +GetArtifactRequest::GetArtifactRequest(const GetArtifactRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_dataset()) { + dataset_ = new ::datacatalog::DatasetID(*from.dataset_); + } else { + dataset_ = nullptr; + } + clear_has_query_handle(); + switch (from.query_handle_case()) { + case kArtifactId: { + set_artifact_id(from.artifact_id()); + break; + } + case kTagName: { + set_tag_name(from.tag_name()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:datacatalog.GetArtifactRequest) +} + +void GetArtifactRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + dataset_ = nullptr; + clear_has_query_handle(); +} + +GetArtifactRequest::~GetArtifactRequest() { + // @@protoc_insertion_point(destructor:datacatalog.GetArtifactRequest) + SharedDtor(); +} + +void GetArtifactRequest::SharedDtor() { + if (this != internal_default_instance()) delete dataset_; + if (has_query_handle()) { + clear_query_handle(); + } +} + +void GetArtifactRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetArtifactRequest& GetArtifactRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GetArtifactRequest::clear_query_handle() { +// @@protoc_insertion_point(one_of_clear_start:datacatalog.GetArtifactRequest) + switch (query_handle_case()) { + case kArtifactId: { + query_handle_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kTagName: { + query_handle_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } + } + _oneof_case_[0] = QUERY_HANDLE_NOT_SET; +} + + +void GetArtifactRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.GetArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; + clear_query_handle(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetArtifactRequest::_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) { + // .datacatalog.DatasetID dataset = 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 = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset(); + 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 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); + ctx->extra_parse_data().SetFieldName("datacatalog.GetArtifactRequest.artifact_id"); + object = msg->mutable_artifact_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; + } + // string tag_name = 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("datacatalog.GetArtifactRequest.tag_name"); + object = msg->mutable_tag_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; + } + 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 GetArtifactRequest::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:datacatalog.GetArtifactRequest) + 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)) { + // .datacatalog.DatasetID dataset = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset())); + } else { + goto handle_unusual; + } + break; + } + + // string artifact_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_artifact_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.GetArtifactRequest.artifact_id")); + } else { + goto handle_unusual; + } + break; + } + + // string tag_name = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_tag_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.GetArtifactRequest.tag_name")); + } 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:datacatalog.GetArtifactRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.GetArtifactRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetArtifactRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.GetArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset(this), output); + } + + // string artifact_id = 2; + if (has_artifact_id()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.GetArtifactRequest.artifact_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->artifact_id(), output); + } + + // string tag_name = 3; + if (has_tag_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.GetArtifactRequest.tag_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->tag_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.GetArtifactRequest) +} + +::google::protobuf::uint8* GetArtifactRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset(this), target); + } + + // string artifact_id = 2; + if (has_artifact_id()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.GetArtifactRequest.artifact_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->artifact_id(), target); + } + + // string tag_name = 3; + if (has_tag_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.GetArtifactRequest.tag_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->tag_name(), 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:datacatalog.GetArtifactRequest) + return target; +} + +size_t GetArtifactRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetArtifactRequest) + 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; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_); + } + + switch (query_handle_case()) { + // string artifact_id = 2; + case kArtifactId: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->artifact_id()); + break; + } + // string tag_name = 3; + case kTagName: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->tag_name()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetArtifactRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetArtifactRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetArtifactRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetArtifactRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetArtifactRequest) + MergeFrom(*source); + } +} + +void GetArtifactRequest::MergeFrom(const GetArtifactRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetArtifactRequest) + 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_dataset()) { + mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); + } + switch (from.query_handle_case()) { + case kArtifactId: { + set_artifact_id(from.artifact_id()); + break; + } + case kTagName: { + set_tag_name(from.tag_name()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } + } +} + +void GetArtifactRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetArtifactRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetArtifactRequest::CopyFrom(const GetArtifactRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetArtifactRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetArtifactRequest::IsInitialized() const { + return true; +} + +void GetArtifactRequest::Swap(GetArtifactRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GetArtifactRequest::InternalSwap(GetArtifactRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(dataset_, other->dataset_); + swap(query_handle_, other->query_handle_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata GetArtifactRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetArtifactResponse::InitAsDefaultInstance() { + ::datacatalog::_GetArtifactResponse_default_instance_._instance.get_mutable()->artifact_ = const_cast< ::datacatalog::Artifact*>( + ::datacatalog::Artifact::internal_default_instance()); +} +class GetArtifactResponse::HasBitSetters { + public: + static const ::datacatalog::Artifact& artifact(const GetArtifactResponse* msg); +}; + +const ::datacatalog::Artifact& +GetArtifactResponse::HasBitSetters::artifact(const GetArtifactResponse* msg) { + return *msg->artifact_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetArtifactResponse::kArtifactFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetArtifactResponse::GetArtifactResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.GetArtifactResponse) +} +GetArtifactResponse::GetArtifactResponse(const GetArtifactResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_artifact()) { + artifact_ = new ::datacatalog::Artifact(*from.artifact_); + } else { + artifact_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.GetArtifactResponse) +} + +void GetArtifactResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + artifact_ = nullptr; +} + +GetArtifactResponse::~GetArtifactResponse() { + // @@protoc_insertion_point(destructor:datacatalog.GetArtifactResponse) + SharedDtor(); +} + +void GetArtifactResponse::SharedDtor() { + if (this != internal_default_instance()) delete artifact_; +} + +void GetArtifactResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetArtifactResponse& GetArtifactResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GetArtifactResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.GetArtifactResponse) + ::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* GetArtifactResponse::_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) { + // .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 = ::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 GetArtifactResponse::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:datacatalog.GetArtifactResponse) + 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)) { + // .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:datacatalog.GetArtifactResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.GetArtifactResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetArtifactResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.GetArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .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:datacatalog.GetArtifactResponse) +} + +::google::protobuf::uint8* GetArtifactResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .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:datacatalog.GetArtifactResponse) + return target; +} + +size_t GetArtifactResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetArtifactResponse) + 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; + + // .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 GetArtifactResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetArtifactResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetArtifactResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetArtifactResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetArtifactResponse) + MergeFrom(*source); + } +} + +void GetArtifactResponse::MergeFrom(const GetArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetArtifactResponse) + 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()->::datacatalog::Artifact::MergeFrom(from.artifact()); + } +} + +void GetArtifactResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetArtifactResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetArtifactResponse::CopyFrom(const GetArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetArtifactResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetArtifactResponse::IsInitialized() const { + return true; +} + +void GetArtifactResponse::Swap(GetArtifactResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetArtifactResponse::InternalSwap(GetArtifactResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(artifact_, other->artifact_); +} + +::google::protobuf::Metadata GetArtifactResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateArtifactRequest::InitAsDefaultInstance() { + ::datacatalog::_CreateArtifactRequest_default_instance_._instance.get_mutable()->artifact_ = const_cast< ::datacatalog::Artifact*>( + ::datacatalog::Artifact::internal_default_instance()); +} +class CreateArtifactRequest::HasBitSetters { + public: + static const ::datacatalog::Artifact& artifact(const CreateArtifactRequest* msg); +}; + +const ::datacatalog::Artifact& +CreateArtifactRequest::HasBitSetters::artifact(const CreateArtifactRequest* msg) { + return *msg->artifact_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateArtifactRequest::kArtifactFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateArtifactRequest::CreateArtifactRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.CreateArtifactRequest) +} +CreateArtifactRequest::CreateArtifactRequest(const CreateArtifactRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_artifact()) { + artifact_ = new ::datacatalog::Artifact(*from.artifact_); + } else { + artifact_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.CreateArtifactRequest) +} + +void CreateArtifactRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + artifact_ = nullptr; +} + +CreateArtifactRequest::~CreateArtifactRequest() { + // @@protoc_insertion_point(destructor:datacatalog.CreateArtifactRequest) + SharedDtor(); +} + +void CreateArtifactRequest::SharedDtor() { + if (this != internal_default_instance()) delete artifact_; +} + +void CreateArtifactRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateArtifactRequest& CreateArtifactRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void CreateArtifactRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.CreateArtifactRequest) + ::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* CreateArtifactRequest::_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) { + // .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 = ::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 CreateArtifactRequest::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:datacatalog.CreateArtifactRequest) + 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)) { + // .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:datacatalog.CreateArtifactRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.CreateArtifactRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateArtifactRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.CreateArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .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:datacatalog.CreateArtifactRequest) +} + +::google::protobuf::uint8* CreateArtifactRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.CreateArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .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:datacatalog.CreateArtifactRequest) + return target; +} + +size_t CreateArtifactRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.CreateArtifactRequest) + 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; + + // .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 CreateArtifactRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.CreateArtifactRequest) + GOOGLE_DCHECK_NE(&from, this); + const CreateArtifactRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.CreateArtifactRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.CreateArtifactRequest) + MergeFrom(*source); + } +} + +void CreateArtifactRequest::MergeFrom(const CreateArtifactRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.CreateArtifactRequest) + 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()->::datacatalog::Artifact::MergeFrom(from.artifact()); + } +} + +void CreateArtifactRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.CreateArtifactRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateArtifactRequest::CopyFrom(const CreateArtifactRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.CreateArtifactRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateArtifactRequest::IsInitialized() const { + return true; +} + +void CreateArtifactRequest::Swap(CreateArtifactRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateArtifactRequest::InternalSwap(CreateArtifactRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(artifact_, other->artifact_); +} + +::google::protobuf::Metadata CreateArtifactRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateArtifactResponse::InitAsDefaultInstance() { +} +class CreateArtifactResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateArtifactResponse::CreateArtifactResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.CreateArtifactResponse) +} +CreateArtifactResponse::CreateArtifactResponse(const CreateArtifactResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:datacatalog.CreateArtifactResponse) +} + +void CreateArtifactResponse::SharedCtor() { +} + +CreateArtifactResponse::~CreateArtifactResponse() { + // @@protoc_insertion_point(destructor:datacatalog.CreateArtifactResponse) + SharedDtor(); +} + +void CreateArtifactResponse::SharedDtor() { +} + +void CreateArtifactResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateArtifactResponse& CreateArtifactResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void CreateArtifactResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.CreateArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateArtifactResponse::_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) { + default: { + 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 CreateArtifactResponse::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:datacatalog.CreateArtifactResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.CreateArtifactResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.CreateArtifactResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateArtifactResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.CreateArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.CreateArtifactResponse) +} + +::google::protobuf::uint8* CreateArtifactResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.CreateArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.CreateArtifactResponse) + return target; +} + +size_t CreateArtifactResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.CreateArtifactResponse) + 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; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateArtifactResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.CreateArtifactResponse) + GOOGLE_DCHECK_NE(&from, this); + const CreateArtifactResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.CreateArtifactResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.CreateArtifactResponse) + MergeFrom(*source); + } +} + +void CreateArtifactResponse::MergeFrom(const CreateArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.CreateArtifactResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void CreateArtifactResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.CreateArtifactResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateArtifactResponse::CopyFrom(const CreateArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.CreateArtifactResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateArtifactResponse::IsInitialized() const { + return true; +} + +void CreateArtifactResponse::Swap(CreateArtifactResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateArtifactResponse::InternalSwap(CreateArtifactResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CreateArtifactResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void AddTagRequest::InitAsDefaultInstance() { + ::datacatalog::_AddTagRequest_default_instance_._instance.get_mutable()->tag_ = const_cast< ::datacatalog::Tag*>( + ::datacatalog::Tag::internal_default_instance()); +} +class AddTagRequest::HasBitSetters { + public: + static const ::datacatalog::Tag& tag(const AddTagRequest* msg); +}; + +const ::datacatalog::Tag& +AddTagRequest::HasBitSetters::tag(const AddTagRequest* msg) { + return *msg->tag_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AddTagRequest::kTagFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AddTagRequest::AddTagRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.AddTagRequest) +} +AddTagRequest::AddTagRequest(const AddTagRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_tag()) { + tag_ = new ::datacatalog::Tag(*from.tag_); + } else { + tag_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.AddTagRequest) +} + +void AddTagRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_AddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + tag_ = nullptr; +} + +AddTagRequest::~AddTagRequest() { + // @@protoc_insertion_point(destructor:datacatalog.AddTagRequest) + SharedDtor(); +} + +void AddTagRequest::SharedDtor() { + if (this != internal_default_instance()) delete tag_; +} + +void AddTagRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AddTagRequest& AddTagRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void AddTagRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.AddTagRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && tag_ != nullptr) { + delete tag_; + } + tag_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AddTagRequest::_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) { + // .datacatalog.Tag tag = 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 = ::datacatalog::Tag::_InternalParse; + object = msg->mutable_tag(); + 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 AddTagRequest::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:datacatalog.AddTagRequest) + 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)) { + // .datacatalog.Tag tag = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_tag())); + } 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:datacatalog.AddTagRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.AddTagRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AddTagRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.AddTagRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Tag tag = 1; + if (this->has_tag()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::tag(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.AddTagRequest) +} + +::google::protobuf::uint8* AddTagRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.AddTagRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Tag tag = 1; + if (this->has_tag()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::tag(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:datacatalog.AddTagRequest) + return target; +} + +size_t AddTagRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.AddTagRequest) + 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; + + // .datacatalog.Tag tag = 1; + if (this->has_tag()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *tag_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AddTagRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.AddTagRequest) + GOOGLE_DCHECK_NE(&from, this); + const AddTagRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.AddTagRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.AddTagRequest) + MergeFrom(*source); + } +} + +void AddTagRequest::MergeFrom(const AddTagRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.AddTagRequest) + 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_tag()) { + mutable_tag()->::datacatalog::Tag::MergeFrom(from.tag()); + } +} + +void AddTagRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.AddTagRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AddTagRequest::CopyFrom(const AddTagRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.AddTagRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddTagRequest::IsInitialized() const { + return true; +} + +void AddTagRequest::Swap(AddTagRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void AddTagRequest::InternalSwap(AddTagRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(tag_, other->tag_); +} + +::google::protobuf::Metadata AddTagRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void AddTagResponse::InitAsDefaultInstance() { +} +class AddTagResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AddTagResponse::AddTagResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.AddTagResponse) +} +AddTagResponse::AddTagResponse(const AddTagResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:datacatalog.AddTagResponse) +} + +void AddTagResponse::SharedCtor() { +} + +AddTagResponse::~AddTagResponse() { + // @@protoc_insertion_point(destructor:datacatalog.AddTagResponse) + SharedDtor(); +} + +void AddTagResponse::SharedDtor() { +} + +void AddTagResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AddTagResponse& AddTagResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AddTagResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void AddTagResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.AddTagResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AddTagResponse::_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) { + default: { + 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 AddTagResponse::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:datacatalog.AddTagResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.AddTagResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.AddTagResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AddTagResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.AddTagResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.AddTagResponse) +} + +::google::protobuf::uint8* AddTagResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.AddTagResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.AddTagResponse) + return target; +} + +size_t AddTagResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.AddTagResponse) + 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; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AddTagResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.AddTagResponse) + GOOGLE_DCHECK_NE(&from, this); + const AddTagResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.AddTagResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.AddTagResponse) + MergeFrom(*source); + } +} + +void AddTagResponse::MergeFrom(const AddTagResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.AddTagResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void AddTagResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.AddTagResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AddTagResponse::CopyFrom(const AddTagResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.AddTagResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddTagResponse::IsInitialized() const { + return true; +} + +void AddTagResponse::Swap(AddTagResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void AddTagResponse::InternalSwap(AddTagResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata AddTagResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ListArtifactsRequest::InitAsDefaultInstance() { + ::datacatalog::_ListArtifactsRequest_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); + ::datacatalog::_ListArtifactsRequest_default_instance_._instance.get_mutable()->filter_ = const_cast< ::datacatalog::FilterExpression*>( + ::datacatalog::FilterExpression::internal_default_instance()); + ::datacatalog::_ListArtifactsRequest_default_instance_._instance.get_mutable()->pagination_ = const_cast< ::datacatalog::PaginationOptions*>( + ::datacatalog::PaginationOptions::internal_default_instance()); +} +class ListArtifactsRequest::HasBitSetters { + public: + static const ::datacatalog::DatasetID& dataset(const ListArtifactsRequest* msg); + static const ::datacatalog::FilterExpression& filter(const ListArtifactsRequest* msg); + static const ::datacatalog::PaginationOptions& pagination(const ListArtifactsRequest* msg); +}; + +const ::datacatalog::DatasetID& +ListArtifactsRequest::HasBitSetters::dataset(const ListArtifactsRequest* msg) { + return *msg->dataset_; +} +const ::datacatalog::FilterExpression& +ListArtifactsRequest::HasBitSetters::filter(const ListArtifactsRequest* msg) { + return *msg->filter_; +} +const ::datacatalog::PaginationOptions& +ListArtifactsRequest::HasBitSetters::pagination(const ListArtifactsRequest* msg) { + return *msg->pagination_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListArtifactsRequest::kDatasetFieldNumber; +const int ListArtifactsRequest::kFilterFieldNumber; +const int ListArtifactsRequest::kPaginationFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ListArtifactsRequest::ListArtifactsRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ListArtifactsRequest) +} +ListArtifactsRequest::ListArtifactsRequest(const ListArtifactsRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_dataset()) { + dataset_ = new ::datacatalog::DatasetID(*from.dataset_); + } else { + dataset_ = nullptr; + } + if (from.has_filter()) { + filter_ = new ::datacatalog::FilterExpression(*from.filter_); + } else { + filter_ = nullptr; + } + if (from.has_pagination()) { + pagination_ = new ::datacatalog::PaginationOptions(*from.pagination_); + } else { + pagination_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ListArtifactsRequest) +} + +void ListArtifactsRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::memset(&dataset_, 0, static_cast( + reinterpret_cast(&pagination_) - + reinterpret_cast(&dataset_)) + sizeof(pagination_)); +} + +ListArtifactsRequest::~ListArtifactsRequest() { + // @@protoc_insertion_point(destructor:datacatalog.ListArtifactsRequest) + SharedDtor(); +} + +void ListArtifactsRequest::SharedDtor() { + if (this != internal_default_instance()) delete dataset_; + if (this != internal_default_instance()) delete filter_; + if (this != internal_default_instance()) delete pagination_; +} + +void ListArtifactsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListArtifactsRequest& ListArtifactsRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ListArtifactsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ListArtifactsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; + if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { + delete filter_; + } + filter_ = nullptr; + if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { + delete pagination_; + } + pagination_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ListArtifactsRequest::_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) { + // .datacatalog.DatasetID dataset = 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 = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset(); + 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; + } + // .datacatalog.FilterExpression filter = 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 = ::datacatalog::FilterExpression::_InternalParse; + object = msg->mutable_filter(); + 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; + } + // .datacatalog.PaginationOptions pagination = 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 = ::datacatalog::PaginationOptions::_InternalParse; + object = msg->mutable_pagination(); + 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 ListArtifactsRequest::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:datacatalog.ListArtifactsRequest) + 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)) { + // .datacatalog.DatasetID dataset = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.FilterExpression filter = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_filter())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.PaginationOptions pagination = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_pagination())); + } 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:datacatalog.ListArtifactsRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ListArtifactsRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ListArtifactsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ListArtifactsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset(this), output); + } + + // .datacatalog.FilterExpression filter = 2; + if (this->has_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::filter(this), output); + } + + // .datacatalog.PaginationOptions pagination = 3; + if (this->has_pagination()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::pagination(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ListArtifactsRequest) +} + +::google::protobuf::uint8* ListArtifactsRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ListArtifactsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset(this), target); + } + + // .datacatalog.FilterExpression filter = 2; + if (this->has_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::filter(this), target); + } + + // .datacatalog.PaginationOptions pagination = 3; + if (this->has_pagination()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::pagination(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:datacatalog.ListArtifactsRequest) + return target; +} + +size_t ListArtifactsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListArtifactsRequest) + 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; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_); + } + + // .datacatalog.FilterExpression filter = 2; + if (this->has_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *filter_); + } + + // .datacatalog.PaginationOptions pagination = 3; + if (this->has_pagination()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *pagination_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListArtifactsRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListArtifactsRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListArtifactsRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListArtifactsRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListArtifactsRequest) + MergeFrom(*source); + } +} + +void ListArtifactsRequest::MergeFrom(const ListArtifactsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListArtifactsRequest) + 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_dataset()) { + mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); + } + if (from.has_filter()) { + mutable_filter()->::datacatalog::FilterExpression::MergeFrom(from.filter()); + } + if (from.has_pagination()) { + mutable_pagination()->::datacatalog::PaginationOptions::MergeFrom(from.pagination()); + } +} + +void ListArtifactsRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListArtifactsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListArtifactsRequest::CopyFrom(const ListArtifactsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListArtifactsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListArtifactsRequest::IsInitialized() const { + return true; +} + +void ListArtifactsRequest::Swap(ListArtifactsRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ListArtifactsRequest::InternalSwap(ListArtifactsRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(dataset_, other->dataset_); + swap(filter_, other->filter_); + swap(pagination_, other->pagination_); +} + +::google::protobuf::Metadata ListArtifactsRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ListArtifactsResponse::InitAsDefaultInstance() { +} +class ListArtifactsResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListArtifactsResponse::kArtifactsFieldNumber; +const int ListArtifactsResponse::kNextTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ListArtifactsResponse::ListArtifactsResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ListArtifactsResponse) +} +ListArtifactsResponse::ListArtifactsResponse(const ListArtifactsResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + artifacts_(from.artifacts_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.next_token().size() > 0) { + next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ListArtifactsResponse) +} + +void ListArtifactsResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +ListArtifactsResponse::~ListArtifactsResponse() { + // @@protoc_insertion_point(destructor:datacatalog.ListArtifactsResponse) + SharedDtor(); +} + +void ListArtifactsResponse::SharedDtor() { + next_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ListArtifactsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListArtifactsResponse& ListArtifactsResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ListArtifactsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ListArtifactsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + artifacts_.Clear(); + next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ListArtifactsResponse::_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 .datacatalog.Artifact artifacts = 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 = ::datacatalog::Artifact::_InternalParse; + object = msg->add_artifacts(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string next_token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.ListArtifactsResponse.next_token"); + object = msg->mutable_next_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + 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 ListArtifactsResponse::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:datacatalog.ListArtifactsResponse) + 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 .datacatalog.Artifact artifacts = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_artifacts())); + } else { + goto handle_unusual; + } + break; + } + + // string next_token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_next_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->next_token().data(), static_cast(this->next_token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.ListArtifactsResponse.next_token")); + } 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:datacatalog.ListArtifactsResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ListArtifactsResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ListArtifactsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ListArtifactsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .datacatalog.Artifact artifacts = 1; + for (unsigned int i = 0, + n = static_cast(this->artifacts_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->artifacts(static_cast(i)), + output); + } + + // string next_token = 2; + if (this->next_token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->next_token().data(), static_cast(this->next_token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ListArtifactsResponse.next_token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->next_token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ListArtifactsResponse) +} + +::google::protobuf::uint8* ListArtifactsResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ListArtifactsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .datacatalog.Artifact artifacts = 1; + for (unsigned int i = 0, + n = static_cast(this->artifacts_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->artifacts(static_cast(i)), target); + } + + // string next_token = 2; + if (this->next_token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->next_token().data(), static_cast(this->next_token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ListArtifactsResponse.next_token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->next_token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ListArtifactsResponse) + return target; +} + +size_t ListArtifactsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListArtifactsResponse) + 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 .datacatalog.Artifact artifacts = 1; + { + unsigned int count = static_cast(this->artifacts_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->artifacts(static_cast(i))); + } + } + + // string next_token = 2; + if (this->next_token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->next_token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListArtifactsResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListArtifactsResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListArtifactsResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListArtifactsResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListArtifactsResponse) + MergeFrom(*source); + } +} + +void ListArtifactsResponse::MergeFrom(const ListArtifactsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListArtifactsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + artifacts_.MergeFrom(from.artifacts_); + if (from.next_token().size() > 0) { + + next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); + } +} + +void ListArtifactsResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListArtifactsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListArtifactsResponse::CopyFrom(const ListArtifactsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListArtifactsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListArtifactsResponse::IsInitialized() const { + return true; +} + +void ListArtifactsResponse::Swap(ListArtifactsResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ListArtifactsResponse::InternalSwap(ListArtifactsResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&artifacts_)->InternalSwap(CastToBase(&other->artifacts_)); + next_token_.Swap(&other->next_token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata ListArtifactsResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ListDatasetsRequest::InitAsDefaultInstance() { + ::datacatalog::_ListDatasetsRequest_default_instance_._instance.get_mutable()->filter_ = const_cast< ::datacatalog::FilterExpression*>( + ::datacatalog::FilterExpression::internal_default_instance()); + ::datacatalog::_ListDatasetsRequest_default_instance_._instance.get_mutable()->pagination_ = const_cast< ::datacatalog::PaginationOptions*>( + ::datacatalog::PaginationOptions::internal_default_instance()); +} +class ListDatasetsRequest::HasBitSetters { + public: + static const ::datacatalog::FilterExpression& filter(const ListDatasetsRequest* msg); + static const ::datacatalog::PaginationOptions& pagination(const ListDatasetsRequest* msg); +}; + +const ::datacatalog::FilterExpression& +ListDatasetsRequest::HasBitSetters::filter(const ListDatasetsRequest* msg) { + return *msg->filter_; +} +const ::datacatalog::PaginationOptions& +ListDatasetsRequest::HasBitSetters::pagination(const ListDatasetsRequest* msg) { + return *msg->pagination_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListDatasetsRequest::kFilterFieldNumber; +const int ListDatasetsRequest::kPaginationFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ListDatasetsRequest::ListDatasetsRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ListDatasetsRequest) +} +ListDatasetsRequest::ListDatasetsRequest(const ListDatasetsRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_filter()) { + filter_ = new ::datacatalog::FilterExpression(*from.filter_); + } else { + filter_ = nullptr; + } + if (from.has_pagination()) { + pagination_ = new ::datacatalog::PaginationOptions(*from.pagination_); + } else { + pagination_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ListDatasetsRequest) +} + +void ListDatasetsRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::memset(&filter_, 0, static_cast( + reinterpret_cast(&pagination_) - + reinterpret_cast(&filter_)) + sizeof(pagination_)); +} + +ListDatasetsRequest::~ListDatasetsRequest() { + // @@protoc_insertion_point(destructor:datacatalog.ListDatasetsRequest) + SharedDtor(); +} + +void ListDatasetsRequest::SharedDtor() { + if (this != internal_default_instance()) delete filter_; + if (this != internal_default_instance()) delete pagination_; +} + +void ListDatasetsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListDatasetsRequest& ListDatasetsRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ListDatasetsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ListDatasetsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { + delete filter_; + } + filter_ = nullptr; + if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { + delete pagination_; + } + pagination_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ListDatasetsRequest::_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) { + // .datacatalog.FilterExpression filter = 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 = ::datacatalog::FilterExpression::_InternalParse; + object = msg->mutable_filter(); + 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; + } + // .datacatalog.PaginationOptions pagination = 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 = ::datacatalog::PaginationOptions::_InternalParse; + object = msg->mutable_pagination(); + 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 ListDatasetsRequest::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:datacatalog.ListDatasetsRequest) + 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)) { + // .datacatalog.FilterExpression filter = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_filter())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.PaginationOptions pagination = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_pagination())); + } 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:datacatalog.ListDatasetsRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ListDatasetsRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ListDatasetsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ListDatasetsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.FilterExpression filter = 1; + if (this->has_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::filter(this), output); + } + + // .datacatalog.PaginationOptions pagination = 2; + if (this->has_pagination()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::pagination(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ListDatasetsRequest) +} + +::google::protobuf::uint8* ListDatasetsRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ListDatasetsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.FilterExpression filter = 1; + if (this->has_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::filter(this), target); + } + + // .datacatalog.PaginationOptions pagination = 2; + if (this->has_pagination()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::pagination(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:datacatalog.ListDatasetsRequest) + return target; +} + +size_t ListDatasetsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListDatasetsRequest) + 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; + + // .datacatalog.FilterExpression filter = 1; + if (this->has_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *filter_); + } + + // .datacatalog.PaginationOptions pagination = 2; + if (this->has_pagination()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *pagination_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListDatasetsRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListDatasetsRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListDatasetsRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListDatasetsRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListDatasetsRequest) + MergeFrom(*source); + } +} + +void ListDatasetsRequest::MergeFrom(const ListDatasetsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListDatasetsRequest) + 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_filter()) { + mutable_filter()->::datacatalog::FilterExpression::MergeFrom(from.filter()); + } + if (from.has_pagination()) { + mutable_pagination()->::datacatalog::PaginationOptions::MergeFrom(from.pagination()); + } +} + +void ListDatasetsRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListDatasetsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListDatasetsRequest::CopyFrom(const ListDatasetsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListDatasetsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListDatasetsRequest::IsInitialized() const { + return true; +} + +void ListDatasetsRequest::Swap(ListDatasetsRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ListDatasetsRequest::InternalSwap(ListDatasetsRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(filter_, other->filter_); + swap(pagination_, other->pagination_); +} + +::google::protobuf::Metadata ListDatasetsRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ListDatasetsResponse::InitAsDefaultInstance() { +} +class ListDatasetsResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListDatasetsResponse::kDatasetsFieldNumber; +const int ListDatasetsResponse::kNextTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ListDatasetsResponse::ListDatasetsResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ListDatasetsResponse) +} +ListDatasetsResponse::ListDatasetsResponse(const ListDatasetsResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + datasets_(from.datasets_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.next_token().size() > 0) { + next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ListDatasetsResponse) +} + +void ListDatasetsResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +ListDatasetsResponse::~ListDatasetsResponse() { + // @@protoc_insertion_point(destructor:datacatalog.ListDatasetsResponse) + SharedDtor(); +} + +void ListDatasetsResponse::SharedDtor() { + next_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ListDatasetsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListDatasetsResponse& ListDatasetsResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ListDatasetsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ListDatasetsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + datasets_.Clear(); + next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ListDatasetsResponse::_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 .datacatalog.Dataset datasets = 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 = ::datacatalog::Dataset::_InternalParse; + object = msg->add_datasets(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string next_token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.ListDatasetsResponse.next_token"); + object = msg->mutable_next_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + 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 ListDatasetsResponse::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:datacatalog.ListDatasetsResponse) + 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 .datacatalog.Dataset datasets = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_datasets())); + } else { + goto handle_unusual; + } + break; + } + + // string next_token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_next_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->next_token().data(), static_cast(this->next_token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.ListDatasetsResponse.next_token")); + } 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:datacatalog.ListDatasetsResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ListDatasetsResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ListDatasetsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ListDatasetsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .datacatalog.Dataset datasets = 1; + for (unsigned int i = 0, + n = static_cast(this->datasets_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->datasets(static_cast(i)), + output); + } + + // string next_token = 2; + if (this->next_token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->next_token().data(), static_cast(this->next_token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ListDatasetsResponse.next_token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->next_token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ListDatasetsResponse) +} + +::google::protobuf::uint8* ListDatasetsResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ListDatasetsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .datacatalog.Dataset datasets = 1; + for (unsigned int i = 0, + n = static_cast(this->datasets_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->datasets(static_cast(i)), target); + } + + // string next_token = 2; + if (this->next_token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->next_token().data(), static_cast(this->next_token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ListDatasetsResponse.next_token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->next_token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ListDatasetsResponse) + return target; +} + +size_t ListDatasetsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListDatasetsResponse) + 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 .datacatalog.Dataset datasets = 1; + { + unsigned int count = static_cast(this->datasets_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->datasets(static_cast(i))); + } + } + + // string next_token = 2; + if (this->next_token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->next_token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListDatasetsResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListDatasetsResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListDatasetsResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListDatasetsResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListDatasetsResponse) + MergeFrom(*source); + } +} + +void ListDatasetsResponse::MergeFrom(const ListDatasetsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListDatasetsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + datasets_.MergeFrom(from.datasets_); + if (from.next_token().size() > 0) { + + next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); + } +} + +void ListDatasetsResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListDatasetsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListDatasetsResponse::CopyFrom(const ListDatasetsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListDatasetsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListDatasetsResponse::IsInitialized() const { + return true; +} + +void ListDatasetsResponse::Swap(ListDatasetsResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ListDatasetsResponse::InternalSwap(ListDatasetsResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&datasets_)->InternalSwap(CastToBase(&other->datasets_)); + next_token_.Swap(&other->next_token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata ListDatasetsResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Dataset::InitAsDefaultInstance() { + ::datacatalog::_Dataset_default_instance_._instance.get_mutable()->id_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); + ::datacatalog::_Dataset_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::datacatalog::Metadata*>( + ::datacatalog::Metadata::internal_default_instance()); +} +class Dataset::HasBitSetters { + public: + static const ::datacatalog::DatasetID& id(const Dataset* msg); + static const ::datacatalog::Metadata& metadata(const Dataset* msg); +}; + +const ::datacatalog::DatasetID& +Dataset::HasBitSetters::id(const Dataset* msg) { + return *msg->id_; +} +const ::datacatalog::Metadata& +Dataset::HasBitSetters::metadata(const Dataset* msg) { + return *msg->metadata_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Dataset::kIdFieldNumber; +const int Dataset::kMetadataFieldNumber; +const int Dataset::kPartitionKeysFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Dataset::Dataset() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.Dataset) +} +Dataset::Dataset(const Dataset& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + partitionkeys_(from.partitionkeys_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::datacatalog::DatasetID(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_metadata()) { + metadata_ = new ::datacatalog::Metadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.Dataset) +} + +void Dataset::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&metadata_) - + reinterpret_cast(&id_)) + sizeof(metadata_)); +} + +Dataset::~Dataset() { + // @@protoc_insertion_point(destructor:datacatalog.Dataset) + SharedDtor(); +} + +void Dataset::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete metadata_; +} + +void Dataset::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Dataset& Dataset::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void Dataset::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.Dataset) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + partitionkeys_.Clear(); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Dataset::_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) { + // .datacatalog.DatasetID 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 = ::datacatalog::DatasetID::_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; + } + // .datacatalog.Metadata metadata = 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 = ::datacatalog::Metadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated string partitionKeys = 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); + ctx->extra_parse_data().SetFieldName("datacatalog.Dataset.partitionKeys"); + object = msg->add_partitionkeys(); + 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; + 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 Dataset::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:datacatalog.Dataset) + 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)) { + // .datacatalog.DatasetID 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; + } + + // .datacatalog.Metadata metadata = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string partitionKeys = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_partitionkeys())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->partitionkeys(this->partitionkeys_size() - 1).data(), + static_cast(this->partitionkeys(this->partitionkeys_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Dataset.partitionKeys")); + } 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:datacatalog.Dataset) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.Dataset) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Dataset::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.Dataset) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .datacatalog.Metadata metadata = 2; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::metadata(this), output); + } + + // repeated string partitionKeys = 3; + for (int i = 0, n = this->partitionkeys_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->partitionkeys(i).data(), static_cast(this->partitionkeys(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Dataset.partitionKeys"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->partitionkeys(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.Dataset) +} + +::google::protobuf::uint8* Dataset::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Dataset) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .datacatalog.Metadata metadata = 2; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::metadata(this), target); + } + + // repeated string partitionKeys = 3; + for (int i = 0, n = this->partitionkeys_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->partitionkeys(i).data(), static_cast(this->partitionkeys(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Dataset.partitionKeys"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->partitionkeys(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:datacatalog.Dataset) + return target; } -::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; +size_t Dataset::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.Dataset) + size_t total_size = 0; - { - void* ptr = &::pb::lyft::datacatalog::_CreateRequest_default_instance_; - new (ptr) ::pb::lyft::datacatalog::CreateRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } - ::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,}}; + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -static void InitDefaultsCreateResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; + // repeated string partitionKeys = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->partitionkeys_size()); + for (int i = 0, n = this->partitionkeys_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->partitionkeys(i)); + } - { - void* ptr = &::pb::lyft::datacatalog::_CreateResponse_default_instance_; - new (ptr) ::pb::lyft::datacatalog::CreateResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + // .datacatalog.DatasetID id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); } - ::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,}}; + // .datacatalog.Metadata metadata = 2; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } -static void InitDefaultsGenerateProvenanceRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} - { - void* ptr = &::pb::lyft::datacatalog::_GenerateProvenanceRequest_default_instance_; - new (ptr) ::pb::lyft::datacatalog::GenerateProvenanceRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); +void Dataset::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Dataset) + GOOGLE_DCHECK_NE(&from, this); + const Dataset* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Dataset) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Dataset) + MergeFrom(*source); } - ::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 Dataset::MergeFrom(const Dataset& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Dataset) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; - { - void* ptr = &::pb::lyft::datacatalog::_GenerateProvenanceResponse_default_instance_; - new (ptr) ::pb::lyft::datacatalog::GenerateProvenanceResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + partitionkeys_.MergeFrom(from.partitionkeys_); + if (from.has_id()) { + mutable_id()->::datacatalog::DatasetID::MergeFrom(from.id()); + } + if (from.has_metadata()) { + mutable_metadata()->::datacatalog::Metadata::MergeFrom(from.metadata()); } - ::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, -}; +void Dataset::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Dataset) + if (&from == this) return; + Clear(); + MergeFrom(from); +} -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 Dataset::CopyFrom(const Dataset& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Dataset) + if (&from == this) return; + Clear(); + MergeFrom(from); +} -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); +bool Dataset::IsInitialized() const { + return true; } -// 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]; +void Dataset::Swap(Dataset* other) { + if (other == this) return; + InternalSwap(other); } -bool CreateResponse_Status_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } +void Dataset::InternalSwap(Dataset* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + partitionkeys_.InternalSwap(CastToBase(&other->partitionkeys_)); + swap(id_, other->id_); + swap(metadata_, other->metadata_); } -#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; - } +::google::protobuf::Metadata Dataset::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } // =================================================================== -void Parameter::InitAsDefaultInstance() { +void Partition::InitAsDefaultInstance() { } -class Parameter::HasBitSetters { +class Partition::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Parameter::kNameFieldNumber; -const int Parameter::kValueFieldNumber; +const int Partition::kKeyFieldNumber; +const int Partition::kValueFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -Parameter::Parameter() +Partition::Partition() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.Parameter) + // @@protoc_insertion_point(constructor:datacatalog.Partition) } -Parameter::Parameter(const Parameter& from) +Partition::Partition(const Partition& 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_); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.key().size() > 0) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); } 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) + // @@protoc_insertion_point(copy_constructor:datacatalog.Partition) } -void Parameter::SharedCtor() { +void Partition::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_Parameter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + &scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -Parameter::~Parameter() { - // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.Parameter) +Partition::~Partition() { + // @@protoc_insertion_point(destructor:datacatalog.Partition) SharedDtor(); } -void Parameter::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void Partition::SharedDtor() { + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -void Parameter::SetCachedSize(int size) const { +void Partition::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); +const Partition& Partition::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void Parameter::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.Parameter) +void Partition::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.Partition) ::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()); + key_.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, +const char* Partition::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -656,13 +5942,13 @@ const char* Parameter::_InternalParse(const char* begin, const char* end, void* ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string name = 1; + // string key = 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(); + ctx->extra_parse_data().SetFieldName("datacatalog.Partition.key"); + object = msg->mutable_key(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -677,7 +5963,7 @@ const char* Parameter::_InternalParse(const char* begin, const char* end, void* 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"); + ctx->extra_parse_data().SetFieldName("datacatalog.Partition.value"); object = msg->mutable_value(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -712,25 +5998,25 @@ const char* Parameter::_InternalParse(const char* begin, const char* end, void* {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Parameter::MergePartialFromCodedStream( +bool Partition::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) + // @@protoc_insertion_point(parse_start:datacatalog.Partition) 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; + // string key = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); + input, this->mutable_key())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), + this->key().data(), static_cast(this->key().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.lyft.datacatalog.Parameter.name")); + "datacatalog.Partition.key")); } else { goto handle_unusual; } @@ -745,7 +6031,7 @@ bool Parameter::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->value().data(), static_cast(this->value().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.lyft.datacatalog.Parameter.value")); + "datacatalog.Partition.value")); } else { goto handle_unusual; } @@ -764,29 +6050,29 @@ bool Parameter::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:pb.lyft.datacatalog.Parameter) + // @@protoc_insertion_point(parse_success:datacatalog.Partition) return true; failure: - // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.Parameter) + // @@protoc_insertion_point(parse_failure:datacatalog.Partition) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void Parameter::SerializeWithCachedSizes( +void Partition::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.Parameter) + // @@protoc_insertion_point(serialize_start:datacatalog.Partition) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string name = 1; - if (this->name().size() > 0) { + // string key = 1; + if (this->key().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), + this->key().data(), static_cast(this->key().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.Parameter.name"); + "datacatalog.Partition.key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); + 1, this->key(), output); } // string value = 2; @@ -794,7 +6080,7 @@ void Parameter::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->value().data(), static_cast(this->value().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.Parameter.value"); + "datacatalog.Partition.value"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->value(), output); } @@ -803,24 +6089,24 @@ void Parameter::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:pb.lyft.datacatalog.Parameter) + // @@protoc_insertion_point(serialize_end:datacatalog.Partition) } -::google::protobuf::uint8* Parameter::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* Partition::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.Parameter) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Partition) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string name = 1; - if (this->name().size() > 0) { + // string key = 1; + if (this->key().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), + this->key().data(), static_cast(this->key().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.Parameter.name"); + "datacatalog.Partition.key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); + 1, this->key(), target); } // string value = 2; @@ -828,7 +6114,7 @@ ::google::protobuf::uint8* Parameter::InternalSerializeWithCachedSizesToArray( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->value().data(), static_cast(this->value().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.Parameter.value"); + "datacatalog.Partition.value"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->value(), target); @@ -838,12 +6124,12 @@ ::google::protobuf::uint8* Parameter::InternalSerializeWithCachedSizesToArray( target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:pb.lyft.datacatalog.Parameter) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.Partition) return target; } -size_t Parameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.Parameter) +size_t Partition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.Partition) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -855,11 +6141,11 @@ size_t Parameter::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string name = 1; - if (this->name().size() > 0) { + // string key = 1; + if (this->key().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); + this->key()); } // string value = 2; @@ -874,31 +6160,31 @@ size_t Parameter::ByteSizeLong() const { return total_size; } -void Parameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.Parameter) +void Partition::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Partition) GOOGLE_DCHECK_NE(&from, this); - const Parameter* source = - ::google::protobuf::DynamicCastToGenerated( + const Partition* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.Parameter) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Partition) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.Parameter) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Partition) MergeFrom(*source); } } -void Parameter::MergeFrom(const Parameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.Parameter) +void Partition::MergeFrom(const Partition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Partition) 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) { + if (from.key().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); } if (from.value().size() > 0) { @@ -906,38 +6192,38 @@ void Parameter::MergeFrom(const Parameter& from) { } } -void Parameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.Parameter) +void Partition::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Partition) 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) +void Partition::CopyFrom(const Partition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Partition) if (&from == this) return; Clear(); MergeFrom(from); } -bool Parameter::IsInitialized() const { +bool Partition::IsInitialized() const { return true; } -void Parameter::Swap(Parameter* other) { +void Partition::Swap(Partition* other) { if (other == this) return; InternalSwap(other); } -void Parameter::InternalSwap(Parameter* other) { +void Partition::InternalSwap(Partition* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -::google::protobuf::Metadata Parameter::GetMetadata() const { +::google::protobuf::Metadata Partition::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -945,111 +6231,102 @@ ::google::protobuf::Metadata Parameter::GetMetadata() const { // =================================================================== -void Artifact::InitAsDefaultInstance() { +void DatasetID::InitAsDefaultInstance() { } -class Artifact::HasBitSetters { +class DatasetID::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; +const int DatasetID::kProjectFieldNumber; +const int DatasetID::kNameFieldNumber; +const int DatasetID::kDomainFieldNumber; +const int DatasetID::kVersionFieldNumber; +const int DatasetID::kUUIDFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -Artifact::Artifact() +DatasetID::DatasetID() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.Artifact) + // @@protoc_insertion_point(constructor:datacatalog.DatasetID) } -Artifact::Artifact(const Artifact& from) +DatasetID::DatasetID(const DatasetID& from) : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - inputs_(from.inputs_), - outputs_(from.outputs_) { + _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_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); } name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.name().size() > 0) { name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } 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_); + uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.uuid().size() > 0) { + uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); } - ::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) + // @@protoc_insertion_point(copy_constructor:datacatalog.DatasetID) } -void Artifact::SharedCtor() { +void DatasetID::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - provenance_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.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_)); + uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -Artifact::~Artifact() { - // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.Artifact) +DatasetID::~DatasetID() { + // @@protoc_insertion_point(destructor:datacatalog.DatasetID) SharedDtor(); } -void Artifact::SharedDtor() { - provenance_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void DatasetID::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - reference_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -void Artifact::SetCachedSize(int size) const { +void DatasetID::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); +const DatasetID& DatasetID::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void Artifact::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.Artifact) +void DatasetID::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.DatasetID) ::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()); + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.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_)); + uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Artifact::_InternalParse(const char* begin, const char* end, void* object, +const char* DatasetID::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -1059,13 +6336,13 @@ const char* Artifact::_InternalParse(const char* begin, const char* end, void* o ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string provenance = 1; + // string project = 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(); + ctx->extra_parse_data().SetFieldName("datacatalog.DatasetID.project"); + object = msg->mutable_project(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -1080,7 +6357,7 @@ const char* Artifact::_InternalParse(const char* begin, const char* end, void* o 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"); + ctx->extra_parse_data().SetFieldName("datacatalog.DatasetID.name"); object = msg->mutable_name(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; @@ -1091,13 +6368,13 @@ const char* Artifact::_InternalParse(const char* begin, const char* end, void* o ptr += size; break; } - // string version = 3; + // string domain = 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(); + ctx->extra_parse_data().SetFieldName("datacatalog.DatasetID.domain"); + object = msg->mutable_domain(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -1107,27 +6384,13 @@ const char* Artifact::_InternalParse(const char* begin, const char* end, void* o ptr += size; break; } - // int64 revision = 4; + // string version = 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; + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("pb.lyft.datacatalog.Artifact.reference_id"); - object = msg->mutable_reference_id(); + ctx->extra_parse_data().SetFieldName("datacatalog.DatasetID.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; @@ -1137,36 +6400,20 @@ const char* Artifact::_InternalParse(const char* begin, const char* end, void* o 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)); + // string UUID = 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("datacatalog.DatasetID.UUID"); + object = msg->mutable_uuid(); + 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: { @@ -1193,25 +6440,25 @@ const char* Artifact::_InternalParse(const char* begin, const char* end, void* o {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Artifact::MergePartialFromCodedStream( +bool DatasetID::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) + // @@protoc_insertion_point(parse_start:datacatalog.DatasetID) 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; + // string project = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_provenance())); + input, this->mutable_project())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->provenance().data(), static_cast(this->provenance().length()), + this->project().data(), static_cast(this->project().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.lyft.datacatalog.Artifact.provenance")); + "datacatalog.DatasetID.project")); } else { goto handle_unusual; } @@ -1226,85 +6473,52 @@ bool Artifact::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.lyft.datacatalog.Artifact.name")); + "datacatalog.DatasetID.name")); } else { goto handle_unusual; } break; } - // string version = 3; + // string domain = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_version())); + input, this->mutable_domain())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), + this->domain().data(), static_cast(this->domain().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.lyft.datacatalog.Artifact.version")); + "datacatalog.DatasetID.domain")); } else { goto handle_unusual; } break; } - // int64 revision = 4; + // string version = 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_))); + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.DatasetID.version")); } else { goto handle_unusual; } break; } - // int64 created_at = 5; + // string UUID = 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)) { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_reference_id())); + input, this->mutable_uuid())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reference_id().data(), static_cast(this->reference_id().length()), + this->uuid().data(), static_cast(this->uuid().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())); + "datacatalog.DatasetID.UUID")); } else { goto handle_unusual; } @@ -1323,29 +6537,29 @@ bool Artifact::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:pb.lyft.datacatalog.Artifact) + // @@protoc_insertion_point(parse_success:datacatalog.DatasetID) return true; failure: - // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.Artifact) + // @@protoc_insertion_point(parse_failure:datacatalog.DatasetID) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void Artifact::SerializeWithCachedSizes( +void DatasetID::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.Artifact) + // @@protoc_insertion_point(serialize_start:datacatalog.DatasetID) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string provenance = 1; - if (this->provenance().size() > 0) { + // string project = 1; + if (this->project().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->provenance().data(), static_cast(this->provenance().length()), + this->project().data(), static_cast(this->project().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.Artifact.provenance"); + "datacatalog.DatasetID.project"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->provenance(), output); + 1, this->project(), output); } // string name = 2; @@ -1353,81 +6567,63 @@ void Artifact::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.Artifact.name"); + "datacatalog.DatasetID.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->name(), output); } - // string version = 3; - if (this->version().size() > 0) { + // string domain = 3; + if (this->domain().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), + this->domain().data(), static_cast(this->domain().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.Artifact.version"); + "datacatalog.DatasetID.domain"); ::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); + 3, this->domain(), output); } - // string reference_id = 6; - if (this->reference_id().size() > 0) { + // string version = 4; + if (this->version().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reference_id().data(), static_cast(this->reference_id().length()), + this->version().data(), static_cast(this->version().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.Artifact.reference_id"); + "datacatalog.DatasetID.version"); ::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); + 4, this->version(), 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); + // string UUID = 5; + if (this->uuid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uuid().data(), static_cast(this->uuid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetID.UUID"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->uuid(), 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) + // @@protoc_insertion_point(serialize_end:datacatalog.DatasetID) } -::google::protobuf::uint8* Artifact::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* DatasetID::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.Artifact) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.DatasetID) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string provenance = 1; - if (this->provenance().size() > 0) { + // string project = 1; + if (this->project().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->provenance().data(), static_cast(this->provenance().length()), + this->project().data(), static_cast(this->project().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.Artifact.provenance"); + "datacatalog.DatasetID.project"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->provenance(), target); + 1, this->project(), target); } // string name = 2; @@ -1435,70 +6631,55 @@ ::google::protobuf::uint8* Artifact::InternalSerializeWithCachedSizesToArray( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.Artifact.name"); + "datacatalog.DatasetID.name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->name(), target); } - // string version = 3; - if (this->version().size() > 0) { + // string domain = 3; + if (this->domain().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), + this->domain().data(), static_cast(this->domain().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.Artifact.version"); + "datacatalog.DatasetID.domain"); 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); + 3, this->domain(), target); } - // string reference_id = 6; - if (this->reference_id().size() > 0) { + // string version = 4; + if (this->version().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reference_id().data(), static_cast(this->reference_id().length()), + this->version().data(), static_cast(this->version().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.Artifact.reference_id"); + "datacatalog.DatasetID.version"); 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); + 4, this->version(), 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); + // string UUID = 5; + if (this->uuid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uuid().data(), static_cast(this->uuid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetID.UUID"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->uuid(), 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) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.DatasetID) return target; } -size_t Artifact::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.Artifact) +size_t DatasetID::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.DatasetID) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -1510,33 +6691,11 @@ size_t Artifact::ByteSizeLong() const { // 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) { + // string project = 1; + if (this->project().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->provenance()); + this->project()); } // string name = 2; @@ -1546,32 +6705,25 @@ size_t Artifact::ByteSizeLong() const { this->name()); } - // string version = 3; - if (this->version().size() > 0) { + // string domain = 3; + if (this->domain().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->version()); + this->domain()); } - // string reference_id = 6; - if (this->reference_id().size() > 0) { + // string version = 4; + if (this->version().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()); + this->version()); } - // int64 created_at = 5; - if (this->created_at() != 0) { + // string UUID = 5; + if (this->uuid().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->created_at()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->uuid()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -1579,94 +6731,88 @@ size_t Artifact::ByteSizeLong() const { return total_size; } -void Artifact::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.Artifact) +void DatasetID::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.DatasetID) GOOGLE_DCHECK_NE(&from, this); - const Artifact* source = - ::google::protobuf::DynamicCastToGenerated( + const DatasetID* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.Artifact) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.DatasetID) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.Artifact) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.DatasetID) MergeFrom(*source); } } -void Artifact::MergeFrom(const Artifact& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.Artifact) +void DatasetID::MergeFrom(const DatasetID& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.DatasetID) 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) { + if (from.project().size() > 0) { - provenance_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.provenance_); + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); } if (from.name().size() > 0) { name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } if (from.version().size() > 0) { version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); } - if (from.reference_id().size() > 0) { + if (from.uuid().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()); + uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); } } -void Artifact::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.Artifact) +void DatasetID::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.DatasetID) 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) +void DatasetID::CopyFrom(const DatasetID& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.DatasetID) if (&from == this) return; Clear(); MergeFrom(from); } -bool Artifact::IsInitialized() const { +bool DatasetID::IsInitialized() const { return true; } -void Artifact::Swap(Artifact* other) { +void DatasetID::Swap(DatasetID* other) { if (other == this) return; InternalSwap(other); } -void Artifact::InternalSwap(Artifact* other) { +void DatasetID::InternalSwap(DatasetID* 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(), + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - reference_id_.Swap(&other->reference_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + uuid_.Swap(&other->uuid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - swap(revision_, other->revision_); - swap(created_at_, other->created_at_); } -::google::protobuf::Metadata Artifact::GetMetadata() const { +::google::protobuf::Metadata DatasetID::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -1674,81 +6820,142 @@ ::google::protobuf::Metadata Artifact::GetMetadata() const { // =================================================================== -void ArtifactId::InitAsDefaultInstance() { +void Artifact::InitAsDefaultInstance() { + ::datacatalog::_Artifact_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); + ::datacatalog::_Artifact_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::datacatalog::Metadata*>( + ::datacatalog::Metadata::internal_default_instance()); + ::datacatalog::_Artifact_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); } -class ArtifactId::HasBitSetters { +class Artifact::HasBitSetters { public: + static const ::datacatalog::DatasetID& dataset(const Artifact* msg); + static const ::datacatalog::Metadata& metadata(const Artifact* msg); + static const ::google::protobuf::Timestamp& created_at(const Artifact* msg); }; +const ::datacatalog::DatasetID& +Artifact::HasBitSetters::dataset(const Artifact* msg) { + return *msg->dataset_; +} +const ::datacatalog::Metadata& +Artifact::HasBitSetters::metadata(const Artifact* msg) { + return *msg->metadata_; +} +const ::google::protobuf::Timestamp& +Artifact::HasBitSetters::created_at(const Artifact* msg) { + return *msg->created_at_; +} +void Artifact::clear_created_at() { + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ArtifactId::kNameFieldNumber; -const int ArtifactId::kVersionFieldNumber; -const int ArtifactId::kInputsFieldNumber; +const int Artifact::kIdFieldNumber; +const int Artifact::kDatasetFieldNumber; +const int Artifact::kDataFieldNumber; +const int Artifact::kMetadataFieldNumber; +const int Artifact::kPartitionsFieldNumber; +const int Artifact::kTagsFieldNumber; +const int Artifact::kCreatedAtFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -ArtifactId::ArtifactId() +Artifact::Artifact() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.ArtifactId) + // @@protoc_insertion_point(constructor:datacatalog.Artifact) } -ArtifactId::ArtifactId(const ArtifactId& from) +Artifact::Artifact(const Artifact& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr), - inputs_(from.inputs_) { + data_(from.data_), + partitions_(from.partitions_), + tags_(from.tags_) { _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_); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.id().size() > 0) { + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); } - version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.version().size() > 0) { - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + if (from.has_dataset()) { + dataset_ = new ::datacatalog::DatasetID(*from.dataset_); + } else { + dataset_ = nullptr; + } + if (from.has_metadata()) { + metadata_ = new ::datacatalog::Metadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + if (from.has_created_at()) { + created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); + } else { + created_at_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.ArtifactId) + // @@protoc_insertion_point(copy_constructor:datacatalog.Artifact) } -void ArtifactId::SharedCtor() { +void Artifact::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()); + &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&dataset_, 0, static_cast( + reinterpret_cast(&created_at_) - + reinterpret_cast(&dataset_)) + sizeof(created_at_)); } -ArtifactId::~ArtifactId() { - // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.ArtifactId) +Artifact::~Artifact() { + // @@protoc_insertion_point(destructor:datacatalog.Artifact) SharedDtor(); } -void ArtifactId::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void Artifact::SharedDtor() { + id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete dataset_; + if (this != internal_default_instance()) delete metadata_; + if (this != internal_default_instance()) delete created_at_; } -void ArtifactId::SetCachedSize(int size) const { +void Artifact::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); +const Artifact& Artifact::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void ArtifactId::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.ArtifactId) +void Artifact::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.Artifact) ::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()); + data_.Clear(); + partitions_.Clear(); + tags_.Clear(); + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ArtifactId::_InternalParse(const char* begin, const char* end, void* object, +const char* Artifact::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -1758,13 +6965,13 @@ const char* ArtifactId::_InternalParse(const char* begin, const char* end, void* ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string name = 1; + // string 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); - ctx->extra_parse_data().SetFieldName("pb.lyft.datacatalog.ArtifactId.name"); - object = msg->mutable_name(); + ctx->extra_parse_data().SetFieldName("datacatalog.Artifact.id"); + object = msg->mutable_id(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -1774,30 +6981,27 @@ const char* ArtifactId::_InternalParse(const char* begin, const char* end, void* ptr += size; break; } - // string version = 2; + // .datacatalog.DatasetID dataset = 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); + parser_till_end = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset(); + 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; } - // repeated .pb.lyft.datacatalog.Parameter inputs = 3; + // repeated .datacatalog.ArtifactData data = 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(); + parser_till_end = ::datacatalog::ArtifactData::_InternalParse; + object = msg->add_data(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( @@ -1806,6 +7010,64 @@ const char* ArtifactId::_InternalParse(const char* begin, const char* end, void* } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); break; } + // .datacatalog.Metadata metadata = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Metadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated .datacatalog.Partition partitions = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Partition::_InternalParse; + object = msg->add_partitions(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); + break; + } + // repeated .datacatalog.Tag tags = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Tag::_InternalParse; + object = msg->add_tags(); + 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) == 50 && (ptr += 1)); + break; + } + // .google.protobuf.Timestamp created_at = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_created_at(); + 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) { @@ -1830,51 +7092,91 @@ const char* ArtifactId::_InternalParse(const char* begin, const char* end, void* {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ArtifactId::MergePartialFromCodedStream( +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.ArtifactId) + // @@protoc_insertion_point(parse_start: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 name = 1; + // string id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); + input, this->mutable_id())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), + this->id().data(), static_cast(this->id().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.lyft.datacatalog.ArtifactId.name")); + "datacatalog.Artifact.id")); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.DatasetID dataset = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .datacatalog.ArtifactData data = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_data())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.Metadata metadata = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); } 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")); + // repeated .datacatalog.Partition partitions = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_partitions())); } else { goto handle_unusual; } break; } - // repeated .pb.lyft.datacatalog.Parameter inputs = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + // repeated .datacatalog.Tag tags = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_tags())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp created_at = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_inputs())); + input, mutable_created_at())); } else { goto handle_unusual; } @@ -1893,103 +7195,155 @@ bool ArtifactId::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:pb.lyft.datacatalog.ArtifactId) + // @@protoc_insertion_point(parse_success:datacatalog.Artifact) return true; failure: - // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.ArtifactId) + // @@protoc_insertion_point(parse_failure:datacatalog.Artifact) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void ArtifactId::SerializeWithCachedSizes( +void Artifact::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.ArtifactId) + // @@protoc_insertion_point(serialize_start:datacatalog.Artifact) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string name = 1; - if (this->name().size() > 0) { + // string id = 1; + if (this->id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), + this->id().data(), static_cast(this->id().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.ArtifactId.name"); + "datacatalog.Artifact.id"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); + 1, this->id(), 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); + // .datacatalog.DatasetID dataset = 2; + if (this->has_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::dataset(this), output); } - // repeated .pb.lyft.datacatalog.Parameter inputs = 3; + // repeated .datacatalog.ArtifactData data = 3; for (unsigned int i = 0, - n = static_cast(this->inputs_size()); i < n; i++) { + n = static_cast(this->data_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, - this->inputs(static_cast(i)), + this->data(static_cast(i)), + output); + } + + // .datacatalog.Metadata metadata = 4; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::metadata(this), output); + } + + // repeated .datacatalog.Partition partitions = 5; + for (unsigned int i = 0, + n = static_cast(this->partitions_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->partitions(static_cast(i)), + output); + } + + // repeated .datacatalog.Tag tags = 6; + for (unsigned int i = 0, + n = static_cast(this->tags_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, + this->tags(static_cast(i)), output); } + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::created_at(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.ArtifactId) + // @@protoc_insertion_point(serialize_end:datacatalog.Artifact) } -::google::protobuf::uint8* ArtifactId::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* Artifact::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.ArtifactId) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Artifact) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string name = 1; - if (this->name().size() > 0) { + // string id = 1; + if (this->id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), + this->id().data(), static_cast(this->id().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.ArtifactId.name"); + "datacatalog.Artifact.id"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); + 1, this->id(), 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); + // .datacatalog.DatasetID dataset = 2; + if (this->has_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::dataset(this), target); + } + + // repeated .datacatalog.ArtifactData data = 3; + for (unsigned int i = 0, + n = static_cast(this->data_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->data(static_cast(i)), target); + } + + // .datacatalog.Metadata metadata = 4; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::metadata(this), target); + } + + // repeated .datacatalog.Partition partitions = 5; + for (unsigned int i = 0, + n = static_cast(this->partitions_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->partitions(static_cast(i)), target); } - // repeated .pb.lyft.datacatalog.Parameter inputs = 3; + // repeated .datacatalog.Tag tags = 6; for (unsigned int i = 0, - n = static_cast(this->inputs_size()); i < n; i++) { + n = static_cast(this->tags_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 3, this->inputs(static_cast(i)), target); + 6, this->tags(static_cast(i)), target); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::created_at(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.ArtifactId) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.Artifact) return target; } -size_t ArtifactId::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.ArtifactId) +size_t Artifact::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.Artifact) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -2001,29 +7355,65 @@ size_t ArtifactId::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .pb.lyft.datacatalog.Parameter inputs = 3; + // repeated .datacatalog.ArtifactData data = 3; { - unsigned int count = static_cast(this->inputs_size()); + unsigned int count = static_cast(this->data_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))); + this->data(static_cast(i))); } } - // string name = 1; - if (this->name().size() > 0) { + // repeated .datacatalog.Partition partitions = 5; + { + unsigned int count = static_cast(this->partitions_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->partitions(static_cast(i))); + } + } + + // repeated .datacatalog.Tag tags = 6; + { + unsigned int count = static_cast(this->tags_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->tags(static_cast(i))); + } + } + + // string id = 1; + if (this->id().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); + this->id()); } - // string version = 2; - if (this->version().size() > 0) { + // .datacatalog.DatasetID dataset = 2; + if (this->has_dataset()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->version()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_); + } + + // .datacatalog.Metadata metadata = 4; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *created_at_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -2031,72 +7421,82 @@ size_t ArtifactId::ByteSizeLong() const { return total_size; } -void ArtifactId::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.ArtifactId) +void Artifact::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Artifact) GOOGLE_DCHECK_NE(&from, this); - const ArtifactId* source = - ::google::protobuf::DynamicCastToGenerated( + const Artifact* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.ArtifactId) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Artifact) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.ArtifactId) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Artifact) MergeFrom(*source); } } -void ArtifactId::MergeFrom(const ArtifactId& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.ArtifactId) +void Artifact::MergeFrom(const Artifact& from) { +// @@protoc_insertion_point(class_specific_merge_from_start: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_); - if (from.name().size() > 0) { + data_.MergeFrom(from.data_); + partitions_.MergeFrom(from.partitions_); + tags_.MergeFrom(from.tags_); + if (from.id().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); } - if (from.version().size() > 0) { - - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + if (from.has_dataset()) { + mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); + } + if (from.has_metadata()) { + mutable_metadata()->::datacatalog::Metadata::MergeFrom(from.metadata()); + } + if (from.has_created_at()) { + mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); } } -void ArtifactId::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.ArtifactId) +void Artifact::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Artifact) 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) +void Artifact::CopyFrom(const Artifact& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Artifact) if (&from == this) return; Clear(); MergeFrom(from); } -bool ArtifactId::IsInitialized() const { +bool Artifact::IsInitialized() const { return true; } -void ArtifactId::Swap(ArtifactId* other) { +void Artifact::Swap(Artifact* other) { if (other == this) return; InternalSwap(other); } -void ArtifactId::InternalSwap(ArtifactId* other) { +void Artifact::InternalSwap(Artifact* 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(), + CastToBase(&data_)->InternalSwap(CastToBase(&other->data_)); + CastToBase(&partitions_)->InternalSwap(CastToBase(&other->partitions_)); + CastToBase(&tags_)->InternalSwap(CastToBase(&other->tags_)); + id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + swap(dataset_, other->dataset_); + swap(metadata_, other->metadata_); + swap(created_at_, other->created_at_); } -::google::protobuf::Metadata ArtifactId::GetMetadata() const { +::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]; } @@ -2104,125 +7504,95 @@ ::google::protobuf::Metadata ArtifactId::GetMetadata() const { // =================================================================== -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()); +void ArtifactData::InitAsDefaultInstance() { + ::datacatalog::_ArtifactData_default_instance_._instance.get_mutable()->value_ = const_cast< ::flyteidl::core::Literal*>( + ::flyteidl::core::Literal::internal_default_instance()); } -class GetRequest::HasBitSetters { +class ArtifactData::HasBitSetters { public: - static const ::pb::lyft::datacatalog::ArtifactId& artifact_id(const GetRequest* msg); + static const ::flyteidl::core::Literal& value(const ArtifactData* msg); }; -const ::pb::lyft::datacatalog::ArtifactId& -GetRequest::HasBitSetters::artifact_id(const GetRequest* msg) { - return *msg->id_.artifact_id_; +const ::flyteidl::core::Literal& +ArtifactData::HasBitSetters::value(const ArtifactData* msg) { + return *msg->value_; } -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; +void ArtifactData::clear_value() { + if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { + delete value_; } - // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.GetRequest.artifact_id) + value_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetRequest::kProvenanceFieldNumber; -const int GetRequest::kArtifactIdFieldNumber; +const int ArtifactData::kNameFieldNumber; +const int ArtifactData::kValueFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -GetRequest::GetRequest() +ArtifactData::ArtifactData() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.GetRequest) + // @@protoc_insertion_point(constructor:datacatalog.ArtifactData) } -GetRequest::GetRequest(const GetRequest& from) +ArtifactData::ArtifactData(const ArtifactData& 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; - } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } - // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.GetRequest) + if (from.has_value()) { + value_ = new ::flyteidl::core::Literal(*from.value_); + } else { + value_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ArtifactData) } -void GetRequest::SharedCtor() { +void ArtifactData::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_GetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - clear_has_id(); + &scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_ = nullptr; } -GetRequest::~GetRequest() { - // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.GetRequest) +ArtifactData::~ArtifactData() { + // @@protoc_insertion_point(destructor:datacatalog.ArtifactData) SharedDtor(); } -void GetRequest::SharedDtor() { - if (has_id()) { - clear_id(); - } +void ArtifactData::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete value_; } -void GetRequest::SetCachedSize(int size) const { +void ArtifactData::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); +const ArtifactData& ArtifactData::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactData_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) +void ArtifactData::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ArtifactData) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - clear_id(); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetRequest::_InternalParse(const char* begin, const char* end, void* object, +const char* ArtifactData::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -2232,13 +7602,13 @@ const char* GetRequest::_InternalParse(const char* begin, const char* end, void* ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string provenance = 1; + // 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.GetRequest.provenance"); - object = msg->mutable_provenance(); + ctx->extra_parse_data().SetFieldName("datacatalog.ArtifactData.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; @@ -2248,13 +7618,13 @@ const char* GetRequest::_InternalParse(const char* begin, const char* end, void* ptr += size; break; } - // .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + // .flyteidl.core.Literal 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); - parser_till_end = ::pb::lyft::datacatalog::ArtifactId::_InternalParse; - object = msg->mutable_artifact_id(); + parser_till_end = ::flyteidl::core::Literal::_InternalParse; + object = msg->mutable_value(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( @@ -2285,36 +7655,36 @@ const char* GetRequest::_InternalParse(const char* begin, const char* end, void* {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetRequest::MergePartialFromCodedStream( +bool ArtifactData::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) + // @@protoc_insertion_point(parse_start:datacatalog.ArtifactData) 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; + // string name = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_provenance())); + input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->provenance().data(), static_cast(this->provenance().length()), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.lyft.datacatalog.GetRequest.provenance")); + "datacatalog.ArtifactData.name")); } else { goto handle_unusual; } break; } - // .pb.lyft.datacatalog.ArtifactId artifact_id = 2; + // .flyteidl.core.Literal value = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_id())); + input, mutable_value())); } else { goto handle_unusual; } @@ -2333,78 +7703,78 @@ bool GetRequest::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:pb.lyft.datacatalog.GetRequest) + // @@protoc_insertion_point(parse_success:datacatalog.ArtifactData) return true; failure: - // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.GetRequest) + // @@protoc_insertion_point(parse_failure:datacatalog.ArtifactData) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GetRequest::SerializeWithCachedSizes( +void ArtifactData::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.GetRequest) + // @@protoc_insertion_point(serialize_start:datacatalog.ArtifactData) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string provenance = 1; - if (has_provenance()) { + // string name = 1; + if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->provenance().data(), static_cast(this->provenance().length()), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.GetRequest.provenance"); + "datacatalog.ArtifactData.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->provenance(), output); + 1, this->name(), output); } - // .pb.lyft.datacatalog.ArtifactId artifact_id = 2; - if (has_artifact_id()) { + // .flyteidl.core.Literal value = 2; + if (this->has_value()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::artifact_id(this), output); + 2, HasBitSetters::value(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) + // @@protoc_insertion_point(serialize_end:datacatalog.ArtifactData) } -::google::protobuf::uint8* GetRequest::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* ArtifactData::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.GetRequest) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ArtifactData) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string provenance = 1; - if (has_provenance()) { + // string name = 1; + if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->provenance().data(), static_cast(this->provenance().length()), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.GetRequest.provenance"); + "datacatalog.ArtifactData.name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->provenance(), target); + 1, this->name(), target); } - // .pb.lyft.datacatalog.ArtifactId artifact_id = 2; - if (has_artifact_id()) { + // .flyteidl.core.Literal value = 2; + if (this->has_value()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 2, HasBitSetters::artifact_id(this), target); + 2, HasBitSetters::value(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) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ArtifactData) return target; } -size_t GetRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.GetRequest) +size_t ArtifactData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ArtifactData) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -2416,97 +7786,87 @@ size_t GetRequest::ByteSizeLong() const { // 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; - } + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // .flyteidl.core.Literal value = 2; + if (this->has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_); } + 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) +void ArtifactData::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ArtifactData) GOOGLE_DCHECK_NE(&from, this); - const GetRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const ArtifactData* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.GetRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ArtifactData) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.GetRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ArtifactData) MergeFrom(*source); } } -void GetRequest::MergeFrom(const GetRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.GetRequest) +void ArtifactData::MergeFrom(const ArtifactData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ArtifactData) 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; - } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_value()) { + mutable_value()->::flyteidl::core::Literal::MergeFrom(from.value()); } } -void GetRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.GetRequest) +void ArtifactData::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ArtifactData) 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) +void ArtifactData::CopyFrom(const ArtifactData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ArtifactData) if (&from == this) return; Clear(); MergeFrom(from); } -bool GetRequest::IsInitialized() const { +bool ArtifactData::IsInitialized() const { return true; } -void GetRequest::Swap(GetRequest* other) { +void ArtifactData::Swap(ArtifactData* other) { if (other == this) return; InternalSwap(other); } -void GetRequest::InternalSwap(GetRequest* other) { +void ArtifactData::InternalSwap(ArtifactData* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(value_, other->value_); } -::google::protobuf::Metadata GetRequest::GetMetadata() const { +::google::protobuf::Metadata ArtifactData::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -2514,81 +7874,97 @@ ::google::protobuf::Metadata GetRequest::GetMetadata() const { // =================================================================== -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()); +void Tag::InitAsDefaultInstance() { + ::datacatalog::_Tag_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); } -class GetResponse::HasBitSetters { +class Tag::HasBitSetters { public: - static const ::pb::lyft::datacatalog::Artifact& artifact(const GetResponse* msg); + static const ::datacatalog::DatasetID& dataset(const Tag* msg); }; -const ::pb::lyft::datacatalog::Artifact& -GetResponse::HasBitSetters::artifact(const GetResponse* msg) { - return *msg->artifact_; +const ::datacatalog::DatasetID& +Tag::HasBitSetters::dataset(const Tag* msg) { + return *msg->dataset_; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetResponse::kArtifactFieldNumber; +const int Tag::kNameFieldNumber; +const int Tag::kArtifactIdFieldNumber; +const int Tag::kDatasetFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -GetResponse::GetResponse() +Tag::Tag() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.GetResponse) + // @@protoc_insertion_point(constructor:datacatalog.Tag) } -GetResponse::GetResponse(const GetResponse& from) +Tag::Tag(const Tag& 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_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.artifact_id().size() > 0) { + artifact_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.artifact_id_); + } + if (from.has_dataset()) { + dataset_ = new ::datacatalog::DatasetID(*from.dataset_); } else { - artifact_ = nullptr; + dataset_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.GetResponse) + // @@protoc_insertion_point(copy_constructor:datacatalog.Tag) } -void GetResponse::SharedCtor() { +void Tag::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_GetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - artifact_ = nullptr; + &scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dataset_ = nullptr; } -GetResponse::~GetResponse() { - // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.GetResponse) +Tag::~Tag() { + // @@protoc_insertion_point(destructor:datacatalog.Tag) SharedDtor(); } -void GetResponse::SharedDtor() { - if (this != internal_default_instance()) delete artifact_; +void Tag::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete dataset_; } -void GetResponse::SetCachedSize(int size) const { +void Tag::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); +const Tag& Tag::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void GetResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.GetResponse) +void Tag::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.Tag) ::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_; + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + artifact_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; } - artifact_ = nullptr; + dataset_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetResponse::_InternalParse(const char* begin, const char* end, void* object, +const char* Tag::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -2598,13 +7974,45 @@ const char* GetResponse::_InternalParse(const char* begin, const char* end, void ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .pb.lyft.datacatalog.Artifact artifact = 1; + // 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); - parser_till_end = ::pb::lyft::datacatalog::Artifact::_InternalParse; - object = msg->mutable_artifact(); + ctx->extra_parse_data().SetFieldName("datacatalog.Tag.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 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); + ctx->extra_parse_data().SetFieldName("datacatalog.Tag.artifact_id"); + object = msg->mutable_artifact_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; + } + // .datacatalog.DatasetID dataset = 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 = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( @@ -2626,26 +8034,60 @@ const char* GetResponse::_InternalParse(const char* begin, const char* end, void } // 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 GetResponse::MergePartialFromCodedStream( +bool Tag::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) + // @@protoc_insertion_point(parse_start:datacatalog.Tag) 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; + // 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, + "datacatalog.Tag.name")); + } else { + goto handle_unusual; + } + break; + } + + // string artifact_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_artifact_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Tag.artifact_id")); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.DatasetID dataset = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact())); + input, mutable_dataset())); } else { goto handle_unusual; } @@ -2664,57 +8106,99 @@ bool GetResponse::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:pb.lyft.datacatalog.GetResponse) + // @@protoc_insertion_point(parse_success:datacatalog.Tag) return true; failure: - // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.GetResponse) + // @@protoc_insertion_point(parse_failure:datacatalog.Tag) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GetResponse::SerializeWithCachedSizes( +void Tag::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.GetResponse) + // @@protoc_insertion_point(serialize_start:datacatalog.Tag) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .pb.lyft.datacatalog.Artifact artifact = 1; - if (this->has_artifact()) { + // 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, + "datacatalog.Tag.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // string artifact_id = 2; + if (this->artifact_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Tag.artifact_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->artifact_id(), output); + } + + // .datacatalog.DatasetID dataset = 3; + if (this->has_dataset()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::artifact(this), output); + 3, HasBitSetters::dataset(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) + // @@protoc_insertion_point(serialize_end:datacatalog.Tag) } -::google::protobuf::uint8* GetResponse::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* Tag::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.GetResponse) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Tag) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .pb.lyft.datacatalog.Artifact artifact = 1; - if (this->has_artifact()) { + // 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, + "datacatalog.Tag.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // string artifact_id = 2; + if (this->artifact_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Tag.artifact_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->artifact_id(), target); + } + + // .datacatalog.DatasetID dataset = 3; + if (this->has_dataset()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::artifact(this), target); + 3, HasBitSetters::dataset(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) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.Tag) return target; } -size_t GetResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.GetResponse) +size_t Tag::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.Tag) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -2726,11 +8210,25 @@ size_t GetResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .pb.lyft.datacatalog.Artifact artifact = 1; - if (this->has_artifact()) { + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string artifact_id = 2; + if (this->artifact_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->artifact_id()); + } + + // .datacatalog.DatasetID dataset = 3; + if (this->has_dataset()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_); + *dataset_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -2738,62 +8236,74 @@ size_t GetResponse::ByteSizeLong() const { return total_size; } -void GetResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.GetResponse) +void Tag::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Tag) GOOGLE_DCHECK_NE(&from, this); - const GetResponse* source = - ::google::protobuf::DynamicCastToGenerated( + const Tag* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.GetResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Tag) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.GetResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Tag) MergeFrom(*source); } } -void GetResponse::MergeFrom(const GetResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.GetResponse) +void Tag::MergeFrom(const Tag& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Tag) 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.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.artifact_id().size() > 0) { + + artifact_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.artifact_id_); + } + if (from.has_dataset()) { + mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); } } -void GetResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.GetResponse) +void Tag::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Tag) 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) +void Tag::CopyFrom(const Tag& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Tag) if (&from == this) return; Clear(); MergeFrom(from); } -bool GetResponse::IsInitialized() const { +bool Tag::IsInitialized() const { return true; } -void GetResponse::Swap(GetResponse* other) { +void Tag::Swap(Tag* other) { if (other == this) return; InternalSwap(other); } -void GetResponse::InternalSwap(GetResponse* other) { +void Tag::InternalSwap(Tag* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(artifact_, other->artifact_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + artifact_id_.Swap(&other->artifact_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(dataset_, other->dataset_); } -::google::protobuf::Metadata GetResponse::GetMetadata() const { +::google::protobuf::Metadata Tag::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -2801,71 +8311,106 @@ ::google::protobuf::Metadata GetResponse::GetMetadata() const { // =================================================================== -void IntFilter::InitAsDefaultInstance() { +Metadata_KeyMapEntry_DoNotUse::Metadata_KeyMapEntry_DoNotUse() {} +Metadata_KeyMapEntry_DoNotUse::Metadata_KeyMapEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void Metadata_KeyMapEntry_DoNotUse::MergeFrom(const Metadata_KeyMapEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata Metadata_KeyMapEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[20]; +} +void Metadata_KeyMapEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Metadata_KeyMapEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + Metadata_KeyMapEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Metadata.KeyMapEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Metadata.KeyMapEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void Metadata::InitAsDefaultInstance() { } -class IntFilter::HasBitSetters { +class Metadata::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int IntFilter::kValueFieldNumber; -const int IntFilter::kOperatorFieldNumber; +const int Metadata::kKeyMapFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -IntFilter::IntFilter() +Metadata::Metadata() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.IntFilter) + // @@protoc_insertion_point(constructor:datacatalog.Metadata) } -IntFilter::IntFilter(const IntFilter& from) +Metadata::Metadata(const Metadata& 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) + key_map_.MergeFrom(from.key_map_); + // @@protoc_insertion_point(copy_constructor:datacatalog.Metadata) } -void IntFilter::SharedCtor() { - ::memset(&value_, 0, static_cast( - reinterpret_cast(&operator__) - - reinterpret_cast(&value_)) + sizeof(operator__)); +void Metadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); } -IntFilter::~IntFilter() { - // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.IntFilter) +Metadata::~Metadata() { + // @@protoc_insertion_point(destructor:datacatalog.Metadata) SharedDtor(); } -void IntFilter::SharedDtor() { +void Metadata::SharedDtor() { } -void IntFilter::SetCachedSize(int size) const { +void Metadata::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); +const Metadata& Metadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void IntFilter::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.IntFilter) +void Metadata::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.Metadata) ::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__)); + key_map_.Clear(); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* IntFilter::_InternalParse(const char* begin, const char* end, void* object, +const char* Metadata::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -2875,19 +8420,23 @@ const char* IntFilter::_InternalParse(const char* begin, const char* end, void* ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // int64 value = 1; + // map key_map = 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); + 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 = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::datacatalog::Metadata_KeyMapEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->key_map_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); break; } default: { @@ -2905,39 +8454,41 @@ const char* IntFilter::_InternalParse(const char* begin, const char* end, void* } // 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 IntFilter::MergePartialFromCodedStream( +bool Metadata::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) + // @@protoc_insertion_point(parse_start:datacatalog.Metadata) 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; + // map key_map = 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)); + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + Metadata_KeyMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + Metadata_KeyMapEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&key_map_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Metadata.KeyMapEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Metadata.KeyMapEntry.value")); } else { goto handle_unusual; } @@ -2956,66 +8507,142 @@ bool IntFilter::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:pb.lyft.datacatalog.IntFilter) + // @@protoc_insertion_point(parse_success:datacatalog.Metadata) return true; failure: - // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.IntFilter) + // @@protoc_insertion_point(parse_failure:datacatalog.Metadata) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void IntFilter::SerializeWithCachedSizes( +void Metadata::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.IntFilter) + // @@protoc_insertion_point(serialize_start:datacatalog.Metadata) ::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); + // map key_map = 1; + if (!this->key_map().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Metadata.KeyMapEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Metadata.KeyMapEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->key_map().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->key_map().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->key_map().begin(); + it != this->key_map().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(key_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->key_map().begin(); + it != this->key_map().end(); ++it) { + entry.reset(key_map_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*it)); + } + } } 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) + // @@protoc_insertion_point(serialize_end:datacatalog.Metadata) } -::google::protobuf::uint8* IntFilter::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* Metadata::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.IntFilter) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Metadata) ::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); + // map key_map = 1; + if (!this->key_map().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Metadata.KeyMapEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Metadata.KeyMapEntry.value"); + } + }; + + if (false && + this->key_map().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->key_map().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->key_map().begin(); + it != this->key_map().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(key_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->key_map().begin(); + it != this->key_map().end(); ++it) { + entry.reset(key_map_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*it)); + } + } } 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) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.Metadata) return target; } -size_t IntFilter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.IntFilter) +size_t Metadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.Metadata) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -3027,17 +8654,18 @@ size_t IntFilter::ByteSizeLong() const { // 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_()); + // map key_map = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->key_map_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->key_map().begin(); + it != this->key_map().end(); ++it) { + entry.reset(key_map_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -3045,66 +8673,60 @@ size_t IntFilter::ByteSizeLong() const { return total_size; } -void IntFilter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.IntFilter) +void Metadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Metadata) GOOGLE_DCHECK_NE(&from, this); - const IntFilter* source = - ::google::protobuf::DynamicCastToGenerated( + const Metadata* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.IntFilter) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Metadata) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.IntFilter) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Metadata) MergeFrom(*source); } } -void IntFilter::MergeFrom(const IntFilter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.IntFilter) +void Metadata::MergeFrom(const Metadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Metadata) 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_()); - } + key_map_.MergeFrom(from.key_map_); } -void IntFilter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.IntFilter) +void Metadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Metadata) 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) +void Metadata::CopyFrom(const Metadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Metadata) if (&from == this) return; Clear(); MergeFrom(from); } -bool IntFilter::IsInitialized() const { +bool Metadata::IsInitialized() const { return true; } -void IntFilter::Swap(IntFilter* other) { +void Metadata::Swap(Metadata* other) { if (other == this) return; InternalSwap(other); } -void IntFilter::InternalSwap(IntFilter* other) { +void Metadata::InternalSwap(Metadata* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(value_, other->value_); - swap(operator__, other->operator__); + key_map_.Swap(&other->key_map_); } -::google::protobuf::Metadata IntFilter::GetMetadata() const { +::google::protobuf::Metadata Metadata::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -3112,71 +8734,65 @@ ::google::protobuf::Metadata IntFilter::GetMetadata() const { // =================================================================== -void IntRangeFilter::InitAsDefaultInstance() { +void FilterExpression::InitAsDefaultInstance() { } -class IntRangeFilter::HasBitSetters { +class FilterExpression::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int IntRangeFilter::kMinFieldNumber; -const int IntRangeFilter::kMaxFieldNumber; +const int FilterExpression::kFiltersFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -IntRangeFilter::IntRangeFilter() +FilterExpression::FilterExpression() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.IntRangeFilter) + // @@protoc_insertion_point(constructor:datacatalog.FilterExpression) } -IntRangeFilter::IntRangeFilter(const IntRangeFilter& from) +FilterExpression::FilterExpression(const FilterExpression& from) : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { + _internal_metadata_(nullptr), + filters_(from.filters_) { _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) + // @@protoc_insertion_point(copy_constructor:datacatalog.FilterExpression) } -void IntRangeFilter::SharedCtor() { - ::memset(&min_, 0, static_cast( - reinterpret_cast(&max_) - - reinterpret_cast(&min_)) + sizeof(max_)); +void FilterExpression::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); } -IntRangeFilter::~IntRangeFilter() { - // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.IntRangeFilter) +FilterExpression::~FilterExpression() { + // @@protoc_insertion_point(destructor:datacatalog.FilterExpression) SharedDtor(); } -void IntRangeFilter::SharedDtor() { +void FilterExpression::SharedDtor() { } -void IntRangeFilter::SetCachedSize(int size) const { +void FilterExpression::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); +const FilterExpression& FilterExpression::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void IntRangeFilter::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.IntRangeFilter) +void FilterExpression::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.FilterExpression) ::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_)); + filters_.Clear(); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* IntRangeFilter::_InternalParse(const char* begin, const char* end, void* object, +const char* FilterExpression::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -3186,18 +8802,20 @@ const char* IntRangeFilter::_InternalParse(const char* begin, const char* end, v ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // int64 min = 1; + // repeated .datacatalog.SinglePropertyFilter filters = 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); + 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 = ::datacatalog::SinglePropertyFilter::_InternalParse; + object = msg->add_filters(); + 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: { @@ -3215,38 +8833,26 @@ const char* IntRangeFilter::_InternalParse(const char* begin, const char* end, v } // 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 IntRangeFilter::MergePartialFromCodedStream( +bool FilterExpression::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) + // @@protoc_insertion_point(parse_start:datacatalog.FilterExpression) 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; + // repeated .datacatalog.SinglePropertyFilter filters = 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_))); + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_filters())); } else { goto handle_unusual; } @@ -3265,64 +8871,61 @@ bool IntRangeFilter::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:pb.lyft.datacatalog.IntRangeFilter) + // @@protoc_insertion_point(parse_success:datacatalog.FilterExpression) return true; failure: - // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.IntRangeFilter) + // @@protoc_insertion_point(parse_failure:datacatalog.FilterExpression) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void IntRangeFilter::SerializeWithCachedSizes( +void FilterExpression::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.IntRangeFilter) + // @@protoc_insertion_point(serialize_start:datacatalog.FilterExpression) ::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); + // repeated .datacatalog.SinglePropertyFilter filters = 1; + for (unsigned int i = 0, + n = static_cast(this->filters_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->filters(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.IntRangeFilter) + // @@protoc_insertion_point(serialize_end:datacatalog.FilterExpression) } -::google::protobuf::uint8* IntRangeFilter::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* FilterExpression::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.IntRangeFilter) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.FilterExpression) ::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); + // repeated .datacatalog.SinglePropertyFilter filters = 1; + for (unsigned int i = 0, + n = static_cast(this->filters_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->filters(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.IntRangeFilter) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.FilterExpression) return target; } -size_t IntRangeFilter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.IntRangeFilter) +size_t FilterExpression::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.FilterExpression) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -3334,18 +8937,15 @@ size_t IntRangeFilter::ByteSizeLong() const { // 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()); + // repeated .datacatalog.SinglePropertyFilter filters = 1; + { + unsigned int count = static_cast(this->filters_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->filters(static_cast(i))); + } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -3353,66 +8953,60 @@ size_t IntRangeFilter::ByteSizeLong() const { return total_size; } -void IntRangeFilter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.IntRangeFilter) +void FilterExpression::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.FilterExpression) GOOGLE_DCHECK_NE(&from, this); - const IntRangeFilter* source = - ::google::protobuf::DynamicCastToGenerated( + const FilterExpression* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.IntRangeFilter) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.FilterExpression) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.IntRangeFilter) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.FilterExpression) MergeFrom(*source); } } -void IntRangeFilter::MergeFrom(const IntRangeFilter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.IntRangeFilter) +void FilterExpression::MergeFrom(const FilterExpression& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.FilterExpression) 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()); - } + filters_.MergeFrom(from.filters_); } -void IntRangeFilter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.IntRangeFilter) +void FilterExpression::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.FilterExpression) 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) +void FilterExpression::CopyFrom(const FilterExpression& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.FilterExpression) if (&from == this) return; Clear(); MergeFrom(from); } -bool IntRangeFilter::IsInitialized() const { +bool FilterExpression::IsInitialized() const { return true; } -void IntRangeFilter::Swap(IntRangeFilter* other) { +void FilterExpression::Swap(FilterExpression* other) { if (other == this) return; InternalSwap(other); } -void IntRangeFilter::InternalSwap(IntRangeFilter* other) { +void FilterExpression::InternalSwap(FilterExpression* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(min_, other->min_); - swap(max_, other->max_); + CastToBase(&filters_)->InternalSwap(CastToBase(&other->filters_)); } -::google::protobuf::Metadata IntRangeFilter::GetMetadata() const { +::google::protobuf::Metadata FilterExpression::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -3420,144 +9014,208 @@ ::google::protobuf::Metadata IntRangeFilter::GetMetadata() const { // =================================================================== -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 { +void SinglePropertyFilter::InitAsDefaultInstance() { + ::datacatalog::_SinglePropertyFilter_default_instance_.tag_filter_ = const_cast< ::datacatalog::TagPropertyFilter*>( + ::datacatalog::TagPropertyFilter::internal_default_instance()); + ::datacatalog::_SinglePropertyFilter_default_instance_.partition_filter_ = const_cast< ::datacatalog::PartitionPropertyFilter*>( + ::datacatalog::PartitionPropertyFilter::internal_default_instance()); + ::datacatalog::_SinglePropertyFilter_default_instance_.artifact_filter_ = const_cast< ::datacatalog::ArtifactPropertyFilter*>( + ::datacatalog::ArtifactPropertyFilter::internal_default_instance()); + ::datacatalog::_SinglePropertyFilter_default_instance_.dataset_filter_ = const_cast< ::datacatalog::DatasetPropertyFilter*>( + ::datacatalog::DatasetPropertyFilter::internal_default_instance()); +} +class SinglePropertyFilter::HasBitSetters { public: - static const ::pb::lyft::datacatalog::IntFilter& val(const IntQueryKey* msg); - static const ::pb::lyft::datacatalog::IntRangeFilter& range(const IntQueryKey* msg); + static const ::datacatalog::TagPropertyFilter& tag_filter(const SinglePropertyFilter* msg); + static const ::datacatalog::PartitionPropertyFilter& partition_filter(const SinglePropertyFilter* msg); + static const ::datacatalog::ArtifactPropertyFilter& artifact_filter(const SinglePropertyFilter* msg); + static const ::datacatalog::DatasetPropertyFilter& dataset_filter(const SinglePropertyFilter* msg); }; -const ::pb::lyft::datacatalog::IntFilter& -IntQueryKey::HasBitSetters::val(const IntQueryKey* msg) { - return *msg->filter_.val_; +const ::datacatalog::TagPropertyFilter& +SinglePropertyFilter::HasBitSetters::tag_filter(const SinglePropertyFilter* msg) { + return *msg->property_filter_.tag_filter_; +} +const ::datacatalog::PartitionPropertyFilter& +SinglePropertyFilter::HasBitSetters::partition_filter(const SinglePropertyFilter* msg) { + return *msg->property_filter_.partition_filter_; +} +const ::datacatalog::ArtifactPropertyFilter& +SinglePropertyFilter::HasBitSetters::artifact_filter(const SinglePropertyFilter* msg) { + return *msg->property_filter_.artifact_filter_; } -const ::pb::lyft::datacatalog::IntRangeFilter& -IntQueryKey::HasBitSetters::range(const IntQueryKey* msg) { - return *msg->filter_.range_; +const ::datacatalog::DatasetPropertyFilter& +SinglePropertyFilter::HasBitSetters::dataset_filter(const SinglePropertyFilter* msg) { + return *msg->property_filter_.dataset_filter_; +} +void SinglePropertyFilter::set_allocated_tag_filter(::datacatalog::TagPropertyFilter* tag_filter) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_property_filter(); + if (tag_filter) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + tag_filter = ::google::protobuf::internal::GetOwnedMessage( + message_arena, tag_filter, submessage_arena); + } + set_has_tag_filter(); + property_filter_.tag_filter_ = tag_filter; + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.SinglePropertyFilter.tag_filter) +} +void SinglePropertyFilter::set_allocated_partition_filter(::datacatalog::PartitionPropertyFilter* partition_filter) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_property_filter(); + if (partition_filter) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + partition_filter = ::google::protobuf::internal::GetOwnedMessage( + message_arena, partition_filter, submessage_arena); + } + set_has_partition_filter(); + property_filter_.partition_filter_ = partition_filter; + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.SinglePropertyFilter.partition_filter) } -void IntQueryKey::set_allocated_val(::pb::lyft::datacatalog::IntFilter* val) { +void SinglePropertyFilter::set_allocated_artifact_filter(::datacatalog::ArtifactPropertyFilter* artifact_filter) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_filter(); - if (val) { + clear_property_filter(); + if (artifact_filter) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - val = ::google::protobuf::internal::GetOwnedMessage( - message_arena, val, submessage_arena); + artifact_filter = ::google::protobuf::internal::GetOwnedMessage( + message_arena, artifact_filter, submessage_arena); } - set_has_val(); - filter_.val_ = val; + set_has_artifact_filter(); + property_filter_.artifact_filter_ = artifact_filter; } - // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.IntQueryKey.val) + // @@protoc_insertion_point(field_set_allocated:datacatalog.SinglePropertyFilter.artifact_filter) } -void IntQueryKey::set_allocated_range(::pb::lyft::datacatalog::IntRangeFilter* range) { +void SinglePropertyFilter::set_allocated_dataset_filter(::datacatalog::DatasetPropertyFilter* dataset_filter) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_filter(); - if (range) { + clear_property_filter(); + if (dataset_filter) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - range = ::google::protobuf::internal::GetOwnedMessage( - message_arena, range, submessage_arena); + dataset_filter = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset_filter, submessage_arena); } - set_has_range(); - filter_.range_ = range; + set_has_dataset_filter(); + property_filter_.dataset_filter_ = dataset_filter; } - // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.IntQueryKey.range) + // @@protoc_insertion_point(field_set_allocated:datacatalog.SinglePropertyFilter.dataset_filter) } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int IntQueryKey::kValFieldNumber; -const int IntQueryKey::kRangeFieldNumber; +const int SinglePropertyFilter::kTagFilterFieldNumber; +const int SinglePropertyFilter::kPartitionFilterFieldNumber; +const int SinglePropertyFilter::kArtifactFilterFieldNumber; +const int SinglePropertyFilter::kDatasetFilterFieldNumber; +const int SinglePropertyFilter::kOperatorFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -IntQueryKey::IntQueryKey() +SinglePropertyFilter::SinglePropertyFilter() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.IntQueryKey) + // @@protoc_insertion_point(constructor:datacatalog.SinglePropertyFilter) } -IntQueryKey::IntQueryKey(const IntQueryKey& from) +SinglePropertyFilter::SinglePropertyFilter(const SinglePropertyFilter& 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()); + operator__ = from.operator__; + clear_has_property_filter(); + switch (from.property_filter_case()) { + case kTagFilter: { + mutable_tag_filter()->::datacatalog::TagPropertyFilter::MergeFrom(from.tag_filter()); + break; + } + case kPartitionFilter: { + mutable_partition_filter()->::datacatalog::PartitionPropertyFilter::MergeFrom(from.partition_filter()); + break; + } + case kArtifactFilter: { + mutable_artifact_filter()->::datacatalog::ArtifactPropertyFilter::MergeFrom(from.artifact_filter()); break; } - case kRange: { - mutable_range()->::pb::lyft::datacatalog::IntRangeFilter::MergeFrom(from.range()); + case kDatasetFilter: { + mutable_dataset_filter()->::datacatalog::DatasetPropertyFilter::MergeFrom(from.dataset_filter()); break; } - case FILTER_NOT_SET: { + case PROPERTY_FILTER_NOT_SET: { break; } } - // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.IntQueryKey) + // @@protoc_insertion_point(copy_constructor:datacatalog.SinglePropertyFilter) } -void IntQueryKey::SharedCtor() { +void SinglePropertyFilter::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_IntQueryKey_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - clear_has_filter(); + &scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + operator__ = 0; + clear_has_property_filter(); } -IntQueryKey::~IntQueryKey() { - // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.IntQueryKey) +SinglePropertyFilter::~SinglePropertyFilter() { + // @@protoc_insertion_point(destructor:datacatalog.SinglePropertyFilter) SharedDtor(); } -void IntQueryKey::SharedDtor() { - if (has_filter()) { - clear_filter(); +void SinglePropertyFilter::SharedDtor() { + if (has_property_filter()) { + clear_property_filter(); } } -void IntQueryKey::SetCachedSize(int size) const { +void SinglePropertyFilter::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); +const SinglePropertyFilter& SinglePropertyFilter::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SinglePropertyFilter_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_; +void SinglePropertyFilter::clear_property_filter() { +// @@protoc_insertion_point(one_of_clear_start:datacatalog.SinglePropertyFilter) + switch (property_filter_case()) { + case kTagFilter: { + delete property_filter_.tag_filter_; break; } - case kRange: { - delete filter_.range_; + case kPartitionFilter: { + delete property_filter_.partition_filter_; break; } - case FILTER_NOT_SET: { + case kArtifactFilter: { + delete property_filter_.artifact_filter_; + break; + } + case kDatasetFilter: { + delete property_filter_.dataset_filter_; + break; + } + case PROPERTY_FILTER_NOT_SET: { break; } } - _oneof_case_[0] = FILTER_NOT_SET; + _oneof_case_[0] = PROPERTY_FILTER_NOT_SET; } -void IntQueryKey::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.IntQueryKey) +void SinglePropertyFilter::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.SinglePropertyFilter) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - clear_filter(); + operator__ = 0; + clear_property_filter(); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* IntQueryKey::_InternalParse(const char* begin, const char* end, void* object, +const char* SinglePropertyFilter::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -3567,32 +9225,66 @@ const char* IntQueryKey::_InternalParse(const char* begin, const char* end, void ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .pb.lyft.datacatalog.IntFilter val = 1; + // .datacatalog.TagPropertyFilter tag_filter = 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(); + parser_till_end = ::datacatalog::TagPropertyFilter::_InternalParse; + object = msg->mutable_tag_filter(); 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; + // .datacatalog.PartitionPropertyFilter partition_filter = 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(); + parser_till_end = ::datacatalog::PartitionPropertyFilter::_InternalParse; + object = msg->mutable_partition_filter(); + 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; + } + // .datacatalog.ArtifactPropertyFilter artifact_filter = 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 = ::datacatalog::ArtifactPropertyFilter::_InternalParse; + object = msg->mutable_artifact_filter(); + 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; + } + // .datacatalog.DatasetPropertyFilter dataset_filter = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::DatasetPropertyFilter::_InternalParse; + object = msg->mutable_dataset_filter(); 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; } + // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + case 10: { + if (static_cast<::google::protobuf::uint8>(tag) != 80) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_operator_(static_cast<::datacatalog::SinglePropertyFilter_ComparisonOperator>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -3613,32 +9305,68 @@ const char* IntQueryKey::_InternalParse(const char* begin, const char* end, void {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool IntQueryKey::MergePartialFromCodedStream( +bool SinglePropertyFilter::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) + // @@protoc_insertion_point(parse_start:datacatalog.SinglePropertyFilter) 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; + // .datacatalog.TagPropertyFilter tag_filter = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_val())); + input, mutable_tag_filter())); } else { goto handle_unusual; } break; } - // .pb.lyft.datacatalog.IntRangeFilter range = 2; + // .datacatalog.PartitionPropertyFilter partition_filter = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_range())); + input, mutable_partition_filter())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_artifact_filter())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.DatasetPropertyFilter dataset_filter = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset_filter())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == (80 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_operator_(static_cast< ::datacatalog::SinglePropertyFilter_ComparisonOperator >(value)); } else { goto handle_unusual; } @@ -3657,70 +9385,108 @@ bool IntQueryKey::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:pb.lyft.datacatalog.IntQueryKey) + // @@protoc_insertion_point(parse_success:datacatalog.SinglePropertyFilter) return true; failure: - // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.IntQueryKey) + // @@protoc_insertion_point(parse_failure:datacatalog.SinglePropertyFilter) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void IntQueryKey::SerializeWithCachedSizes( +void SinglePropertyFilter::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.IntQueryKey) + // @@protoc_insertion_point(serialize_start:datacatalog.SinglePropertyFilter) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .pb.lyft.datacatalog.IntFilter val = 1; - if (has_val()) { + // .datacatalog.TagPropertyFilter tag_filter = 1; + if (has_tag_filter()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::val(this), output); + 1, HasBitSetters::tag_filter(this), output); } - // .pb.lyft.datacatalog.IntRangeFilter range = 2; - if (has_range()) { + // .datacatalog.PartitionPropertyFilter partition_filter = 2; + if (has_partition_filter()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::range(this), output); + 2, HasBitSetters::partition_filter(this), output); + } + + // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + if (has_artifact_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::artifact_filter(this), output); + } + + // .datacatalog.DatasetPropertyFilter dataset_filter = 4; + if (has_dataset_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::dataset_filter(this), output); + } + + // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + if (this->operator_() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 10, 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.IntQueryKey) + // @@protoc_insertion_point(serialize_end:datacatalog.SinglePropertyFilter) } -::google::protobuf::uint8* IntQueryKey::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* SinglePropertyFilter::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.IntQueryKey) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.SinglePropertyFilter) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .pb.lyft.datacatalog.IntFilter val = 1; - if (has_val()) { + // .datacatalog.TagPropertyFilter tag_filter = 1; + if (has_tag_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::tag_filter(this), target); + } + + // .datacatalog.PartitionPropertyFilter partition_filter = 2; + if (has_partition_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::partition_filter(this), target); + } + + // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + if (has_artifact_filter()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::val(this), target); + 3, HasBitSetters::artifact_filter(this), target); } - // .pb.lyft.datacatalog.IntRangeFilter range = 2; - if (has_range()) { + // .datacatalog.DatasetPropertyFilter dataset_filter = 4; + if (has_dataset_filter()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 2, HasBitSetters::range(this), target); + 4, HasBitSetters::dataset_filter(this), target); + } + + // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + if (this->operator_() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 10, 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.IntQueryKey) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.SinglePropertyFilter) return target; } -size_t IntQueryKey::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.IntQueryKey) +size_t SinglePropertyFilter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.SinglePropertyFilter) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -3732,22 +9498,42 @@ size_t IntQueryKey::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - switch (filter_case()) { - // .pb.lyft.datacatalog.IntFilter val = 1; - case kVal: { + // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + if (this->operator_() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->operator_()); + } + + switch (property_filter_case()) { + // .datacatalog.TagPropertyFilter tag_filter = 1; + case kTagFilter: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *property_filter_.tag_filter_); + break; + } + // .datacatalog.PartitionPropertyFilter partition_filter = 2; + case kPartitionFilter: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *property_filter_.partition_filter_); + break; + } + // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + case kArtifactFilter: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *filter_.val_); + *property_filter_.artifact_filter_); break; } - // .pb.lyft.datacatalog.IntRangeFilter range = 2; - case kRange: { + // .datacatalog.DatasetPropertyFilter dataset_filter = 4; + case kDatasetFilter: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - *filter_.range_); + *property_filter_.dataset_filter_); break; } - case FILTER_NOT_SET: { + case PROPERTY_FILTER_NOT_SET: { break; } } @@ -3756,73 +9542,85 @@ size_t IntQueryKey::ByteSizeLong() const { return total_size; } -void IntQueryKey::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.IntQueryKey) +void SinglePropertyFilter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.SinglePropertyFilter) GOOGLE_DCHECK_NE(&from, this); - const IntQueryKey* source = - ::google::protobuf::DynamicCastToGenerated( + const SinglePropertyFilter* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.IntQueryKey) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.SinglePropertyFilter) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.IntQueryKey) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.SinglePropertyFilter) MergeFrom(*source); } } -void IntQueryKey::MergeFrom(const IntQueryKey& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.IntQueryKey) +void SinglePropertyFilter::MergeFrom(const SinglePropertyFilter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.SinglePropertyFilter) 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()); + if (from.operator_() != 0) { + set_operator_(from.operator_()); + } + switch (from.property_filter_case()) { + case kTagFilter: { + mutable_tag_filter()->::datacatalog::TagPropertyFilter::MergeFrom(from.tag_filter()); + break; + } + case kPartitionFilter: { + mutable_partition_filter()->::datacatalog::PartitionPropertyFilter::MergeFrom(from.partition_filter()); break; } - case kRange: { - mutable_range()->::pb::lyft::datacatalog::IntRangeFilter::MergeFrom(from.range()); + case kArtifactFilter: { + mutable_artifact_filter()->::datacatalog::ArtifactPropertyFilter::MergeFrom(from.artifact_filter()); break; } - case FILTER_NOT_SET: { + case kDatasetFilter: { + mutable_dataset_filter()->::datacatalog::DatasetPropertyFilter::MergeFrom(from.dataset_filter()); + break; + } + case PROPERTY_FILTER_NOT_SET: { break; } } } -void IntQueryKey::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.IntQueryKey) +void SinglePropertyFilter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.SinglePropertyFilter) 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) +void SinglePropertyFilter::CopyFrom(const SinglePropertyFilter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.SinglePropertyFilter) if (&from == this) return; Clear(); MergeFrom(from); } -bool IntQueryKey::IsInitialized() const { +bool SinglePropertyFilter::IsInitialized() const { return true; } -void IntQueryKey::Swap(IntQueryKey* other) { +void SinglePropertyFilter::Swap(SinglePropertyFilter* other) { if (other == this) return; InternalSwap(other); } -void IntQueryKey::InternalSwap(IntQueryKey* other) { +void SinglePropertyFilter::InternalSwap(SinglePropertyFilter* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(filter_, other->filter_); + swap(operator__, other->operator__); + swap(property_filter_, other->property_filter_); swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata IntQueryKey::GetMetadata() const { +::google::protobuf::Metadata SinglePropertyFilter::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -3830,110 +9628,95 @@ ::google::protobuf::Metadata IntQueryKey::GetMetadata() const { // =================================================================== -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()); +void ArtifactPropertyFilter::InitAsDefaultInstance() { + ::datacatalog::_ArtifactPropertyFilter_default_instance_.artifact_id_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -class QueryRequest::HasBitSetters { +class ArtifactPropertyFilter::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; +const int ArtifactPropertyFilter::kArtifactIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -QueryRequest::QueryRequest() +ArtifactPropertyFilter::ArtifactPropertyFilter() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.QueryRequest) + // @@protoc_insertion_point(constructor:datacatalog.ArtifactPropertyFilter) } -QueryRequest::QueryRequest(const QueryRequest& from) +ArtifactPropertyFilter::ArtifactPropertyFilter(const ArtifactPropertyFilter& 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; + clear_has_property(); + switch (from.property_case()) { + case kArtifactId: { + set_artifact_id(from.artifact_id()); + break; + } + case PROPERTY_NOT_SET: { + break; + } } - created_at_ = from.created_at_; - // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.QueryRequest) + // @@protoc_insertion_point(copy_constructor:datacatalog.ArtifactPropertyFilter) } -void QueryRequest::SharedCtor() { +void ArtifactPropertyFilter::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_)); + &scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + clear_has_property(); } -QueryRequest::~QueryRequest() { - // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.QueryRequest) +ArtifactPropertyFilter::~ArtifactPropertyFilter() { + // @@protoc_insertion_point(destructor:datacatalog.ArtifactPropertyFilter) 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 ArtifactPropertyFilter::SharedDtor() { + if (has_property()) { + clear_property(); + } } -void QueryRequest::SetCachedSize(int size) const { +void ArtifactPropertyFilter::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); +const ArtifactPropertyFilter& ArtifactPropertyFilter::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void QueryRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.QueryRequest) +void ArtifactPropertyFilter::clear_property() { +// @@protoc_insertion_point(one_of_clear_start:datacatalog.ArtifactPropertyFilter) + switch (property_case()) { + case kArtifactId: { + property_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + _oneof_case_[0] = PROPERTY_NOT_SET; +} + + +void ArtifactPropertyFilter::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ArtifactPropertyFilter) ::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); + clear_property(); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* QueryRequest::_InternalParse(const char* begin, const char* end, void* object, +const char* ArtifactPropertyFilter::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -3943,65 +9726,13 @@ const char* QueryRequest::_InternalParse(const char* begin, const char* end, voi ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string name = 1; + // string artifact_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); - 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(); + ctx->extra_parse_data().SetFieldName("datacatalog.ArtifactPropertyFilter.artifact_id"); + object = msg->mutable_artifact_id(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -4035,79 +9766,25 @@ const char* QueryRequest::_InternalParse(const char* begin, const char* end, voi {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool QueryRequest::MergePartialFromCodedStream( +bool ArtifactPropertyFilter::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) + // @@protoc_insertion_point(parse_start:datacatalog.ArtifactPropertyFilter) 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; + // string artifact_id = 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())); + input, this->mutable_artifact_id())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reference_id().data(), static_cast(this->reference_id().length()), + this->artifact_id().data(), static_cast(this->artifact_id().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.lyft.datacatalog.QueryRequest.reference_id")); + "datacatalog.ArtifactPropertyFilter.artifact_id")); } else { goto handle_unusual; } @@ -4126,130 +9803,65 @@ bool QueryRequest::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:pb.lyft.datacatalog.QueryRequest) + // @@protoc_insertion_point(parse_success:datacatalog.ArtifactPropertyFilter) return true; failure: - // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.QueryRequest) + // @@protoc_insertion_point(parse_failure:datacatalog.ArtifactPropertyFilter) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void QueryRequest::SerializeWithCachedSizes( +void ArtifactPropertyFilter::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.QueryRequest) + // @@protoc_insertion_point(serialize_start:datacatalog.ArtifactPropertyFilter) ::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) { + // string artifact_id = 1; + if (has_artifact_id()) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reference_id().data(), static_cast(this->reference_id().length()), + this->artifact_id().data(), static_cast(this->artifact_id().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.QueryRequest.reference_id"); + "datacatalog.ArtifactPropertyFilter.artifact_id"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->reference_id(), output); + 1, this->artifact_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) + // @@protoc_insertion_point(serialize_end:datacatalog.ArtifactPropertyFilter) } -::google::protobuf::uint8* QueryRequest::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* ArtifactPropertyFilter::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.QueryRequest) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ArtifactPropertyFilter) ::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) { + // string artifact_id = 1; + if (has_artifact_id()) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reference_id().data(), static_cast(this->reference_id().length()), + this->artifact_id().data(), static_cast(this->artifact_id().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.QueryRequest.reference_id"); + "datacatalog.ArtifactPropertyFilter.artifact_id"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->reference_id(), target); + 1, this->artifact_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) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ArtifactPropertyFilter) return target; } -size_t QueryRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.QueryRequest) +size_t ArtifactPropertyFilter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ArtifactPropertyFilter) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -4261,124 +9873,86 @@ size_t QueryRequest::ByteSizeLong() const { // 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()); + switch (property_case()) { + // string artifact_id = 1; + case kArtifactId: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->artifact_id()); + break; + } + case PROPERTY_NOT_SET: { + break; + } } - 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) +void ArtifactPropertyFilter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ArtifactPropertyFilter) GOOGLE_DCHECK_NE(&from, this); - const QueryRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const ArtifactPropertyFilter* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.QueryRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ArtifactPropertyFilter) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.QueryRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ArtifactPropertyFilter) MergeFrom(*source); } } -void QueryRequest::MergeFrom(const QueryRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.QueryRequest) +void ArtifactPropertyFilter::MergeFrom(const ArtifactPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ArtifactPropertyFilter) 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()); + switch (from.property_case()) { + case kArtifactId: { + set_artifact_id(from.artifact_id()); + break; + } + case PROPERTY_NOT_SET: { + break; + } } } -void QueryRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.QueryRequest) +void ArtifactPropertyFilter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ArtifactPropertyFilter) 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) +void ArtifactPropertyFilter::CopyFrom(const ArtifactPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ArtifactPropertyFilter) if (&from == this) return; Clear(); MergeFrom(from); } -bool QueryRequest::IsInitialized() const { +bool ArtifactPropertyFilter::IsInitialized() const { return true; } -void QueryRequest::Swap(QueryRequest* other) { +void ArtifactPropertyFilter::Swap(ArtifactPropertyFilter* other) { if (other == this) return; InternalSwap(other); } -void QueryRequest::InternalSwap(QueryRequest* other) { +void ArtifactPropertyFilter::InternalSwap(ArtifactPropertyFilter* 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_); + swap(property_, other->property_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata QueryRequest::GetMetadata() const { +::google::protobuf::Metadata ArtifactPropertyFilter::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -4386,65 +9960,95 @@ ::google::protobuf::Metadata QueryRequest::GetMetadata() const { // =================================================================== -void QueryResponse::InitAsDefaultInstance() { +void TagPropertyFilter::InitAsDefaultInstance() { + ::datacatalog::_TagPropertyFilter_default_instance_.tag_name_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -class QueryResponse::HasBitSetters { +class TagPropertyFilter::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int QueryResponse::kArtifactFieldNumber; +const int TagPropertyFilter::kTagNameFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -QueryResponse::QueryResponse() +TagPropertyFilter::TagPropertyFilter() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.QueryResponse) + // @@protoc_insertion_point(constructor:datacatalog.TagPropertyFilter) } -QueryResponse::QueryResponse(const QueryResponse& from) +TagPropertyFilter::TagPropertyFilter(const TagPropertyFilter& from) : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - artifact_(from.artifact_) { + _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.QueryResponse) + clear_has_property(); + switch (from.property_case()) { + case kTagName: { + set_tag_name(from.tag_name()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:datacatalog.TagPropertyFilter) } -void QueryResponse::SharedCtor() { +void TagPropertyFilter::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_QueryResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + &scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + clear_has_property(); } -QueryResponse::~QueryResponse() { - // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.QueryResponse) +TagPropertyFilter::~TagPropertyFilter() { + // @@protoc_insertion_point(destructor:datacatalog.TagPropertyFilter) SharedDtor(); } -void QueryResponse::SharedDtor() { +void TagPropertyFilter::SharedDtor() { + if (has_property()) { + clear_property(); + } } -void QueryResponse::SetCachedSize(int size) const { +void TagPropertyFilter::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); +const TagPropertyFilter& TagPropertyFilter::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void QueryResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.QueryResponse) +void TagPropertyFilter::clear_property() { +// @@protoc_insertion_point(one_of_clear_start:datacatalog.TagPropertyFilter) + switch (property_case()) { + case kTagName: { + property_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + _oneof_case_[0] = PROPERTY_NOT_SET; +} + + +void TagPropertyFilter::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.TagPropertyFilter) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - artifact_.Clear(); + clear_property(); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* QueryResponse::_InternalParse(const char* begin, const char* end, void* object, +const char* TagPropertyFilter::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -4454,20 +10058,20 @@ const char* QueryResponse::_InternalParse(const char* begin, const char* end, vo ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // repeated .pb.lyft.datacatalog.Artifact artifact = 1; + // string tag_name = 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)); + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.TagPropertyFilter.tag_name"); + object = msg->mutable_tag_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; } default: { @@ -4485,26 +10089,34 @@ const char* QueryResponse::_InternalParse(const char* begin, const char* end, vo } // 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 QueryResponse::MergePartialFromCodedStream( +bool TagPropertyFilter::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) + // @@protoc_insertion_point(parse_start:datacatalog.TagPropertyFilter) 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; + // string tag_name = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_artifact())); + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_tag_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.TagPropertyFilter.tag_name")); } else { goto handle_unusual; } @@ -4523,61 +10135,65 @@ bool QueryResponse::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:pb.lyft.datacatalog.QueryResponse) + // @@protoc_insertion_point(parse_success:datacatalog.TagPropertyFilter) return true; failure: - // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.QueryResponse) + // @@protoc_insertion_point(parse_failure:datacatalog.TagPropertyFilter) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void QueryResponse::SerializeWithCachedSizes( +void TagPropertyFilter::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.QueryResponse) + // @@protoc_insertion_point(serialize_start:datacatalog.TagPropertyFilter) ::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); + // string tag_name = 1; + if (has_tag_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.TagPropertyFilter.tag_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->tag_name(), 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) + // @@protoc_insertion_point(serialize_end:datacatalog.TagPropertyFilter) } -::google::protobuf::uint8* QueryResponse::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* TagPropertyFilter::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.QueryResponse) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.TagPropertyFilter) ::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); + // string tag_name = 1; + if (has_tag_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.TagPropertyFilter.tag_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->tag_name(), 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) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.TagPropertyFilter) return target; } -size_t QueryResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.QueryResponse) +size_t TagPropertyFilter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.TagPropertyFilter) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -4589,76 +10205,86 @@ size_t QueryResponse::ByteSizeLong() const { // 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))); + switch (property_case()) { + // string tag_name = 1; + case kTagName: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->tag_name()); + break; + } + case PROPERTY_NOT_SET: { + break; } } - 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) +void TagPropertyFilter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.TagPropertyFilter) GOOGLE_DCHECK_NE(&from, this); - const QueryResponse* source = - ::google::protobuf::DynamicCastToGenerated( + const TagPropertyFilter* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.QueryResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.TagPropertyFilter) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.QueryResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.TagPropertyFilter) MergeFrom(*source); } } -void QueryResponse::MergeFrom(const QueryResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.QueryResponse) +void TagPropertyFilter::MergeFrom(const TagPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.TagPropertyFilter) 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_); + switch (from.property_case()) { + case kTagName: { + set_tag_name(from.tag_name()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } } -void QueryResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.QueryResponse) +void TagPropertyFilter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.TagPropertyFilter) 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) +void TagPropertyFilter::CopyFrom(const TagPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.TagPropertyFilter) if (&from == this) return; Clear(); MergeFrom(from); } -bool QueryResponse::IsInitialized() const { +bool TagPropertyFilter::IsInitialized() const { return true; } -void QueryResponse::Swap(QueryResponse* other) { +void TagPropertyFilter::Swap(TagPropertyFilter* other) { if (other == this) return; InternalSwap(other); } -void QueryResponse::InternalSwap(QueryResponse* other) { +void TagPropertyFilter::InternalSwap(TagPropertyFilter* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&artifact_)->InternalSwap(CastToBase(&other->artifact_)); + swap(property_, other->property_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata QueryResponse::GetMetadata() const { +::google::protobuf::Metadata TagPropertyFilter::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -4666,97 +10292,114 @@ ::google::protobuf::Metadata QueryResponse::GetMetadata() const { // =================================================================== -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()); +void PartitionPropertyFilter::InitAsDefaultInstance() { + ::datacatalog::_PartitionPropertyFilter_default_instance_.key_val_ = const_cast< ::datacatalog::KeyValuePair*>( + ::datacatalog::KeyValuePair::internal_default_instance()); } -class CreateRequest::HasBitSetters { +class PartitionPropertyFilter::HasBitSetters { public: - static const ::pb::lyft::datacatalog::ArtifactId& ref(const CreateRequest* msg); + static const ::datacatalog::KeyValuePair& key_val(const PartitionPropertyFilter* msg); }; -const ::pb::lyft::datacatalog::ArtifactId& -CreateRequest::HasBitSetters::ref(const CreateRequest* msg) { - return *msg->ref_; +const ::datacatalog::KeyValuePair& +PartitionPropertyFilter::HasBitSetters::key_val(const PartitionPropertyFilter* msg) { + return *msg->property_.key_val_; +} +void PartitionPropertyFilter::set_allocated_key_val(::datacatalog::KeyValuePair* key_val) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_property(); + if (key_val) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + key_val = ::google::protobuf::internal::GetOwnedMessage( + message_arena, key_val, submessage_arena); + } + set_has_key_val(); + property_.key_val_ = key_val; + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.PartitionPropertyFilter.key_val) } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CreateRequest::kRefFieldNumber; -const int CreateRequest::kReferenceIdFieldNumber; -const int CreateRequest::kRevisionFieldNumber; -const int CreateRequest::kOutputsFieldNumber; +const int PartitionPropertyFilter::kKeyValFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -CreateRequest::CreateRequest() +PartitionPropertyFilter::PartitionPropertyFilter() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.CreateRequest) + // @@protoc_insertion_point(constructor:datacatalog.PartitionPropertyFilter) } -CreateRequest::CreateRequest(const CreateRequest& from) +PartitionPropertyFilter::PartitionPropertyFilter(const PartitionPropertyFilter& from) : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - outputs_(from.outputs_) { + _internal_metadata_(nullptr) { _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; + clear_has_property(); + switch (from.property_case()) { + case kKeyVal: { + mutable_key_val()->::datacatalog::KeyValuePair::MergeFrom(from.key_val()); + break; + } + case PROPERTY_NOT_SET: { + break; + } } - revision_ = from.revision_; - // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.CreateRequest) + // @@protoc_insertion_point(copy_constructor:datacatalog.PartitionPropertyFilter) } -void CreateRequest::SharedCtor() { +void PartitionPropertyFilter::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_)); + &scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + clear_has_property(); } -CreateRequest::~CreateRequest() { - // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.CreateRequest) +PartitionPropertyFilter::~PartitionPropertyFilter() { + // @@protoc_insertion_point(destructor:datacatalog.PartitionPropertyFilter) SharedDtor(); } -void CreateRequest::SharedDtor() { - reference_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete ref_; +void PartitionPropertyFilter::SharedDtor() { + if (has_property()) { + clear_property(); + } } -void CreateRequest::SetCachedSize(int size) const { +void PartitionPropertyFilter::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); +const PartitionPropertyFilter& PartitionPropertyFilter::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void CreateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.CreateRequest) +void PartitionPropertyFilter::clear_property() { +// @@protoc_insertion_point(one_of_clear_start:datacatalog.PartitionPropertyFilter) + switch (property_case()) { + case kKeyVal: { + delete property_.key_val_; + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + _oneof_case_[0] = PROPERTY_NOT_SET; +} + + +void PartitionPropertyFilter::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.PartitionPropertyFilter) ::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); + clear_property(); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateRequest::_InternalParse(const char* begin, const char* end, void* object, +const char* PartitionPropertyFilter::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -4766,58 +10409,19 @@ const char* CreateRequest::_InternalParse(const char* begin, const char* end, vo ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .pb.lyft.datacatalog.ArtifactId ref = 1; + // .datacatalog.KeyValuePair key_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::ArtifactId::_InternalParse; - object = msg->mutable_ref(); + parser_till_end = ::datacatalog::KeyValuePair::_InternalParse; + object = msg->mutable_key_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; } - // 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) { @@ -4828,74 +10432,31 @@ const char* CreateRequest::_InternalParse(const char* begin, const char* end, vo 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; + if (res.second) return ptr; } - - // repeated .pb.lyft.datacatalog.Parameter outputs = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + } // 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 PartitionPropertyFilter::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:datacatalog.PartitionPropertyFilter) + 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)) { + // .datacatalog.KeyValuePair key_val = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_outputs())); + input, mutable_key_val())); } else { goto handle_unusual; } @@ -4914,105 +10475,57 @@ bool CreateRequest::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:pb.lyft.datacatalog.CreateRequest) + // @@protoc_insertion_point(parse_success:datacatalog.PartitionPropertyFilter) return true; failure: - // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.CreateRequest) + // @@protoc_insertion_point(parse_failure:datacatalog.PartitionPropertyFilter) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void CreateRequest::SerializeWithCachedSizes( +void PartitionPropertyFilter::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.CreateRequest) + // @@protoc_insertion_point(serialize_start:datacatalog.PartitionPropertyFilter) ::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++) { + // .datacatalog.KeyValuePair key_val = 1; + if (has_key_val()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, - this->outputs(static_cast(i)), - output); + 1, HasBitSetters::key_val(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.CreateRequest) + // @@protoc_insertion_point(serialize_end:datacatalog.PartitionPropertyFilter) } -::google::protobuf::uint8* CreateRequest::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* PartitionPropertyFilter::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.CreateRequest) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.PartitionPropertyFilter) ::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++) { + // .datacatalog.KeyValuePair key_val = 1; + if (has_key_val()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 4, this->outputs(static_cast(i)), target); + 1, HasBitSetters::key_val(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.CreateRequest) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.PartitionPropertyFilter) return target; } -size_t CreateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.CreateRequest) +size_t PartitionPropertyFilter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.PartitionPropertyFilter) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -5024,111 +10537,86 @@ size_t CreateRequest::ByteSizeLong() const { // 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 += + switch (property_case()) { + // .datacatalog.KeyValuePair key_val = 1; + case kKeyVal: { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( - this->outputs(static_cast(i))); + *property_.key_val_); + break; + } + case PROPERTY_NOT_SET: { + break; } } - - // 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) +void PartitionPropertyFilter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.PartitionPropertyFilter) GOOGLE_DCHECK_NE(&from, this); - const CreateRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const PartitionPropertyFilter* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.CreateRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.PartitionPropertyFilter) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.CreateRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.PartitionPropertyFilter) MergeFrom(*source); } } -void CreateRequest::MergeFrom(const CreateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.CreateRequest) +void PartitionPropertyFilter::MergeFrom(const PartitionPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.PartitionPropertyFilter) 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()); + switch (from.property_case()) { + case kKeyVal: { + mutable_key_val()->::datacatalog::KeyValuePair::MergeFrom(from.key_val()); + break; + } + case PROPERTY_NOT_SET: { + break; + } } } -void CreateRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.CreateRequest) +void PartitionPropertyFilter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.PartitionPropertyFilter) 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) +void PartitionPropertyFilter::CopyFrom(const PartitionPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.PartitionPropertyFilter) if (&from == this) return; Clear(); MergeFrom(from); } -bool CreateRequest::IsInitialized() const { +bool PartitionPropertyFilter::IsInitialized() const { return true; } -void CreateRequest::Swap(CreateRequest* other) { +void PartitionPropertyFilter::Swap(PartitionPropertyFilter* other) { if (other == this) return; InternalSwap(other); } -void CreateRequest::InternalSwap(CreateRequest* other) { +void PartitionPropertyFilter::InternalSwap(PartitionPropertyFilter* 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_); + swap(property_, other->property_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata CreateRequest::GetMetadata() const { +::google::protobuf::Metadata PartitionPropertyFilter::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -5136,86 +10624,78 @@ ::google::protobuf::Metadata CreateRequest::GetMetadata() const { // =================================================================== -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()); +void KeyValuePair::InitAsDefaultInstance() { } -class CreateResponse::HasBitSetters { +class KeyValuePair::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; +const int KeyValuePair::kKeyFieldNumber; +const int KeyValuePair::kValueFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -CreateResponse::CreateResponse() +KeyValuePair::KeyValuePair() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.CreateResponse) + // @@protoc_insertion_point(constructor:datacatalog.KeyValuePair) } -CreateResponse::CreateResponse(const CreateResponse& from) +KeyValuePair::KeyValuePair(const KeyValuePair& 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; + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.key().size() > 0) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.value().size() > 0) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); } - status_ = from.status_; - // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.CreateResponse) + // @@protoc_insertion_point(copy_constructor:datacatalog.KeyValuePair) } -void CreateResponse::SharedCtor() { +void KeyValuePair::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_)); + &scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -CreateResponse::~CreateResponse() { - // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.CreateResponse) +KeyValuePair::~KeyValuePair() { + // @@protoc_insertion_point(destructor:datacatalog.KeyValuePair) SharedDtor(); } -void CreateResponse::SharedDtor() { - if (this != internal_default_instance()) delete artifact_; +void KeyValuePair::SharedDtor() { + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -void CreateResponse::SetCachedSize(int size) const { +void KeyValuePair::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); +const KeyValuePair& KeyValuePair::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void CreateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.CreateResponse) +void KeyValuePair::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.KeyValuePair) ::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; + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateResponse::_InternalParse(const char* begin, const char* end, void* object, +const char* KeyValuePair::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -5225,25 +10705,36 @@ const char* CreateResponse::_InternalParse(const char* begin, const char* end, v ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .pb.lyft.datacatalog.Artifact artifact = 1; + // string key = 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; + ctx->extra_parse_data().SetFieldName("datacatalog.KeyValuePair.key"); + object = msg->mutable_key(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); break; } - // .pb.lyft.datacatalog.CreateResponse.Status status = 2; + // string value = 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)); + 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("datacatalog.KeyValuePair.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: { @@ -5261,40 +10752,49 @@ const char* CreateResponse::_InternalParse(const char* begin, const char* end, v } // 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 CreateResponse::MergePartialFromCodedStream( +bool KeyValuePair::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) + // @@protoc_insertion_point(parse_start:datacatalog.KeyValuePair) 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; + // string key = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact())); + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.KeyValuePair.key")); } else { goto handle_unusual; } break; } - // .pb.lyft.datacatalog.CreateResponse.Status status = 2; + // string value = 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)); + 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, + "datacatalog.KeyValuePair.value")); } else { goto handle_unusual; } @@ -5313,69 +10813,86 @@ bool CreateResponse::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:pb.lyft.datacatalog.CreateResponse) + // @@protoc_insertion_point(parse_success:datacatalog.KeyValuePair) return true; failure: - // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.CreateResponse) + // @@protoc_insertion_point(parse_failure:datacatalog.KeyValuePair) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void CreateResponse::SerializeWithCachedSizes( +void KeyValuePair::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.CreateResponse) + // @@protoc_insertion_point(serialize_start:datacatalog.KeyValuePair) ::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); + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.KeyValuePair.key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->key(), output); } - // .pb.lyft.datacatalog.CreateResponse.Status status = 2; - if (this->status() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->status(), 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, + "datacatalog.KeyValuePair.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.CreateResponse) + // @@protoc_insertion_point(serialize_end:datacatalog.KeyValuePair) } -::google::protobuf::uint8* CreateResponse::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* KeyValuePair::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.CreateResponse) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.KeyValuePair) ::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); + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.KeyValuePair.key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->key(), target); } - // .pb.lyft.datacatalog.CreateResponse.Status status = 2; - if (this->status() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->status(), 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, + "datacatalog.KeyValuePair.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.CreateResponse) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.KeyValuePair) return target; } -size_t CreateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.CreateResponse) +size_t KeyValuePair::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.KeyValuePair) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -5387,17 +10904,18 @@ size_t CreateResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .pb.lyft.datacatalog.Artifact artifact = 1; - if (this->has_artifact()) { + // string key = 1; + if (this->key().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key()); } - // .pb.lyft.datacatalog.CreateResponse.Status status = 2; - if (this->status() != 0) { + // string value = 2; + if (this->value().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->value()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -5405,66 +10923,70 @@ size_t CreateResponse::ByteSizeLong() const { return total_size; } -void CreateResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.CreateResponse) +void KeyValuePair::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.KeyValuePair) GOOGLE_DCHECK_NE(&from, this); - const CreateResponse* source = - ::google::protobuf::DynamicCastToGenerated( + const KeyValuePair* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.CreateResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.KeyValuePair) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.CreateResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.KeyValuePair) MergeFrom(*source); } } -void CreateResponse::MergeFrom(const CreateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.CreateResponse) +void KeyValuePair::MergeFrom(const KeyValuePair& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.KeyValuePair) 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.key().size() > 0) { + + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); } - if (from.status() != 0) { - set_status(from.status()); + if (from.value().size() > 0) { + + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); } } -void CreateResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.CreateResponse) +void KeyValuePair::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.KeyValuePair) 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) +void KeyValuePair::CopyFrom(const KeyValuePair& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.KeyValuePair) if (&from == this) return; Clear(); MergeFrom(from); } -bool CreateResponse::IsInitialized() const { +bool KeyValuePair::IsInitialized() const { return true; } -void CreateResponse::Swap(CreateResponse* other) { +void KeyValuePair::Swap(KeyValuePair* other) { if (other == this) return; InternalSwap(other); } -void CreateResponse::InternalSwap(CreateResponse* other) { +void KeyValuePair::InternalSwap(KeyValuePair* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(artifact_, other->artifact_); - swap(status_, other->status_); + key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); } -::google::protobuf::Metadata CreateResponse::GetMetadata() const { +::google::protobuf::Metadata KeyValuePair::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -5472,81 +10994,128 @@ ::google::protobuf::Metadata CreateResponse::GetMetadata() const { // =================================================================== -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()); +void DatasetPropertyFilter::InitAsDefaultInstance() { + ::datacatalog::_DatasetPropertyFilter_default_instance_.project_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::datacatalog::_DatasetPropertyFilter_default_instance_.name_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::datacatalog::_DatasetPropertyFilter_default_instance_.domain_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::datacatalog::_DatasetPropertyFilter_default_instance_.version_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -class GenerateProvenanceRequest::HasBitSetters { +class DatasetPropertyFilter::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; +const int DatasetPropertyFilter::kProjectFieldNumber; +const int DatasetPropertyFilter::kNameFieldNumber; +const int DatasetPropertyFilter::kDomainFieldNumber; +const int DatasetPropertyFilter::kVersionFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -GenerateProvenanceRequest::GenerateProvenanceRequest() +DatasetPropertyFilter::DatasetPropertyFilter() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.GenerateProvenanceRequest) + // @@protoc_insertion_point(constructor:datacatalog.DatasetPropertyFilter) } -GenerateProvenanceRequest::GenerateProvenanceRequest(const GenerateProvenanceRequest& from) +DatasetPropertyFilter::DatasetPropertyFilter(const DatasetPropertyFilter& 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; + clear_has_property(); + switch (from.property_case()) { + case kProject: { + set_project(from.project()); + break; + } + case kName: { + set_name(from.name()); + break; + } + case kDomain: { + set_domain(from.domain()); + break; + } + case kVersion: { + set_version(from.version()); + break; + } + case PROPERTY_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.GenerateProvenanceRequest) + // @@protoc_insertion_point(copy_constructor:datacatalog.DatasetPropertyFilter) } -void GenerateProvenanceRequest::SharedCtor() { +void DatasetPropertyFilter::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_GenerateProvenanceRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - id_ = nullptr; + &scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + clear_has_property(); } -GenerateProvenanceRequest::~GenerateProvenanceRequest() { - // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.GenerateProvenanceRequest) +DatasetPropertyFilter::~DatasetPropertyFilter() { + // @@protoc_insertion_point(destructor:datacatalog.DatasetPropertyFilter) SharedDtor(); } -void GenerateProvenanceRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; +void DatasetPropertyFilter::SharedDtor() { + if (has_property()) { + clear_property(); + } } -void GenerateProvenanceRequest::SetCachedSize(int size) const { +void DatasetPropertyFilter::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); +const DatasetPropertyFilter& DatasetPropertyFilter::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void GenerateProvenanceRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.GenerateProvenanceRequest) +void DatasetPropertyFilter::clear_property() { +// @@protoc_insertion_point(one_of_clear_start:datacatalog.DatasetPropertyFilter) + switch (property_case()) { + case kProject: { + property_.project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kName: { + property_.name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kDomain: { + property_.domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kVersion: { + property_.version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + _oneof_case_[0] = PROPERTY_NOT_SET; +} + + +void DatasetPropertyFilter::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.DatasetPropertyFilter) ::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; + clear_property(); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GenerateProvenanceRequest::_InternalParse(const char* begin, const char* end, void* object, +const char* DatasetPropertyFilter::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -5556,17 +11125,68 @@ const char* GenerateProvenanceRequest::_InternalParse(const char* begin, const c ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // .pb.lyft.datacatalog.ArtifactId id = 1; + // string project = 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; + ctx->extra_parse_data().SetFieldName("datacatalog.DatasetPropertyFilter.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string 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("datacatalog.DatasetPropertyFilter.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 domain = 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("datacatalog.DatasetPropertyFilter.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string version = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.DatasetPropertyFilter.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; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); break; } default: { @@ -5584,26 +11204,79 @@ const char* GenerateProvenanceRequest::_InternalParse(const char* begin, const c } // switch } // while return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GenerateProvenanceRequest::MergePartialFromCodedStream( +bool DatasetPropertyFilter::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) + // @@protoc_insertion_point(parse_start:datacatalog.DatasetPropertyFilter) 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; + // string project = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_id())); + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.DatasetPropertyFilter.project")); + } 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, + "datacatalog.DatasetPropertyFilter.name")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.DatasetPropertyFilter.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string version = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.DatasetPropertyFilter.version")); } else { goto handle_unusual; } @@ -5622,57 +11295,128 @@ bool GenerateProvenanceRequest::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:pb.lyft.datacatalog.GenerateProvenanceRequest) + // @@protoc_insertion_point(parse_success:datacatalog.DatasetPropertyFilter) return true; failure: - // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.GenerateProvenanceRequest) + // @@protoc_insertion_point(parse_failure:datacatalog.DatasetPropertyFilter) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GenerateProvenanceRequest::SerializeWithCachedSizes( +void DatasetPropertyFilter::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.GenerateProvenanceRequest) + // @@protoc_insertion_point(serialize_start:datacatalog.DatasetPropertyFilter) ::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); + // string project = 1; + if (has_project()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string name = 2; + if (has_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + // string domain = 3; + if (has_domain()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->domain(), output); + } + + // string version = 4; + if (has_version()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->version(), 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) + // @@protoc_insertion_point(serialize_end:datacatalog.DatasetPropertyFilter) } -::google::protobuf::uint8* GenerateProvenanceRequest::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* DatasetPropertyFilter::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.GenerateProvenanceRequest) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.DatasetPropertyFilter) ::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); + // string project = 1; + if (has_project()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string name = 2; + if (has_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + // string domain = 3; + if (has_domain()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->domain(), target); + } + + // string version = 4; + if (has_version()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->version(), 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) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.DatasetPropertyFilter) return target; } -size_t GenerateProvenanceRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.GenerateProvenanceRequest) +size_t DatasetPropertyFilter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.DatasetPropertyFilter) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -5684,74 +11428,119 @@ size_t GenerateProvenanceRequest::ByteSizeLong() const { // 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_); + switch (property_case()) { + // string project = 1; + case kProject: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + break; + } + // string name = 2; + case kName: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + break; + } + // string domain = 3; + case kDomain: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + break; + } + // string version = 4; + case kVersion: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->version()); + break; + } + case PROPERTY_NOT_SET: { + break; + } } - 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) +void DatasetPropertyFilter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.DatasetPropertyFilter) GOOGLE_DCHECK_NE(&from, this); - const GenerateProvenanceRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const DatasetPropertyFilter* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.GenerateProvenanceRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.DatasetPropertyFilter) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.GenerateProvenanceRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.DatasetPropertyFilter) MergeFrom(*source); } } -void GenerateProvenanceRequest::MergeFrom(const GenerateProvenanceRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.GenerateProvenanceRequest) +void DatasetPropertyFilter::MergeFrom(const DatasetPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.DatasetPropertyFilter) 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()); + switch (from.property_case()) { + case kProject: { + set_project(from.project()); + break; + } + case kName: { + set_name(from.name()); + break; + } + case kDomain: { + set_domain(from.domain()); + break; + } + case kVersion: { + set_version(from.version()); + break; + } + case PROPERTY_NOT_SET: { + break; + } } } -void GenerateProvenanceRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.GenerateProvenanceRequest) +void DatasetPropertyFilter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.DatasetPropertyFilter) 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) +void DatasetPropertyFilter::CopyFrom(const DatasetPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.DatasetPropertyFilter) if (&from == this) return; Clear(); MergeFrom(from); } -bool GenerateProvenanceRequest::IsInitialized() const { +bool DatasetPropertyFilter::IsInitialized() const { return true; } -void GenerateProvenanceRequest::Swap(GenerateProvenanceRequest* other) { +void DatasetPropertyFilter::Swap(DatasetPropertyFilter* other) { if (other == this) return; InternalSwap(other); } -void GenerateProvenanceRequest::InternalSwap(GenerateProvenanceRequest* other) { +void DatasetPropertyFilter::InternalSwap(DatasetPropertyFilter* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); + swap(property_, other->property_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata GenerateProvenanceRequest::GetMetadata() const { +::google::protobuf::Metadata DatasetPropertyFilter::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -5759,70 +11548,82 @@ ::google::protobuf::Metadata GenerateProvenanceRequest::GetMetadata() const { // =================================================================== -void GenerateProvenanceResponse::InitAsDefaultInstance() { +void PaginationOptions::InitAsDefaultInstance() { } -class GenerateProvenanceResponse::HasBitSetters { +class PaginationOptions::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GenerateProvenanceResponse::kProvenanceFieldNumber; +const int PaginationOptions::kLimitFieldNumber; +const int PaginationOptions::kTokenFieldNumber; +const int PaginationOptions::kSortKeyFieldNumber; +const int PaginationOptions::kSortOrderFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -GenerateProvenanceResponse::GenerateProvenanceResponse() +PaginationOptions::PaginationOptions() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:pb.lyft.datacatalog.GenerateProvenanceResponse) + // @@protoc_insertion_point(constructor:datacatalog.PaginationOptions) } -GenerateProvenanceResponse::GenerateProvenanceResponse(const GenerateProvenanceResponse& from) +PaginationOptions::PaginationOptions(const PaginationOptions& 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_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); } - // @@protoc_insertion_point(copy_constructor:pb.lyft.datacatalog.GenerateProvenanceResponse) + ::memcpy(&limit_, &from.limit_, + static_cast(reinterpret_cast(&sortorder_) - + reinterpret_cast(&limit_)) + sizeof(sortorder_)); + // @@protoc_insertion_point(copy_constructor:datacatalog.PaginationOptions) } -void GenerateProvenanceResponse::SharedCtor() { +void PaginationOptions::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_GenerateProvenanceResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - provenance_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + &scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&limit_, 0, static_cast( + reinterpret_cast(&sortorder_) - + reinterpret_cast(&limit_)) + sizeof(sortorder_)); } -GenerateProvenanceResponse::~GenerateProvenanceResponse() { - // @@protoc_insertion_point(destructor:pb.lyft.datacatalog.GenerateProvenanceResponse) +PaginationOptions::~PaginationOptions() { + // @@protoc_insertion_point(destructor:datacatalog.PaginationOptions) SharedDtor(); } -void GenerateProvenanceResponse::SharedDtor() { - provenance_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void PaginationOptions::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -void GenerateProvenanceResponse::SetCachedSize(int size) const { +void PaginationOptions::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); +const PaginationOptions& PaginationOptions::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void GenerateProvenanceResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:pb.lyft.datacatalog.GenerateProvenanceResponse) +void PaginationOptions::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.PaginationOptions) ::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()); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&limit_, 0, static_cast( + reinterpret_cast(&sortorder_) - + reinterpret_cast(&limit_)) + sizeof(sortorder_)); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GenerateProvenanceResponse::_InternalParse(const char* begin, const char* end, void* object, +const char* PaginationOptions::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -5832,13 +11633,20 @@ const char* GenerateProvenanceResponse::_InternalParse(const char* begin, const ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string provenance = 1; + // uint32 limit = 1; case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("pb.lyft.datacatalog.GenerateProvenanceResponse.provenance"); - object = msg->mutable_provenance(); + ctx->extra_parse_data().SetFieldName("datacatalog.PaginationOptions.token"); + object = msg->mutable_token(); if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; goto string_till_end; @@ -5848,6 +11656,22 @@ const char* GenerateProvenanceResponse::_InternalParse(const char* begin, const ptr += size; break; } + // .datacatalog.PaginationOptions.SortKey sortKey = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_sortkey(static_cast<::datacatalog::PaginationOptions_SortKey>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_sortorder(static_cast<::datacatalog::PaginationOptions_SortOrder>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -5872,25 +11696,66 @@ const char* GenerateProvenanceResponse::_InternalParse(const char* begin, const {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GenerateProvenanceResponse::MergePartialFromCodedStream( +bool PaginationOptions::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) + // @@protoc_insertion_point(parse_start:datacatalog.PaginationOptions) 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; + // uint32 limit = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_provenance())); + input, this->mutable_token())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->provenance().data(), static_cast(this->provenance().length()), + this->token().data(), static_cast(this->token().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "pb.lyft.datacatalog.GenerateProvenanceResponse.provenance")); + "datacatalog.PaginationOptions.token")); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.PaginationOptions.SortKey sortKey = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_sortkey(static_cast< ::datacatalog::PaginationOptions_SortKey >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_sortorder(static_cast< ::datacatalog::PaginationOptions_SortOrder >(value)); } else { goto handle_unusual; } @@ -5909,65 +11774,99 @@ bool GenerateProvenanceResponse::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:pb.lyft.datacatalog.GenerateProvenanceResponse) + // @@protoc_insertion_point(parse_success:datacatalog.PaginationOptions) return true; failure: - // @@protoc_insertion_point(parse_failure:pb.lyft.datacatalog.GenerateProvenanceResponse) + // @@protoc_insertion_point(parse_failure:datacatalog.PaginationOptions) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GenerateProvenanceResponse::SerializeWithCachedSizes( +void PaginationOptions::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:pb.lyft.datacatalog.GenerateProvenanceResponse) + // @@protoc_insertion_point(serialize_start:datacatalog.PaginationOptions) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string provenance = 1; - if (this->provenance().size() > 0) { + // uint32 limit = 1; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->limit(), output); + } + + // string token = 2; + if (this->token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->provenance().data(), static_cast(this->provenance().length()), + this->token().data(), static_cast(this->token().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.GenerateProvenanceResponse.provenance"); + "datacatalog.PaginationOptions.token"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->provenance(), output); + 2, this->token(), output); + } + + // .datacatalog.PaginationOptions.SortKey sortKey = 3; + if (this->sortkey() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->sortkey(), output); + } + + // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + if (this->sortorder() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->sortorder(), 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) + // @@protoc_insertion_point(serialize_end:datacatalog.PaginationOptions) } -::google::protobuf::uint8* GenerateProvenanceResponse::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* PaginationOptions::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:pb.lyft.datacatalog.GenerateProvenanceResponse) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.PaginationOptions) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string provenance = 1; - if (this->provenance().size() > 0) { + // uint32 limit = 1; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->limit(), target); + } + + // string token = 2; + if (this->token().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->provenance().data(), static_cast(this->provenance().length()), + this->token().data(), static_cast(this->token().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "pb.lyft.datacatalog.GenerateProvenanceResponse.provenance"); + "datacatalog.PaginationOptions.token"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->provenance(), target); + 2, this->token(), target); + } + + // .datacatalog.PaginationOptions.SortKey sortKey = 3; + if (this->sortkey() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->sortkey(), target); + } + + // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + if (this->sortorder() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->sortorder(), 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) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.PaginationOptions) return target; } -size_t GenerateProvenanceResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:pb.lyft.datacatalog.GenerateProvenanceResponse) +size_t PaginationOptions::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.PaginationOptions) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -5979,11 +11878,30 @@ size_t GenerateProvenanceResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string provenance = 1; - if (this->provenance().size() > 0) { + // string token = 2; + if (this->token().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->provenance()); + this->token()); + } + + // uint32 limit = 1; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + // .datacatalog.PaginationOptions.SortKey sortKey = 3; + if (this->sortkey() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->sortkey()); + } + + // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + if (this->sortorder() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->sortorder()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -5991,64 +11909,76 @@ size_t GenerateProvenanceResponse::ByteSizeLong() const { return total_size; } -void GenerateProvenanceResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:pb.lyft.datacatalog.GenerateProvenanceResponse) +void PaginationOptions::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.PaginationOptions) GOOGLE_DCHECK_NE(&from, this); - const GenerateProvenanceResponse* source = - ::google::protobuf::DynamicCastToGenerated( + const PaginationOptions* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.lyft.datacatalog.GenerateProvenanceResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.PaginationOptions) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:pb.lyft.datacatalog.GenerateProvenanceResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.PaginationOptions) MergeFrom(*source); } } -void GenerateProvenanceResponse::MergeFrom(const GenerateProvenanceResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:pb.lyft.datacatalog.GenerateProvenanceResponse) +void PaginationOptions::MergeFrom(const PaginationOptions& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.PaginationOptions) 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) { + if (from.token().size() > 0) { - provenance_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.provenance_); + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } + if (from.sortkey() != 0) { + set_sortkey(from.sortkey()); + } + if (from.sortorder() != 0) { + set_sortorder(from.sortorder()); } } -void GenerateProvenanceResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:pb.lyft.datacatalog.GenerateProvenanceResponse) +void PaginationOptions::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.PaginationOptions) 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) +void PaginationOptions::CopyFrom(const PaginationOptions& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.PaginationOptions) if (&from == this) return; Clear(); MergeFrom(from); } -bool GenerateProvenanceResponse::IsInitialized() const { +bool PaginationOptions::IsInitialized() const { return true; } -void GenerateProvenanceResponse::Swap(GenerateProvenanceResponse* other) { +void PaginationOptions::Swap(PaginationOptions* other) { if (other == this) return; InternalSwap(other); } -void GenerateProvenanceResponse::InternalSwap(GenerateProvenanceResponse* other) { +void PaginationOptions::InternalSwap(PaginationOptions* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - provenance_.Swap(&other->provenance_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + swap(limit_, other->limit_); + swap(sortkey_, other->sortkey_); + swap(sortorder_, other->sortorder_); } -::google::protobuf::Metadata GenerateProvenanceResponse::GetMetadata() const { +::google::protobuf::Metadata PaginationOptions::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -6056,51 +11986,97 @@ ::google::protobuf::Metadata GenerateProvenanceResponse::GetMetadata() const { // @@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 ::datacatalog::CreateDatasetRequest* Arena::CreateMaybeMessage< ::datacatalog::CreateDatasetRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::CreateDatasetRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::CreateDatasetResponse* Arena::CreateMaybeMessage< ::datacatalog::CreateDatasetResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::CreateDatasetResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::GetDatasetRequest* Arena::CreateMaybeMessage< ::datacatalog::GetDatasetRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::GetDatasetRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::GetDatasetResponse* Arena::CreateMaybeMessage< ::datacatalog::GetDatasetResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::GetDatasetResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::GetArtifactRequest* Arena::CreateMaybeMessage< ::datacatalog::GetArtifactRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::GetArtifactRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::GetArtifactResponse* Arena::CreateMaybeMessage< ::datacatalog::GetArtifactResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::GetArtifactResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::CreateArtifactRequest* Arena::CreateMaybeMessage< ::datacatalog::CreateArtifactRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::CreateArtifactRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::CreateArtifactResponse* Arena::CreateMaybeMessage< ::datacatalog::CreateArtifactResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::CreateArtifactResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::AddTagRequest* Arena::CreateMaybeMessage< ::datacatalog::AddTagRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::AddTagRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::AddTagResponse* Arena::CreateMaybeMessage< ::datacatalog::AddTagResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::AddTagResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ListArtifactsRequest* Arena::CreateMaybeMessage< ::datacatalog::ListArtifactsRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ListArtifactsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ListArtifactsResponse* Arena::CreateMaybeMessage< ::datacatalog::ListArtifactsResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ListArtifactsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ListDatasetsRequest* Arena::CreateMaybeMessage< ::datacatalog::ListDatasetsRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ListDatasetsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ListDatasetsResponse* Arena::CreateMaybeMessage< ::datacatalog::ListDatasetsResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ListDatasetsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::Dataset* Arena::CreateMaybeMessage< ::datacatalog::Dataset >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::Dataset >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::Partition* Arena::CreateMaybeMessage< ::datacatalog::Partition >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::Partition >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::DatasetID* Arena::CreateMaybeMessage< ::datacatalog::DatasetID >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::DatasetID >(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 ::datacatalog::Artifact* Arena::CreateMaybeMessage< ::datacatalog::Artifact >(Arena* arena) { + return Arena::CreateInternal< ::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 ::datacatalog::ArtifactData* Arena::CreateMaybeMessage< ::datacatalog::ArtifactData >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ArtifactData >(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 ::datacatalog::Tag* Arena::CreateMaybeMessage< ::datacatalog::Tag >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::Tag >(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 ::datacatalog::Metadata_KeyMapEntry_DoNotUse* Arena::CreateMaybeMessage< ::datacatalog::Metadata_KeyMapEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::Metadata_KeyMapEntry_DoNotUse >(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 ::datacatalog::Metadata* Arena::CreateMaybeMessage< ::datacatalog::Metadata >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::Metadata >(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 ::datacatalog::FilterExpression* Arena::CreateMaybeMessage< ::datacatalog::FilterExpression >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::FilterExpression >(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 ::datacatalog::SinglePropertyFilter* Arena::CreateMaybeMessage< ::datacatalog::SinglePropertyFilter >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::SinglePropertyFilter >(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 ::datacatalog::ArtifactPropertyFilter* Arena::CreateMaybeMessage< ::datacatalog::ArtifactPropertyFilter >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ArtifactPropertyFilter >(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 ::datacatalog::TagPropertyFilter* Arena::CreateMaybeMessage< ::datacatalog::TagPropertyFilter >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::TagPropertyFilter >(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 ::datacatalog::PartitionPropertyFilter* Arena::CreateMaybeMessage< ::datacatalog::PartitionPropertyFilter >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::PartitionPropertyFilter >(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 ::datacatalog::KeyValuePair* Arena::CreateMaybeMessage< ::datacatalog::KeyValuePair >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::KeyValuePair >(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 ::datacatalog::DatasetPropertyFilter* Arena::CreateMaybeMessage< ::datacatalog::DatasetPropertyFilter >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::DatasetPropertyFilter >(arena); } -template<> PROTOBUF_NOINLINE ::pb::lyft::datacatalog::GenerateProvenanceResponse* Arena::CreateMaybeMessage< ::pb::lyft::datacatalog::GenerateProvenanceResponse >(Arena* arena) { - return Arena::CreateInternal< ::pb::lyft::datacatalog::GenerateProvenanceResponse >(arena); +template<> PROTOBUF_NOINLINE ::datacatalog::PaginationOptions* Arena::CreateMaybeMessage< ::datacatalog::PaginationOptions >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::PaginationOptions >(arena); } } // namespace protobuf } // namespace google diff --git a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h index 602ea488a..f711269ab 100644 --- a/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h +++ b/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h @@ -30,8 +30,13 @@ #include #include // IWYU pragma: export #include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include #include #include +#include "flyteidl/core/literals.pb.h" +#include // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto @@ -42,147 +47,223 @@ struct TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[14] + static const ::google::protobuf::internal::ParseTable schema[30] 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 AddTagRequest; +class AddTagRequestDefaultTypeInternal; +extern AddTagRequestDefaultTypeInternal _AddTagRequest_default_instance_; +class AddTagResponse; +class AddTagResponseDefaultTypeInternal; +extern AddTagResponseDefaultTypeInternal _AddTagResponse_default_instance_; 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_; +class ArtifactData; +class ArtifactDataDefaultTypeInternal; +extern ArtifactDataDefaultTypeInternal _ArtifactData_default_instance_; +class ArtifactPropertyFilter; +class ArtifactPropertyFilterDefaultTypeInternal; +extern ArtifactPropertyFilterDefaultTypeInternal _ArtifactPropertyFilter_default_instance_; +class CreateArtifactRequest; +class CreateArtifactRequestDefaultTypeInternal; +extern CreateArtifactRequestDefaultTypeInternal _CreateArtifactRequest_default_instance_; +class CreateArtifactResponse; +class CreateArtifactResponseDefaultTypeInternal; +extern CreateArtifactResponseDefaultTypeInternal _CreateArtifactResponse_default_instance_; +class CreateDatasetRequest; +class CreateDatasetRequestDefaultTypeInternal; +extern CreateDatasetRequestDefaultTypeInternal _CreateDatasetRequest_default_instance_; +class CreateDatasetResponse; +class CreateDatasetResponseDefaultTypeInternal; +extern CreateDatasetResponseDefaultTypeInternal _CreateDatasetResponse_default_instance_; +class Dataset; +class DatasetDefaultTypeInternal; +extern DatasetDefaultTypeInternal _Dataset_default_instance_; +class DatasetID; +class DatasetIDDefaultTypeInternal; +extern DatasetIDDefaultTypeInternal _DatasetID_default_instance_; +class DatasetPropertyFilter; +class DatasetPropertyFilterDefaultTypeInternal; +extern DatasetPropertyFilterDefaultTypeInternal _DatasetPropertyFilter_default_instance_; +class FilterExpression; +class FilterExpressionDefaultTypeInternal; +extern FilterExpressionDefaultTypeInternal _FilterExpression_default_instance_; +class GetArtifactRequest; +class GetArtifactRequestDefaultTypeInternal; +extern GetArtifactRequestDefaultTypeInternal _GetArtifactRequest_default_instance_; +class GetArtifactResponse; +class GetArtifactResponseDefaultTypeInternal; +extern GetArtifactResponseDefaultTypeInternal _GetArtifactResponse_default_instance_; +class GetDatasetRequest; +class GetDatasetRequestDefaultTypeInternal; +extern GetDatasetRequestDefaultTypeInternal _GetDatasetRequest_default_instance_; +class GetDatasetResponse; +class GetDatasetResponseDefaultTypeInternal; +extern GetDatasetResponseDefaultTypeInternal _GetDatasetResponse_default_instance_; +class KeyValuePair; +class KeyValuePairDefaultTypeInternal; +extern KeyValuePairDefaultTypeInternal _KeyValuePair_default_instance_; +class ListArtifactsRequest; +class ListArtifactsRequestDefaultTypeInternal; +extern ListArtifactsRequestDefaultTypeInternal _ListArtifactsRequest_default_instance_; +class ListArtifactsResponse; +class ListArtifactsResponseDefaultTypeInternal; +extern ListArtifactsResponseDefaultTypeInternal _ListArtifactsResponse_default_instance_; +class ListDatasetsRequest; +class ListDatasetsRequestDefaultTypeInternal; +extern ListDatasetsRequestDefaultTypeInternal _ListDatasetsRequest_default_instance_; +class ListDatasetsResponse; +class ListDatasetsResponseDefaultTypeInternal; +extern ListDatasetsResponseDefaultTypeInternal _ListDatasetsResponse_default_instance_; +class Metadata; +class MetadataDefaultTypeInternal; +extern MetadataDefaultTypeInternal _Metadata_default_instance_; +class Metadata_KeyMapEntry_DoNotUse; +class Metadata_KeyMapEntry_DoNotUseDefaultTypeInternal; +extern Metadata_KeyMapEntry_DoNotUseDefaultTypeInternal _Metadata_KeyMapEntry_DoNotUse_default_instance_; +class PaginationOptions; +class PaginationOptionsDefaultTypeInternal; +extern PaginationOptionsDefaultTypeInternal _PaginationOptions_default_instance_; +class Partition; +class PartitionDefaultTypeInternal; +extern PartitionDefaultTypeInternal _Partition_default_instance_; +class PartitionPropertyFilter; +class PartitionPropertyFilterDefaultTypeInternal; +extern PartitionPropertyFilterDefaultTypeInternal _PartitionPropertyFilter_default_instance_; +class SinglePropertyFilter; +class SinglePropertyFilterDefaultTypeInternal; +extern SinglePropertyFilterDefaultTypeInternal _SinglePropertyFilter_default_instance_; +class Tag; +class TagDefaultTypeInternal; +extern TagDefaultTypeInternal _Tag_default_instance_; +class TagPropertyFilter; +class TagPropertyFilterDefaultTypeInternal; +extern TagPropertyFilterDefaultTypeInternal _TagPropertyFilter_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*); +template<> ::datacatalog::AddTagRequest* Arena::CreateMaybeMessage<::datacatalog::AddTagRequest>(Arena*); +template<> ::datacatalog::AddTagResponse* Arena::CreateMaybeMessage<::datacatalog::AddTagResponse>(Arena*); +template<> ::datacatalog::Artifact* Arena::CreateMaybeMessage<::datacatalog::Artifact>(Arena*); +template<> ::datacatalog::ArtifactData* Arena::CreateMaybeMessage<::datacatalog::ArtifactData>(Arena*); +template<> ::datacatalog::ArtifactPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::ArtifactPropertyFilter>(Arena*); +template<> ::datacatalog::CreateArtifactRequest* Arena::CreateMaybeMessage<::datacatalog::CreateArtifactRequest>(Arena*); +template<> ::datacatalog::CreateArtifactResponse* Arena::CreateMaybeMessage<::datacatalog::CreateArtifactResponse>(Arena*); +template<> ::datacatalog::CreateDatasetRequest* Arena::CreateMaybeMessage<::datacatalog::CreateDatasetRequest>(Arena*); +template<> ::datacatalog::CreateDatasetResponse* Arena::CreateMaybeMessage<::datacatalog::CreateDatasetResponse>(Arena*); +template<> ::datacatalog::Dataset* Arena::CreateMaybeMessage<::datacatalog::Dataset>(Arena*); +template<> ::datacatalog::DatasetID* Arena::CreateMaybeMessage<::datacatalog::DatasetID>(Arena*); +template<> ::datacatalog::DatasetPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::DatasetPropertyFilter>(Arena*); +template<> ::datacatalog::FilterExpression* Arena::CreateMaybeMessage<::datacatalog::FilterExpression>(Arena*); +template<> ::datacatalog::GetArtifactRequest* Arena::CreateMaybeMessage<::datacatalog::GetArtifactRequest>(Arena*); +template<> ::datacatalog::GetArtifactResponse* Arena::CreateMaybeMessage<::datacatalog::GetArtifactResponse>(Arena*); +template<> ::datacatalog::GetDatasetRequest* Arena::CreateMaybeMessage<::datacatalog::GetDatasetRequest>(Arena*); +template<> ::datacatalog::GetDatasetResponse* Arena::CreateMaybeMessage<::datacatalog::GetDatasetResponse>(Arena*); +template<> ::datacatalog::KeyValuePair* Arena::CreateMaybeMessage<::datacatalog::KeyValuePair>(Arena*); +template<> ::datacatalog::ListArtifactsRequest* Arena::CreateMaybeMessage<::datacatalog::ListArtifactsRequest>(Arena*); +template<> ::datacatalog::ListArtifactsResponse* Arena::CreateMaybeMessage<::datacatalog::ListArtifactsResponse>(Arena*); +template<> ::datacatalog::ListDatasetsRequest* Arena::CreateMaybeMessage<::datacatalog::ListDatasetsRequest>(Arena*); +template<> ::datacatalog::ListDatasetsResponse* Arena::CreateMaybeMessage<::datacatalog::ListDatasetsResponse>(Arena*); +template<> ::datacatalog::Metadata* Arena::CreateMaybeMessage<::datacatalog::Metadata>(Arena*); +template<> ::datacatalog::Metadata_KeyMapEntry_DoNotUse* Arena::CreateMaybeMessage<::datacatalog::Metadata_KeyMapEntry_DoNotUse>(Arena*); +template<> ::datacatalog::PaginationOptions* Arena::CreateMaybeMessage<::datacatalog::PaginationOptions>(Arena*); +template<> ::datacatalog::Partition* Arena::CreateMaybeMessage<::datacatalog::Partition>(Arena*); +template<> ::datacatalog::PartitionPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::PartitionPropertyFilter>(Arena*); +template<> ::datacatalog::SinglePropertyFilter* Arena::CreateMaybeMessage<::datacatalog::SinglePropertyFilter>(Arena*); +template<> ::datacatalog::Tag* Arena::CreateMaybeMessage<::datacatalog::Tag>(Arena*); +template<> ::datacatalog::TagPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::TagPropertyFilter>(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() +enum SinglePropertyFilter_ComparisonOperator { + SinglePropertyFilter_ComparisonOperator_EQUALS = 0, + SinglePropertyFilter_ComparisonOperator_SinglePropertyFilter_ComparisonOperator_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + SinglePropertyFilter_ComparisonOperator_SinglePropertyFilter_ComparisonOperator_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; +bool SinglePropertyFilter_ComparisonOperator_IsValid(int value); +const SinglePropertyFilter_ComparisonOperator SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MIN = SinglePropertyFilter_ComparisonOperator_EQUALS; +const SinglePropertyFilter_ComparisonOperator SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MAX = SinglePropertyFilter_ComparisonOperator_EQUALS; +const int SinglePropertyFilter_ComparisonOperator_ComparisonOperator_ARRAYSIZE = SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MAX + 1; -const ::google::protobuf::EnumDescriptor* CreateResponse_Status_descriptor(); -inline const ::std::string& CreateResponse_Status_Name(CreateResponse_Status value) { +const ::google::protobuf::EnumDescriptor* SinglePropertyFilter_ComparisonOperator_descriptor(); +inline const ::std::string& SinglePropertyFilter_ComparisonOperator_Name(SinglePropertyFilter_ComparisonOperator 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() + SinglePropertyFilter_ComparisonOperator_descriptor(), value); +} +inline bool SinglePropertyFilter_ComparisonOperator_Parse( + const ::std::string& name, SinglePropertyFilter_ComparisonOperator* value) { + return ::google::protobuf::internal::ParseNamedEnum( + SinglePropertyFilter_ComparisonOperator_descriptor(), name, value); +} +enum PaginationOptions_SortOrder { + PaginationOptions_SortOrder_DESCENDING = 0, + PaginationOptions_SortOrder_ASCENDING = 1, + PaginationOptions_SortOrder_PaginationOptions_SortOrder_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + PaginationOptions_SortOrder_PaginationOptions_SortOrder_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; +bool PaginationOptions_SortOrder_IsValid(int value); +const PaginationOptions_SortOrder PaginationOptions_SortOrder_SortOrder_MIN = PaginationOptions_SortOrder_DESCENDING; +const PaginationOptions_SortOrder PaginationOptions_SortOrder_SortOrder_MAX = PaginationOptions_SortOrder_ASCENDING; +const int PaginationOptions_SortOrder_SortOrder_ARRAYSIZE = PaginationOptions_SortOrder_SortOrder_MAX + 1; -const ::google::protobuf::EnumDescriptor* QueryOperator_descriptor(); -inline const ::std::string& QueryOperator_Name(QueryOperator value) { +const ::google::protobuf::EnumDescriptor* PaginationOptions_SortOrder_descriptor(); +inline const ::std::string& PaginationOptions_SortOrder_Name(PaginationOptions_SortOrder value) { return ::google::protobuf::internal::NameOfEnum( - QueryOperator_descriptor(), value); + PaginationOptions_SortOrder_descriptor(), value); } -inline bool QueryOperator_Parse( - const ::std::string& name, QueryOperator* value) { - return ::google::protobuf::internal::ParseNamedEnum( - QueryOperator_descriptor(), name, value); +inline bool PaginationOptions_SortOrder_Parse( + const ::std::string& name, PaginationOptions_SortOrder* value) { + return ::google::protobuf::internal::ParseNamedEnum( + PaginationOptions_SortOrder_descriptor(), name, value); +} +enum PaginationOptions_SortKey { + PaginationOptions_SortKey_CREATION_TIME = 0, + PaginationOptions_SortKey_PaginationOptions_SortKey_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + PaginationOptions_SortKey_PaginationOptions_SortKey_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool PaginationOptions_SortKey_IsValid(int value); +const PaginationOptions_SortKey PaginationOptions_SortKey_SortKey_MIN = PaginationOptions_SortKey_CREATION_TIME; +const PaginationOptions_SortKey PaginationOptions_SortKey_SortKey_MAX = PaginationOptions_SortKey_CREATION_TIME; +const int PaginationOptions_SortKey_SortKey_ARRAYSIZE = PaginationOptions_SortKey_SortKey_MAX + 1; + +const ::google::protobuf::EnumDescriptor* PaginationOptions_SortKey_descriptor(); +inline const ::std::string& PaginationOptions_SortKey_Name(PaginationOptions_SortKey value) { + return ::google::protobuf::internal::NameOfEnum( + PaginationOptions_SortKey_descriptor(), value); +} +inline bool PaginationOptions_SortKey_Parse( + const ::std::string& name, PaginationOptions_SortKey* value) { + return ::google::protobuf::internal::ParseNamedEnum( + PaginationOptions_SortKey_descriptor(), name, value); } // =================================================================== -class Parameter final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.Parameter) */ { +class CreateDatasetRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.CreateDatasetRequest) */ { public: - Parameter(); - virtual ~Parameter(); + CreateDatasetRequest(); + virtual ~CreateDatasetRequest(); - Parameter(const Parameter& from); + CreateDatasetRequest(const CreateDatasetRequest& from); - inline Parameter& operator=(const Parameter& from) { + inline CreateDatasetRequest& operator=(const CreateDatasetRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - Parameter(Parameter&& from) noexcept - : Parameter() { + CreateDatasetRequest(CreateDatasetRequest&& from) noexcept + : CreateDatasetRequest() { *this = ::std::move(from); } - inline Parameter& operator=(Parameter&& from) noexcept { + inline CreateDatasetRequest& operator=(CreateDatasetRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -194,34 +275,34 @@ class Parameter final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const Parameter& default_instance(); + static const CreateDatasetRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Parameter* internal_default_instance() { - return reinterpret_cast( - &_Parameter_default_instance_); + static inline const CreateDatasetRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateDatasetRequest_default_instance_); } static constexpr int kIndexInFileMessages = 0; - void Swap(Parameter* other); - friend void swap(Parameter& a, Parameter& b) { + void Swap(CreateDatasetRequest* other); + friend void swap(CreateDatasetRequest& a, CreateDatasetRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline Parameter* New() const final { - return CreateMaybeMessage(nullptr); + inline CreateDatasetRequest* New() const final { + return CreateMaybeMessage(nullptr); } - Parameter* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + CreateDatasetRequest* 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); + void CopyFrom(const CreateDatasetRequest& from); + void MergeFrom(const CreateDatasetRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -243,7 +324,7 @@ class Parameter final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(Parameter* other); + void InternalSwap(CreateDatasetRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -259,65 +340,45 @@ class Parameter final : // 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); + // .datacatalog.Dataset dataset = 1; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 1; + const ::datacatalog::Dataset& dataset() const; + ::datacatalog::Dataset* release_dataset(); + ::datacatalog::Dataset* mutable_dataset(); + void set_allocated_dataset(::datacatalog::Dataset* dataset); - // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.Parameter) + // @@protoc_insertion_point(class_scope:datacatalog.CreateDatasetRequest) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr value_; + ::datacatalog::Dataset* dataset_; 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) */ { +class CreateDatasetResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.CreateDatasetResponse) */ { public: - Artifact(); - virtual ~Artifact(); + CreateDatasetResponse(); + virtual ~CreateDatasetResponse(); - Artifact(const Artifact& from); + CreateDatasetResponse(const CreateDatasetResponse& from); - inline Artifact& operator=(const Artifact& from) { + inline CreateDatasetResponse& operator=(const CreateDatasetResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - Artifact(Artifact&& from) noexcept - : Artifact() { + CreateDatasetResponse(CreateDatasetResponse&& from) noexcept + : CreateDatasetResponse() { *this = ::std::move(from); } - inline Artifact& operator=(Artifact&& from) noexcept { + inline CreateDatasetResponse& operator=(CreateDatasetResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -329,34 +390,34 @@ class Artifact final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const Artifact& default_instance(); + static const CreateDatasetResponse& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Artifact* internal_default_instance() { - return reinterpret_cast( - &_Artifact_default_instance_); + static inline const CreateDatasetResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateDatasetResponse_default_instance_); } static constexpr int kIndexInFileMessages = 1; - void Swap(Artifact* other); - friend void swap(Artifact& a, Artifact& b) { + void Swap(CreateDatasetResponse* other); + friend void swap(CreateDatasetResponse& a, CreateDatasetResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline Artifact* New() const final { - return CreateMaybeMessage(nullptr); + inline CreateDatasetResponse* New() const final { + return CreateMaybeMessage(nullptr); } - Artifact* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + CreateDatasetResponse* 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); + void CopyFrom(const CreateDatasetResponse& from); + void MergeFrom(const CreateDatasetResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -378,7 +439,7 @@ class Artifact final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(Artifact* other); + void InternalSwap(CreateDatasetResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -394,135 +455,35 @@ class Artifact final : // 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) + // @@protoc_insertion_point(class_scope:datacatalog.CreateDatasetResponse) 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) */ { +class GetDatasetRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetDatasetRequest) */ { public: - ArtifactId(); - virtual ~ArtifactId(); + GetDatasetRequest(); + virtual ~GetDatasetRequest(); - ArtifactId(const ArtifactId& from); + GetDatasetRequest(const GetDatasetRequest& from); - inline ArtifactId& operator=(const ArtifactId& from) { + inline GetDatasetRequest& operator=(const GetDatasetRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - ArtifactId(ArtifactId&& from) noexcept - : ArtifactId() { + GetDatasetRequest(GetDatasetRequest&& from) noexcept + : GetDatasetRequest() { *this = ::std::move(from); } - inline ArtifactId& operator=(ArtifactId&& from) noexcept { + inline GetDatasetRequest& operator=(GetDatasetRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -534,34 +495,34 @@ class ArtifactId final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const ArtifactId& default_instance(); + static const GetDatasetRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArtifactId* internal_default_instance() { - return reinterpret_cast( - &_ArtifactId_default_instance_); + static inline const GetDatasetRequest* internal_default_instance() { + return reinterpret_cast( + &_GetDatasetRequest_default_instance_); } static constexpr int kIndexInFileMessages = 2; - void Swap(ArtifactId* other); - friend void swap(ArtifactId& a, ArtifactId& b) { + void Swap(GetDatasetRequest* other); + friend void swap(GetDatasetRequest& a, GetDatasetRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline ArtifactId* New() const final { - return CreateMaybeMessage(nullptr); + inline GetDatasetRequest* New() const final { + return CreateMaybeMessage(nullptr); } - ArtifactId* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetDatasetRequest* 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); + void CopyFrom(const GetDatasetRequest& from); + void MergeFrom(const GetDatasetRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -583,7 +544,7 @@ class ArtifactId final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ArtifactId* other); + void InternalSwap(GetDatasetRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -599,78 +560,45 @@ class ArtifactId final : // 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); + // .datacatalog.DatasetID dataset = 1; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 1; + const ::datacatalog::DatasetID& dataset() const; + ::datacatalog::DatasetID* release_dataset(); + ::datacatalog::DatasetID* mutable_dataset(); + void set_allocated_dataset(::datacatalog::DatasetID* dataset); - // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.ArtifactId) + // @@protoc_insertion_point(class_scope:datacatalog.GetDatasetRequest) 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_; + ::datacatalog::DatasetID* dataset_; 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) */ { +class GetDatasetResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetDatasetResponse) */ { public: - GetRequest(); - virtual ~GetRequest(); + GetDatasetResponse(); + virtual ~GetDatasetResponse(); - GetRequest(const GetRequest& from); + GetDatasetResponse(const GetDatasetResponse& from); - inline GetRequest& operator=(const GetRequest& from) { + inline GetDatasetResponse& operator=(const GetDatasetResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - GetRequest(GetRequest&& from) noexcept - : GetRequest() { + GetDatasetResponse(GetDatasetResponse&& from) noexcept + : GetDatasetResponse() { *this = ::std::move(from); } - inline GetRequest& operator=(GetRequest&& from) noexcept { + inline GetDatasetResponse& operator=(GetDatasetResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -682,40 +610,34 @@ class GetRequest final : 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 const GetDatasetResponse& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetRequest* internal_default_instance() { - return reinterpret_cast( - &_GetRequest_default_instance_); + static inline const GetDatasetResponse* internal_default_instance() { + return reinterpret_cast( + &_GetDatasetResponse_default_instance_); } static constexpr int kIndexInFileMessages = 3; - void Swap(GetRequest* other); - friend void swap(GetRequest& a, GetRequest& b) { + void Swap(GetDatasetResponse* other); + friend void swap(GetDatasetResponse& a, GetDatasetResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline GetRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline GetDatasetResponse* New() const final { + return CreateMaybeMessage(nullptr); } - GetRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetDatasetResponse* 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); + void CopyFrom(const GetDatasetResponse& from); + void MergeFrom(const GetDatasetResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -737,7 +659,7 @@ class GetRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GetRequest* other); + void InternalSwap(GetDatasetResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -753,75 +675,45 @@ class GetRequest final : // 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); + // .datacatalog.Dataset dataset = 1; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 1; + const ::datacatalog::Dataset& dataset() const; + ::datacatalog::Dataset* release_dataset(); + ::datacatalog::Dataset* mutable_dataset(); + void set_allocated_dataset(::datacatalog::Dataset* dataset); - void clear_id(); - IdCase id_case() const; - // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GetRequest) + // @@protoc_insertion_point(class_scope:datacatalog.GetDatasetResponse) 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_; + ::datacatalog::Dataset* dataset_; 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) */ { +class GetArtifactRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetArtifactRequest) */ { public: - GetResponse(); - virtual ~GetResponse(); + GetArtifactRequest(); + virtual ~GetArtifactRequest(); - GetResponse(const GetResponse& from); + GetArtifactRequest(const GetArtifactRequest& from); - inline GetResponse& operator=(const GetResponse& from) { + inline GetArtifactRequest& operator=(const GetArtifactRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - GetResponse(GetResponse&& from) noexcept - : GetResponse() { + GetArtifactRequest(GetArtifactRequest&& from) noexcept + : GetArtifactRequest() { *this = ::std::move(from); } - inline GetResponse& operator=(GetResponse&& from) noexcept { + inline GetArtifactRequest& operator=(GetArtifactRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -833,34 +725,40 @@ class GetResponse final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const GetResponse& default_instance(); + static const GetArtifactRequest& default_instance(); + + enum QueryHandleCase { + kArtifactId = 2, + kTagName = 3, + QUERY_HANDLE_NOT_SET = 0, + }; static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetResponse* internal_default_instance() { - return reinterpret_cast( - &_GetResponse_default_instance_); + static inline const GetArtifactRequest* internal_default_instance() { + return reinterpret_cast( + &_GetArtifactRequest_default_instance_); } static constexpr int kIndexInFileMessages = 4; - void Swap(GetResponse* other); - friend void swap(GetResponse& a, GetResponse& b) { + void Swap(GetArtifactRequest* other); + friend void swap(GetArtifactRequest& a, GetArtifactRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline GetResponse* New() const final { - return CreateMaybeMessage(nullptr); + inline GetArtifactRequest* New() const final { + return CreateMaybeMessage(nullptr); } - GetResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetArtifactRequest* 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); + void CopyFrom(const GetArtifactRequest& from); + void MergeFrom(const GetArtifactRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -882,7 +780,7 @@ class GetResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GetResponse* other); + void InternalSwap(GetArtifactRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -898,45 +796,93 @@ class GetResponse final : // 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); + // .datacatalog.DatasetID dataset = 1; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 1; + const ::datacatalog::DatasetID& dataset() const; + ::datacatalog::DatasetID* release_dataset(); + ::datacatalog::DatasetID* mutable_dataset(); + void set_allocated_dataset(::datacatalog::DatasetID* dataset); + + // string artifact_id = 2; + private: + bool has_artifact_id() const; + public: + void clear_artifact_id(); + static const int kArtifactIdFieldNumber = 2; + const ::std::string& artifact_id() const; + void set_artifact_id(const ::std::string& value); + #if LANG_CXX11 + void set_artifact_id(::std::string&& value); + #endif + void set_artifact_id(const char* value); + void set_artifact_id(const char* value, size_t size); + ::std::string* mutable_artifact_id(); + ::std::string* release_artifact_id(); + void set_allocated_artifact_id(::std::string* artifact_id); - // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GetResponse) + // string tag_name = 3; + private: + bool has_tag_name() const; + public: + void clear_tag_name(); + static const int kTagNameFieldNumber = 3; + const ::std::string& tag_name() const; + void set_tag_name(const ::std::string& value); + #if LANG_CXX11 + void set_tag_name(::std::string&& value); + #endif + void set_tag_name(const char* value); + void set_tag_name(const char* value, size_t size); + ::std::string* mutable_tag_name(); + ::std::string* release_tag_name(); + void set_allocated_tag_name(::std::string* tag_name); + + void clear_query_handle(); + QueryHandleCase query_handle_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.GetArtifactRequest) private: class HasBitSetters; + void set_has_artifact_id(); + void set_has_tag_name(); + + inline bool has_query_handle() const; + inline void clear_has_query_handle(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::pb::lyft::datacatalog::Artifact* artifact_; + ::datacatalog::DatasetID* dataset_; + union QueryHandleUnion { + QueryHandleUnion() {} + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + ::google::protobuf::internal::ArenaStringPtr tag_name_; + } query_handle_; mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; // ------------------------------------------------------------------- -class IntFilter final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.lyft.datacatalog.IntFilter) */ { +class GetArtifactResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetArtifactResponse) */ { public: - IntFilter(); - virtual ~IntFilter(); + GetArtifactResponse(); + virtual ~GetArtifactResponse(); - IntFilter(const IntFilter& from); + GetArtifactResponse(const GetArtifactResponse& from); - inline IntFilter& operator=(const IntFilter& from) { + inline GetArtifactResponse& operator=(const GetArtifactResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - IntFilter(IntFilter&& from) noexcept - : IntFilter() { + GetArtifactResponse(GetArtifactResponse&& from) noexcept + : GetArtifactResponse() { *this = ::std::move(from); } - inline IntFilter& operator=(IntFilter&& from) noexcept { + inline GetArtifactResponse& operator=(GetArtifactResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -948,34 +894,34 @@ class IntFilter final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const IntFilter& default_instance(); + static const GetArtifactResponse& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IntFilter* internal_default_instance() { - return reinterpret_cast( - &_IntFilter_default_instance_); + static inline const GetArtifactResponse* internal_default_instance() { + return reinterpret_cast( + &_GetArtifactResponse_default_instance_); } static constexpr int kIndexInFileMessages = 5; - void Swap(IntFilter* other); - friend void swap(IntFilter& a, IntFilter& b) { + void Swap(GetArtifactResponse* other); + friend void swap(GetArtifactResponse& a, GetArtifactResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline IntFilter* New() const final { - return CreateMaybeMessage(nullptr); + inline GetArtifactResponse* New() const final { + return CreateMaybeMessage(nullptr); } - IntFilter* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetArtifactResponse* 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); + void CopyFrom(const GetArtifactResponse& from); + void MergeFrom(const GetArtifactResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -997,7 +943,7 @@ class IntFilter final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(IntFilter* other); + void InternalSwap(GetArtifactResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -1013,49 +959,45 @@ class IntFilter final : // 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); + // .datacatalog.Artifact artifact = 1; + bool has_artifact() const; + void clear_artifact(); + static const int kArtifactFieldNumber = 1; + const ::datacatalog::Artifact& artifact() const; + ::datacatalog::Artifact* release_artifact(); + ::datacatalog::Artifact* mutable_artifact(); + void set_allocated_artifact(::datacatalog::Artifact* artifact); - // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.IntFilter) + // @@protoc_insertion_point(class_scope:datacatalog.GetArtifactResponse) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::int64 value_; - int operator__; + ::datacatalog::Artifact* artifact_; 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) */ { +class CreateArtifactRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.CreateArtifactRequest) */ { public: - IntRangeFilter(); - virtual ~IntRangeFilter(); + CreateArtifactRequest(); + virtual ~CreateArtifactRequest(); - IntRangeFilter(const IntRangeFilter& from); + CreateArtifactRequest(const CreateArtifactRequest& from); - inline IntRangeFilter& operator=(const IntRangeFilter& from) { + inline CreateArtifactRequest& operator=(const CreateArtifactRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - IntRangeFilter(IntRangeFilter&& from) noexcept - : IntRangeFilter() { + CreateArtifactRequest(CreateArtifactRequest&& from) noexcept + : CreateArtifactRequest() { *this = ::std::move(from); } - inline IntRangeFilter& operator=(IntRangeFilter&& from) noexcept { + inline CreateArtifactRequest& operator=(CreateArtifactRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1067,34 +1009,34 @@ class IntRangeFilter final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const IntRangeFilter& default_instance(); + static const CreateArtifactRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IntRangeFilter* internal_default_instance() { - return reinterpret_cast( - &_IntRangeFilter_default_instance_); + static inline const CreateArtifactRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateArtifactRequest_default_instance_); } static constexpr int kIndexInFileMessages = 6; - void Swap(IntRangeFilter* other); - friend void swap(IntRangeFilter& a, IntRangeFilter& b) { + void Swap(CreateArtifactRequest* other); + friend void swap(CreateArtifactRequest& a, CreateArtifactRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline IntRangeFilter* New() const final { - return CreateMaybeMessage(nullptr); + inline CreateArtifactRequest* New() const final { + return CreateMaybeMessage(nullptr); } - IntRangeFilter* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + CreateArtifactRequest* 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); + void CopyFrom(const CreateArtifactRequest& from); + void MergeFrom(const CreateArtifactRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1116,7 +1058,7 @@ class IntRangeFilter final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(IntRangeFilter* other); + void InternalSwap(CreateArtifactRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -1132,49 +1074,45 @@ class IntRangeFilter final : // 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); + // .datacatalog.Artifact artifact = 1; + bool has_artifact() const; + void clear_artifact(); + static const int kArtifactFieldNumber = 1; + const ::datacatalog::Artifact& artifact() const; + ::datacatalog::Artifact* release_artifact(); + ::datacatalog::Artifact* mutable_artifact(); + void set_allocated_artifact(::datacatalog::Artifact* artifact); - // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.IntRangeFilter) + // @@protoc_insertion_point(class_scope:datacatalog.CreateArtifactRequest) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::int64 min_; - ::google::protobuf::int64 max_; + ::datacatalog::Artifact* artifact_; 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) */ { +class CreateArtifactResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.CreateArtifactResponse) */ { public: - IntQueryKey(); - virtual ~IntQueryKey(); + CreateArtifactResponse(); + virtual ~CreateArtifactResponse(); - IntQueryKey(const IntQueryKey& from); + CreateArtifactResponse(const CreateArtifactResponse& from); - inline IntQueryKey& operator=(const IntQueryKey& from) { + inline CreateArtifactResponse& operator=(const CreateArtifactResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - IntQueryKey(IntQueryKey&& from) noexcept - : IntQueryKey() { + CreateArtifactResponse(CreateArtifactResponse&& from) noexcept + : CreateArtifactResponse() { *this = ::std::move(from); } - inline IntQueryKey& operator=(IntQueryKey&& from) noexcept { + inline CreateArtifactResponse& operator=(CreateArtifactResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1186,40 +1124,34 @@ class IntQueryKey final : 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 const CreateArtifactResponse& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IntQueryKey* internal_default_instance() { - return reinterpret_cast( - &_IntQueryKey_default_instance_); + static inline const CreateArtifactResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateArtifactResponse_default_instance_); } static constexpr int kIndexInFileMessages = 7; - void Swap(IntQueryKey* other); - friend void swap(IntQueryKey& a, IntQueryKey& b) { + void Swap(CreateArtifactResponse* other); + friend void swap(CreateArtifactResponse& a, CreateArtifactResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline IntQueryKey* New() const final { - return CreateMaybeMessage(nullptr); + inline CreateArtifactResponse* New() const final { + return CreateMaybeMessage(nullptr); } - IntQueryKey* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + CreateArtifactResponse* 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); + void CopyFrom(const CreateArtifactResponse& from); + void MergeFrom(const CreateArtifactResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1241,7 +1173,7 @@ class IntQueryKey final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(IntQueryKey* other); + void InternalSwap(CreateArtifactResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -1257,67 +1189,35 @@ class IntQueryKey final : // 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) + // @@protoc_insertion_point(class_scope:datacatalog.CreateArtifactResponse) 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) */ { +class AddTagRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.AddTagRequest) */ { public: - QueryRequest(); - virtual ~QueryRequest(); + AddTagRequest(); + virtual ~AddTagRequest(); - QueryRequest(const QueryRequest& from); + AddTagRequest(const AddTagRequest& from); - inline QueryRequest& operator=(const QueryRequest& from) { + inline AddTagRequest& operator=(const AddTagRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - QueryRequest(QueryRequest&& from) noexcept - : QueryRequest() { + AddTagRequest(AddTagRequest&& from) noexcept + : AddTagRequest() { *this = ::std::move(from); } - inline QueryRequest& operator=(QueryRequest&& from) noexcept { + inline AddTagRequest& operator=(AddTagRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1329,34 +1229,34 @@ class QueryRequest final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const QueryRequest& default_instance(); + static const AddTagRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const QueryRequest* internal_default_instance() { - return reinterpret_cast( - &_QueryRequest_default_instance_); + static inline const AddTagRequest* internal_default_instance() { + return reinterpret_cast( + &_AddTagRequest_default_instance_); } static constexpr int kIndexInFileMessages = 8; - void Swap(QueryRequest* other); - friend void swap(QueryRequest& a, QueryRequest& b) { + void Swap(AddTagRequest* other); + friend void swap(AddTagRequest& a, AddTagRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline QueryRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline AddTagRequest* New() const final { + return CreateMaybeMessage(nullptr); } - QueryRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + AddTagRequest* 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); + void CopyFrom(const AddTagRequest& from); + void MergeFrom(const AddTagRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1378,7 +1278,7 @@ class QueryRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(QueryRequest* other); + void InternalSwap(AddTagRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -1394,97 +1294,45 @@ class QueryRequest final : // 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); + // .datacatalog.Tag tag = 1; + bool has_tag() const; + void clear_tag(); + static const int kTagFieldNumber = 1; + const ::datacatalog::Tag& tag() const; + ::datacatalog::Tag* release_tag(); + ::datacatalog::Tag* mutable_tag(); + void set_allocated_tag(::datacatalog::Tag* tag); - // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.QueryRequest) + // @@protoc_insertion_point(class_scope:datacatalog.AddTagRequest) 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_; + ::datacatalog::Tag* tag_; 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) */ { +class AddTagResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.AddTagResponse) */ { public: - QueryResponse(); - virtual ~QueryResponse(); + AddTagResponse(); + virtual ~AddTagResponse(); - QueryResponse(const QueryResponse& from); + AddTagResponse(const AddTagResponse& from); - inline QueryResponse& operator=(const QueryResponse& from) { + inline AddTagResponse& operator=(const AddTagResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - QueryResponse(QueryResponse&& from) noexcept - : QueryResponse() { + AddTagResponse(AddTagResponse&& from) noexcept + : AddTagResponse() { *this = ::std::move(from); } - inline QueryResponse& operator=(QueryResponse&& from) noexcept { + inline AddTagResponse& operator=(AddTagResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1496,34 +1344,34 @@ class QueryResponse final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const QueryResponse& default_instance(); + static const AddTagResponse& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const QueryResponse* internal_default_instance() { - return reinterpret_cast( - &_QueryResponse_default_instance_); + static inline const AddTagResponse* internal_default_instance() { + return reinterpret_cast( + &_AddTagResponse_default_instance_); } static constexpr int kIndexInFileMessages = 9; - void Swap(QueryResponse* other); - friend void swap(QueryResponse& a, QueryResponse& b) { + void Swap(AddTagResponse* other); + friend void swap(AddTagResponse& a, AddTagResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline QueryResponse* New() const final { - return CreateMaybeMessage(nullptr); + inline AddTagResponse* New() const final { + return CreateMaybeMessage(nullptr); } - QueryResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + AddTagResponse* 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); + void CopyFrom(const AddTagResponse& from); + void MergeFrom(const AddTagResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1545,7 +1393,7 @@ class QueryResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(QueryResponse* other); + void InternalSwap(AddTagResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -1561,48 +1409,35 @@ class QueryResponse final : // 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) + // @@protoc_insertion_point(class_scope:datacatalog.AddTagResponse) 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) */ { +class ListArtifactsRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ListArtifactsRequest) */ { public: - CreateRequest(); - virtual ~CreateRequest(); + ListArtifactsRequest(); + virtual ~ListArtifactsRequest(); - CreateRequest(const CreateRequest& from); + ListArtifactsRequest(const ListArtifactsRequest& from); - inline CreateRequest& operator=(const CreateRequest& from) { + inline ListArtifactsRequest& operator=(const ListArtifactsRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - CreateRequest(CreateRequest&& from) noexcept - : CreateRequest() { + ListArtifactsRequest(ListArtifactsRequest&& from) noexcept + : ListArtifactsRequest() { *this = ::std::move(from); } - inline CreateRequest& operator=(CreateRequest&& from) noexcept { + inline ListArtifactsRequest& operator=(ListArtifactsRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1614,34 +1449,34 @@ class CreateRequest final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const CreateRequest& default_instance(); + static const ListArtifactsRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateRequest_default_instance_); + static inline const ListArtifactsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListArtifactsRequest_default_instance_); } static constexpr int kIndexInFileMessages = 10; - void Swap(CreateRequest* other); - friend void swap(CreateRequest& a, CreateRequest& b) { + void Swap(ListArtifactsRequest* other); + friend void swap(ListArtifactsRequest& a, ListArtifactsRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline CreateRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline ListArtifactsRequest* New() const final { + return CreateMaybeMessage(nullptr); } - CreateRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + ListArtifactsRequest* 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); + void CopyFrom(const ListArtifactsRequest& from); + void MergeFrom(const ListArtifactsRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1663,7 +1498,7 @@ class CreateRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(CreateRequest* other); + void InternalSwap(ListArtifactsRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -1679,80 +1514,65 @@ class CreateRequest final : // 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) + // .datacatalog.DatasetID dataset = 1; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 1; + const ::datacatalog::DatasetID& dataset() const; + ::datacatalog::DatasetID* release_dataset(); + ::datacatalog::DatasetID* mutable_dataset(); + void set_allocated_dataset(::datacatalog::DatasetID* dataset); + + // .datacatalog.FilterExpression filter = 2; + bool has_filter() const; + void clear_filter(); + static const int kFilterFieldNumber = 2; + const ::datacatalog::FilterExpression& filter() const; + ::datacatalog::FilterExpression* release_filter(); + ::datacatalog::FilterExpression* mutable_filter(); + void set_allocated_filter(::datacatalog::FilterExpression* filter); + + // .datacatalog.PaginationOptions pagination = 3; + bool has_pagination() const; + void clear_pagination(); + static const int kPaginationFieldNumber = 3; + const ::datacatalog::PaginationOptions& pagination() const; + ::datacatalog::PaginationOptions* release_pagination(); + ::datacatalog::PaginationOptions* mutable_pagination(); + void set_allocated_pagination(::datacatalog::PaginationOptions* pagination); + + // @@protoc_insertion_point(class_scope:datacatalog.ListArtifactsRequest) 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_; + ::datacatalog::DatasetID* dataset_; + ::datacatalog::FilterExpression* filter_; + ::datacatalog::PaginationOptions* pagination_; 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) */ { +class ListArtifactsResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ListArtifactsResponse) */ { public: - CreateResponse(); - virtual ~CreateResponse(); + ListArtifactsResponse(); + virtual ~ListArtifactsResponse(); - CreateResponse(const CreateResponse& from); + ListArtifactsResponse(const ListArtifactsResponse& from); - inline CreateResponse& operator=(const CreateResponse& from) { + inline ListArtifactsResponse& operator=(const ListArtifactsResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - CreateResponse(CreateResponse&& from) noexcept - : CreateResponse() { + ListArtifactsResponse(ListArtifactsResponse&& from) noexcept + : ListArtifactsResponse() { *this = ::std::move(from); } - inline CreateResponse& operator=(CreateResponse&& from) noexcept { + inline ListArtifactsResponse& operator=(ListArtifactsResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1764,34 +1584,34 @@ class CreateResponse final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const CreateResponse& default_instance(); + static const ListArtifactsResponse& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateResponse_default_instance_); + static inline const ListArtifactsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListArtifactsResponse_default_instance_); } static constexpr int kIndexInFileMessages = 11; - void Swap(CreateResponse* other); - friend void swap(CreateResponse& a, CreateResponse& b) { + void Swap(ListArtifactsResponse* other); + friend void swap(ListArtifactsResponse& a, ListArtifactsResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline CreateResponse* New() const final { - return CreateMaybeMessage(nullptr); + inline ListArtifactsResponse* New() const final { + return CreateMaybeMessage(nullptr); } - CreateResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + ListArtifactsResponse* 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); + void CopyFrom(const ListArtifactsResponse& from); + void MergeFrom(const ListArtifactsResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1813,7 +1633,7 @@ class CreateResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(CreateResponse* other); + void InternalSwap(ListArtifactsResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -1827,80 +1647,65 @@ class CreateResponse 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) + // repeated .datacatalog.Artifact artifacts = 1; + int artifacts_size() const; + void clear_artifacts(); + static const int kArtifactsFieldNumber = 1; + ::datacatalog::Artifact* mutable_artifacts(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >* + mutable_artifacts(); + const ::datacatalog::Artifact& artifacts(int index) const; + ::datacatalog::Artifact* add_artifacts(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >& + artifacts() const; + + // string next_token = 2; + void clear_next_token(); + static const int kNextTokenFieldNumber = 2; + const ::std::string& next_token() const; + void set_next_token(const ::std::string& value); + #if LANG_CXX11 + void set_next_token(::std::string&& value); + #endif + void set_next_token(const char* value); + void set_next_token(const char* value, size_t size); + ::std::string* mutable_next_token(); + ::std::string* release_next_token(); + void set_allocated_next_token(::std::string* next_token); + + // @@protoc_insertion_point(class_scope:datacatalog.ListArtifactsResponse) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::pb::lyft::datacatalog::Artifact* artifact_; - int status_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact > artifacts_; + ::google::protobuf::internal::ArenaStringPtr next_token_; 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) */ { +class ListDatasetsRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ListDatasetsRequest) */ { public: - GenerateProvenanceRequest(); - virtual ~GenerateProvenanceRequest(); + ListDatasetsRequest(); + virtual ~ListDatasetsRequest(); - GenerateProvenanceRequest(const GenerateProvenanceRequest& from); + ListDatasetsRequest(const ListDatasetsRequest& from); - inline GenerateProvenanceRequest& operator=(const GenerateProvenanceRequest& from) { + inline ListDatasetsRequest& operator=(const ListDatasetsRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - GenerateProvenanceRequest(GenerateProvenanceRequest&& from) noexcept - : GenerateProvenanceRequest() { + ListDatasetsRequest(ListDatasetsRequest&& from) noexcept + : ListDatasetsRequest() { *this = ::std::move(from); } - inline GenerateProvenanceRequest& operator=(GenerateProvenanceRequest&& from) noexcept { + inline ListDatasetsRequest& operator=(ListDatasetsRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1912,34 +1717,34 @@ class GenerateProvenanceRequest final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const GenerateProvenanceRequest& default_instance(); + static const ListDatasetsRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GenerateProvenanceRequest* internal_default_instance() { - return reinterpret_cast( - &_GenerateProvenanceRequest_default_instance_); + static inline const ListDatasetsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListDatasetsRequest_default_instance_); } static constexpr int kIndexInFileMessages = 12; - void Swap(GenerateProvenanceRequest* other); - friend void swap(GenerateProvenanceRequest& a, GenerateProvenanceRequest& b) { + void Swap(ListDatasetsRequest* other); + friend void swap(ListDatasetsRequest& a, ListDatasetsRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline GenerateProvenanceRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline ListDatasetsRequest* New() const final { + return CreateMaybeMessage(nullptr); } - GenerateProvenanceRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + ListDatasetsRequest* 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); + void CopyFrom(const ListDatasetsRequest& from); + void MergeFrom(const ListDatasetsRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1961,7 +1766,7 @@ class GenerateProvenanceRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GenerateProvenanceRequest* other); + void InternalSwap(ListDatasetsRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -1977,45 +1782,55 @@ class GenerateProvenanceRequest final : // 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) + // .datacatalog.FilterExpression filter = 1; + bool has_filter() const; + void clear_filter(); + static const int kFilterFieldNumber = 1; + const ::datacatalog::FilterExpression& filter() const; + ::datacatalog::FilterExpression* release_filter(); + ::datacatalog::FilterExpression* mutable_filter(); + void set_allocated_filter(::datacatalog::FilterExpression* filter); + + // .datacatalog.PaginationOptions pagination = 2; + bool has_pagination() const; + void clear_pagination(); + static const int kPaginationFieldNumber = 2; + const ::datacatalog::PaginationOptions& pagination() const; + ::datacatalog::PaginationOptions* release_pagination(); + ::datacatalog::PaginationOptions* mutable_pagination(); + void set_allocated_pagination(::datacatalog::PaginationOptions* pagination); + + // @@protoc_insertion_point(class_scope:datacatalog.ListDatasetsRequest) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::pb::lyft::datacatalog::ArtifactId* id_; + ::datacatalog::FilterExpression* filter_; + ::datacatalog::PaginationOptions* pagination_; 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) */ { +class ListDatasetsResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ListDatasetsResponse) */ { public: - GenerateProvenanceResponse(); - virtual ~GenerateProvenanceResponse(); + ListDatasetsResponse(); + virtual ~ListDatasetsResponse(); - GenerateProvenanceResponse(const GenerateProvenanceResponse& from); + ListDatasetsResponse(const ListDatasetsResponse& from); - inline GenerateProvenanceResponse& operator=(const GenerateProvenanceResponse& from) { + inline ListDatasetsResponse& operator=(const ListDatasetsResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - GenerateProvenanceResponse(GenerateProvenanceResponse&& from) noexcept - : GenerateProvenanceResponse() { + ListDatasetsResponse(ListDatasetsResponse&& from) noexcept + : ListDatasetsResponse() { *this = ::std::move(from); } - inline GenerateProvenanceResponse& operator=(GenerateProvenanceResponse&& from) noexcept { + inline ListDatasetsResponse& operator=(ListDatasetsResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -2027,34 +1842,34 @@ class GenerateProvenanceResponse final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const GenerateProvenanceResponse& default_instance(); + static const ListDatasetsResponse& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GenerateProvenanceResponse* internal_default_instance() { - return reinterpret_cast( - &_GenerateProvenanceResponse_default_instance_); + static inline const ListDatasetsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListDatasetsResponse_default_instance_); } static constexpr int kIndexInFileMessages = 13; - void Swap(GenerateProvenanceResponse* other); - friend void swap(GenerateProvenanceResponse& a, GenerateProvenanceResponse& b) { + void Swap(ListDatasetsResponse* other); + friend void swap(ListDatasetsResponse& a, ListDatasetsResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline GenerateProvenanceResponse* New() const final { - return CreateMaybeMessage(nullptr); + inline ListDatasetsResponse* New() const final { + return CreateMaybeMessage(nullptr); } - GenerateProvenanceResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + ListDatasetsResponse* 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); + void CopyFrom(const ListDatasetsResponse& from); + void MergeFrom(const ListDatasetsResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2076,7 +1891,7 @@ class GenerateProvenanceResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GenerateProvenanceResponse* other); + void InternalSwap(ListDatasetsResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -2092,1543 +1907,5611 @@ class GenerateProvenanceResponse final : // accessors ------------------------------------------------------- - // string provenance = 1; - void clear_provenance(); - static const int kProvenanceFieldNumber = 1; - const ::std::string& provenance() const; - void set_provenance(const ::std::string& value); + // repeated .datacatalog.Dataset datasets = 1; + int datasets_size() const; + void clear_datasets(); + static const int kDatasetsFieldNumber = 1; + ::datacatalog::Dataset* mutable_datasets(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >* + mutable_datasets(); + const ::datacatalog::Dataset& datasets(int index) const; + ::datacatalog::Dataset* add_datasets(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >& + datasets() const; + + // string next_token = 2; + void clear_next_token(); + static const int kNextTokenFieldNumber = 2; + const ::std::string& next_token() const; + void set_next_token(const ::std::string& value); #if LANG_CXX11 - void set_provenance(::std::string&& value); + void set_next_token(::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); + void set_next_token(const char* value); + void set_next_token(const char* value, size_t size); + ::std::string* mutable_next_token(); + ::std::string* release_next_token(); + void set_allocated_next_token(::std::string* next_token); - // @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GenerateProvenanceResponse) + // @@protoc_insertion_point(class_scope:datacatalog.ListDatasetsResponse) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr provenance_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset > datasets_; + ::google::protobuf::internal::ArenaStringPtr next_token_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; }; -// =================================================================== +// ------------------------------------------------------------------- +class Dataset final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Dataset) */ { + public: + Dataset(); + virtual ~Dataset(); -// =================================================================== + Dataset(const Dataset& from); -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Parameter + inline Dataset& operator=(const Dataset& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Dataset(Dataset&& from) noexcept + : Dataset() { + *this = ::std::move(from); + } -// 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 Dataset& operator=(Dataset&& 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 Dataset& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Dataset* internal_default_instance() { + return reinterpret_cast( + &_Dataset_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(Dataset* other); + friend void swap(Dataset& a, Dataset& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Dataset* New() const final { + return CreateMaybeMessage(nullptr); + } + + Dataset* 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 Dataset& from); + void MergeFrom(const Dataset& 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(Dataset* 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 string partitionKeys = 3; + int partitionkeys_size() const; + void clear_partitionkeys(); + static const int kPartitionKeysFieldNumber = 3; + const ::std::string& partitionkeys(int index) const; + ::std::string* mutable_partitionkeys(int index); + void set_partitionkeys(int index, const ::std::string& value); + #if LANG_CXX11 + void set_partitionkeys(int index, ::std::string&& value); + #endif + void set_partitionkeys(int index, const char* value); + void set_partitionkeys(int index, const char* value, size_t size); + ::std::string* add_partitionkeys(); + void add_partitionkeys(const ::std::string& value); + #if LANG_CXX11 + void add_partitionkeys(::std::string&& value); + #endif + void add_partitionkeys(const char* value); + void add_partitionkeys(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& partitionkeys() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_partitionkeys(); + + // .datacatalog.DatasetID id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::datacatalog::DatasetID& id() const; + ::datacatalog::DatasetID* release_id(); + ::datacatalog::DatasetID* mutable_id(); + void set_allocated_id(::datacatalog::DatasetID* id); + + // .datacatalog.Metadata metadata = 2; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 2; + const ::datacatalog::Metadata& metadata() const; + ::datacatalog::Metadata* release_metadata(); + ::datacatalog::Metadata* mutable_metadata(); + void set_allocated_metadata(::datacatalog::Metadata* metadata); + + // @@protoc_insertion_point(class_scope:datacatalog.Dataset) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> partitionkeys_; + ::datacatalog::DatasetID* id_; + ::datacatalog::Metadata* metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class Partition final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Partition) */ { + public: + Partition(); + virtual ~Partition(); + + Partition(const Partition& from); + + inline Partition& operator=(const Partition& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Partition(Partition&& from) noexcept + : Partition() { + *this = ::std::move(from); + } + + inline Partition& operator=(Partition&& 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 Partition& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Partition* internal_default_instance() { + return reinterpret_cast( + &_Partition_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(Partition* other); + friend void swap(Partition& a, Partition& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Partition* New() const final { + return CreateMaybeMessage(nullptr); + } + + Partition* 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 Partition& from); + void MergeFrom(const Partition& 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(Partition* 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 key = 1; + void clear_key(); + static const int kKeyFieldNumber = 1; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // 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:datacatalog.Partition) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class DatasetID final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.DatasetID) */ { + public: + DatasetID(); + virtual ~DatasetID(); + + DatasetID(const DatasetID& from); + + inline DatasetID& operator=(const DatasetID& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DatasetID(DatasetID&& from) noexcept + : DatasetID() { + *this = ::std::move(from); + } + + inline DatasetID& operator=(DatasetID&& 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 DatasetID& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DatasetID* internal_default_instance() { + return reinterpret_cast( + &_DatasetID_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + void Swap(DatasetID* other); + friend void swap(DatasetID& a, DatasetID& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DatasetID* New() const final { + return CreateMaybeMessage(nullptr); + } + + DatasetID* 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 DatasetID& from); + void MergeFrom(const DatasetID& 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(DatasetID* 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 project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string 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 domain = 3; + void clear_domain(); + static const int kDomainFieldNumber = 3; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string version = 4; + void clear_version(); + static const int kVersionFieldNumber = 4; + const ::std::string& version() const; + void set_version(const ::std::string& value); + #if LANG_CXX11 + void set_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 UUID = 5; + void clear_uuid(); + static const int kUUIDFieldNumber = 5; + const ::std::string& uuid() const; + void set_uuid(const ::std::string& value); + #if LANG_CXX11 + void set_uuid(::std::string&& value); + #endif + void set_uuid(const char* value); + void set_uuid(const char* value, size_t size); + ::std::string* mutable_uuid(); + ::std::string* release_uuid(); + void set_allocated_uuid(::std::string* uuid); + + // @@protoc_insertion_point(class_scope:datacatalog.DatasetID) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr version_; + ::google::protobuf::internal::ArenaStringPtr uuid_; + 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: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 = + 17; + + 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 .datacatalog.ArtifactData data = 3; + int data_size() const; + void clear_data(); + static const int kDataFieldNumber = 3; + ::datacatalog::ArtifactData* mutable_data(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >* + mutable_data(); + const ::datacatalog::ArtifactData& data(int index) const; + ::datacatalog::ArtifactData* add_data(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >& + data() const; + + // repeated .datacatalog.Partition partitions = 5; + int partitions_size() const; + void clear_partitions(); + static const int kPartitionsFieldNumber = 5; + ::datacatalog::Partition* mutable_partitions(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >* + mutable_partitions(); + const ::datacatalog::Partition& partitions(int index) const; + ::datacatalog::Partition* add_partitions(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >& + partitions() const; + + // repeated .datacatalog.Tag tags = 6; + int tags_size() const; + void clear_tags(); + static const int kTagsFieldNumber = 6; + ::datacatalog::Tag* mutable_tags(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >* + mutable_tags(); + const ::datacatalog::Tag& tags(int index) const; + ::datacatalog::Tag* add_tags(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >& + tags() const; + + // string id = 1; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::std::string& id() const; + void set_id(const ::std::string& value); + #if LANG_CXX11 + void set_id(::std::string&& value); + #endif + void set_id(const char* value); + void set_id(const char* value, size_t size); + ::std::string* mutable_id(); + ::std::string* release_id(); + void set_allocated_id(::std::string* id); + + // .datacatalog.DatasetID dataset = 2; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 2; + const ::datacatalog::DatasetID& dataset() const; + ::datacatalog::DatasetID* release_dataset(); + ::datacatalog::DatasetID* mutable_dataset(); + void set_allocated_dataset(::datacatalog::DatasetID* dataset); + + // .datacatalog.Metadata metadata = 4; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 4; + const ::datacatalog::Metadata& metadata() const; + ::datacatalog::Metadata* release_metadata(); + ::datacatalog::Metadata* mutable_metadata(); + void set_allocated_metadata(::datacatalog::Metadata* metadata); + + // .google.protobuf.Timestamp created_at = 7; + bool has_created_at() const; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 7; + const ::google::protobuf::Timestamp& created_at() const; + ::google::protobuf::Timestamp* release_created_at(); + ::google::protobuf::Timestamp* mutable_created_at(); + void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + + // @@protoc_insertion_point(class_scope:datacatalog.Artifact) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData > data_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition > partitions_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag > tags_; + ::google::protobuf::internal::ArenaStringPtr id_; + ::datacatalog::DatasetID* dataset_; + ::datacatalog::Metadata* metadata_; + ::google::protobuf::Timestamp* created_at_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class ArtifactData final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ArtifactData) */ { + public: + ArtifactData(); + virtual ~ArtifactData(); + + ArtifactData(const ArtifactData& from); + + inline ArtifactData& operator=(const ArtifactData& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ArtifactData(ArtifactData&& from) noexcept + : ArtifactData() { + *this = ::std::move(from); + } + + inline ArtifactData& operator=(ArtifactData&& 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 ArtifactData& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ArtifactData* internal_default_instance() { + return reinterpret_cast( + &_ArtifactData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + void Swap(ArtifactData* other); + friend void swap(ArtifactData& a, ArtifactData& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ArtifactData* New() const final { + return CreateMaybeMessage(nullptr); + } + + ArtifactData* 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 ArtifactData& from); + void MergeFrom(const ArtifactData& 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(ArtifactData* 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); + + // .flyteidl.core.Literal value = 2; + bool has_value() const; + void clear_value(); + static const int kValueFieldNumber = 2; + const ::flyteidl::core::Literal& value() const; + ::flyteidl::core::Literal* release_value(); + ::flyteidl::core::Literal* mutable_value(); + void set_allocated_value(::flyteidl::core::Literal* value); + + // @@protoc_insertion_point(class_scope:datacatalog.ArtifactData) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::flyteidl::core::Literal* value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class Tag final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Tag) */ { + public: + Tag(); + virtual ~Tag(); + + Tag(const Tag& from); + + inline Tag& operator=(const Tag& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Tag(Tag&& from) noexcept + : Tag() { + *this = ::std::move(from); + } + + inline Tag& operator=(Tag&& 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 Tag& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Tag* internal_default_instance() { + return reinterpret_cast( + &_Tag_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + void Swap(Tag* other); + friend void swap(Tag& a, Tag& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Tag* New() const final { + return CreateMaybeMessage(nullptr); + } + + Tag* 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 Tag& from); + void MergeFrom(const Tag& 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(Tag* 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 artifact_id = 2; + void clear_artifact_id(); + static const int kArtifactIdFieldNumber = 2; + const ::std::string& artifact_id() const; + void set_artifact_id(const ::std::string& value); + #if LANG_CXX11 + void set_artifact_id(::std::string&& value); + #endif + void set_artifact_id(const char* value); + void set_artifact_id(const char* value, size_t size); + ::std::string* mutable_artifact_id(); + ::std::string* release_artifact_id(); + void set_allocated_artifact_id(::std::string* artifact_id); + + // .datacatalog.DatasetID dataset = 3; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 3; + const ::datacatalog::DatasetID& dataset() const; + ::datacatalog::DatasetID* release_dataset(); + ::datacatalog::DatasetID* mutable_dataset(); + void set_allocated_dataset(::datacatalog::DatasetID* dataset); + + // @@protoc_insertion_point(class_scope:datacatalog.Tag) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + ::datacatalog::DatasetID* dataset_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class Metadata_KeyMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + Metadata_KeyMapEntry_DoNotUse(); + Metadata_KeyMapEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const Metadata_KeyMapEntry_DoNotUse& other); + static const Metadata_KeyMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Metadata_KeyMapEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class Metadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Metadata) */ { + public: + Metadata(); + virtual ~Metadata(); + + Metadata(const Metadata& from); + + inline Metadata& operator=(const Metadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Metadata(Metadata&& from) noexcept + : Metadata() { + *this = ::std::move(from); + } + + inline Metadata& operator=(Metadata&& 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 Metadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Metadata* internal_default_instance() { + return reinterpret_cast( + &_Metadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + void Swap(Metadata* other); + friend void swap(Metadata& a, Metadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Metadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + Metadata* 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 Metadata& from); + void MergeFrom(const Metadata& 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(Metadata* 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 ------------------------------------------------------- + + // map key_map = 1; + int key_map_size() const; + void clear_key_map(); + static const int kKeyMapFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::std::string >& + key_map() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_key_map(); + + // @@protoc_insertion_point(class_scope:datacatalog.Metadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + Metadata_KeyMapEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > key_map_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class FilterExpression final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.FilterExpression) */ { + public: + FilterExpression(); + virtual ~FilterExpression(); + + FilterExpression(const FilterExpression& from); + + inline FilterExpression& operator=(const FilterExpression& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + FilterExpression(FilterExpression&& from) noexcept + : FilterExpression() { + *this = ::std::move(from); + } + + inline FilterExpression& operator=(FilterExpression&& 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 FilterExpression& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FilterExpression* internal_default_instance() { + return reinterpret_cast( + &_FilterExpression_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + void Swap(FilterExpression* other); + friend void swap(FilterExpression& a, FilterExpression& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline FilterExpression* New() const final { + return CreateMaybeMessage(nullptr); + } + + FilterExpression* 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 FilterExpression& from); + void MergeFrom(const FilterExpression& 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(FilterExpression* 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 .datacatalog.SinglePropertyFilter filters = 1; + int filters_size() const; + void clear_filters(); + static const int kFiltersFieldNumber = 1; + ::datacatalog::SinglePropertyFilter* mutable_filters(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >* + mutable_filters(); + const ::datacatalog::SinglePropertyFilter& filters(int index) const; + ::datacatalog::SinglePropertyFilter* add_filters(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >& + filters() const; + + // @@protoc_insertion_point(class_scope:datacatalog.FilterExpression) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter > filters_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class SinglePropertyFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.SinglePropertyFilter) */ { + public: + SinglePropertyFilter(); + virtual ~SinglePropertyFilter(); + + SinglePropertyFilter(const SinglePropertyFilter& from); + + inline SinglePropertyFilter& operator=(const SinglePropertyFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SinglePropertyFilter(SinglePropertyFilter&& from) noexcept + : SinglePropertyFilter() { + *this = ::std::move(from); + } + + inline SinglePropertyFilter& operator=(SinglePropertyFilter&& 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 SinglePropertyFilter& default_instance(); + + enum PropertyFilterCase { + kTagFilter = 1, + kPartitionFilter = 2, + kArtifactFilter = 3, + kDatasetFilter = 4, + PROPERTY_FILTER_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SinglePropertyFilter* internal_default_instance() { + return reinterpret_cast( + &_SinglePropertyFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + void Swap(SinglePropertyFilter* other); + friend void swap(SinglePropertyFilter& a, SinglePropertyFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SinglePropertyFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + SinglePropertyFilter* 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 SinglePropertyFilter& from); + void MergeFrom(const SinglePropertyFilter& 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(SinglePropertyFilter* 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 SinglePropertyFilter_ComparisonOperator ComparisonOperator; + static const ComparisonOperator EQUALS = + SinglePropertyFilter_ComparisonOperator_EQUALS; + static inline bool ComparisonOperator_IsValid(int value) { + return SinglePropertyFilter_ComparisonOperator_IsValid(value); + } + static const ComparisonOperator ComparisonOperator_MIN = + SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MIN; + static const ComparisonOperator ComparisonOperator_MAX = + SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MAX; + static const int ComparisonOperator_ARRAYSIZE = + SinglePropertyFilter_ComparisonOperator_ComparisonOperator_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + ComparisonOperator_descriptor() { + return SinglePropertyFilter_ComparisonOperator_descriptor(); + } + static inline const ::std::string& ComparisonOperator_Name(ComparisonOperator value) { + return SinglePropertyFilter_ComparisonOperator_Name(value); + } + static inline bool ComparisonOperator_Parse(const ::std::string& name, + ComparisonOperator* value) { + return SinglePropertyFilter_ComparisonOperator_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + void clear_operator_(); + static const int kOperatorFieldNumber = 10; + ::datacatalog::SinglePropertyFilter_ComparisonOperator operator_() const; + void set_operator_(::datacatalog::SinglePropertyFilter_ComparisonOperator value); + + // .datacatalog.TagPropertyFilter tag_filter = 1; + bool has_tag_filter() const; + void clear_tag_filter(); + static const int kTagFilterFieldNumber = 1; + const ::datacatalog::TagPropertyFilter& tag_filter() const; + ::datacatalog::TagPropertyFilter* release_tag_filter(); + ::datacatalog::TagPropertyFilter* mutable_tag_filter(); + void set_allocated_tag_filter(::datacatalog::TagPropertyFilter* tag_filter); + + // .datacatalog.PartitionPropertyFilter partition_filter = 2; + bool has_partition_filter() const; + void clear_partition_filter(); + static const int kPartitionFilterFieldNumber = 2; + const ::datacatalog::PartitionPropertyFilter& partition_filter() const; + ::datacatalog::PartitionPropertyFilter* release_partition_filter(); + ::datacatalog::PartitionPropertyFilter* mutable_partition_filter(); + void set_allocated_partition_filter(::datacatalog::PartitionPropertyFilter* partition_filter); + + // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + bool has_artifact_filter() const; + void clear_artifact_filter(); + static const int kArtifactFilterFieldNumber = 3; + const ::datacatalog::ArtifactPropertyFilter& artifact_filter() const; + ::datacatalog::ArtifactPropertyFilter* release_artifact_filter(); + ::datacatalog::ArtifactPropertyFilter* mutable_artifact_filter(); + void set_allocated_artifact_filter(::datacatalog::ArtifactPropertyFilter* artifact_filter); + + // .datacatalog.DatasetPropertyFilter dataset_filter = 4; + bool has_dataset_filter() const; + void clear_dataset_filter(); + static const int kDatasetFilterFieldNumber = 4; + const ::datacatalog::DatasetPropertyFilter& dataset_filter() const; + ::datacatalog::DatasetPropertyFilter* release_dataset_filter(); + ::datacatalog::DatasetPropertyFilter* mutable_dataset_filter(); + void set_allocated_dataset_filter(::datacatalog::DatasetPropertyFilter* dataset_filter); + + void clear_property_filter(); + PropertyFilterCase property_filter_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.SinglePropertyFilter) + private: + class HasBitSetters; + void set_has_tag_filter(); + void set_has_partition_filter(); + void set_has_artifact_filter(); + void set_has_dataset_filter(); + + inline bool has_property_filter() const; + inline void clear_has_property_filter(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + int operator__; + union PropertyFilterUnion { + PropertyFilterUnion() {} + ::datacatalog::TagPropertyFilter* tag_filter_; + ::datacatalog::PartitionPropertyFilter* partition_filter_; + ::datacatalog::ArtifactPropertyFilter* artifact_filter_; + ::datacatalog::DatasetPropertyFilter* dataset_filter_; + } property_filter_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class ArtifactPropertyFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ArtifactPropertyFilter) */ { + public: + ArtifactPropertyFilter(); + virtual ~ArtifactPropertyFilter(); + + ArtifactPropertyFilter(const ArtifactPropertyFilter& from); + + inline ArtifactPropertyFilter& operator=(const ArtifactPropertyFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ArtifactPropertyFilter(ArtifactPropertyFilter&& from) noexcept + : ArtifactPropertyFilter() { + *this = ::std::move(from); + } + + inline ArtifactPropertyFilter& operator=(ArtifactPropertyFilter&& 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 ArtifactPropertyFilter& default_instance(); + + enum PropertyCase { + kArtifactId = 1, + PROPERTY_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ArtifactPropertyFilter* internal_default_instance() { + return reinterpret_cast( + &_ArtifactPropertyFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 24; + + void Swap(ArtifactPropertyFilter* other); + friend void swap(ArtifactPropertyFilter& a, ArtifactPropertyFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ArtifactPropertyFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + ArtifactPropertyFilter* 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 ArtifactPropertyFilter& from); + void MergeFrom(const ArtifactPropertyFilter& 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(ArtifactPropertyFilter* 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 artifact_id = 1; + private: + bool has_artifact_id() const; + public: + void clear_artifact_id(); + static const int kArtifactIdFieldNumber = 1; + const ::std::string& artifact_id() const; + void set_artifact_id(const ::std::string& value); + #if LANG_CXX11 + void set_artifact_id(::std::string&& value); + #endif + void set_artifact_id(const char* value); + void set_artifact_id(const char* value, size_t size); + ::std::string* mutable_artifact_id(); + ::std::string* release_artifact_id(); + void set_allocated_artifact_id(::std::string* artifact_id); + + void clear_property(); + PropertyCase property_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.ArtifactPropertyFilter) + private: + class HasBitSetters; + void set_has_artifact_id(); + + inline bool has_property() const; + inline void clear_has_property(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union PropertyUnion { + PropertyUnion() {} + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + } property_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class TagPropertyFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.TagPropertyFilter) */ { + public: + TagPropertyFilter(); + virtual ~TagPropertyFilter(); + + TagPropertyFilter(const TagPropertyFilter& from); + + inline TagPropertyFilter& operator=(const TagPropertyFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TagPropertyFilter(TagPropertyFilter&& from) noexcept + : TagPropertyFilter() { + *this = ::std::move(from); + } + + inline TagPropertyFilter& operator=(TagPropertyFilter&& 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 TagPropertyFilter& default_instance(); + + enum PropertyCase { + kTagName = 1, + PROPERTY_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TagPropertyFilter* internal_default_instance() { + return reinterpret_cast( + &_TagPropertyFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + void Swap(TagPropertyFilter* other); + friend void swap(TagPropertyFilter& a, TagPropertyFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TagPropertyFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + TagPropertyFilter* 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 TagPropertyFilter& from); + void MergeFrom(const TagPropertyFilter& 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(TagPropertyFilter* 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 tag_name = 1; + private: + bool has_tag_name() const; + public: + void clear_tag_name(); + static const int kTagNameFieldNumber = 1; + const ::std::string& tag_name() const; + void set_tag_name(const ::std::string& value); + #if LANG_CXX11 + void set_tag_name(::std::string&& value); + #endif + void set_tag_name(const char* value); + void set_tag_name(const char* value, size_t size); + ::std::string* mutable_tag_name(); + ::std::string* release_tag_name(); + void set_allocated_tag_name(::std::string* tag_name); + + void clear_property(); + PropertyCase property_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.TagPropertyFilter) + private: + class HasBitSetters; + void set_has_tag_name(); + + inline bool has_property() const; + inline void clear_has_property(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union PropertyUnion { + PropertyUnion() {} + ::google::protobuf::internal::ArenaStringPtr tag_name_; + } property_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class PartitionPropertyFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.PartitionPropertyFilter) */ { + public: + PartitionPropertyFilter(); + virtual ~PartitionPropertyFilter(); + + PartitionPropertyFilter(const PartitionPropertyFilter& from); + + inline PartitionPropertyFilter& operator=(const PartitionPropertyFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PartitionPropertyFilter(PartitionPropertyFilter&& from) noexcept + : PartitionPropertyFilter() { + *this = ::std::move(from); + } + + inline PartitionPropertyFilter& operator=(PartitionPropertyFilter&& 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 PartitionPropertyFilter& default_instance(); + + enum PropertyCase { + kKeyVal = 1, + PROPERTY_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PartitionPropertyFilter* internal_default_instance() { + return reinterpret_cast( + &_PartitionPropertyFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 26; + + void Swap(PartitionPropertyFilter* other); + friend void swap(PartitionPropertyFilter& a, PartitionPropertyFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PartitionPropertyFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + PartitionPropertyFilter* 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 PartitionPropertyFilter& from); + void MergeFrom(const PartitionPropertyFilter& 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(PartitionPropertyFilter* 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 ------------------------------------------------------- + + // .datacatalog.KeyValuePair key_val = 1; + bool has_key_val() const; + void clear_key_val(); + static const int kKeyValFieldNumber = 1; + const ::datacatalog::KeyValuePair& key_val() const; + ::datacatalog::KeyValuePair* release_key_val(); + ::datacatalog::KeyValuePair* mutable_key_val(); + void set_allocated_key_val(::datacatalog::KeyValuePair* key_val); + + void clear_property(); + PropertyCase property_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.PartitionPropertyFilter) + private: + class HasBitSetters; + void set_has_key_val(); + + inline bool has_property() const; + inline void clear_has_property(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union PropertyUnion { + PropertyUnion() {} + ::datacatalog::KeyValuePair* key_val_; + } property_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class KeyValuePair final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.KeyValuePair) */ { + public: + KeyValuePair(); + virtual ~KeyValuePair(); + + KeyValuePair(const KeyValuePair& from); + + inline KeyValuePair& operator=(const KeyValuePair& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + KeyValuePair(KeyValuePair&& from) noexcept + : KeyValuePair() { + *this = ::std::move(from); + } + + inline KeyValuePair& operator=(KeyValuePair&& 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 KeyValuePair& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const KeyValuePair* internal_default_instance() { + return reinterpret_cast( + &_KeyValuePair_default_instance_); + } + static constexpr int kIndexInFileMessages = + 27; + + void Swap(KeyValuePair* other); + friend void swap(KeyValuePair& a, KeyValuePair& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline KeyValuePair* New() const final { + return CreateMaybeMessage(nullptr); + } + + KeyValuePair* 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 KeyValuePair& from); + void MergeFrom(const KeyValuePair& 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(KeyValuePair* 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 key = 1; + void clear_key(); + static const int kKeyFieldNumber = 1; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // 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:datacatalog.KeyValuePair) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class DatasetPropertyFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.DatasetPropertyFilter) */ { + public: + DatasetPropertyFilter(); + virtual ~DatasetPropertyFilter(); + + DatasetPropertyFilter(const DatasetPropertyFilter& from); + + inline DatasetPropertyFilter& operator=(const DatasetPropertyFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DatasetPropertyFilter(DatasetPropertyFilter&& from) noexcept + : DatasetPropertyFilter() { + *this = ::std::move(from); + } + + inline DatasetPropertyFilter& operator=(DatasetPropertyFilter&& 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 DatasetPropertyFilter& default_instance(); + + enum PropertyCase { + kProject = 1, + kName = 2, + kDomain = 3, + kVersion = 4, + PROPERTY_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DatasetPropertyFilter* internal_default_instance() { + return reinterpret_cast( + &_DatasetPropertyFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 28; + + void Swap(DatasetPropertyFilter* other); + friend void swap(DatasetPropertyFilter& a, DatasetPropertyFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DatasetPropertyFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + DatasetPropertyFilter* 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 DatasetPropertyFilter& from); + void MergeFrom(const DatasetPropertyFilter& 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(DatasetPropertyFilter* 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 project = 1; + private: + bool has_project() const; + public: + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string name = 2; + private: + bool has_name() const; + public: + 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 domain = 3; + private: + bool has_domain() const; + public: + void clear_domain(); + static const int kDomainFieldNumber = 3; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string version = 4; + private: + bool has_version() const; + public: + void clear_version(); + static const int kVersionFieldNumber = 4; + const ::std::string& version() const; + void set_version(const ::std::string& value); + #if LANG_CXX11 + void set_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); + + void clear_property(); + PropertyCase property_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.DatasetPropertyFilter) + private: + class HasBitSetters; + void set_has_project(); + void set_has_name(); + void set_has_domain(); + void set_has_version(); + + inline bool has_property() const; + inline void clear_has_property(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union PropertyUnion { + PropertyUnion() {} + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr version_; + } property_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class PaginationOptions final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.PaginationOptions) */ { + public: + PaginationOptions(); + virtual ~PaginationOptions(); + + PaginationOptions(const PaginationOptions& from); + + inline PaginationOptions& operator=(const PaginationOptions& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PaginationOptions(PaginationOptions&& from) noexcept + : PaginationOptions() { + *this = ::std::move(from); + } + + inline PaginationOptions& operator=(PaginationOptions&& 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 PaginationOptions& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PaginationOptions* internal_default_instance() { + return reinterpret_cast( + &_PaginationOptions_default_instance_); + } + static constexpr int kIndexInFileMessages = + 29; + + void Swap(PaginationOptions* other); + friend void swap(PaginationOptions& a, PaginationOptions& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PaginationOptions* New() const final { + return CreateMaybeMessage(nullptr); + } + + PaginationOptions* 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 PaginationOptions& from); + void MergeFrom(const PaginationOptions& 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(PaginationOptions* 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 PaginationOptions_SortOrder SortOrder; + static const SortOrder DESCENDING = + PaginationOptions_SortOrder_DESCENDING; + static const SortOrder ASCENDING = + PaginationOptions_SortOrder_ASCENDING; + static inline bool SortOrder_IsValid(int value) { + return PaginationOptions_SortOrder_IsValid(value); + } + static const SortOrder SortOrder_MIN = + PaginationOptions_SortOrder_SortOrder_MIN; + static const SortOrder SortOrder_MAX = + PaginationOptions_SortOrder_SortOrder_MAX; + static const int SortOrder_ARRAYSIZE = + PaginationOptions_SortOrder_SortOrder_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + SortOrder_descriptor() { + return PaginationOptions_SortOrder_descriptor(); + } + static inline const ::std::string& SortOrder_Name(SortOrder value) { + return PaginationOptions_SortOrder_Name(value); + } + static inline bool SortOrder_Parse(const ::std::string& name, + SortOrder* value) { + return PaginationOptions_SortOrder_Parse(name, value); + } + + typedef PaginationOptions_SortKey SortKey; + static const SortKey CREATION_TIME = + PaginationOptions_SortKey_CREATION_TIME; + static inline bool SortKey_IsValid(int value) { + return PaginationOptions_SortKey_IsValid(value); + } + static const SortKey SortKey_MIN = + PaginationOptions_SortKey_SortKey_MIN; + static const SortKey SortKey_MAX = + PaginationOptions_SortKey_SortKey_MAX; + static const int SortKey_ARRAYSIZE = + PaginationOptions_SortKey_SortKey_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + SortKey_descriptor() { + return PaginationOptions_SortKey_descriptor(); + } + static inline const ::std::string& SortKey_Name(SortKey value) { + return PaginationOptions_SortKey_Name(value); + } + static inline bool SortKey_Parse(const ::std::string& name, + SortKey* value) { + return PaginationOptions_SortKey_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // uint32 limit = 1; + void clear_limit(); + static const int kLimitFieldNumber = 1; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // .datacatalog.PaginationOptions.SortKey sortKey = 3; + void clear_sortkey(); + static const int kSortKeyFieldNumber = 3; + ::datacatalog::PaginationOptions_SortKey sortkey() const; + void set_sortkey(::datacatalog::PaginationOptions_SortKey value); + + // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + void clear_sortorder(); + static const int kSortOrderFieldNumber = 4; + ::datacatalog::PaginationOptions_SortOrder sortorder() const; + void set_sortorder(::datacatalog::PaginationOptions_SortOrder value); + + // @@protoc_insertion_point(class_scope:datacatalog.PaginationOptions) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::uint32 limit_; + int sortkey_; + int sortorder_; + 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__ +// CreateDatasetRequest + +// .datacatalog.Dataset dataset = 1; +inline bool CreateDatasetRequest::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void CreateDatasetRequest::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::Dataset& CreateDatasetRequest::dataset() const { + const ::datacatalog::Dataset* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.CreateDatasetRequest.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Dataset_default_instance_); +} +inline ::datacatalog::Dataset* CreateDatasetRequest::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.CreateDatasetRequest.dataset) + + ::datacatalog::Dataset* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::Dataset* CreateDatasetRequest::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Dataset>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.CreateDatasetRequest.dataset) + return dataset_; +} +inline void CreateDatasetRequest::set_allocated_dataset(::datacatalog::Dataset* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.CreateDatasetRequest.dataset) +} + +// ------------------------------------------------------------------- + +// CreateDatasetResponse + +// ------------------------------------------------------------------- + +// GetDatasetRequest + +// .datacatalog.DatasetID dataset = 1; +inline bool GetDatasetRequest::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void GetDatasetRequest::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::DatasetID& GetDatasetRequest::dataset() const { + const ::datacatalog::DatasetID* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.GetDatasetRequest.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* GetDatasetRequest::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.GetDatasetRequest.dataset) + + ::datacatalog::DatasetID* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::DatasetID* GetDatasetRequest::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetDatasetRequest.dataset) + return dataset_; +} +inline void GetDatasetRequest::set_allocated_dataset(::datacatalog::DatasetID* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetDatasetRequest.dataset) +} + +// ------------------------------------------------------------------- + +// GetDatasetResponse + +// .datacatalog.Dataset dataset = 1; +inline bool GetDatasetResponse::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void GetDatasetResponse::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::Dataset& GetDatasetResponse::dataset() const { + const ::datacatalog::Dataset* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.GetDatasetResponse.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Dataset_default_instance_); +} +inline ::datacatalog::Dataset* GetDatasetResponse::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.GetDatasetResponse.dataset) + + ::datacatalog::Dataset* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::Dataset* GetDatasetResponse::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Dataset>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetDatasetResponse.dataset) + return dataset_; +} +inline void GetDatasetResponse::set_allocated_dataset(::datacatalog::Dataset* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetDatasetResponse.dataset) +} + +// ------------------------------------------------------------------- + +// GetArtifactRequest + +// .datacatalog.DatasetID dataset = 1; +inline bool GetArtifactRequest::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void GetArtifactRequest::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::DatasetID& GetArtifactRequest::dataset() const { + const ::datacatalog::DatasetID* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.GetArtifactRequest.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* GetArtifactRequest::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.GetArtifactRequest.dataset) + + ::datacatalog::DatasetID* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::DatasetID* GetArtifactRequest::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactRequest.dataset) + return dataset_; +} +inline void GetArtifactRequest::set_allocated_dataset(::datacatalog::DatasetID* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetArtifactRequest.dataset) +} + +// string artifact_id = 2; +inline bool GetArtifactRequest::has_artifact_id() const { + return query_handle_case() == kArtifactId; +} +inline void GetArtifactRequest::set_has_artifact_id() { + _oneof_case_[0] = kArtifactId; +} +inline void GetArtifactRequest::clear_artifact_id() { + if (has_artifact_id()) { + query_handle_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_query_handle(); + } +} +inline const ::std::string& GetArtifactRequest::artifact_id() const { + // @@protoc_insertion_point(field_get:datacatalog.GetArtifactRequest.artifact_id) + if (has_artifact_id()) { + return query_handle_.artifact_id_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void GetArtifactRequest::set_artifact_id(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.artifact_id) + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.artifact_id) +} +#if LANG_CXX11 +inline void GetArtifactRequest::set_artifact_id(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.artifact_id) + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.GetArtifactRequest.artifact_id) +} +#endif +inline void GetArtifactRequest::set_artifact_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.GetArtifactRequest.artifact_id) +} +inline void GetArtifactRequest::set_artifact_id(const char* value, size_t size) { + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.GetArtifactRequest.artifact_id) +} +inline ::std::string* GetArtifactRequest::mutable_artifact_id() { + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactRequest.artifact_id) + return query_handle_.artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetArtifactRequest::release_artifact_id() { + // @@protoc_insertion_point(field_release:datacatalog.GetArtifactRequest.artifact_id) + if (has_artifact_id()) { + clear_has_query_handle(); + return query_handle_.artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void GetArtifactRequest::set_allocated_artifact_id(::std::string* artifact_id) { + if (has_query_handle()) { + clear_query_handle(); + } + if (artifact_id != nullptr) { + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(artifact_id); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetArtifactRequest.artifact_id) +} + +// string tag_name = 3; +inline bool GetArtifactRequest::has_tag_name() const { + return query_handle_case() == kTagName; +} +inline void GetArtifactRequest::set_has_tag_name() { + _oneof_case_[0] = kTagName; +} +inline void GetArtifactRequest::clear_tag_name() { + if (has_tag_name()) { + query_handle_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_query_handle(); + } +} +inline const ::std::string& GetArtifactRequest::tag_name() const { + // @@protoc_insertion_point(field_get:datacatalog.GetArtifactRequest.tag_name) + if (has_tag_name()) { + return query_handle_.tag_name_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void GetArtifactRequest::set_tag_name(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.tag_name) + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.tag_name) +} +#if LANG_CXX11 +inline void GetArtifactRequest::set_tag_name(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.tag_name) + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.GetArtifactRequest.tag_name) +} +#endif +inline void GetArtifactRequest::set_tag_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.GetArtifactRequest.tag_name) +} +inline void GetArtifactRequest::set_tag_name(const char* value, size_t size) { + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.GetArtifactRequest.tag_name) +} +inline ::std::string* GetArtifactRequest::mutable_tag_name() { + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactRequest.tag_name) + return query_handle_.tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetArtifactRequest::release_tag_name() { + // @@protoc_insertion_point(field_release:datacatalog.GetArtifactRequest.tag_name) + if (has_tag_name()) { + clear_has_query_handle(); + return query_handle_.tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void GetArtifactRequest::set_allocated_tag_name(::std::string* tag_name) { + if (has_query_handle()) { + clear_query_handle(); + } + if (tag_name != nullptr) { + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(tag_name); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetArtifactRequest.tag_name) +} + +inline bool GetArtifactRequest::has_query_handle() const { + return query_handle_case() != QUERY_HANDLE_NOT_SET; +} +inline void GetArtifactRequest::clear_has_query_handle() { + _oneof_case_[0] = QUERY_HANDLE_NOT_SET; +} +inline GetArtifactRequest::QueryHandleCase GetArtifactRequest::query_handle_case() const { + return GetArtifactRequest::QueryHandleCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// GetArtifactResponse + +// .datacatalog.Artifact artifact = 1; +inline bool GetArtifactResponse::has_artifact() const { + return this != internal_default_instance() && artifact_ != nullptr; +} +inline void GetArtifactResponse::clear_artifact() { + if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { + delete artifact_; + } + artifact_ = nullptr; +} +inline const ::datacatalog::Artifact& GetArtifactResponse::artifact() const { + const ::datacatalog::Artifact* p = artifact_; + // @@protoc_insertion_point(field_get:datacatalog.GetArtifactResponse.artifact) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Artifact_default_instance_); +} +inline ::datacatalog::Artifact* GetArtifactResponse::release_artifact() { + // @@protoc_insertion_point(field_release:datacatalog.GetArtifactResponse.artifact) + + ::datacatalog::Artifact* temp = artifact_; + artifact_ = nullptr; + return temp; +} +inline ::datacatalog::Artifact* GetArtifactResponse::mutable_artifact() { + + if (artifact_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Artifact>(GetArenaNoVirtual()); + artifact_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactResponse.artifact) + return artifact_; +} +inline void GetArtifactResponse::set_allocated_artifact(::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:datacatalog.GetArtifactResponse.artifact) +} + +// ------------------------------------------------------------------- + +// CreateArtifactRequest + +// .datacatalog.Artifact artifact = 1; +inline bool CreateArtifactRequest::has_artifact() const { + return this != internal_default_instance() && artifact_ != nullptr; +} +inline void CreateArtifactRequest::clear_artifact() { + if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { + delete artifact_; + } + artifact_ = nullptr; +} +inline const ::datacatalog::Artifact& CreateArtifactRequest::artifact() const { + const ::datacatalog::Artifact* p = artifact_; + // @@protoc_insertion_point(field_get:datacatalog.CreateArtifactRequest.artifact) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Artifact_default_instance_); +} +inline ::datacatalog::Artifact* CreateArtifactRequest::release_artifact() { + // @@protoc_insertion_point(field_release:datacatalog.CreateArtifactRequest.artifact) + + ::datacatalog::Artifact* temp = artifact_; + artifact_ = nullptr; + return temp; +} +inline ::datacatalog::Artifact* CreateArtifactRequest::mutable_artifact() { + + if (artifact_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Artifact>(GetArenaNoVirtual()); + artifact_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.CreateArtifactRequest.artifact) + return artifact_; +} +inline void CreateArtifactRequest::set_allocated_artifact(::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:datacatalog.CreateArtifactRequest.artifact) +} + +// ------------------------------------------------------------------- + +// CreateArtifactResponse + +// ------------------------------------------------------------------- + +// AddTagRequest + +// .datacatalog.Tag tag = 1; +inline bool AddTagRequest::has_tag() const { + return this != internal_default_instance() && tag_ != nullptr; +} +inline void AddTagRequest::clear_tag() { + if (GetArenaNoVirtual() == nullptr && tag_ != nullptr) { + delete tag_; + } + tag_ = nullptr; +} +inline const ::datacatalog::Tag& AddTagRequest::tag() const { + const ::datacatalog::Tag* p = tag_; + // @@protoc_insertion_point(field_get:datacatalog.AddTagRequest.tag) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Tag_default_instance_); +} +inline ::datacatalog::Tag* AddTagRequest::release_tag() { + // @@protoc_insertion_point(field_release:datacatalog.AddTagRequest.tag) + + ::datacatalog::Tag* temp = tag_; + tag_ = nullptr; + return temp; +} +inline ::datacatalog::Tag* AddTagRequest::mutable_tag() { + + if (tag_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Tag>(GetArenaNoVirtual()); + tag_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.AddTagRequest.tag) + return tag_; +} +inline void AddTagRequest::set_allocated_tag(::datacatalog::Tag* tag) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete tag_; + } + if (tag) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + tag = ::google::protobuf::internal::GetOwnedMessage( + message_arena, tag, submessage_arena); + } + + } else { + + } + tag_ = tag; + // @@protoc_insertion_point(field_set_allocated:datacatalog.AddTagRequest.tag) +} + +// ------------------------------------------------------------------- + +// AddTagResponse + +// ------------------------------------------------------------------- + +// ListArtifactsRequest + +// .datacatalog.DatasetID dataset = 1; +inline bool ListArtifactsRequest::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void ListArtifactsRequest::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::DatasetID& ListArtifactsRequest::dataset() const { + const ::datacatalog::DatasetID* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsRequest.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* ListArtifactsRequest::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsRequest.dataset) + + ::datacatalog::DatasetID* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::DatasetID* ListArtifactsRequest::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsRequest.dataset) + return dataset_; +} +inline void ListArtifactsRequest::set_allocated_dataset(::datacatalog::DatasetID* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsRequest.dataset) +} + +// .datacatalog.FilterExpression filter = 2; +inline bool ListArtifactsRequest::has_filter() const { + return this != internal_default_instance() && filter_ != nullptr; +} +inline void ListArtifactsRequest::clear_filter() { + if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { + delete filter_; + } + filter_ = nullptr; +} +inline const ::datacatalog::FilterExpression& ListArtifactsRequest::filter() const { + const ::datacatalog::FilterExpression* p = filter_; + // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsRequest.filter) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_FilterExpression_default_instance_); +} +inline ::datacatalog::FilterExpression* ListArtifactsRequest::release_filter() { + // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsRequest.filter) + + ::datacatalog::FilterExpression* temp = filter_; + filter_ = nullptr; + return temp; +} +inline ::datacatalog::FilterExpression* ListArtifactsRequest::mutable_filter() { + + if (filter_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::FilterExpression>(GetArenaNoVirtual()); + filter_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsRequest.filter) + return filter_; +} +inline void ListArtifactsRequest::set_allocated_filter(::datacatalog::FilterExpression* filter) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete filter_; + } + if (filter) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + filter = ::google::protobuf::internal::GetOwnedMessage( + message_arena, filter, submessage_arena); + } + + } else { + + } + filter_ = filter; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsRequest.filter) +} + +// .datacatalog.PaginationOptions pagination = 3; +inline bool ListArtifactsRequest::has_pagination() const { + return this != internal_default_instance() && pagination_ != nullptr; +} +inline void ListArtifactsRequest::clear_pagination() { + if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { + delete pagination_; + } + pagination_ = nullptr; +} +inline const ::datacatalog::PaginationOptions& ListArtifactsRequest::pagination() const { + const ::datacatalog::PaginationOptions* p = pagination_; + // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsRequest.pagination) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_PaginationOptions_default_instance_); +} +inline ::datacatalog::PaginationOptions* ListArtifactsRequest::release_pagination() { + // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsRequest.pagination) + + ::datacatalog::PaginationOptions* temp = pagination_; + pagination_ = nullptr; + return temp; +} +inline ::datacatalog::PaginationOptions* ListArtifactsRequest::mutable_pagination() { + + if (pagination_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::PaginationOptions>(GetArenaNoVirtual()); + pagination_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsRequest.pagination) + return pagination_; +} +inline void ListArtifactsRequest::set_allocated_pagination(::datacatalog::PaginationOptions* pagination) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete pagination_; + } + if (pagination) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + pagination = ::google::protobuf::internal::GetOwnedMessage( + message_arena, pagination, submessage_arena); + } + + } else { + + } + pagination_ = pagination; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsRequest.pagination) +} + +// ------------------------------------------------------------------- + +// ListArtifactsResponse + +// repeated .datacatalog.Artifact artifacts = 1; +inline int ListArtifactsResponse::artifacts_size() const { + return artifacts_.size(); +} +inline void ListArtifactsResponse::clear_artifacts() { + artifacts_.Clear(); +} +inline ::datacatalog::Artifact* ListArtifactsResponse::mutable_artifacts(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsResponse.artifacts) + return artifacts_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >* +ListArtifactsResponse::mutable_artifacts() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.ListArtifactsResponse.artifacts) + return &artifacts_; +} +inline const ::datacatalog::Artifact& ListArtifactsResponse::artifacts(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsResponse.artifacts) + return artifacts_.Get(index); +} +inline ::datacatalog::Artifact* ListArtifactsResponse::add_artifacts() { + // @@protoc_insertion_point(field_add:datacatalog.ListArtifactsResponse.artifacts) + return artifacts_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >& +ListArtifactsResponse::artifacts() const { + // @@protoc_insertion_point(field_list:datacatalog.ListArtifactsResponse.artifacts) + return artifacts_; +} + +// string next_token = 2; +inline void ListArtifactsResponse::clear_next_token() { + next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ListArtifactsResponse::next_token() const { + // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsResponse.next_token) + return next_token_.GetNoArena(); +} +inline void ListArtifactsResponse::set_next_token(const ::std::string& value) { + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ListArtifactsResponse.next_token) +} +#if LANG_CXX11 +inline void ListArtifactsResponse::set_next_token(::std::string&& value) { + + next_token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ListArtifactsResponse.next_token) +} +#endif +inline void ListArtifactsResponse::set_next_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ListArtifactsResponse.next_token) +} +inline void ListArtifactsResponse::set_next_token(const char* value, size_t size) { + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.ListArtifactsResponse.next_token) +} +inline ::std::string* ListArtifactsResponse::mutable_next_token() { + + // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsResponse.next_token) + return next_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ListArtifactsResponse::release_next_token() { + // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsResponse.next_token) + + return next_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ListArtifactsResponse::set_allocated_next_token(::std::string* next_token) { + if (next_token != nullptr) { + + } else { + + } + next_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_token); + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsResponse.next_token) +} + +// ------------------------------------------------------------------- + +// ListDatasetsRequest + +// .datacatalog.FilterExpression filter = 1; +inline bool ListDatasetsRequest::has_filter() const { + return this != internal_default_instance() && filter_ != nullptr; +} +inline void ListDatasetsRequest::clear_filter() { + if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { + delete filter_; + } + filter_ = nullptr; +} +inline const ::datacatalog::FilterExpression& ListDatasetsRequest::filter() const { + const ::datacatalog::FilterExpression* p = filter_; + // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsRequest.filter) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_FilterExpression_default_instance_); +} +inline ::datacatalog::FilterExpression* ListDatasetsRequest::release_filter() { + // @@protoc_insertion_point(field_release:datacatalog.ListDatasetsRequest.filter) + + ::datacatalog::FilterExpression* temp = filter_; + filter_ = nullptr; + return temp; +} +inline ::datacatalog::FilterExpression* ListDatasetsRequest::mutable_filter() { + + if (filter_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::FilterExpression>(GetArenaNoVirtual()); + filter_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsRequest.filter) + return filter_; +} +inline void ListDatasetsRequest::set_allocated_filter(::datacatalog::FilterExpression* filter) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete filter_; + } + if (filter) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + filter = ::google::protobuf::internal::GetOwnedMessage( + message_arena, filter, submessage_arena); + } + + } else { + + } + filter_ = filter; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListDatasetsRequest.filter) +} + +// .datacatalog.PaginationOptions pagination = 2; +inline bool ListDatasetsRequest::has_pagination() const { + return this != internal_default_instance() && pagination_ != nullptr; +} +inline void ListDatasetsRequest::clear_pagination() { + if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { + delete pagination_; + } + pagination_ = nullptr; +} +inline const ::datacatalog::PaginationOptions& ListDatasetsRequest::pagination() const { + const ::datacatalog::PaginationOptions* p = pagination_; + // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsRequest.pagination) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_PaginationOptions_default_instance_); +} +inline ::datacatalog::PaginationOptions* ListDatasetsRequest::release_pagination() { + // @@protoc_insertion_point(field_release:datacatalog.ListDatasetsRequest.pagination) + + ::datacatalog::PaginationOptions* temp = pagination_; + pagination_ = nullptr; + return temp; +} +inline ::datacatalog::PaginationOptions* ListDatasetsRequest::mutable_pagination() { + + if (pagination_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::PaginationOptions>(GetArenaNoVirtual()); + pagination_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsRequest.pagination) + return pagination_; +} +inline void ListDatasetsRequest::set_allocated_pagination(::datacatalog::PaginationOptions* pagination) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete pagination_; + } + if (pagination) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + pagination = ::google::protobuf::internal::GetOwnedMessage( + message_arena, pagination, submessage_arena); + } + + } else { + + } + pagination_ = pagination; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListDatasetsRequest.pagination) +} + +// ------------------------------------------------------------------- + +// ListDatasetsResponse + +// repeated .datacatalog.Dataset datasets = 1; +inline int ListDatasetsResponse::datasets_size() const { + return datasets_.size(); +} +inline void ListDatasetsResponse::clear_datasets() { + datasets_.Clear(); +} +inline ::datacatalog::Dataset* ListDatasetsResponse::mutable_datasets(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsResponse.datasets) + return datasets_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >* +ListDatasetsResponse::mutable_datasets() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.ListDatasetsResponse.datasets) + return &datasets_; +} +inline const ::datacatalog::Dataset& ListDatasetsResponse::datasets(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsResponse.datasets) + return datasets_.Get(index); +} +inline ::datacatalog::Dataset* ListDatasetsResponse::add_datasets() { + // @@protoc_insertion_point(field_add:datacatalog.ListDatasetsResponse.datasets) + return datasets_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >& +ListDatasetsResponse::datasets() const { + // @@protoc_insertion_point(field_list:datacatalog.ListDatasetsResponse.datasets) + return datasets_; +} + +// string next_token = 2; +inline void ListDatasetsResponse::clear_next_token() { + next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ListDatasetsResponse::next_token() const { + // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsResponse.next_token) + return next_token_.GetNoArena(); +} +inline void ListDatasetsResponse::set_next_token(const ::std::string& value) { + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ListDatasetsResponse.next_token) +} +#if LANG_CXX11 +inline void ListDatasetsResponse::set_next_token(::std::string&& value) { + + next_token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ListDatasetsResponse.next_token) +} +#endif +inline void ListDatasetsResponse::set_next_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ListDatasetsResponse.next_token) +} +inline void ListDatasetsResponse::set_next_token(const char* value, size_t size) { + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.ListDatasetsResponse.next_token) +} +inline ::std::string* ListDatasetsResponse::mutable_next_token() { + + // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsResponse.next_token) + return next_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ListDatasetsResponse::release_next_token() { + // @@protoc_insertion_point(field_release:datacatalog.ListDatasetsResponse.next_token) + + return next_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ListDatasetsResponse::set_allocated_next_token(::std::string* next_token) { + if (next_token != nullptr) { + + } else { + + } + next_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_token); + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListDatasetsResponse.next_token) +} + +// ------------------------------------------------------------------- + +// Dataset + +// .datacatalog.DatasetID id = 1; +inline bool Dataset::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline void Dataset::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +inline const ::datacatalog::DatasetID& Dataset::id() const { + const ::datacatalog::DatasetID* p = id_; + // @@protoc_insertion_point(field_get:datacatalog.Dataset.id) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* Dataset::release_id() { + // @@protoc_insertion_point(field_release:datacatalog.Dataset.id) + + ::datacatalog::DatasetID* temp = id_; + id_ = nullptr; + return temp; } -inline void Parameter::set_name(const char* value, size_t size) { +inline ::datacatalog::DatasetID* Dataset::mutable_id() { - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Dataset.id) + return id_; +} +inline void Dataset::set_allocated_id(::datacatalog::DatasetID* 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:datacatalog.Dataset.id) +} + +// .datacatalog.Metadata metadata = 2; +inline bool Dataset::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void Dataset::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::datacatalog::Metadata& Dataset::metadata() const { + const ::datacatalog::Metadata* p = metadata_; + // @@protoc_insertion_point(field_get:datacatalog.Dataset.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Metadata_default_instance_); +} +inline ::datacatalog::Metadata* Dataset::release_metadata() { + // @@protoc_insertion_point(field_release:datacatalog.Dataset.metadata) + + ::datacatalog::Metadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::datacatalog::Metadata* Dataset::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Metadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Dataset.metadata) + return metadata_; +} +inline void Dataset::set_allocated_metadata(::datacatalog::Metadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:datacatalog.Dataset.metadata) +} + +// repeated string partitionKeys = 3; +inline int Dataset::partitionkeys_size() const { + return partitionkeys_.size(); +} +inline void Dataset::clear_partitionkeys() { + partitionkeys_.Clear(); +} +inline const ::std::string& Dataset::partitionkeys(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.Dataset.partitionKeys) + return partitionkeys_.Get(index); +} +inline ::std::string* Dataset::mutable_partitionkeys(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.Dataset.partitionKeys) + return partitionkeys_.Mutable(index); +} +inline void Dataset::set_partitionkeys(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.Dataset.partitionKeys) + partitionkeys_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void Dataset::set_partitionkeys(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.Dataset.partitionKeys) + partitionkeys_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void Dataset::set_partitionkeys(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + partitionkeys_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:datacatalog.Dataset.partitionKeys) +} +inline void Dataset::set_partitionkeys(int index, const char* value, size_t size) { + partitionkeys_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:datacatalog.Dataset.partitionKeys) +} +inline ::std::string* Dataset::add_partitionkeys() { + // @@protoc_insertion_point(field_add_mutable:datacatalog.Dataset.partitionKeys) + return partitionkeys_.Add(); +} +inline void Dataset::add_partitionkeys(const ::std::string& value) { + partitionkeys_.Add()->assign(value); + // @@protoc_insertion_point(field_add:datacatalog.Dataset.partitionKeys) +} +#if LANG_CXX11 +inline void Dataset::add_partitionkeys(::std::string&& value) { + partitionkeys_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:datacatalog.Dataset.partitionKeys) +} +#endif +inline void Dataset::add_partitionkeys(const char* value) { + GOOGLE_DCHECK(value != nullptr); + partitionkeys_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:datacatalog.Dataset.partitionKeys) +} +inline void Dataset::add_partitionkeys(const char* value, size_t size) { + partitionkeys_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:datacatalog.Dataset.partitionKeys) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +Dataset::partitionkeys() const { + // @@protoc_insertion_point(field_list:datacatalog.Dataset.partitionKeys) + return partitionkeys_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +Dataset::mutable_partitionkeys() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.Dataset.partitionKeys) + return &partitionkeys_; +} + +// ------------------------------------------------------------------- + +// Partition + +// string key = 1; +inline void Partition::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Partition::key() const { + // @@protoc_insertion_point(field_get:datacatalog.Partition.key) + return key_.GetNoArena(); +} +inline void Partition::set_key(const ::std::string& value) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.Partition.key) +} +#if LANG_CXX11 +inline void Partition::set_key(::std::string&& value) { + + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.Partition.key) +} +#endif +inline void Partition::set_key(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.Partition.key) +} +inline void Partition::set_key(const char* value, size_t size) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.Parameter.name) + // @@protoc_insertion_point(field_set_pointer:datacatalog.Partition.key) } -inline ::std::string* Parameter::mutable_name() { +inline ::std::string* Partition::mutable_key() { - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.Parameter.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:datacatalog.Partition.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* Parameter::release_name() { - // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.Parameter.name) +inline ::std::string* Partition::release_key() { + // @@protoc_insertion_point(field_release:datacatalog.Partition.key) - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Parameter::set_allocated_name(::std::string* name) { - if (name != nullptr) { +inline void Partition::set_allocated_key(::std::string* key) { + if (key != nullptr) { } else { } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.Parameter.name) + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:datacatalog.Partition.key) } // string value = 2; -inline void Parameter::clear_value() { +inline void Partition::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) +inline const ::std::string& Partition::value() const { + // @@protoc_insertion_point(field_get:datacatalog.Partition.value) return value_.GetNoArena(); } -inline void Parameter::set_value(const ::std::string& value) { +inline void Partition::set_value(const ::std::string& value) { value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.Parameter.value) + // @@protoc_insertion_point(field_set:datacatalog.Partition.value) } #if LANG_CXX11 -inline void Parameter::set_value(::std::string&& value) { +inline void Partition::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) + // @@protoc_insertion_point(field_set_rvalue:datacatalog.Partition.value) } #endif -inline void Parameter::set_value(const char* value) { +inline void Partition::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) + // @@protoc_insertion_point(field_set_char:datacatalog.Partition.value) } -inline void Parameter::set_value(const char* value, size_t size) { +inline void Partition::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) + // @@protoc_insertion_point(field_set_pointer:datacatalog.Partition.value) } -inline ::std::string* Parameter::mutable_value() { +inline ::std::string* Partition::mutable_value() { - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.Parameter.value) + // @@protoc_insertion_point(field_mutable:datacatalog.Partition.value) return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* Parameter::release_value() { - // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.Parameter.value) +inline ::std::string* Partition::release_value() { + // @@protoc_insertion_point(field_release:datacatalog.Partition.value) return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Parameter::set_allocated_value(::std::string* value) { +inline void Partition::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) + // @@protoc_insertion_point(field_set_allocated:datacatalog.Partition.value) } // ------------------------------------------------------------------- -// Artifact +// DatasetID -// string provenance = 1; -inline void Artifact::clear_provenance() { - provenance_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string project = 1; +inline void DatasetID::clear_project() { + project_.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 const ::std::string& DatasetID::project() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetID.project) + return project_.GetNoArena(); } -inline void Artifact::set_provenance(const ::std::string& value) { +inline void DatasetID::set_project(const ::std::string& value) { - provenance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.Artifact.provenance) + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetID.project) } #if LANG_CXX11 -inline void Artifact::set_provenance(::std::string&& value) { +inline void DatasetID::set_project(::std::string&& value) { - provenance_.SetNoArena( + project_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.Artifact.provenance) + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetID.project) } #endif -inline void Artifact::set_provenance(const char* value) { +inline void DatasetID::set_project(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) + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetID.project) } -inline void Artifact::set_provenance(const char* value, size_t size) { +inline void DatasetID::set_project(const char* value, size_t size) { - provenance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.Artifact.provenance) + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetID.project) } -inline ::std::string* Artifact::mutable_provenance() { +inline ::std::string* DatasetID::mutable_project() { - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.Artifact.provenance) - return provenance_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetID.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* Artifact::release_provenance() { - // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.Artifact.provenance) +inline ::std::string* DatasetID::release_project() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetID.project) - return provenance_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Artifact::set_allocated_provenance(::std::string* provenance) { - if (provenance != nullptr) { +inline void DatasetID::set_allocated_project(::std::string* project) { + if (project != nullptr) { } else { } - provenance_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), provenance); - // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.Artifact.provenance) + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetID.project) } // string name = 2; -inline void Artifact::clear_name() { +inline void DatasetID::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) +inline const ::std::string& DatasetID::name() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetID.name) return name_.GetNoArena(); } -inline void Artifact::set_name(const ::std::string& value) { +inline void DatasetID::set_name(const ::std::string& value) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.Artifact.name) + // @@protoc_insertion_point(field_set:datacatalog.DatasetID.name) } #if LANG_CXX11 -inline void Artifact::set_name(::std::string&& value) { +inline void DatasetID::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) + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetID.name) } #endif -inline void Artifact::set_name(const char* value) { +inline void DatasetID::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) + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetID.name) } -inline void Artifact::set_name(const char* value, size_t size) { +inline void DatasetID::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) + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetID.name) } -inline ::std::string* Artifact::mutable_name() { +inline ::std::string* DatasetID::mutable_name() { - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.Artifact.name) + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetID.name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* Artifact::release_name() { - // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.Artifact.name) +inline ::std::string* DatasetID::release_name() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetID.name) return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Artifact::set_allocated_name(::std::string* name) { +inline void DatasetID::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) + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetID.name) +} + +// string domain = 3; +inline void DatasetID::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DatasetID::domain() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetID.domain) + return domain_.GetNoArena(); +} +inline void DatasetID::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetID.domain) +} +#if LANG_CXX11 +inline void DatasetID::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetID.domain) +} +#endif +inline void DatasetID::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetID.domain) +} +inline void DatasetID::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetID.domain) +} +inline ::std::string* DatasetID::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetID.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DatasetID::release_domain() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetID.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DatasetID::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetID.domain) } -// string version = 3; -inline void Artifact::clear_version() { +// string version = 4; +inline void DatasetID::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) +inline const ::std::string& DatasetID::version() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetID.version) return version_.GetNoArena(); } -inline void Artifact::set_version(const ::std::string& value) { +inline void DatasetID::set_version(const ::std::string& value) { version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.Artifact.version) + // @@protoc_insertion_point(field_set:datacatalog.DatasetID.version) } #if LANG_CXX11 -inline void Artifact::set_version(::std::string&& value) { +inline void DatasetID::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) + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetID.version) } #endif -inline void Artifact::set_version(const char* value) { +inline void DatasetID::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) + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetID.version) } -inline void Artifact::set_version(const char* value, size_t size) { +inline void DatasetID::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) + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetID.version) } -inline ::std::string* Artifact::mutable_version() { +inline ::std::string* DatasetID::mutable_version() { - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.Artifact.version) + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetID.version) return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* Artifact::release_version() { - // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.Artifact.version) +inline ::std::string* DatasetID::release_version() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetID.version) return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Artifact::set_allocated_version(::std::string* version) { +inline void DatasetID::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) + version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetID.version) +} + +// string UUID = 5; +inline void DatasetID::clear_uuid() { + uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DatasetID::uuid() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetID.UUID) + return uuid_.GetNoArena(); +} +inline void DatasetID::set_uuid(const ::std::string& value) { + + uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetID.UUID) +} +#if LANG_CXX11 +inline void DatasetID::set_uuid(::std::string&& value) { + + uuid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetID.UUID) +} +#endif +inline void DatasetID::set_uuid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetID.UUID) +} +inline void DatasetID::set_uuid(const char* value, size_t size) { + + uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetID.UUID) +} +inline ::std::string* DatasetID::mutable_uuid() { + + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetID.UUID) + return uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DatasetID::release_uuid() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetID.UUID) + + return uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DatasetID::set_allocated_uuid(::std::string* uuid) { + if (uuid != nullptr) { + + } else { + + } + uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uuid); + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetID.UUID) +} + +// ------------------------------------------------------------------- + +// Artifact + +// string id = 1; +inline void Artifact::clear_id() { + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Artifact::id() const { + // @@protoc_insertion_point(field_get:datacatalog.Artifact.id) + return id_.GetNoArena(); +} +inline void Artifact::set_id(const ::std::string& value) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.Artifact.id) +} +#if LANG_CXX11 +inline void Artifact::set_id(::std::string&& value) { + + id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.Artifact.id) +} +#endif +inline void Artifact::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.Artifact.id) +} +inline void Artifact::set_id(const char* value, size_t size) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.Artifact.id) +} +inline ::std::string* Artifact::mutable_id() { + + // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.id) + return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Artifact::release_id() { + // @@protoc_insertion_point(field_release:datacatalog.Artifact.id) + + return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Artifact::set_allocated_id(::std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); + // @@protoc_insertion_point(field_set_allocated:datacatalog.Artifact.id) +} + +// .datacatalog.DatasetID dataset = 2; +inline bool Artifact::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void Artifact::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::DatasetID& Artifact::dataset() const { + const ::datacatalog::DatasetID* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.Artifact.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* Artifact::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.Artifact.dataset) + + ::datacatalog::DatasetID* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::DatasetID* Artifact::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.dataset) + return dataset_; +} +inline void Artifact::set_allocated_dataset(::datacatalog::DatasetID* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.Artifact.dataset) +} + +// repeated .datacatalog.ArtifactData data = 3; +inline int Artifact::data_size() const { + return data_.size(); +} +inline void Artifact::clear_data() { + data_.Clear(); +} +inline ::datacatalog::ArtifactData* Artifact::mutable_data(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.data) + return data_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >* +Artifact::mutable_data() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.Artifact.data) + return &data_; +} +inline const ::datacatalog::ArtifactData& Artifact::data(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.Artifact.data) + return data_.Get(index); +} +inline ::datacatalog::ArtifactData* Artifact::add_data() { + // @@protoc_insertion_point(field_add:datacatalog.Artifact.data) + return data_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >& +Artifact::data() const { + // @@protoc_insertion_point(field_list:datacatalog.Artifact.data) + return data_; +} + +// .datacatalog.Metadata metadata = 4; +inline bool Artifact::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void Artifact::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::datacatalog::Metadata& Artifact::metadata() const { + const ::datacatalog::Metadata* p = metadata_; + // @@protoc_insertion_point(field_get:datacatalog.Artifact.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Metadata_default_instance_); +} +inline ::datacatalog::Metadata* Artifact::release_metadata() { + // @@protoc_insertion_point(field_release:datacatalog.Artifact.metadata) + + ::datacatalog::Metadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::datacatalog::Metadata* Artifact::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Metadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.metadata) + return metadata_; +} +inline void Artifact::set_allocated_metadata(::datacatalog::Metadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:datacatalog.Artifact.metadata) +} + +// repeated .datacatalog.Partition partitions = 5; +inline int Artifact::partitions_size() const { + return partitions_.size(); +} +inline void Artifact::clear_partitions() { + partitions_.Clear(); +} +inline ::datacatalog::Partition* Artifact::mutable_partitions(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.partitions) + return partitions_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >* +Artifact::mutable_partitions() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.Artifact.partitions) + return &partitions_; +} +inline const ::datacatalog::Partition& Artifact::partitions(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.Artifact.partitions) + return partitions_.Get(index); +} +inline ::datacatalog::Partition* Artifact::add_partitions() { + // @@protoc_insertion_point(field_add:datacatalog.Artifact.partitions) + return partitions_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >& +Artifact::partitions() const { + // @@protoc_insertion_point(field_list:datacatalog.Artifact.partitions) + return partitions_; +} + +// repeated .datacatalog.Tag tags = 6; +inline int Artifact::tags_size() const { + return tags_.size(); +} +inline void Artifact::clear_tags() { + tags_.Clear(); +} +inline ::datacatalog::Tag* Artifact::mutable_tags(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.tags) + return tags_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >* +Artifact::mutable_tags() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.Artifact.tags) + return &tags_; +} +inline const ::datacatalog::Tag& Artifact::tags(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.Artifact.tags) + return tags_.Get(index); +} +inline ::datacatalog::Tag* Artifact::add_tags() { + // @@protoc_insertion_point(field_add:datacatalog.Artifact.tags) + return tags_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >& +Artifact::tags() const { + // @@protoc_insertion_point(field_list:datacatalog.Artifact.tags) + return tags_; +} + +// .google.protobuf.Timestamp created_at = 7; +inline bool Artifact::has_created_at() const { + return this != internal_default_instance() && created_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& Artifact::created_at() const { + const ::google::protobuf::Timestamp* p = created_at_; + // @@protoc_insertion_point(field_get:datacatalog.Artifact.created_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* Artifact::release_created_at() { + // @@protoc_insertion_point(field_release:datacatalog.Artifact.created_at) + + ::google::protobuf::Timestamp* temp = created_at_; + created_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* Artifact::mutable_created_at() { + + if (created_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + created_at_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.created_at) + return created_at_; +} +inline void Artifact::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); + } + if (created_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(created_at)->GetArena(); + if (message_arena != submessage_arena) { + created_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, created_at, submessage_arena); + } + + } else { + + } + created_at_ = created_at; + // @@protoc_insertion_point(field_set_allocated:datacatalog.Artifact.created_at) } -// 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) -} +// ArtifactData -// string reference_id = 6; -inline void Artifact::clear_reference_id() { - reference_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string name = 1; +inline void ArtifactData::clear_name() { + name_.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 const ::std::string& ArtifactData::name() const { + // @@protoc_insertion_point(field_get:datacatalog.ArtifactData.name) + return name_.GetNoArena(); } -inline void Artifact::set_reference_id(const ::std::string& value) { +inline void ArtifactData::set_name(const ::std::string& value) { - reference_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.Artifact.reference_id) + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ArtifactData.name) } #if LANG_CXX11 -inline void Artifact::set_reference_id(::std::string&& value) { +inline void ArtifactData::set_name(::std::string&& value) { - reference_id_.SetNoArena( + name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.Artifact.reference_id) + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ArtifactData.name) } #endif -inline void Artifact::set_reference_id(const char* value) { +inline void ArtifactData::set_name(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) + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ArtifactData.name) } -inline void Artifact::set_reference_id(const char* value, size_t size) { +inline void ArtifactData::set_name(const char* value, size_t size) { - reference_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.Artifact.reference_id) + // @@protoc_insertion_point(field_set_pointer:datacatalog.ArtifactData.name) } -inline ::std::string* Artifact::mutable_reference_id() { +inline ::std::string* ArtifactData::mutable_name() { - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.Artifact.reference_id) - return reference_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:datacatalog.ArtifactData.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* Artifact::release_reference_id() { - // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.Artifact.reference_id) +inline ::std::string* ArtifactData::release_name() { + // @@protoc_insertion_point(field_release:datacatalog.ArtifactData.name) - return reference_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Artifact::set_allocated_reference_id(::std::string* reference_id) { - if (reference_id != nullptr) { +inline void ArtifactData::set_allocated_name(::std::string* name) { + if (name != 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_; + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:datacatalog.ArtifactData.name) } -// repeated .pb.lyft.datacatalog.Parameter outputs = 8; -inline int Artifact::outputs_size() const { - return outputs_.size(); -} -inline void Artifact::clear_outputs() { - outputs_.Clear(); +// .flyteidl.core.Literal value = 2; +inline bool ArtifactData::has_value() const { + return this != internal_default_instance() && value_ != nullptr; } -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 const ::flyteidl::core::Literal& ArtifactData::value() const { + const ::flyteidl::core::Literal* p = value_; + // @@protoc_insertion_point(field_get:datacatalog.ArtifactData.value) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Literal_default_instance_); } -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 ::flyteidl::core::Literal* ArtifactData::release_value() { + // @@protoc_insertion_point(field_release:datacatalog.ArtifactData.value) + + ::flyteidl::core::Literal* temp = value_; + value_ = nullptr; + return temp; } -inline ::pb::lyft::datacatalog::Parameter* Artifact::add_outputs() { - // @@protoc_insertion_point(field_add:pb.lyft.datacatalog.Artifact.outputs) - return outputs_.Add(); +inline ::flyteidl::core::Literal* ArtifactData::mutable_value() { + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Literal>(GetArenaNoVirtual()); + value_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.ArtifactData.value) + return value_; } -inline const ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >& -Artifact::outputs() const { - // @@protoc_insertion_point(field_list:pb.lyft.datacatalog.Artifact.outputs) - return outputs_; +inline void ArtifactData::set_allocated_value(::flyteidl::core::Literal* value) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_); + } + if (value) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + value_ = value; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ArtifactData.value) } // ------------------------------------------------------------------- -// ArtifactId +// Tag // string name = 1; -inline void ArtifactId::clear_name() { +inline void Tag::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) +inline const ::std::string& Tag::name() const { + // @@protoc_insertion_point(field_get:datacatalog.Tag.name) return name_.GetNoArena(); } -inline void ArtifactId::set_name(const ::std::string& value) { +inline void Tag::set_name(const ::std::string& value) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.ArtifactId.name) + // @@protoc_insertion_point(field_set:datacatalog.Tag.name) } #if LANG_CXX11 -inline void ArtifactId::set_name(::std::string&& value) { +inline void Tag::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) + // @@protoc_insertion_point(field_set_rvalue:datacatalog.Tag.name) } #endif -inline void ArtifactId::set_name(const char* value) { +inline void Tag::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) + // @@protoc_insertion_point(field_set_char:datacatalog.Tag.name) } -inline void ArtifactId::set_name(const char* value, size_t size) { +inline void Tag::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) + // @@protoc_insertion_point(field_set_pointer:datacatalog.Tag.name) } -inline ::std::string* ArtifactId::mutable_name() { +inline ::std::string* Tag::mutable_name() { - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.ArtifactId.name) + // @@protoc_insertion_point(field_mutable:datacatalog.Tag.name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* ArtifactId::release_name() { - // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.ArtifactId.name) +inline ::std::string* Tag::release_name() { + // @@protoc_insertion_point(field_release:datacatalog.Tag.name) return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ArtifactId::set_allocated_name(::std::string* name) { +inline void Tag::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) + // @@protoc_insertion_point(field_set_allocated:datacatalog.Tag.name) } -// string version = 2; -inline void ArtifactId::clear_version() { - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string artifact_id = 2; +inline void Tag::clear_artifact_id() { + artifact_id_.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 const ::std::string& Tag::artifact_id() const { + // @@protoc_insertion_point(field_get:datacatalog.Tag.artifact_id) + return artifact_id_.GetNoArena(); } -inline void ArtifactId::set_version(const ::std::string& value) { +inline void Tag::set_artifact_id(const ::std::string& value) { - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.ArtifactId.version) + artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.Tag.artifact_id) } #if LANG_CXX11 -inline void ArtifactId::set_version(::std::string&& value) { +inline void Tag::set_artifact_id(::std::string&& value) { - version_.SetNoArena( + artifact_id_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.ArtifactId.version) + // @@protoc_insertion_point(field_set_rvalue:datacatalog.Tag.artifact_id) } #endif -inline void ArtifactId::set_version(const char* value) { +inline void Tag::set_artifact_id(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) + artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.Tag.artifact_id) } -inline void ArtifactId::set_version(const char* value, size_t size) { +inline void Tag::set_artifact_id(const char* value, size_t size) { - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.ArtifactId.version) + // @@protoc_insertion_point(field_set_pointer:datacatalog.Tag.artifact_id) } -inline ::std::string* ArtifactId::mutable_version() { +inline ::std::string* Tag::mutable_artifact_id() { - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.ArtifactId.version) - return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:datacatalog.Tag.artifact_id) + return artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* ArtifactId::release_version() { - // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.ArtifactId.version) +inline ::std::string* Tag::release_artifact_id() { + // @@protoc_insertion_point(field_release:datacatalog.Tag.artifact_id) - return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ArtifactId::set_allocated_version(::std::string* version) { - if (version != nullptr) { +inline void Tag::set_allocated_artifact_id(::std::string* artifact_id) { + if (artifact_id != nullptr) { } else { } - version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); - // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.ArtifactId.version) + artifact_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), artifact_id); + // @@protoc_insertion_point(field_set_allocated:datacatalog.Tag.artifact_id) } -// repeated .pb.lyft.datacatalog.Parameter inputs = 3; -inline int ArtifactId::inputs_size() const { - return inputs_.size(); +// .datacatalog.DatasetID dataset = 3; +inline bool Tag::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void Tag::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::DatasetID& Tag::dataset() const { + const ::datacatalog::DatasetID* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.Tag.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* Tag::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.Tag.dataset) + + ::datacatalog::DatasetID* temp = dataset_; + dataset_ = nullptr; + return temp; } -inline void ArtifactId::clear_inputs() { - inputs_.Clear(); +inline ::datacatalog::DatasetID* Tag::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Tag.dataset) + return dataset_; } -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 void Tag::set_allocated_dataset(::datacatalog::DatasetID* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.Tag.dataset) } -inline ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >* -ArtifactId::mutable_inputs() { - // @@protoc_insertion_point(field_mutable_list:pb.lyft.datacatalog.ArtifactId.inputs) - return &inputs_; + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// Metadata + +// map key_map = 1; +inline int Metadata::key_map_size() const { + return key_map_.size(); } -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 void Metadata::clear_key_map() { + key_map_.Clear(); } -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::Map< ::std::string, ::std::string >& +Metadata::key_map() const { + // @@protoc_insertion_point(field_map:datacatalog.Metadata.key_map) + return key_map_.GetMap(); } -inline const ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >& -ArtifactId::inputs() const { - // @@protoc_insertion_point(field_list:pb.lyft.datacatalog.ArtifactId.inputs) - return inputs_; +inline ::google::protobuf::Map< ::std::string, ::std::string >* +Metadata::mutable_key_map() { + // @@protoc_insertion_point(field_mutable_map:datacatalog.Metadata.key_map) + return key_map_.MutableMap(); } // ------------------------------------------------------------------- -// GetRequest +// FilterExpression -// string provenance = 1; -inline bool GetRequest::has_provenance() const { - return id_case() == kProvenance; +// repeated .datacatalog.SinglePropertyFilter filters = 1; +inline int FilterExpression::filters_size() const { + return filters_.size(); } -inline void GetRequest::set_has_provenance() { - _oneof_case_[0] = kProvenance; +inline void FilterExpression::clear_filters() { + filters_.Clear(); } -inline void GetRequest::clear_provenance() { - if (has_provenance()) { - id_.provenance_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_id(); - } +inline ::datacatalog::SinglePropertyFilter* FilterExpression::mutable_filters(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.FilterExpression.filters) + return filters_.Mutable(index); } -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 ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >* +FilterExpression::mutable_filters() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.FilterExpression.filters) + return &filters_; } -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) +inline const ::datacatalog::SinglePropertyFilter& FilterExpression::filters(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.FilterExpression.filters) + return filters_.Get(index); } -#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) +inline ::datacatalog::SinglePropertyFilter* FilterExpression::add_filters() { + // @@protoc_insertion_point(field_add:datacatalog.FilterExpression.filters) + return filters_.Add(); } -#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 const ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >& +FilterExpression::filters() const { + // @@protoc_insertion_point(field_list:datacatalog.FilterExpression.filters) + return filters_; +} + +// ------------------------------------------------------------------- + +// SinglePropertyFilter + +// .datacatalog.TagPropertyFilter tag_filter = 1; +inline bool SinglePropertyFilter::has_tag_filter() const { + return property_filter_case() == kTagFilter; } -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()); +inline void SinglePropertyFilter::set_has_tag_filter() { + _oneof_case_[0] = kTagFilter; +} +inline void SinglePropertyFilter::clear_tag_filter() { + if (has_tag_filter()) { + delete property_filter_.tag_filter_; + clear_has_property_filter(); } - 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()); +} +inline ::datacatalog::TagPropertyFilter* SinglePropertyFilter::release_tag_filter() { + // @@protoc_insertion_point(field_release:datacatalog.SinglePropertyFilter.tag_filter) + if (has_tag_filter()) { + clear_has_property_filter(); + ::datacatalog::TagPropertyFilter* temp = property_filter_.tag_filter_; + property_filter_.tag_filter_ = nullptr; + return temp; } 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); +inline const ::datacatalog::TagPropertyFilter& SinglePropertyFilter::tag_filter() const { + // @@protoc_insertion_point(field_get:datacatalog.SinglePropertyFilter.tag_filter) + return has_tag_filter() + ? *property_filter_.tag_filter_ + : *reinterpret_cast< ::datacatalog::TagPropertyFilter*>(&::datacatalog::_TagPropertyFilter_default_instance_); +} +inline ::datacatalog::TagPropertyFilter* SinglePropertyFilter::mutable_tag_filter() { + if (!has_tag_filter()) { + clear_property_filter(); + set_has_tag_filter(); + property_filter_.tag_filter_ = CreateMaybeMessage< ::datacatalog::TagPropertyFilter >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.GetRequest.provenance) + // @@protoc_insertion_point(field_mutable:datacatalog.SinglePropertyFilter.tag_filter) + return property_filter_.tag_filter_; } -// .pb.lyft.datacatalog.ArtifactId artifact_id = 2; -inline bool GetRequest::has_artifact_id() const { - return id_case() == kArtifactId; +// .datacatalog.PartitionPropertyFilter partition_filter = 2; +inline bool SinglePropertyFilter::has_partition_filter() const { + return property_filter_case() == kPartitionFilter; } -inline void GetRequest::set_has_artifact_id() { - _oneof_case_[0] = kArtifactId; +inline void SinglePropertyFilter::set_has_partition_filter() { + _oneof_case_[0] = kPartitionFilter; } -inline void GetRequest::clear_artifact_id() { - if (has_artifact_id()) { - delete id_.artifact_id_; - clear_has_id(); +inline void SinglePropertyFilter::clear_partition_filter() { + if (has_partition_filter()) { + delete property_filter_.partition_filter_; + clear_has_property_filter(); } } -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; +inline ::datacatalog::PartitionPropertyFilter* SinglePropertyFilter::release_partition_filter() { + // @@protoc_insertion_point(field_release:datacatalog.SinglePropertyFilter.partition_filter) + if (has_partition_filter()) { + clear_has_property_filter(); + ::datacatalog::PartitionPropertyFilter* temp = property_filter_.partition_filter_; + property_filter_.partition_filter_ = 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 const ::datacatalog::PartitionPropertyFilter& SinglePropertyFilter::partition_filter() const { + // @@protoc_insertion_point(field_get:datacatalog.SinglePropertyFilter.partition_filter) + return has_partition_filter() + ? *property_filter_.partition_filter_ + : *reinterpret_cast< ::datacatalog::PartitionPropertyFilter*>(&::datacatalog::_PartitionPropertyFilter_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 >( +inline ::datacatalog::PartitionPropertyFilter* SinglePropertyFilter::mutable_partition_filter() { + if (!has_partition_filter()) { + clear_property_filter(); + set_has_partition_filter(); + property_filter_.partition_filter_ = CreateMaybeMessage< ::datacatalog::PartitionPropertyFilter >( GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.GetRequest.artifact_id) - return id_.artifact_id_; + // @@protoc_insertion_point(field_mutable:datacatalog.SinglePropertyFilter.partition_filter) + return property_filter_.partition_filter_; } -inline bool GetRequest::has_id() const { - return id_case() != ID_NOT_SET; +// .datacatalog.ArtifactPropertyFilter artifact_filter = 3; +inline bool SinglePropertyFilter::has_artifact_filter() const { + return property_filter_case() == kArtifactFilter; } -inline void GetRequest::clear_has_id() { - _oneof_case_[0] = ID_NOT_SET; +inline void SinglePropertyFilter::set_has_artifact_filter() { + _oneof_case_[0] = kArtifactFilter; } -inline GetRequest::IdCase GetRequest::id_case() const { - return GetRequest::IdCase(_oneof_case_[0]); +inline void SinglePropertyFilter::clear_artifact_filter() { + if (has_artifact_filter()) { + delete property_filter_.artifact_filter_; + clear_has_property_filter(); + } } -// ------------------------------------------------------------------- - -// GetResponse - -// .pb.lyft.datacatalog.Artifact artifact = 1; -inline bool GetResponse::has_artifact() const { - return this != internal_default_instance() && artifact_ != nullptr; +inline ::datacatalog::ArtifactPropertyFilter* SinglePropertyFilter::release_artifact_filter() { + // @@protoc_insertion_point(field_release:datacatalog.SinglePropertyFilter.artifact_filter) + if (has_artifact_filter()) { + clear_has_property_filter(); + ::datacatalog::ArtifactPropertyFilter* temp = property_filter_.artifact_filter_; + property_filter_.artifact_filter_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline void GetResponse::clear_artifact() { - if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { - delete artifact_; +inline const ::datacatalog::ArtifactPropertyFilter& SinglePropertyFilter::artifact_filter() const { + // @@protoc_insertion_point(field_get:datacatalog.SinglePropertyFilter.artifact_filter) + return has_artifact_filter() + ? *property_filter_.artifact_filter_ + : *reinterpret_cast< ::datacatalog::ArtifactPropertyFilter*>(&::datacatalog::_ArtifactPropertyFilter_default_instance_); +} +inline ::datacatalog::ArtifactPropertyFilter* SinglePropertyFilter::mutable_artifact_filter() { + if (!has_artifact_filter()) { + clear_property_filter(); + set_has_artifact_filter(); + property_filter_.artifact_filter_ = CreateMaybeMessage< ::datacatalog::ArtifactPropertyFilter >( + GetArenaNoVirtual()); } - artifact_ = nullptr; + // @@protoc_insertion_point(field_mutable:datacatalog.SinglePropertyFilter.artifact_filter) + return property_filter_.artifact_filter_; } -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_); + +// .datacatalog.DatasetPropertyFilter dataset_filter = 4; +inline bool SinglePropertyFilter::has_dataset_filter() const { + return property_filter_case() == kDatasetFilter; } -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 void SinglePropertyFilter::set_has_dataset_filter() { + _oneof_case_[0] = kDatasetFilter; } -inline ::pb::lyft::datacatalog::Artifact* GetResponse::mutable_artifact() { - - if (artifact_ == nullptr) { - auto* p = CreateMaybeMessage<::pb::lyft::datacatalog::Artifact>(GetArenaNoVirtual()); - artifact_ = p; +inline void SinglePropertyFilter::clear_dataset_filter() { + if (has_dataset_filter()) { + delete property_filter_.dataset_filter_; + clear_has_property_filter(); } - // @@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); - } - +inline ::datacatalog::DatasetPropertyFilter* SinglePropertyFilter::release_dataset_filter() { + // @@protoc_insertion_point(field_release:datacatalog.SinglePropertyFilter.dataset_filter) + if (has_dataset_filter()) { + clear_has_property_filter(); + ::datacatalog::DatasetPropertyFilter* temp = property_filter_.dataset_filter_; + property_filter_.dataset_filter_ = nullptr; + return temp; } else { - + return nullptr; } - 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 const ::datacatalog::DatasetPropertyFilter& SinglePropertyFilter::dataset_filter() const { + // @@protoc_insertion_point(field_get:datacatalog.SinglePropertyFilter.dataset_filter) + return has_dataset_filter() + ? *property_filter_.dataset_filter_ + : *reinterpret_cast< ::datacatalog::DatasetPropertyFilter*>(&::datacatalog::_DatasetPropertyFilter_default_instance_); } -inline void IntFilter::set_value(::google::protobuf::int64 value) { - - value_ = value; - // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.IntFilter.value) +inline ::datacatalog::DatasetPropertyFilter* SinglePropertyFilter::mutable_dataset_filter() { + if (!has_dataset_filter()) { + clear_property_filter(); + set_has_dataset_filter(); + property_filter_.dataset_filter_ = CreateMaybeMessage< ::datacatalog::DatasetPropertyFilter >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.SinglePropertyFilter.dataset_filter) + return property_filter_.dataset_filter_; } -// .pb.lyft.datacatalog.QueryOperator operator = 2; -inline void IntFilter::clear_operator_() { +// .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; +inline void SinglePropertyFilter::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 ::datacatalog::SinglePropertyFilter_ComparisonOperator SinglePropertyFilter::operator_() const { + // @@protoc_insertion_point(field_get:datacatalog.SinglePropertyFilter.operator) + return static_cast< ::datacatalog::SinglePropertyFilter_ComparisonOperator >(operator__); } -inline void IntFilter::set_operator_(::pb::lyft::datacatalog::QueryOperator value) { +inline void SinglePropertyFilter::set_operator_(::datacatalog::SinglePropertyFilter_ComparisonOperator 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) + // @@protoc_insertion_point(field_set:datacatalog.SinglePropertyFilter.operator) } -// int64 max = 2; -inline void IntRangeFilter::clear_max() { - max_ = PROTOBUF_LONGLONG(0); +inline bool SinglePropertyFilter::has_property_filter() const { + return property_filter_case() != PROPERTY_FILTER_NOT_SET; } -inline ::google::protobuf::int64 IntRangeFilter::max() const { - // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.IntRangeFilter.max) - return max_; +inline void SinglePropertyFilter::clear_has_property_filter() { + _oneof_case_[0] = PROPERTY_FILTER_NOT_SET; } -inline void IntRangeFilter::set_max(::google::protobuf::int64 value) { - - max_ = value; - // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.IntRangeFilter.max) +inline SinglePropertyFilter::PropertyFilterCase SinglePropertyFilter::property_filter_case() const { + return SinglePropertyFilter::PropertyFilterCase(_oneof_case_[0]); } - // ------------------------------------------------------------------- -// IntQueryKey +// ArtifactPropertyFilter -// .pb.lyft.datacatalog.IntFilter val = 1; -inline bool IntQueryKey::has_val() const { - return filter_case() == kVal; +// string artifact_id = 1; +inline bool ArtifactPropertyFilter::has_artifact_id() const { + return property_case() == kArtifactId; } -inline void IntQueryKey::set_has_val() { - _oneof_case_[0] = kVal; +inline void ArtifactPropertyFilter::set_has_artifact_id() { + _oneof_case_[0] = kArtifactId; } -inline void IntQueryKey::clear_val() { - if (has_val()) { - delete filter_.val_; - clear_has_filter(); +inline void ArtifactPropertyFilter::clear_artifact_id() { + if (has_artifact_id()) { + property_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_property(); } } -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 ::std::string& ArtifactPropertyFilter::artifact_id() const { + // @@protoc_insertion_point(field_get:datacatalog.ArtifactPropertyFilter.artifact_id) + if (has_artifact_id()) { + return property_.artifact_id_.GetNoArena(); } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); } -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 void ArtifactPropertyFilter::set_artifact_id(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.ArtifactPropertyFilter.artifact_id) + if (!has_artifact_id()) { + clear_property(); + set_has_artifact_id(); + property_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ArtifactPropertyFilter.artifact_id) } -inline ::pb::lyft::datacatalog::IntFilter* IntQueryKey::mutable_val() { - if (!has_val()) { - clear_filter(); - set_has_val(); - filter_.val_ = CreateMaybeMessage< ::pb::lyft::datacatalog::IntFilter >( - GetArenaNoVirtual()); +#if LANG_CXX11 +inline void ArtifactPropertyFilter::set_artifact_id(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.ArtifactPropertyFilter.artifact_id) + if (!has_artifact_id()) { + clear_property(); + set_has_artifact_id(); + property_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.IntQueryKey.val) - return filter_.val_; + property_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ArtifactPropertyFilter.artifact_id) } - -// .pb.lyft.datacatalog.IntRangeFilter range = 2; -inline bool IntQueryKey::has_range() const { - return filter_case() == kRange; +#endif +inline void ArtifactPropertyFilter::set_artifact_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_artifact_id()) { + clear_property(); + set_has_artifact_id(); + property_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ArtifactPropertyFilter.artifact_id) } -inline void IntQueryKey::set_has_range() { - _oneof_case_[0] = kRange; +inline void ArtifactPropertyFilter::set_artifact_id(const char* value, size_t size) { + if (!has_artifact_id()) { + clear_property(); + set_has_artifact_id(); + property_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.ArtifactPropertyFilter.artifact_id) } -inline void IntQueryKey::clear_range() { - if (has_range()) { - delete filter_.range_; - clear_has_filter(); +inline ::std::string* ArtifactPropertyFilter::mutable_artifact_id() { + if (!has_artifact_id()) { + clear_property(); + set_has_artifact_id(); + property_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } + // @@protoc_insertion_point(field_mutable:datacatalog.ArtifactPropertyFilter.artifact_id) + return property_.artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -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; +inline ::std::string* ArtifactPropertyFilter::release_artifact_id() { + // @@protoc_insertion_point(field_release:datacatalog.ArtifactPropertyFilter.artifact_id) + if (has_artifact_id()) { + clear_has_property(); + return property_.artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } 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()); +inline void ArtifactPropertyFilter::set_allocated_artifact_id(::std::string* artifact_id) { + if (has_property()) { + clear_property(); + } + if (artifact_id != nullptr) { + set_has_artifact_id(); + property_.artifact_id_.UnsafeSetDefault(artifact_id); } - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.IntQueryKey.range) - return filter_.range_; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ArtifactPropertyFilter.artifact_id) } -inline bool IntQueryKey::has_filter() const { - return filter_case() != FILTER_NOT_SET; +inline bool ArtifactPropertyFilter::has_property() const { + return property_case() != PROPERTY_NOT_SET; } -inline void IntQueryKey::clear_has_filter() { - _oneof_case_[0] = FILTER_NOT_SET; +inline void ArtifactPropertyFilter::clear_has_property() { + _oneof_case_[0] = PROPERTY_NOT_SET; } -inline IntQueryKey::FilterCase IntQueryKey::filter_case() const { - return IntQueryKey::FilterCase(_oneof_case_[0]); +inline ArtifactPropertyFilter::PropertyCase ArtifactPropertyFilter::property_case() const { + return ArtifactPropertyFilter::PropertyCase(_oneof_case_[0]); } // ------------------------------------------------------------------- -// QueryRequest +// TagPropertyFilter -// string name = 1; -inline void QueryRequest::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string tag_name = 1; +inline bool TagPropertyFilter::has_tag_name() const { + return property_case() == kTagName; } -inline const ::std::string& QueryRequest::name() const { - // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.QueryRequest.name) - return name_.GetNoArena(); +inline void TagPropertyFilter::set_has_tag_name() { + _oneof_case_[0] = kTagName; } -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) +inline void TagPropertyFilter::clear_tag_name() { + if (has_tag_name()) { + property_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_property(); + } +} +inline const ::std::string& TagPropertyFilter::tag_name() const { + // @@protoc_insertion_point(field_get:datacatalog.TagPropertyFilter.tag_name) + if (has_tag_name()) { + return property_.tag_name_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void TagPropertyFilter::set_tag_name(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.TagPropertyFilter.tag_name) + if (!has_tag_name()) { + clear_property(); + set_has_tag_name(); + property_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.TagPropertyFilter.tag_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) +inline void TagPropertyFilter::set_tag_name(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.TagPropertyFilter.tag_name) + if (!has_tag_name()) { + clear_property(); + set_has_tag_name(); + property_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.TagPropertyFilter.tag_name) } #endif -inline void QueryRequest::set_name(const char* value) { +inline void TagPropertyFilter::set_tag_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) + if (!has_tag_name()) { + clear_property(); + set_has_tag_name(); + property_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.TagPropertyFilter.tag_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 void TagPropertyFilter::set_tag_name(const char* value, size_t size) { + if (!has_tag_name()) { + clear_property(); + set_has_tag_name(); + property_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.TagPropertyFilter.tag_name) +} +inline ::std::string* TagPropertyFilter::mutable_tag_name() { + if (!has_tag_name()) { + clear_property(); + set_has_tag_name(); + property_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.TagPropertyFilter.tag_name) + return property_.tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TagPropertyFilter::release_tag_name() { + // @@protoc_insertion_point(field_release:datacatalog.TagPropertyFilter.tag_name) + if (has_tag_name()) { + clear_has_property(); + return property_.tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } } -inline ::std::string* QueryRequest::mutable_name() { - - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.QueryRequest.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline void TagPropertyFilter::set_allocated_tag_name(::std::string* tag_name) { + if (has_property()) { + clear_property(); + } + if (tag_name != nullptr) { + set_has_tag_name(); + property_.tag_name_.UnsafeSetDefault(tag_name); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.TagPropertyFilter.tag_name) } -inline ::std::string* QueryRequest::release_name() { - // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.QueryRequest.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + +inline bool TagPropertyFilter::has_property() const { + return property_case() != PROPERTY_NOT_SET; } -inline void QueryRequest::set_allocated_name(::std::string* name) { - if (name != nullptr) { - +inline void TagPropertyFilter::clear_has_property() { + _oneof_case_[0] = PROPERTY_NOT_SET; +} +inline TagPropertyFilter::PropertyCase TagPropertyFilter::property_case() const { + return TagPropertyFilter::PropertyCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// PartitionPropertyFilter + +// .datacatalog.KeyValuePair key_val = 1; +inline bool PartitionPropertyFilter::has_key_val() const { + return property_case() == kKeyVal; +} +inline void PartitionPropertyFilter::set_has_key_val() { + _oneof_case_[0] = kKeyVal; +} +inline void PartitionPropertyFilter::clear_key_val() { + if (has_key_val()) { + delete property_.key_val_; + clear_has_property(); + } +} +inline ::datacatalog::KeyValuePair* PartitionPropertyFilter::release_key_val() { + // @@protoc_insertion_point(field_release:datacatalog.PartitionPropertyFilter.key_val) + if (has_key_val()) { + clear_has_property(); + ::datacatalog::KeyValuePair* temp = property_.key_val_; + property_.key_val_ = nullptr; + return temp; } else { - + return nullptr; } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.QueryRequest.name) } +inline const ::datacatalog::KeyValuePair& PartitionPropertyFilter::key_val() const { + // @@protoc_insertion_point(field_get:datacatalog.PartitionPropertyFilter.key_val) + return has_key_val() + ? *property_.key_val_ + : *reinterpret_cast< ::datacatalog::KeyValuePair*>(&::datacatalog::_KeyValuePair_default_instance_); +} +inline ::datacatalog::KeyValuePair* PartitionPropertyFilter::mutable_key_val() { + if (!has_key_val()) { + clear_property(); + set_has_key_val(); + property_.key_val_ = CreateMaybeMessage< ::datacatalog::KeyValuePair >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.PartitionPropertyFilter.key_val) + return property_.key_val_; +} + +inline bool PartitionPropertyFilter::has_property() const { + return property_case() != PROPERTY_NOT_SET; +} +inline void PartitionPropertyFilter::clear_has_property() { + _oneof_case_[0] = PROPERTY_NOT_SET; +} +inline PartitionPropertyFilter::PropertyCase PartitionPropertyFilter::property_case() const { + return PartitionPropertyFilter::PropertyCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- -// string version = 2; -inline void QueryRequest::clear_version() { - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// KeyValuePair + +// string key = 1; +inline void KeyValuePair::clear_key() { + key_.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 const ::std::string& KeyValuePair::key() const { + // @@protoc_insertion_point(field_get:datacatalog.KeyValuePair.key) + return key_.GetNoArena(); } -inline void QueryRequest::set_version(const ::std::string& value) { +inline void KeyValuePair::set_key(const ::std::string& value) { - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.QueryRequest.version) + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.KeyValuePair.key) } #if LANG_CXX11 -inline void QueryRequest::set_version(::std::string&& value) { +inline void KeyValuePair::set_key(::std::string&& value) { - version_.SetNoArena( + key_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.QueryRequest.version) + // @@protoc_insertion_point(field_set_rvalue:datacatalog.KeyValuePair.key) } #endif -inline void QueryRequest::set_version(const char* value) { +inline void KeyValuePair::set_key(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) + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.KeyValuePair.key) } -inline void QueryRequest::set_version(const char* value, size_t size) { +inline void KeyValuePair::set_key(const char* value, size_t size) { - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + key_.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; + // @@protoc_insertion_point(field_set_pointer:datacatalog.KeyValuePair.key) } -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) +inline ::std::string* KeyValuePair::mutable_key() { - ::pb::lyft::datacatalog::IntQueryKey* temp = revision_; - revision_ = nullptr; - return temp; + // @@protoc_insertion_point(field_mutable:datacatalog.KeyValuePair.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::pb::lyft::datacatalog::IntQueryKey* QueryRequest::mutable_revision() { +inline ::std::string* KeyValuePair::release_key() { + // @@protoc_insertion_point(field_release:datacatalog.KeyValuePair.key) - 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_; + return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -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); - } +inline void KeyValuePair::set_allocated_key(::std::string* key) { + if (key != nullptr) { } 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) + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:datacatalog.KeyValuePair.key) } -// string reference_id = 5; -inline void QueryRequest::clear_reference_id() { - reference_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string value = 2; +inline void KeyValuePair::clear_value() { + value_.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 const ::std::string& KeyValuePair::value() const { + // @@protoc_insertion_point(field_get:datacatalog.KeyValuePair.value) + return value_.GetNoArena(); } -inline void QueryRequest::set_reference_id(const ::std::string& value) { +inline void KeyValuePair::set_value(const ::std::string& value) { - reference_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.QueryRequest.reference_id) + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.KeyValuePair.value) } #if LANG_CXX11 -inline void QueryRequest::set_reference_id(::std::string&& value) { +inline void KeyValuePair::set_value(::std::string&& value) { - reference_id_.SetNoArena( + value_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.QueryRequest.reference_id) + // @@protoc_insertion_point(field_set_rvalue:datacatalog.KeyValuePair.value) } #endif -inline void QueryRequest::set_reference_id(const char* value) { +inline void KeyValuePair::set_value(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) + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.KeyValuePair.value) } -inline void QueryRequest::set_reference_id(const char* value, size_t size) { +inline void KeyValuePair::set_value(const char* value, size_t size) { - reference_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.QueryRequest.reference_id) + // @@protoc_insertion_point(field_set_pointer:datacatalog.KeyValuePair.value) } -inline ::std::string* QueryRequest::mutable_reference_id() { +inline ::std::string* KeyValuePair::mutable_value() { - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.QueryRequest.reference_id) - return reference_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:datacatalog.KeyValuePair.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* QueryRequest::release_reference_id() { - // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.QueryRequest.reference_id) +inline ::std::string* KeyValuePair::release_value() { + // @@protoc_insertion_point(field_release:datacatalog.KeyValuePair.value) - return reference_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void QueryRequest::set_allocated_reference_id(::std::string* reference_id) { - if (reference_id != nullptr) { +inline void KeyValuePair::set_allocated_value(::std::string* value) { + if (value != nullptr) { } else { } - reference_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reference_id); - // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.QueryRequest.reference_id) + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:datacatalog.KeyValuePair.value) } // ------------------------------------------------------------------- -// QueryResponse +// DatasetPropertyFilter -// 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); +// string project = 1; +inline bool DatasetPropertyFilter::has_project() const { + return property_case() == kProject; } -inline ::pb::lyft::datacatalog::Artifact* QueryResponse::add_artifact() { - // @@protoc_insertion_point(field_add:pb.lyft.datacatalog.QueryResponse.artifact) - return artifact_.Add(); +inline void DatasetPropertyFilter::set_has_project() { + _oneof_case_[0] = kProject; } -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 DatasetPropertyFilter::clear_project() { + if (has_project()) { + property_.project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_property(); + } } -inline void CreateRequest::clear_ref() { - if (GetArenaNoVirtual() == nullptr && ref_ != nullptr) { - delete ref_; +inline const ::std::string& DatasetPropertyFilter::project() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetPropertyFilter.project) + if (has_project()) { + return property_.project_.GetNoArena(); } - ref_ = nullptr; + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); } -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 void DatasetPropertyFilter::set_project(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.project) + if (!has_project()) { + clear_property(); + set_has_project(); + property_.project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.project) } -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; +#if LANG_CXX11 +inline void DatasetPropertyFilter::set_project(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.project) + if (!has_project()) { + clear_property(); + set_has_project(); + property_.project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetPropertyFilter.project) } -inline ::pb::lyft::datacatalog::ArtifactId* CreateRequest::mutable_ref() { - - if (ref_ == nullptr) { - auto* p = CreateMaybeMessage<::pb::lyft::datacatalog::ArtifactId>(GetArenaNoVirtual()); - ref_ = p; +#endif +inline void DatasetPropertyFilter::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_project()) { + clear_property(); + set_has_project(); + property_.project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.CreateRequest.ref) - return ref_; + property_.project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetPropertyFilter.project) } -inline void CreateRequest::set_allocated_ref(::pb::lyft::datacatalog::ArtifactId* ref) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete ref_; +inline void DatasetPropertyFilter::set_project(const char* value, size_t size) { + if (!has_project()) { + clear_property(); + set_has_project(); + property_.project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - if (ref) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - ref = ::google::protobuf::internal::GetOwnedMessage( - message_arena, ref, submessage_arena); - } - + property_.project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetPropertyFilter.project) +} +inline ::std::string* DatasetPropertyFilter::mutable_project() { + if (!has_project()) { + clear_property(); + set_has_project(); + property_.project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetPropertyFilter.project) + return property_.project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DatasetPropertyFilter::release_project() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetPropertyFilter.project) + if (has_project()) { + clear_has_property(); + return property_.project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } else { - + return nullptr; + } +} +inline void DatasetPropertyFilter::set_allocated_project(::std::string* project) { + if (has_property()) { + clear_property(); } - ref_ = ref; - // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.CreateRequest.ref) + if (project != nullptr) { + set_has_project(); + property_.project_.UnsafeSetDefault(project); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetPropertyFilter.project) } -// string reference_id = 2; -inline void CreateRequest::clear_reference_id() { - reference_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string name = 2; +inline bool DatasetPropertyFilter::has_name() const { + return property_case() == kName; } -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 DatasetPropertyFilter::set_has_name() { + _oneof_case_[0] = kName; } -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) +inline void DatasetPropertyFilter::clear_name() { + if (has_name()) { + property_.name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_property(); + } +} +inline const ::std::string& DatasetPropertyFilter::name() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetPropertyFilter.name) + if (has_name()) { + return property_.name_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void DatasetPropertyFilter::set_name(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.name) + if (!has_name()) { + clear_property(); + set_has_name(); + property_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.name) } #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) +inline void DatasetPropertyFilter::set_name(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.name) + if (!has_name()) { + clear_property(); + set_has_name(); + property_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetPropertyFilter.name) } #endif -inline void CreateRequest::set_reference_id(const char* value) { +inline void DatasetPropertyFilter::set_name(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()); + if (!has_name()) { + clear_property(); + set_has_name(); + property_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetPropertyFilter.name) } -inline void CreateRequest::set_allocated_reference_id(::std::string* reference_id) { - if (reference_id != nullptr) { - +inline void DatasetPropertyFilter::set_name(const char* value, size_t size) { + if (!has_name()) { + clear_property(); + set_has_name(); + property_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetPropertyFilter.name) +} +inline ::std::string* DatasetPropertyFilter::mutable_name() { + if (!has_name()) { + clear_property(); + set_has_name(); + property_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetPropertyFilter.name) + return property_.name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DatasetPropertyFilter::release_name() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetPropertyFilter.name) + if (has_name()) { + clear_has_property(); + return property_.name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } else { - + return nullptr; } - 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 void DatasetPropertyFilter::set_allocated_name(::std::string* name) { + if (has_property()) { + clear_property(); + } + if (name != nullptr) { + set_has_name(); + property_.name_.UnsafeSetDefault(name); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetPropertyFilter.name) } -inline ::google::protobuf::int64 CreateRequest::revision() const { - // @@protoc_insertion_point(field_get:pb.lyft.datacatalog.CreateRequest.revision) - return revision_; + +// string domain = 3; +inline bool DatasetPropertyFilter::has_domain() const { + return property_case() == kDomain; } -inline void CreateRequest::set_revision(::google::protobuf::int64 value) { - - revision_ = value; - // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.CreateRequest.revision) +inline void DatasetPropertyFilter::set_has_domain() { + _oneof_case_[0] = kDomain; } - -// repeated .pb.lyft.datacatalog.Parameter outputs = 4; -inline int CreateRequest::outputs_size() const { - return outputs_.size(); +inline void DatasetPropertyFilter::clear_domain() { + if (has_domain()) { + property_.domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_property(); + } } -inline void CreateRequest::clear_outputs() { - outputs_.Clear(); +inline const ::std::string& DatasetPropertyFilter::domain() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetPropertyFilter.domain) + if (has_domain()) { + return property_.domain_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); } -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 void DatasetPropertyFilter::set_domain(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.domain) + if (!has_domain()) { + clear_property(); + set_has_domain(); + property_.domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.domain) } -inline ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >* -CreateRequest::mutable_outputs() { - // @@protoc_insertion_point(field_mutable_list:pb.lyft.datacatalog.CreateRequest.outputs) - return &outputs_; +#if LANG_CXX11 +inline void DatasetPropertyFilter::set_domain(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.domain) + if (!has_domain()) { + clear_property(); + set_has_domain(); + property_.domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetPropertyFilter.domain) } -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); +#endif +inline void DatasetPropertyFilter::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_domain()) { + clear_property(); + set_has_domain(); + property_.domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetPropertyFilter.domain) } -inline ::pb::lyft::datacatalog::Parameter* CreateRequest::add_outputs() { - // @@protoc_insertion_point(field_add:pb.lyft.datacatalog.CreateRequest.outputs) - return outputs_.Add(); +inline void DatasetPropertyFilter::set_domain(const char* value, size_t size) { + if (!has_domain()) { + clear_property(); + set_has_domain(); + property_.domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetPropertyFilter.domain) +} +inline ::std::string* DatasetPropertyFilter::mutable_domain() { + if (!has_domain()) { + clear_property(); + set_has_domain(); + property_.domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetPropertyFilter.domain) + return property_.domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DatasetPropertyFilter::release_domain() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetPropertyFilter.domain) + if (has_domain()) { + clear_has_property(); + return property_.domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } } -inline const ::google::protobuf::RepeatedPtrField< ::pb::lyft::datacatalog::Parameter >& -CreateRequest::outputs() const { - // @@protoc_insertion_point(field_list:pb.lyft.datacatalog.CreateRequest.outputs) - return outputs_; +inline void DatasetPropertyFilter::set_allocated_domain(::std::string* domain) { + if (has_property()) { + clear_property(); + } + if (domain != nullptr) { + set_has_domain(); + property_.domain_.UnsafeSetDefault(domain); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetPropertyFilter.domain) } -// ------------------------------------------------------------------- - -// CreateResponse - -// .pb.lyft.datacatalog.Artifact artifact = 1; -inline bool CreateResponse::has_artifact() const { - return this != internal_default_instance() && artifact_ != nullptr; +// string version = 4; +inline bool DatasetPropertyFilter::has_version() const { + return property_case() == kVersion; } -inline void CreateResponse::clear_artifact() { - if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { - delete artifact_; +inline void DatasetPropertyFilter::set_has_version() { + _oneof_case_[0] = kVersion; +} +inline void DatasetPropertyFilter::clear_version() { + if (has_version()) { + property_.version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_property(); } - 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 const ::std::string& DatasetPropertyFilter::version() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetPropertyFilter.version) + if (has_version()) { + return property_.version_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); } -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 void DatasetPropertyFilter::set_version(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.version) + if (!has_version()) { + clear_property(); + set_has_version(); + property_.version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.version) } -inline ::pb::lyft::datacatalog::Artifact* CreateResponse::mutable_artifact() { - - if (artifact_ == nullptr) { - auto* p = CreateMaybeMessage<::pb::lyft::datacatalog::Artifact>(GetArenaNoVirtual()); - artifact_ = p; +#if LANG_CXX11 +inline void DatasetPropertyFilter::set_version(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.version) + if (!has_version()) { + clear_property(); + set_has_version(); + property_.version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.CreateResponse.artifact) - return artifact_; + property_.version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetPropertyFilter.version) } -inline void CreateResponse::set_allocated_artifact(::pb::lyft::datacatalog::Artifact* artifact) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete artifact_; +#endif +inline void DatasetPropertyFilter::set_version(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_version()) { + clear_property(); + set_has_version(); + property_.version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - if (artifact) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact, submessage_arena); - } - + property_.version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetPropertyFilter.version) +} +inline void DatasetPropertyFilter::set_version(const char* value, size_t size) { + if (!has_version()) { + clear_property(); + set_has_version(); + property_.version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetPropertyFilter.version) +} +inline ::std::string* DatasetPropertyFilter::mutable_version() { + if (!has_version()) { + clear_property(); + set_has_version(); + property_.version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetPropertyFilter.version) + return property_.version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DatasetPropertyFilter::release_version() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetPropertyFilter.version) + if (has_version()) { + clear_has_property(); + return property_.version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } else { - + return nullptr; } - artifact_ = artifact; - // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.CreateResponse.artifact) +} +inline void DatasetPropertyFilter::set_allocated_version(::std::string* version) { + if (has_property()) { + clear_property(); + } + if (version != nullptr) { + set_has_version(); + property_.version_.UnsafeSetDefault(version); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetPropertyFilter.version) } -// .pb.lyft.datacatalog.CreateResponse.Status status = 2; -inline void CreateResponse::clear_status() { - status_ = 0; +inline bool DatasetPropertyFilter::has_property() const { + return property_case() != PROPERTY_NOT_SET; } -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 DatasetPropertyFilter::clear_has_property() { + _oneof_case_[0] = PROPERTY_NOT_SET; } -inline void CreateResponse::set_status(::pb::lyft::datacatalog::CreateResponse_Status value) { - - status_ = value; - // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.CreateResponse.status) +inline DatasetPropertyFilter::PropertyCase DatasetPropertyFilter::property_case() const { + return DatasetPropertyFilter::PropertyCase(_oneof_case_[0]); } - // ------------------------------------------------------------------- -// GenerateProvenanceRequest +// PaginationOptions -// .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_); +// uint32 limit = 1; +inline void PaginationOptions::clear_limit() { + limit_ = 0u; } -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 ::google::protobuf::uint32 PaginationOptions::limit() const { + // @@protoc_insertion_point(field_get:datacatalog.PaginationOptions.limit) + return limit_; } -inline ::pb::lyft::datacatalog::ArtifactId* GenerateProvenanceRequest::mutable_id() { +inline void PaginationOptions::set_limit(::google::protobuf::uint32 value) { - 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) + limit_ = value; + // @@protoc_insertion_point(field_set:datacatalog.PaginationOptions.limit) } -// ------------------------------------------------------------------- - -// GenerateProvenanceResponse - -// string provenance = 1; -inline void GenerateProvenanceResponse::clear_provenance() { - provenance_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string token = 2; +inline void PaginationOptions::clear_token() { + token_.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 const ::std::string& PaginationOptions::token() const { + // @@protoc_insertion_point(field_get:datacatalog.PaginationOptions.token) + return token_.GetNoArena(); } -inline void GenerateProvenanceResponse::set_provenance(const ::std::string& value) { +inline void PaginationOptions::set_token(const ::std::string& value) { - provenance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pb.lyft.datacatalog.GenerateProvenanceResponse.provenance) + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.PaginationOptions.token) } #if LANG_CXX11 -inline void GenerateProvenanceResponse::set_provenance(::std::string&& value) { +inline void PaginationOptions::set_token(::std::string&& value) { - provenance_.SetNoArena( + token_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pb.lyft.datacatalog.GenerateProvenanceResponse.provenance) + // @@protoc_insertion_point(field_set_rvalue:datacatalog.PaginationOptions.token) } #endif -inline void GenerateProvenanceResponse::set_provenance(const char* value) { +inline void PaginationOptions::set_token(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) + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.PaginationOptions.token) } -inline void GenerateProvenanceResponse::set_provenance(const char* value, size_t size) { +inline void PaginationOptions::set_token(const char* value, size_t size) { - provenance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pb.lyft.datacatalog.GenerateProvenanceResponse.provenance) + // @@protoc_insertion_point(field_set_pointer:datacatalog.PaginationOptions.token) } -inline ::std::string* GenerateProvenanceResponse::mutable_provenance() { +inline ::std::string* PaginationOptions::mutable_token() { - // @@protoc_insertion_point(field_mutable:pb.lyft.datacatalog.GenerateProvenanceResponse.provenance) - return provenance_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:datacatalog.PaginationOptions.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* GenerateProvenanceResponse::release_provenance() { - // @@protoc_insertion_point(field_release:pb.lyft.datacatalog.GenerateProvenanceResponse.provenance) +inline ::std::string* PaginationOptions::release_token() { + // @@protoc_insertion_point(field_release:datacatalog.PaginationOptions.token) - return provenance_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void GenerateProvenanceResponse::set_allocated_provenance(::std::string* provenance) { - if (provenance != nullptr) { +inline void PaginationOptions::set_allocated_token(::std::string* token) { + if (token != nullptr) { } else { } - provenance_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), provenance); - // @@protoc_insertion_point(field_set_allocated:pb.lyft.datacatalog.GenerateProvenanceResponse.provenance) + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:datacatalog.PaginationOptions.token) +} + +// .datacatalog.PaginationOptions.SortKey sortKey = 3; +inline void PaginationOptions::clear_sortkey() { + sortkey_ = 0; +} +inline ::datacatalog::PaginationOptions_SortKey PaginationOptions::sortkey() const { + // @@protoc_insertion_point(field_get:datacatalog.PaginationOptions.sortKey) + return static_cast< ::datacatalog::PaginationOptions_SortKey >(sortkey_); +} +inline void PaginationOptions::set_sortkey(::datacatalog::PaginationOptions_SortKey value) { + + sortkey_ = value; + // @@protoc_insertion_point(field_set:datacatalog.PaginationOptions.sortKey) +} + +// .datacatalog.PaginationOptions.SortOrder sortOrder = 4; +inline void PaginationOptions::clear_sortorder() { + sortorder_ = 0; +} +inline ::datacatalog::PaginationOptions_SortOrder PaginationOptions::sortorder() const { + // @@protoc_insertion_point(field_get:datacatalog.PaginationOptions.sortOrder) + return static_cast< ::datacatalog::PaginationOptions_SortOrder >(sortorder_); +} +inline void PaginationOptions::set_sortorder(::datacatalog::PaginationOptions_SortOrder value) { + + sortorder_ = value; + // @@protoc_insertion_point(field_set:datacatalog.PaginationOptions.sortOrder) } #ifdef __GNUC__ @@ -3660,25 +7543,60 @@ inline void GenerateProvenanceResponse::set_allocated_provenance(::std::string* // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@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 <> struct is_proto_enum< ::datacatalog::SinglePropertyFilter_ComparisonOperator> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::datacatalog::SinglePropertyFilter_ComparisonOperator>() { + return ::datacatalog::SinglePropertyFilter_ComparisonOperator_descriptor(); +} +template <> struct is_proto_enum< ::datacatalog::PaginationOptions_SortOrder> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pb::lyft::datacatalog::CreateResponse_Status>() { - return ::pb::lyft::datacatalog::CreateResponse_Status_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::datacatalog::PaginationOptions_SortOrder>() { + return ::datacatalog::PaginationOptions_SortOrder_descriptor(); } -template <> struct is_proto_enum< ::pb::lyft::datacatalog::QueryOperator> : ::std::true_type {}; +template <> struct is_proto_enum< ::datacatalog::PaginationOptions_SortKey> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pb::lyft::datacatalog::QueryOperator>() { - return ::pb::lyft::datacatalog::QueryOperator_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::datacatalog::PaginationOptions_SortKey>() { + return ::datacatalog::PaginationOptions_SortKey_descriptor(); } } // namespace protobuf diff --git a/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go b/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go index ce3bf9fdf..85edb975b 100644 --- a/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go +++ b/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go @@ -6,7 +6,9 @@ package datacatalog import ( context "context" fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -24,145 +26,890 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package -type QueryOperator int32 +// as use-cases come up we can add more operators, ex: gte, like, not eq etc. +type SinglePropertyFilter_ComparisonOperator int32 const ( - QueryOperator_EQUAL QueryOperator = 0 - QueryOperator_GREATER_THAN QueryOperator = 1 - QueryOperator_LESSER_THAN QueryOperator = 2 + SinglePropertyFilter_EQUALS SinglePropertyFilter_ComparisonOperator = 0 ) -var QueryOperator_name = map[int32]string{ - 0: "EQUAL", - 1: "GREATER_THAN", - 2: "LESSER_THAN", +var SinglePropertyFilter_ComparisonOperator_name = map[int32]string{ + 0: "EQUALS", } -var QueryOperator_value = map[string]int32{ - "EQUAL": 0, - "GREATER_THAN": 1, - "LESSER_THAN": 2, +var SinglePropertyFilter_ComparisonOperator_value = map[string]int32{ + "EQUALS": 0, } -func (x QueryOperator) String() string { - return proto.EnumName(QueryOperator_name, int32(x)) +func (x SinglePropertyFilter_ComparisonOperator) String() string { + return proto.EnumName(SinglePropertyFilter_ComparisonOperator_name, int32(x)) } -func (QueryOperator) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{0} +func (SinglePropertyFilter_ComparisonOperator) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{22, 0} } -type CreateResponse_Status int32 +type PaginationOptions_SortOrder int32 const ( - CreateResponse_ALREADY_EXISTS CreateResponse_Status = 0 - CreateResponse_CREATED CreateResponse_Status = 1 + PaginationOptions_DESCENDING PaginationOptions_SortOrder = 0 + PaginationOptions_ASCENDING PaginationOptions_SortOrder = 1 ) -var CreateResponse_Status_name = map[int32]string{ - 0: "ALREADY_EXISTS", - 1: "CREATED", +var PaginationOptions_SortOrder_name = map[int32]string{ + 0: "DESCENDING", + 1: "ASCENDING", } -var CreateResponse_Status_value = map[string]int32{ - "ALREADY_EXISTS": 0, - "CREATED": 1, +var PaginationOptions_SortOrder_value = map[string]int32{ + "DESCENDING": 0, + "ASCENDING": 1, } -func (x CreateResponse_Status) String() string { - return proto.EnumName(CreateResponse_Status_name, int32(x)) +func (x PaginationOptions_SortOrder) String() string { + return proto.EnumName(PaginationOptions_SortOrder_name, int32(x)) } -func (CreateResponse_Status) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{11, 0} +func (PaginationOptions_SortOrder) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{28, 0} } -type Parameter struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +type PaginationOptions_SortKey int32 + +const ( + PaginationOptions_CREATION_TIME PaginationOptions_SortKey = 0 +) + +var PaginationOptions_SortKey_name = map[int32]string{ + 0: "CREATION_TIME", +} + +var PaginationOptions_SortKey_value = map[string]int32{ + "CREATION_TIME": 0, +} + +func (x PaginationOptions_SortKey) String() string { + return proto.EnumName(PaginationOptions_SortKey_name, int32(x)) +} + +func (PaginationOptions_SortKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{28, 1} +} + +type CreateDatasetRequest struct { + Dataset *Dataset `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Parameter) Reset() { *m = Parameter{} } -func (m *Parameter) String() string { return proto.CompactTextString(m) } -func (*Parameter) ProtoMessage() {} -func (*Parameter) Descriptor() ([]byte, []int) { +func (m *CreateDatasetRequest) Reset() { *m = CreateDatasetRequest{} } +func (m *CreateDatasetRequest) String() string { return proto.CompactTextString(m) } +func (*CreateDatasetRequest) ProtoMessage() {} +func (*CreateDatasetRequest) Descriptor() ([]byte, []int) { return fileDescriptor_275951237ff4368a, []int{0} } -func (m *Parameter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Parameter.Unmarshal(m, b) +func (m *CreateDatasetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateDatasetRequest.Unmarshal(m, b) } -func (m *Parameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Parameter.Marshal(b, m, deterministic) +func (m *CreateDatasetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateDatasetRequest.Marshal(b, m, deterministic) } -func (m *Parameter) XXX_Merge(src proto.Message) { - xxx_messageInfo_Parameter.Merge(m, src) +func (m *CreateDatasetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateDatasetRequest.Merge(m, src) } -func (m *Parameter) XXX_Size() int { - return xxx_messageInfo_Parameter.Size(m) +func (m *CreateDatasetRequest) XXX_Size() int { + return xxx_messageInfo_CreateDatasetRequest.Size(m) } -func (m *Parameter) XXX_DiscardUnknown() { - xxx_messageInfo_Parameter.DiscardUnknown(m) +func (m *CreateDatasetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateDatasetRequest.DiscardUnknown(m) } -var xxx_messageInfo_Parameter proto.InternalMessageInfo +var xxx_messageInfo_CreateDatasetRequest proto.InternalMessageInfo -func (m *Parameter) GetName() string { +func (m *CreateDatasetRequest) GetDataset() *Dataset { if m != nil { - return m.Name + return m.Dataset + } + return nil +} + +type CreateDatasetResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateDatasetResponse) Reset() { *m = CreateDatasetResponse{} } +func (m *CreateDatasetResponse) String() string { return proto.CompactTextString(m) } +func (*CreateDatasetResponse) ProtoMessage() {} +func (*CreateDatasetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{1} +} + +func (m *CreateDatasetResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateDatasetResponse.Unmarshal(m, b) +} +func (m *CreateDatasetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateDatasetResponse.Marshal(b, m, deterministic) +} +func (m *CreateDatasetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateDatasetResponse.Merge(m, src) +} +func (m *CreateDatasetResponse) XXX_Size() int { + return xxx_messageInfo_CreateDatasetResponse.Size(m) +} +func (m *CreateDatasetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateDatasetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateDatasetResponse proto.InternalMessageInfo + +type GetDatasetRequest struct { + Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetDatasetRequest) Reset() { *m = GetDatasetRequest{} } +func (m *GetDatasetRequest) String() string { return proto.CompactTextString(m) } +func (*GetDatasetRequest) ProtoMessage() {} +func (*GetDatasetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{2} +} + +func (m *GetDatasetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetDatasetRequest.Unmarshal(m, b) +} +func (m *GetDatasetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetDatasetRequest.Marshal(b, m, deterministic) +} +func (m *GetDatasetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDatasetRequest.Merge(m, src) +} +func (m *GetDatasetRequest) XXX_Size() int { + return xxx_messageInfo_GetDatasetRequest.Size(m) +} +func (m *GetDatasetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetDatasetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetDatasetRequest proto.InternalMessageInfo + +func (m *GetDatasetRequest) GetDataset() *DatasetID { + if m != nil { + return m.Dataset + } + return nil +} + +type GetDatasetResponse struct { + Dataset *Dataset `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetDatasetResponse) Reset() { *m = GetDatasetResponse{} } +func (m *GetDatasetResponse) String() string { return proto.CompactTextString(m) } +func (*GetDatasetResponse) ProtoMessage() {} +func (*GetDatasetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{3} +} + +func (m *GetDatasetResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetDatasetResponse.Unmarshal(m, b) +} +func (m *GetDatasetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetDatasetResponse.Marshal(b, m, deterministic) +} +func (m *GetDatasetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDatasetResponse.Merge(m, src) +} +func (m *GetDatasetResponse) XXX_Size() int { + return xxx_messageInfo_GetDatasetResponse.Size(m) +} +func (m *GetDatasetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetDatasetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetDatasetResponse proto.InternalMessageInfo + +func (m *GetDatasetResponse) GetDataset() *Dataset { + if m != nil { + return m.Dataset + } + return nil +} + +type GetArtifactRequest struct { + Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` + // Types that are valid to be assigned to QueryHandle: + // *GetArtifactRequest_ArtifactId + // *GetArtifactRequest_TagName + QueryHandle isGetArtifactRequest_QueryHandle `protobuf_oneof:"query_handle"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetArtifactRequest) Reset() { *m = GetArtifactRequest{} } +func (m *GetArtifactRequest) String() string { return proto.CompactTextString(m) } +func (*GetArtifactRequest) ProtoMessage() {} +func (*GetArtifactRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{4} +} + +func (m *GetArtifactRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetArtifactRequest.Unmarshal(m, b) +} +func (m *GetArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetArtifactRequest.Marshal(b, m, deterministic) +} +func (m *GetArtifactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetArtifactRequest.Merge(m, src) +} +func (m *GetArtifactRequest) XXX_Size() int { + return xxx_messageInfo_GetArtifactRequest.Size(m) +} +func (m *GetArtifactRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetArtifactRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetArtifactRequest proto.InternalMessageInfo + +func (m *GetArtifactRequest) GetDataset() *DatasetID { + if m != nil { + return m.Dataset + } + return nil +} + +type isGetArtifactRequest_QueryHandle interface { + isGetArtifactRequest_QueryHandle() +} + +type GetArtifactRequest_ArtifactId struct { + ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3,oneof"` +} + +type GetArtifactRequest_TagName struct { + TagName string `protobuf:"bytes,3,opt,name=tag_name,json=tagName,proto3,oneof"` +} + +func (*GetArtifactRequest_ArtifactId) isGetArtifactRequest_QueryHandle() {} + +func (*GetArtifactRequest_TagName) isGetArtifactRequest_QueryHandle() {} + +func (m *GetArtifactRequest) GetQueryHandle() isGetArtifactRequest_QueryHandle { + if m != nil { + return m.QueryHandle + } + return nil +} + +func (m *GetArtifactRequest) GetArtifactId() string { + if x, ok := m.GetQueryHandle().(*GetArtifactRequest_ArtifactId); ok { + return x.ArtifactId + } + return "" +} + +func (m *GetArtifactRequest) GetTagName() string { + if x, ok := m.GetQueryHandle().(*GetArtifactRequest_TagName); ok { + return x.TagName + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*GetArtifactRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*GetArtifactRequest_ArtifactId)(nil), + (*GetArtifactRequest_TagName)(nil), + } +} + +type GetArtifactResponse struct { + Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetArtifactResponse) Reset() { *m = GetArtifactResponse{} } +func (m *GetArtifactResponse) String() string { return proto.CompactTextString(m) } +func (*GetArtifactResponse) ProtoMessage() {} +func (*GetArtifactResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{5} +} + +func (m *GetArtifactResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetArtifactResponse.Unmarshal(m, b) +} +func (m *GetArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetArtifactResponse.Marshal(b, m, deterministic) +} +func (m *GetArtifactResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetArtifactResponse.Merge(m, src) +} +func (m *GetArtifactResponse) XXX_Size() int { + return xxx_messageInfo_GetArtifactResponse.Size(m) +} +func (m *GetArtifactResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetArtifactResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetArtifactResponse proto.InternalMessageInfo + +func (m *GetArtifactResponse) GetArtifact() *Artifact { + if m != nil { + return m.Artifact + } + return nil +} + +type CreateArtifactRequest struct { + Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateArtifactRequest) Reset() { *m = CreateArtifactRequest{} } +func (m *CreateArtifactRequest) String() string { return proto.CompactTextString(m) } +func (*CreateArtifactRequest) ProtoMessage() {} +func (*CreateArtifactRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{6} +} + +func (m *CreateArtifactRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateArtifactRequest.Unmarshal(m, b) +} +func (m *CreateArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateArtifactRequest.Marshal(b, m, deterministic) +} +func (m *CreateArtifactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateArtifactRequest.Merge(m, src) +} +func (m *CreateArtifactRequest) XXX_Size() int { + return xxx_messageInfo_CreateArtifactRequest.Size(m) +} +func (m *CreateArtifactRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateArtifactRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateArtifactRequest proto.InternalMessageInfo + +func (m *CreateArtifactRequest) GetArtifact() *Artifact { + if m != nil { + return m.Artifact + } + return nil +} + +type CreateArtifactResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateArtifactResponse) Reset() { *m = CreateArtifactResponse{} } +func (m *CreateArtifactResponse) String() string { return proto.CompactTextString(m) } +func (*CreateArtifactResponse) ProtoMessage() {} +func (*CreateArtifactResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{7} +} + +func (m *CreateArtifactResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateArtifactResponse.Unmarshal(m, b) +} +func (m *CreateArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateArtifactResponse.Marshal(b, m, deterministic) +} +func (m *CreateArtifactResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateArtifactResponse.Merge(m, src) +} +func (m *CreateArtifactResponse) XXX_Size() int { + return xxx_messageInfo_CreateArtifactResponse.Size(m) +} +func (m *CreateArtifactResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateArtifactResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateArtifactResponse proto.InternalMessageInfo + +type AddTagRequest struct { + Tag *Tag `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddTagRequest) Reset() { *m = AddTagRequest{} } +func (m *AddTagRequest) String() string { return proto.CompactTextString(m) } +func (*AddTagRequest) ProtoMessage() {} +func (*AddTagRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{8} +} + +func (m *AddTagRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddTagRequest.Unmarshal(m, b) +} +func (m *AddTagRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddTagRequest.Marshal(b, m, deterministic) +} +func (m *AddTagRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddTagRequest.Merge(m, src) +} +func (m *AddTagRequest) XXX_Size() int { + return xxx_messageInfo_AddTagRequest.Size(m) +} +func (m *AddTagRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AddTagRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AddTagRequest proto.InternalMessageInfo + +func (m *AddTagRequest) GetTag() *Tag { + if m != nil { + return m.Tag + } + return nil +} + +type AddTagResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddTagResponse) Reset() { *m = AddTagResponse{} } +func (m *AddTagResponse) String() string { return proto.CompactTextString(m) } +func (*AddTagResponse) ProtoMessage() {} +func (*AddTagResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{9} +} + +func (m *AddTagResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddTagResponse.Unmarshal(m, b) +} +func (m *AddTagResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddTagResponse.Marshal(b, m, deterministic) +} +func (m *AddTagResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddTagResponse.Merge(m, src) +} +func (m *AddTagResponse) XXX_Size() int { + return xxx_messageInfo_AddTagResponse.Size(m) +} +func (m *AddTagResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AddTagResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AddTagResponse proto.InternalMessageInfo + +// List the artifacts that belong to the Dataset +type ListArtifactsRequest struct { + Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` + // Apply the filter expression to this query + Filter *FilterExpression `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` + // Pagination options to get a page of artifacts + Pagination *PaginationOptions `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListArtifactsRequest) Reset() { *m = ListArtifactsRequest{} } +func (m *ListArtifactsRequest) String() string { return proto.CompactTextString(m) } +func (*ListArtifactsRequest) ProtoMessage() {} +func (*ListArtifactsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{10} +} + +func (m *ListArtifactsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListArtifactsRequest.Unmarshal(m, b) +} +func (m *ListArtifactsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListArtifactsRequest.Marshal(b, m, deterministic) +} +func (m *ListArtifactsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListArtifactsRequest.Merge(m, src) +} +func (m *ListArtifactsRequest) XXX_Size() int { + return xxx_messageInfo_ListArtifactsRequest.Size(m) +} +func (m *ListArtifactsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListArtifactsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListArtifactsRequest proto.InternalMessageInfo + +func (m *ListArtifactsRequest) GetDataset() *DatasetID { + if m != nil { + return m.Dataset + } + return nil +} + +func (m *ListArtifactsRequest) GetFilter() *FilterExpression { + if m != nil { + return m.Filter + } + return nil +} + +func (m *ListArtifactsRequest) GetPagination() *PaginationOptions { + if m != nil { + return m.Pagination + } + return nil +} + +// Response to list artifacts +type ListArtifactsResponse struct { + // The list of artifacts + Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"` + // Token to use to request the next page, pass this into the next requests PaginationOptions + NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListArtifactsResponse) Reset() { *m = ListArtifactsResponse{} } +func (m *ListArtifactsResponse) String() string { return proto.CompactTextString(m) } +func (*ListArtifactsResponse) ProtoMessage() {} +func (*ListArtifactsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{11} +} + +func (m *ListArtifactsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListArtifactsResponse.Unmarshal(m, b) +} +func (m *ListArtifactsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListArtifactsResponse.Marshal(b, m, deterministic) +} +func (m *ListArtifactsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListArtifactsResponse.Merge(m, src) +} +func (m *ListArtifactsResponse) XXX_Size() int { + return xxx_messageInfo_ListArtifactsResponse.Size(m) +} +func (m *ListArtifactsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListArtifactsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListArtifactsResponse proto.InternalMessageInfo + +func (m *ListArtifactsResponse) GetArtifacts() []*Artifact { + if m != nil { + return m.Artifacts + } + return nil +} + +func (m *ListArtifactsResponse) GetNextToken() string { + if m != nil { + return m.NextToken } return "" } -func (m *Parameter) GetValue() string { +// List the datasets for the given query +type ListDatasetsRequest struct { + // Apply the filter expression to this query + Filter *FilterExpression `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` + // Pagination options to get a page of datasets + Pagination *PaginationOptions `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListDatasetsRequest) Reset() { *m = ListDatasetsRequest{} } +func (m *ListDatasetsRequest) String() string { return proto.CompactTextString(m) } +func (*ListDatasetsRequest) ProtoMessage() {} +func (*ListDatasetsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{12} +} + +func (m *ListDatasetsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListDatasetsRequest.Unmarshal(m, b) +} +func (m *ListDatasetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListDatasetsRequest.Marshal(b, m, deterministic) +} +func (m *ListDatasetsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListDatasetsRequest.Merge(m, src) +} +func (m *ListDatasetsRequest) XXX_Size() int { + return xxx_messageInfo_ListDatasetsRequest.Size(m) +} +func (m *ListDatasetsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListDatasetsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListDatasetsRequest proto.InternalMessageInfo + +func (m *ListDatasetsRequest) GetFilter() *FilterExpression { + if m != nil { + return m.Filter + } + return nil +} + +func (m *ListDatasetsRequest) GetPagination() *PaginationOptions { + if m != nil { + return m.Pagination + } + return nil +} + +// List the datasets response with token for next pagination +type ListDatasetsResponse struct { + // The list of datasets + Datasets []*Dataset `protobuf:"bytes,1,rep,name=datasets,proto3" json:"datasets,omitempty"` + // Token to use to request the next page, pass this into the next requests PaginationOptions + NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListDatasetsResponse) Reset() { *m = ListDatasetsResponse{} } +func (m *ListDatasetsResponse) String() string { return proto.CompactTextString(m) } +func (*ListDatasetsResponse) ProtoMessage() {} +func (*ListDatasetsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{13} +} + +func (m *ListDatasetsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListDatasetsResponse.Unmarshal(m, b) +} +func (m *ListDatasetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListDatasetsResponse.Marshal(b, m, deterministic) +} +func (m *ListDatasetsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListDatasetsResponse.Merge(m, src) +} +func (m *ListDatasetsResponse) XXX_Size() int { + return xxx_messageInfo_ListDatasetsResponse.Size(m) +} +func (m *ListDatasetsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListDatasetsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListDatasetsResponse proto.InternalMessageInfo + +func (m *ListDatasetsResponse) GetDatasets() []*Dataset { + if m != nil { + return m.Datasets + } + return nil +} + +func (m *ListDatasetsResponse) GetNextToken() string { + if m != nil { + return m.NextToken + } + return "" +} + +type Dataset struct { + Id *DatasetID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + PartitionKeys []string `protobuf:"bytes,3,rep,name=partitionKeys,proto3" json:"partitionKeys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Dataset) Reset() { *m = Dataset{} } +func (m *Dataset) String() string { return proto.CompactTextString(m) } +func (*Dataset) ProtoMessage() {} +func (*Dataset) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{14} +} + +func (m *Dataset) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Dataset.Unmarshal(m, b) +} +func (m *Dataset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Dataset.Marshal(b, m, deterministic) +} +func (m *Dataset) XXX_Merge(src proto.Message) { + xxx_messageInfo_Dataset.Merge(m, src) +} +func (m *Dataset) XXX_Size() int { + return xxx_messageInfo_Dataset.Size(m) +} +func (m *Dataset) XXX_DiscardUnknown() { + xxx_messageInfo_Dataset.DiscardUnknown(m) +} + +var xxx_messageInfo_Dataset proto.InternalMessageInfo + +func (m *Dataset) GetId() *DatasetID { + if m != nil { + return m.Id + } + return nil +} + +func (m *Dataset) GetMetadata() *Metadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *Dataset) GetPartitionKeys() []string { + if m != nil { + return m.PartitionKeys + } + return nil +} + +type Partition struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Partition) Reset() { *m = Partition{} } +func (m *Partition) String() string { return proto.CompactTextString(m) } +func (*Partition) ProtoMessage() {} +func (*Partition) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{15} +} + +func (m *Partition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Partition.Unmarshal(m, b) +} +func (m *Partition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Partition.Marshal(b, m, deterministic) +} +func (m *Partition) XXX_Merge(src proto.Message) { + xxx_messageInfo_Partition.Merge(m, src) +} +func (m *Partition) XXX_Size() int { + return xxx_messageInfo_Partition.Size(m) +} +func (m *Partition) XXX_DiscardUnknown() { + xxx_messageInfo_Partition.DiscardUnknown(m) +} + +var xxx_messageInfo_Partition proto.InternalMessageInfo + +func (m *Partition) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *Partition) GetValue() string { if m != nil { return m.Value } return "" } -// 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. +type DatasetID struct { + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + UUID string `protobuf:"bytes,5,opt,name=UUID,proto3" json:"UUID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DatasetID) Reset() { *m = DatasetID{} } +func (m *DatasetID) String() string { return proto.CompactTextString(m) } +func (*DatasetID) ProtoMessage() {} +func (*DatasetID) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{16} +} + +func (m *DatasetID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DatasetID.Unmarshal(m, b) +} +func (m *DatasetID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DatasetID.Marshal(b, m, deterministic) +} +func (m *DatasetID) XXX_Merge(src proto.Message) { + xxx_messageInfo_DatasetID.Merge(m, src) +} +func (m *DatasetID) XXX_Size() int { + return xxx_messageInfo_DatasetID.Size(m) +} +func (m *DatasetID) XXX_DiscardUnknown() { + xxx_messageInfo_DatasetID.DiscardUnknown(m) +} + +var xxx_messageInfo_DatasetID proto.InternalMessageInfo + +func (m *DatasetID) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *DatasetID) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *DatasetID) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *DatasetID) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *DatasetID) GetUUID() string { + if m != nil { + return m.UUID + } + return "" +} + type Artifact struct { - Provenance string `protobuf:"bytes,1,opt,name=provenance,proto3" json:"provenance,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` - CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - ReferenceId string `protobuf:"bytes,6,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` - Inputs []*Parameter `protobuf:"bytes,7,rep,name=inputs,proto3" json:"inputs,omitempty"` - Outputs []*Parameter `protobuf:"bytes,8,rep,name=outputs,proto3" json:"outputs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Dataset *DatasetID `protobuf:"bytes,2,opt,name=dataset,proto3" json:"dataset,omitempty"` + Data []*ArtifactData `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` + Metadata *Metadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + Partitions []*Partition `protobuf:"bytes,5,rep,name=partitions,proto3" json:"partitions,omitempty"` + Tags []*Tag `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Artifact) Reset() { *m = Artifact{} } func (m *Artifact) String() string { return proto.CompactTextString(m) } func (*Artifact) ProtoMessage() {} func (*Artifact) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{1} + return fileDescriptor_275951237ff4368a, []int{17} } func (m *Artifact) XXX_Unmarshal(b []byte) error { @@ -183,727 +930,815 @@ func (m *Artifact) XXX_DiscardUnknown() { var xxx_messageInfo_Artifact proto.InternalMessageInfo -func (m *Artifact) GetProvenance() string { +func (m *Artifact) GetId() string { if m != nil { - return m.Provenance + return m.Id } return "" } -func (m *Artifact) GetName() string { +func (m *Artifact) GetDataset() *DatasetID { if m != nil { - return m.Name + return m.Dataset } - return "" + return nil } -func (m *Artifact) GetVersion() string { +func (m *Artifact) GetData() []*ArtifactData { if m != nil { - return m.Version + return m.Data } - return "" + return nil } -func (m *Artifact) GetRevision() int64 { +func (m *Artifact) GetMetadata() *Metadata { if m != nil { - return m.Revision + return m.Metadata } - return 0 + return nil } -func (m *Artifact) GetCreatedAt() int64 { +func (m *Artifact) GetPartitions() []*Partition { if m != nil { - return m.CreatedAt + return m.Partitions } - return 0 + return nil } -func (m *Artifact) GetReferenceId() string { +func (m *Artifact) GetTags() []*Tag { if m != nil { - return m.ReferenceId + return m.Tags } - return "" + return nil } -func (m *Artifact) GetInputs() []*Parameter { +func (m *Artifact) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +type ArtifactData struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Value *core.Literal `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ArtifactData) Reset() { *m = ArtifactData{} } +func (m *ArtifactData) String() string { return proto.CompactTextString(m) } +func (*ArtifactData) ProtoMessage() {} +func (*ArtifactData) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{18} +} + +func (m *ArtifactData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ArtifactData.Unmarshal(m, b) +} +func (m *ArtifactData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ArtifactData.Marshal(b, m, deterministic) +} +func (m *ArtifactData) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArtifactData.Merge(m, src) +} +func (m *ArtifactData) XXX_Size() int { + return xxx_messageInfo_ArtifactData.Size(m) +} +func (m *ArtifactData) XXX_DiscardUnknown() { + xxx_messageInfo_ArtifactData.DiscardUnknown(m) +} + +var xxx_messageInfo_ArtifactData proto.InternalMessageInfo + +func (m *ArtifactData) GetName() string { if m != nil { - return m.Inputs + return m.Name } - return nil + return "" } -func (m *Artifact) GetOutputs() []*Parameter { +func (m *ArtifactData) GetValue() *core.Literal { if m != nil { - return m.Outputs + return m.Value } return nil } -type ArtifactId struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Inputs []*Parameter `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Tag struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` + Dataset *DatasetID `protobuf:"bytes,3,opt,name=dataset,proto3" json:"dataset,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ArtifactId) Reset() { *m = ArtifactId{} } -func (m *ArtifactId) String() string { return proto.CompactTextString(m) } -func (*ArtifactId) ProtoMessage() {} -func (*ArtifactId) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{2} +func (m *Tag) Reset() { *m = Tag{} } +func (m *Tag) String() string { return proto.CompactTextString(m) } +func (*Tag) ProtoMessage() {} +func (*Tag) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{19} } -func (m *ArtifactId) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ArtifactId.Unmarshal(m, b) +func (m *Tag) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Tag.Unmarshal(m, b) } -func (m *ArtifactId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ArtifactId.Marshal(b, m, deterministic) +func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Tag.Marshal(b, m, deterministic) } -func (m *ArtifactId) XXX_Merge(src proto.Message) { - xxx_messageInfo_ArtifactId.Merge(m, src) +func (m *Tag) XXX_Merge(src proto.Message) { + xxx_messageInfo_Tag.Merge(m, src) } -func (m *ArtifactId) XXX_Size() int { - return xxx_messageInfo_ArtifactId.Size(m) +func (m *Tag) XXX_Size() int { + return xxx_messageInfo_Tag.Size(m) } -func (m *ArtifactId) XXX_DiscardUnknown() { - xxx_messageInfo_ArtifactId.DiscardUnknown(m) +func (m *Tag) XXX_DiscardUnknown() { + xxx_messageInfo_Tag.DiscardUnknown(m) } -var xxx_messageInfo_ArtifactId proto.InternalMessageInfo +var xxx_messageInfo_Tag proto.InternalMessageInfo -func (m *ArtifactId) GetName() string { +func (m *Tag) GetName() string { if m != nil { return m.Name } return "" } -func (m *ArtifactId) GetVersion() string { +func (m *Tag) GetArtifactId() string { if m != nil { - return m.Version + return m.ArtifactId } return "" } -func (m *ArtifactId) GetInputs() []*Parameter { +func (m *Tag) GetDataset() *DatasetID { if m != nil { - return m.Inputs + return m.Dataset } return nil } -type GetRequest struct { - // Types that are valid to be assigned to Id: - // *GetRequest_Provenance - // *GetRequest_ArtifactId - Id isGetRequest_Id `protobuf_oneof:"id"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Metadata struct { + KeyMap map[string]string `protobuf:"bytes,1,rep,name=key_map,json=keyMap,proto3" json:"key_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{3} +func (m *Metadata) Reset() { *m = Metadata{} } +func (m *Metadata) String() string { return proto.CompactTextString(m) } +func (*Metadata) ProtoMessage() {} +func (*Metadata) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{20} } -func (m *GetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetRequest.Unmarshal(m, b) -} -func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) +func (m *Metadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Metadata.Unmarshal(m, b) } -func (m *GetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRequest.Merge(m, src) +func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Metadata.Marshal(b, m, deterministic) } -func (m *GetRequest) XXX_Size() int { - return xxx_messageInfo_GetRequest.Size(m) +func (m *Metadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_Metadata.Merge(m, src) } -func (m *GetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetRequest.DiscardUnknown(m) +func (m *Metadata) XXX_Size() int { + return xxx_messageInfo_Metadata.Size(m) } - -var xxx_messageInfo_GetRequest proto.InternalMessageInfo - -type isGetRequest_Id interface { - isGetRequest_Id() -} - -type GetRequest_Provenance struct { - Provenance string `protobuf:"bytes,1,opt,name=provenance,proto3,oneof"` +func (m *Metadata) XXX_DiscardUnknown() { + xxx_messageInfo_Metadata.DiscardUnknown(m) } -type GetRequest_ArtifactId struct { - ArtifactId *ArtifactId `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3,oneof"` -} - -func (*GetRequest_Provenance) isGetRequest_Id() {} +var xxx_messageInfo_Metadata proto.InternalMessageInfo -func (*GetRequest_ArtifactId) isGetRequest_Id() {} - -func (m *GetRequest) GetId() isGetRequest_Id { +func (m *Metadata) GetKeyMap() map[string]string { if m != nil { - return m.Id + return m.KeyMap } return nil } -func (m *GetRequest) GetProvenance() string { - if x, ok := m.GetId().(*GetRequest_Provenance); ok { - return x.Provenance - } - return "" -} - -func (m *GetRequest) GetArtifactId() *ArtifactId { - if x, ok := m.GetId().(*GetRequest_ArtifactId); ok { - return x.ArtifactId - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*GetRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*GetRequest_Provenance)(nil), - (*GetRequest_ArtifactId)(nil), - } -} - -type GetResponse struct { - Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Filter expression that is composed of a combination of single filters +type FilterExpression struct { + Filters []*SinglePropertyFilter `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{4} +func (m *FilterExpression) Reset() { *m = FilterExpression{} } +func (m *FilterExpression) String() string { return proto.CompactTextString(m) } +func (*FilterExpression) ProtoMessage() {} +func (*FilterExpression) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{21} } -func (m *GetResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetResponse.Unmarshal(m, b) +func (m *FilterExpression) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilterExpression.Unmarshal(m, b) } -func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) +func (m *FilterExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilterExpression.Marshal(b, m, deterministic) } -func (m *GetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetResponse.Merge(m, src) +func (m *FilterExpression) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilterExpression.Merge(m, src) } -func (m *GetResponse) XXX_Size() int { - return xxx_messageInfo_GetResponse.Size(m) +func (m *FilterExpression) XXX_Size() int { + return xxx_messageInfo_FilterExpression.Size(m) } -func (m *GetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetResponse.DiscardUnknown(m) +func (m *FilterExpression) XXX_DiscardUnknown() { + xxx_messageInfo_FilterExpression.DiscardUnknown(m) } -var xxx_messageInfo_GetResponse proto.InternalMessageInfo +var xxx_messageInfo_FilterExpression proto.InternalMessageInfo -func (m *GetResponse) GetArtifact() *Artifact { +func (m *FilterExpression) GetFilters() []*SinglePropertyFilter { if m != nil { - return m.Artifact + return m.Filters } return nil } -type IntFilter struct { - Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - Operator QueryOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=pb.lyft.datacatalog.QueryOperator" json:"operator,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// A single property to filter on. +type SinglePropertyFilter struct { + // Types that are valid to be assigned to PropertyFilter: + // *SinglePropertyFilter_TagFilter + // *SinglePropertyFilter_PartitionFilter + // *SinglePropertyFilter_ArtifactFilter + // *SinglePropertyFilter_DatasetFilter + PropertyFilter isSinglePropertyFilter_PropertyFilter `protobuf_oneof:"property_filter"` + Operator SinglePropertyFilter_ComparisonOperator `protobuf:"varint,10,opt,name=operator,proto3,enum=datacatalog.SinglePropertyFilter_ComparisonOperator" json:"operator,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *IntFilter) Reset() { *m = IntFilter{} } -func (m *IntFilter) String() string { return proto.CompactTextString(m) } -func (*IntFilter) ProtoMessage() {} -func (*IntFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{5} +func (m *SinglePropertyFilter) Reset() { *m = SinglePropertyFilter{} } +func (m *SinglePropertyFilter) String() string { return proto.CompactTextString(m) } +func (*SinglePropertyFilter) ProtoMessage() {} +func (*SinglePropertyFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{22} } -func (m *IntFilter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IntFilter.Unmarshal(m, b) +func (m *SinglePropertyFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SinglePropertyFilter.Unmarshal(m, b) } -func (m *IntFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IntFilter.Marshal(b, m, deterministic) +func (m *SinglePropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SinglePropertyFilter.Marshal(b, m, deterministic) } -func (m *IntFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_IntFilter.Merge(m, src) +func (m *SinglePropertyFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_SinglePropertyFilter.Merge(m, src) } -func (m *IntFilter) XXX_Size() int { - return xxx_messageInfo_IntFilter.Size(m) +func (m *SinglePropertyFilter) XXX_Size() int { + return xxx_messageInfo_SinglePropertyFilter.Size(m) } -func (m *IntFilter) XXX_DiscardUnknown() { - xxx_messageInfo_IntFilter.DiscardUnknown(m) +func (m *SinglePropertyFilter) XXX_DiscardUnknown() { + xxx_messageInfo_SinglePropertyFilter.DiscardUnknown(m) } -var xxx_messageInfo_IntFilter proto.InternalMessageInfo +var xxx_messageInfo_SinglePropertyFilter proto.InternalMessageInfo -func (m *IntFilter) GetValue() int64 { - if m != nil { - return m.Value - } - return 0 +type isSinglePropertyFilter_PropertyFilter interface { + isSinglePropertyFilter_PropertyFilter() } -func (m *IntFilter) GetOperator() QueryOperator { - if m != nil { - return m.Operator - } - return QueryOperator_EQUAL +type SinglePropertyFilter_TagFilter struct { + TagFilter *TagPropertyFilter `protobuf:"bytes,1,opt,name=tag_filter,json=tagFilter,proto3,oneof"` } -type IntRangeFilter struct { - Min int64 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"` - Max int64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SinglePropertyFilter_PartitionFilter struct { + PartitionFilter *PartitionPropertyFilter `protobuf:"bytes,2,opt,name=partition_filter,json=partitionFilter,proto3,oneof"` } -func (m *IntRangeFilter) Reset() { *m = IntRangeFilter{} } -func (m *IntRangeFilter) String() string { return proto.CompactTextString(m) } -func (*IntRangeFilter) ProtoMessage() {} -func (*IntRangeFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{6} +type SinglePropertyFilter_ArtifactFilter struct { + ArtifactFilter *ArtifactPropertyFilter `protobuf:"bytes,3,opt,name=artifact_filter,json=artifactFilter,proto3,oneof"` } -func (m *IntRangeFilter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IntRangeFilter.Unmarshal(m, b) +type SinglePropertyFilter_DatasetFilter struct { + DatasetFilter *DatasetPropertyFilter `protobuf:"bytes,4,opt,name=dataset_filter,json=datasetFilter,proto3,oneof"` } -func (m *IntRangeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IntRangeFilter.Marshal(b, m, deterministic) + +func (*SinglePropertyFilter_TagFilter) isSinglePropertyFilter_PropertyFilter() {} + +func (*SinglePropertyFilter_PartitionFilter) isSinglePropertyFilter_PropertyFilter() {} + +func (*SinglePropertyFilter_ArtifactFilter) isSinglePropertyFilter_PropertyFilter() {} + +func (*SinglePropertyFilter_DatasetFilter) isSinglePropertyFilter_PropertyFilter() {} + +func (m *SinglePropertyFilter) GetPropertyFilter() isSinglePropertyFilter_PropertyFilter { + if m != nil { + return m.PropertyFilter + } + return nil } -func (m *IntRangeFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_IntRangeFilter.Merge(m, src) + +func (m *SinglePropertyFilter) GetTagFilter() *TagPropertyFilter { + if x, ok := m.GetPropertyFilter().(*SinglePropertyFilter_TagFilter); ok { + return x.TagFilter + } + return nil } -func (m *IntRangeFilter) XXX_Size() int { - return xxx_messageInfo_IntRangeFilter.Size(m) + +func (m *SinglePropertyFilter) GetPartitionFilter() *PartitionPropertyFilter { + if x, ok := m.GetPropertyFilter().(*SinglePropertyFilter_PartitionFilter); ok { + return x.PartitionFilter + } + return nil } -func (m *IntRangeFilter) XXX_DiscardUnknown() { - xxx_messageInfo_IntRangeFilter.DiscardUnknown(m) + +func (m *SinglePropertyFilter) GetArtifactFilter() *ArtifactPropertyFilter { + if x, ok := m.GetPropertyFilter().(*SinglePropertyFilter_ArtifactFilter); ok { + return x.ArtifactFilter + } + return nil } -var xxx_messageInfo_IntRangeFilter proto.InternalMessageInfo +func (m *SinglePropertyFilter) GetDatasetFilter() *DatasetPropertyFilter { + if x, ok := m.GetPropertyFilter().(*SinglePropertyFilter_DatasetFilter); ok { + return x.DatasetFilter + } + return nil +} -func (m *IntRangeFilter) GetMin() int64 { +func (m *SinglePropertyFilter) GetOperator() SinglePropertyFilter_ComparisonOperator { if m != nil { - return m.Min + return m.Operator } - return 0 + return SinglePropertyFilter_EQUALS } -func (m *IntRangeFilter) GetMax() int64 { - if m != nil { - return m.Max +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SinglePropertyFilter) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SinglePropertyFilter_TagFilter)(nil), + (*SinglePropertyFilter_PartitionFilter)(nil), + (*SinglePropertyFilter_ArtifactFilter)(nil), + (*SinglePropertyFilter_DatasetFilter)(nil), } - return 0 } -type IntQueryKey struct { - // Types that are valid to be assigned to Filter: - // *IntQueryKey_Val - // *IntQueryKey_Range - Filter isIntQueryKey_Filter `protobuf_oneof:"filter"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Artifact properties we can filter by +type ArtifactPropertyFilter struct { + // oneof because we can add more properties in the future + // + // Types that are valid to be assigned to Property: + // *ArtifactPropertyFilter_ArtifactId + Property isArtifactPropertyFilter_Property `protobuf_oneof:"property"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *IntQueryKey) Reset() { *m = IntQueryKey{} } -func (m *IntQueryKey) String() string { return proto.CompactTextString(m) } -func (*IntQueryKey) ProtoMessage() {} -func (*IntQueryKey) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{7} +func (m *ArtifactPropertyFilter) Reset() { *m = ArtifactPropertyFilter{} } +func (m *ArtifactPropertyFilter) String() string { return proto.CompactTextString(m) } +func (*ArtifactPropertyFilter) ProtoMessage() {} +func (*ArtifactPropertyFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{23} } -func (m *IntQueryKey) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IntQueryKey.Unmarshal(m, b) +func (m *ArtifactPropertyFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ArtifactPropertyFilter.Unmarshal(m, b) } -func (m *IntQueryKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IntQueryKey.Marshal(b, m, deterministic) +func (m *ArtifactPropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ArtifactPropertyFilter.Marshal(b, m, deterministic) } -func (m *IntQueryKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_IntQueryKey.Merge(m, src) +func (m *ArtifactPropertyFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArtifactPropertyFilter.Merge(m, src) } -func (m *IntQueryKey) XXX_Size() int { - return xxx_messageInfo_IntQueryKey.Size(m) +func (m *ArtifactPropertyFilter) XXX_Size() int { + return xxx_messageInfo_ArtifactPropertyFilter.Size(m) } -func (m *IntQueryKey) XXX_DiscardUnknown() { - xxx_messageInfo_IntQueryKey.DiscardUnknown(m) +func (m *ArtifactPropertyFilter) XXX_DiscardUnknown() { + xxx_messageInfo_ArtifactPropertyFilter.DiscardUnknown(m) } -var xxx_messageInfo_IntQueryKey proto.InternalMessageInfo - -type isIntQueryKey_Filter interface { - isIntQueryKey_Filter() -} +var xxx_messageInfo_ArtifactPropertyFilter proto.InternalMessageInfo -type IntQueryKey_Val struct { - Val *IntFilter `protobuf:"bytes,1,opt,name=val,proto3,oneof"` +type isArtifactPropertyFilter_Property interface { + isArtifactPropertyFilter_Property() } -type IntQueryKey_Range struct { - Range *IntRangeFilter `protobuf:"bytes,2,opt,name=range,proto3,oneof"` +type ArtifactPropertyFilter_ArtifactId struct { + ArtifactId string `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3,oneof"` } -func (*IntQueryKey_Val) isIntQueryKey_Filter() {} - -func (*IntQueryKey_Range) isIntQueryKey_Filter() {} +func (*ArtifactPropertyFilter_ArtifactId) isArtifactPropertyFilter_Property() {} -func (m *IntQueryKey) GetFilter() isIntQueryKey_Filter { +func (m *ArtifactPropertyFilter) GetProperty() isArtifactPropertyFilter_Property { if m != nil { - return m.Filter - } - return nil -} - -func (m *IntQueryKey) GetVal() *IntFilter { - if x, ok := m.GetFilter().(*IntQueryKey_Val); ok { - return x.Val + return m.Property } return nil } -func (m *IntQueryKey) GetRange() *IntRangeFilter { - if x, ok := m.GetFilter().(*IntQueryKey_Range); ok { - return x.Range +func (m *ArtifactPropertyFilter) GetArtifactId() string { + if x, ok := m.GetProperty().(*ArtifactPropertyFilter_ArtifactId); ok { + return x.ArtifactId } - return nil + return "" } // XXX_OneofWrappers is for the internal use of the proto package. -func (*IntQueryKey) XXX_OneofWrappers() []interface{} { +func (*ArtifactPropertyFilter) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*IntQueryKey_Val)(nil), - (*IntQueryKey_Range)(nil), + (*ArtifactPropertyFilter_ArtifactId)(nil), } } -// QueryRequest allows queries on a range of values for revision column and point queries on created_at -// and reference_id -type QueryRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Revision *IntQueryKey `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` - CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - ReferenceId string `protobuf:"bytes,5,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Tag properties we can filter by +type TagPropertyFilter struct { + // Types that are valid to be assigned to Property: + // *TagPropertyFilter_TagName + Property isTagPropertyFilter_Property `protobuf_oneof:"property"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *QueryRequest) Reset() { *m = QueryRequest{} } -func (m *QueryRequest) String() string { return proto.CompactTextString(m) } -func (*QueryRequest) ProtoMessage() {} -func (*QueryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{8} +func (m *TagPropertyFilter) Reset() { *m = TagPropertyFilter{} } +func (m *TagPropertyFilter) String() string { return proto.CompactTextString(m) } +func (*TagPropertyFilter) ProtoMessage() {} +func (*TagPropertyFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{24} } -func (m *QueryRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_QueryRequest.Unmarshal(m, b) +func (m *TagPropertyFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TagPropertyFilter.Unmarshal(m, b) } -func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_QueryRequest.Marshal(b, m, deterministic) +func (m *TagPropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TagPropertyFilter.Marshal(b, m, deterministic) } -func (m *QueryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRequest.Merge(m, src) +func (m *TagPropertyFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_TagPropertyFilter.Merge(m, src) } -func (m *QueryRequest) XXX_Size() int { - return xxx_messageInfo_QueryRequest.Size(m) +func (m *TagPropertyFilter) XXX_Size() int { + return xxx_messageInfo_TagPropertyFilter.Size(m) } -func (m *QueryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRequest.DiscardUnknown(m) +func (m *TagPropertyFilter) XXX_DiscardUnknown() { + xxx_messageInfo_TagPropertyFilter.DiscardUnknown(m) } -var xxx_messageInfo_QueryRequest proto.InternalMessageInfo +var xxx_messageInfo_TagPropertyFilter proto.InternalMessageInfo -func (m *QueryRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +type isTagPropertyFilter_Property interface { + isTagPropertyFilter_Property() } -func (m *QueryRequest) GetVersion() string { - if m != nil { - return m.Version - } - return "" +type TagPropertyFilter_TagName struct { + TagName string `protobuf:"bytes,1,opt,name=tag_name,json=tagName,proto3,oneof"` } -func (m *QueryRequest) GetRevision() *IntQueryKey { +func (*TagPropertyFilter_TagName) isTagPropertyFilter_Property() {} + +func (m *TagPropertyFilter) GetProperty() isTagPropertyFilter_Property { if m != nil { - return m.Revision + return m.Property } return nil } -func (m *QueryRequest) GetCreatedAt() int64 { - if m != nil { - return m.CreatedAt +func (m *TagPropertyFilter) GetTagName() string { + if x, ok := m.GetProperty().(*TagPropertyFilter_TagName); ok { + return x.TagName } - return 0 + return "" } -func (m *QueryRequest) GetReferenceId() string { - if m != nil { - return m.ReferenceId +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TagPropertyFilter) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TagPropertyFilter_TagName)(nil), } - return "" } -type QueryResponse struct { - Artifact []*Artifact `protobuf:"bytes,1,rep,name=artifact,proto3" json:"artifact,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Partition properties we can filter by +type PartitionPropertyFilter struct { + // Types that are valid to be assigned to Property: + // *PartitionPropertyFilter_KeyVal + Property isPartitionPropertyFilter_Property `protobuf_oneof:"property"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *QueryResponse) Reset() { *m = QueryResponse{} } -func (m *QueryResponse) String() string { return proto.CompactTextString(m) } -func (*QueryResponse) ProtoMessage() {} -func (*QueryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{9} +func (m *PartitionPropertyFilter) Reset() { *m = PartitionPropertyFilter{} } +func (m *PartitionPropertyFilter) String() string { return proto.CompactTextString(m) } +func (*PartitionPropertyFilter) ProtoMessage() {} +func (*PartitionPropertyFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{25} } -func (m *QueryResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_QueryResponse.Unmarshal(m, b) +func (m *PartitionPropertyFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PartitionPropertyFilter.Unmarshal(m, b) +} +func (m *PartitionPropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PartitionPropertyFilter.Marshal(b, m, deterministic) } -func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_QueryResponse.Marshal(b, m, deterministic) +func (m *PartitionPropertyFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_PartitionPropertyFilter.Merge(m, src) } -func (m *QueryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryResponse.Merge(m, src) +func (m *PartitionPropertyFilter) XXX_Size() int { + return xxx_messageInfo_PartitionPropertyFilter.Size(m) } -func (m *QueryResponse) XXX_Size() int { - return xxx_messageInfo_QueryResponse.Size(m) +func (m *PartitionPropertyFilter) XXX_DiscardUnknown() { + xxx_messageInfo_PartitionPropertyFilter.DiscardUnknown(m) } -func (m *QueryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryResponse.DiscardUnknown(m) + +var xxx_messageInfo_PartitionPropertyFilter proto.InternalMessageInfo + +type isPartitionPropertyFilter_Property interface { + isPartitionPropertyFilter_Property() +} + +type PartitionPropertyFilter_KeyVal struct { + KeyVal *KeyValuePair `protobuf:"bytes,1,opt,name=key_val,json=keyVal,proto3,oneof"` } -var xxx_messageInfo_QueryResponse proto.InternalMessageInfo +func (*PartitionPropertyFilter_KeyVal) isPartitionPropertyFilter_Property() {} -func (m *QueryResponse) GetArtifact() []*Artifact { +func (m *PartitionPropertyFilter) GetProperty() isPartitionPropertyFilter_Property { if m != nil { - return m.Artifact + return m.Property } return nil } -type CreateRequest struct { - Ref *ArtifactId `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` - ReferenceId string `protobuf:"bytes,2,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` - Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` - Outputs []*Parameter `protobuf:"bytes,4,rep,name=outputs,proto3" json:"outputs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *PartitionPropertyFilter) GetKeyVal() *KeyValuePair { + if x, ok := m.GetProperty().(*PartitionPropertyFilter_KeyVal); ok { + return x.KeyVal + } + return nil } -func (m *CreateRequest) Reset() { *m = CreateRequest{} } -func (m *CreateRequest) String() string { return proto.CompactTextString(m) } -func (*CreateRequest) ProtoMessage() {} -func (*CreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{10} +// XXX_OneofWrappers is for the internal use of the proto package. +func (*PartitionPropertyFilter) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*PartitionPropertyFilter_KeyVal)(nil), + } +} + +type KeyValuePair struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyValuePair) Reset() { *m = KeyValuePair{} } +func (m *KeyValuePair) String() string { return proto.CompactTextString(m) } +func (*KeyValuePair) ProtoMessage() {} +func (*KeyValuePair) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{26} } -func (m *CreateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateRequest.Unmarshal(m, b) +func (m *KeyValuePair) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KeyValuePair.Unmarshal(m, b) } -func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateRequest.Marshal(b, m, deterministic) +func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KeyValuePair.Marshal(b, m, deterministic) } -func (m *CreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateRequest.Merge(m, src) +func (m *KeyValuePair) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyValuePair.Merge(m, src) } -func (m *CreateRequest) XXX_Size() int { - return xxx_messageInfo_CreateRequest.Size(m) +func (m *KeyValuePair) XXX_Size() int { + return xxx_messageInfo_KeyValuePair.Size(m) } -func (m *CreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateRequest.DiscardUnknown(m) +func (m *KeyValuePair) XXX_DiscardUnknown() { + xxx_messageInfo_KeyValuePair.DiscardUnknown(m) } -var xxx_messageInfo_CreateRequest proto.InternalMessageInfo +var xxx_messageInfo_KeyValuePair proto.InternalMessageInfo -func (m *CreateRequest) GetRef() *ArtifactId { +func (m *KeyValuePair) GetKey() string { if m != nil { - return m.Ref + return m.Key } - return nil + return "" } -func (m *CreateRequest) GetReferenceId() string { +func (m *KeyValuePair) GetValue() string { if m != nil { - return m.ReferenceId + return m.Value } return "" } -func (m *CreateRequest) GetRevision() int64 { - if m != nil { - return m.Revision - } - return 0 +// Dataset properties we can filter by +type DatasetPropertyFilter struct { + // Types that are valid to be assigned to Property: + // *DatasetPropertyFilter_Project + // *DatasetPropertyFilter_Name + // *DatasetPropertyFilter_Domain + // *DatasetPropertyFilter_Version + Property isDatasetPropertyFilter_Property `protobuf_oneof:"property"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CreateRequest) GetOutputs() []*Parameter { - if m != nil { - return m.Outputs - } - return nil +func (m *DatasetPropertyFilter) Reset() { *m = DatasetPropertyFilter{} } +func (m *DatasetPropertyFilter) String() string { return proto.CompactTextString(m) } +func (*DatasetPropertyFilter) ProtoMessage() {} +func (*DatasetPropertyFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{27} } -type CreateResponse struct { - Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` - Status CreateResponse_Status `protobuf:"varint,2,opt,name=status,proto3,enum=pb.lyft.datacatalog.CreateResponse_Status" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *DatasetPropertyFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DatasetPropertyFilter.Unmarshal(m, b) } - -func (m *CreateResponse) Reset() { *m = CreateResponse{} } -func (m *CreateResponse) String() string { return proto.CompactTextString(m) } -func (*CreateResponse) ProtoMessage() {} -func (*CreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{11} +func (m *DatasetPropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DatasetPropertyFilter.Marshal(b, m, deterministic) +} +func (m *DatasetPropertyFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_DatasetPropertyFilter.Merge(m, src) +} +func (m *DatasetPropertyFilter) XXX_Size() int { + return xxx_messageInfo_DatasetPropertyFilter.Size(m) } +func (m *DatasetPropertyFilter) XXX_DiscardUnknown() { + xxx_messageInfo_DatasetPropertyFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_DatasetPropertyFilter proto.InternalMessageInfo -func (m *CreateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateResponse.Unmarshal(m, b) +type isDatasetPropertyFilter_Property interface { + isDatasetPropertyFilter_Property() } -func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateResponse.Marshal(b, m, deterministic) + +type DatasetPropertyFilter_Project struct { + Project string `protobuf:"bytes,1,opt,name=project,proto3,oneof"` } -func (m *CreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateResponse.Merge(m, src) + +type DatasetPropertyFilter_Name struct { + Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"` } -func (m *CreateResponse) XXX_Size() int { - return xxx_messageInfo_CreateResponse.Size(m) + +type DatasetPropertyFilter_Domain struct { + Domain string `protobuf:"bytes,3,opt,name=domain,proto3,oneof"` } -func (m *CreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateResponse.DiscardUnknown(m) + +type DatasetPropertyFilter_Version struct { + Version string `protobuf:"bytes,4,opt,name=version,proto3,oneof"` } -var xxx_messageInfo_CreateResponse proto.InternalMessageInfo +func (*DatasetPropertyFilter_Project) isDatasetPropertyFilter_Property() {} + +func (*DatasetPropertyFilter_Name) isDatasetPropertyFilter_Property() {} + +func (*DatasetPropertyFilter_Domain) isDatasetPropertyFilter_Property() {} -func (m *CreateResponse) GetArtifact() *Artifact { +func (*DatasetPropertyFilter_Version) isDatasetPropertyFilter_Property() {} + +func (m *DatasetPropertyFilter) GetProperty() isDatasetPropertyFilter_Property { if m != nil { - return m.Artifact + return m.Property } return nil } -func (m *CreateResponse) GetStatus() CreateResponse_Status { - if m != nil { - return m.Status +func (m *DatasetPropertyFilter) GetProject() string { + if x, ok := m.GetProperty().(*DatasetPropertyFilter_Project); ok { + return x.Project } - return CreateResponse_ALREADY_EXISTS + return "" } -type GenerateProvenanceRequest struct { - Id *ArtifactId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *DatasetPropertyFilter) GetName() string { + if x, ok := m.GetProperty().(*DatasetPropertyFilter_Name); ok { + return x.Name + } + return "" } -func (m *GenerateProvenanceRequest) Reset() { *m = GenerateProvenanceRequest{} } -func (m *GenerateProvenanceRequest) String() string { return proto.CompactTextString(m) } -func (*GenerateProvenanceRequest) ProtoMessage() {} -func (*GenerateProvenanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{12} +func (m *DatasetPropertyFilter) GetDomain() string { + if x, ok := m.GetProperty().(*DatasetPropertyFilter_Domain); ok { + return x.Domain + } + return "" } -func (m *GenerateProvenanceRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GenerateProvenanceRequest.Unmarshal(m, b) -} -func (m *GenerateProvenanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GenerateProvenanceRequest.Marshal(b, m, deterministic) -} -func (m *GenerateProvenanceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenerateProvenanceRequest.Merge(m, src) -} -func (m *GenerateProvenanceRequest) XXX_Size() int { - return xxx_messageInfo_GenerateProvenanceRequest.Size(m) -} -func (m *GenerateProvenanceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GenerateProvenanceRequest.DiscardUnknown(m) +func (m *DatasetPropertyFilter) GetVersion() string { + if x, ok := m.GetProperty().(*DatasetPropertyFilter_Version); ok { + return x.Version + } + return "" } -var xxx_messageInfo_GenerateProvenanceRequest proto.InternalMessageInfo - -func (m *GenerateProvenanceRequest) GetId() *ArtifactId { - if m != nil { - return m.Id +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DatasetPropertyFilter) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DatasetPropertyFilter_Project)(nil), + (*DatasetPropertyFilter_Name)(nil), + (*DatasetPropertyFilter_Domain)(nil), + (*DatasetPropertyFilter_Version)(nil), } - return nil } -type GenerateProvenanceResponse struct { - Provenance string `protobuf:"bytes,1,opt,name=provenance,proto3" json:"provenance,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Pagination options for making list requests +type PaginationOptions struct { + // the max number of results to return + Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` + // the token to pass to fetch the next page + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + // the property that we want to sort the results by + SortKey PaginationOptions_SortKey `protobuf:"varint,3,opt,name=sortKey,proto3,enum=datacatalog.PaginationOptions_SortKey" json:"sortKey,omitempty"` + // the sort order of the results + SortOrder PaginationOptions_SortOrder `protobuf:"varint,4,opt,name=sortOrder,proto3,enum=datacatalog.PaginationOptions_SortOrder" json:"sortOrder,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GenerateProvenanceResponse) Reset() { *m = GenerateProvenanceResponse{} } -func (m *GenerateProvenanceResponse) String() string { return proto.CompactTextString(m) } -func (*GenerateProvenanceResponse) ProtoMessage() {} -func (*GenerateProvenanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{13} +func (m *PaginationOptions) Reset() { *m = PaginationOptions{} } +func (m *PaginationOptions) String() string { return proto.CompactTextString(m) } +func (*PaginationOptions) ProtoMessage() {} +func (*PaginationOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{28} } -func (m *GenerateProvenanceResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GenerateProvenanceResponse.Unmarshal(m, b) +func (m *PaginationOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PaginationOptions.Unmarshal(m, b) } -func (m *GenerateProvenanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GenerateProvenanceResponse.Marshal(b, m, deterministic) +func (m *PaginationOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PaginationOptions.Marshal(b, m, deterministic) } -func (m *GenerateProvenanceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenerateProvenanceResponse.Merge(m, src) +func (m *PaginationOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_PaginationOptions.Merge(m, src) } -func (m *GenerateProvenanceResponse) XXX_Size() int { - return xxx_messageInfo_GenerateProvenanceResponse.Size(m) +func (m *PaginationOptions) XXX_Size() int { + return xxx_messageInfo_PaginationOptions.Size(m) } -func (m *GenerateProvenanceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GenerateProvenanceResponse.DiscardUnknown(m) +func (m *PaginationOptions) XXX_DiscardUnknown() { + xxx_messageInfo_PaginationOptions.DiscardUnknown(m) } -var xxx_messageInfo_GenerateProvenanceResponse proto.InternalMessageInfo +var xxx_messageInfo_PaginationOptions proto.InternalMessageInfo + +func (m *PaginationOptions) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} -func (m *GenerateProvenanceResponse) GetProvenance() string { +func (m *PaginationOptions) GetToken() string { if m != nil { - return m.Provenance + return m.Token } return "" } +func (m *PaginationOptions) GetSortKey() PaginationOptions_SortKey { + if m != nil { + return m.SortKey + } + return PaginationOptions_CREATION_TIME +} + +func (m *PaginationOptions) GetSortOrder() PaginationOptions_SortOrder { + if m != nil { + return m.SortOrder + } + return PaginationOptions_DESCENDING +} + func init() { - proto.RegisterEnum("pb.lyft.datacatalog.QueryOperator", QueryOperator_name, QueryOperator_value) - proto.RegisterEnum("pb.lyft.datacatalog.CreateResponse_Status", CreateResponse_Status_name, CreateResponse_Status_value) - proto.RegisterType((*Parameter)(nil), "pb.lyft.datacatalog.Parameter") - proto.RegisterType((*Artifact)(nil), "pb.lyft.datacatalog.Artifact") - proto.RegisterType((*ArtifactId)(nil), "pb.lyft.datacatalog.ArtifactId") - proto.RegisterType((*GetRequest)(nil), "pb.lyft.datacatalog.GetRequest") - proto.RegisterType((*GetResponse)(nil), "pb.lyft.datacatalog.GetResponse") - proto.RegisterType((*IntFilter)(nil), "pb.lyft.datacatalog.IntFilter") - proto.RegisterType((*IntRangeFilter)(nil), "pb.lyft.datacatalog.IntRangeFilter") - proto.RegisterType((*IntQueryKey)(nil), "pb.lyft.datacatalog.IntQueryKey") - proto.RegisterType((*QueryRequest)(nil), "pb.lyft.datacatalog.QueryRequest") - proto.RegisterType((*QueryResponse)(nil), "pb.lyft.datacatalog.QueryResponse") - proto.RegisterType((*CreateRequest)(nil), "pb.lyft.datacatalog.CreateRequest") - proto.RegisterType((*CreateResponse)(nil), "pb.lyft.datacatalog.CreateResponse") - proto.RegisterType((*GenerateProvenanceRequest)(nil), "pb.lyft.datacatalog.GenerateProvenanceRequest") - proto.RegisterType((*GenerateProvenanceResponse)(nil), "pb.lyft.datacatalog.GenerateProvenanceResponse") + proto.RegisterEnum("datacatalog.SinglePropertyFilter_ComparisonOperator", SinglePropertyFilter_ComparisonOperator_name, SinglePropertyFilter_ComparisonOperator_value) + proto.RegisterEnum("datacatalog.PaginationOptions_SortOrder", PaginationOptions_SortOrder_name, PaginationOptions_SortOrder_value) + proto.RegisterEnum("datacatalog.PaginationOptions_SortKey", PaginationOptions_SortKey_name, PaginationOptions_SortKey_value) + proto.RegisterType((*CreateDatasetRequest)(nil), "datacatalog.CreateDatasetRequest") + proto.RegisterType((*CreateDatasetResponse)(nil), "datacatalog.CreateDatasetResponse") + proto.RegisterType((*GetDatasetRequest)(nil), "datacatalog.GetDatasetRequest") + proto.RegisterType((*GetDatasetResponse)(nil), "datacatalog.GetDatasetResponse") + proto.RegisterType((*GetArtifactRequest)(nil), "datacatalog.GetArtifactRequest") + proto.RegisterType((*GetArtifactResponse)(nil), "datacatalog.GetArtifactResponse") + proto.RegisterType((*CreateArtifactRequest)(nil), "datacatalog.CreateArtifactRequest") + proto.RegisterType((*CreateArtifactResponse)(nil), "datacatalog.CreateArtifactResponse") + proto.RegisterType((*AddTagRequest)(nil), "datacatalog.AddTagRequest") + proto.RegisterType((*AddTagResponse)(nil), "datacatalog.AddTagResponse") + proto.RegisterType((*ListArtifactsRequest)(nil), "datacatalog.ListArtifactsRequest") + proto.RegisterType((*ListArtifactsResponse)(nil), "datacatalog.ListArtifactsResponse") + proto.RegisterType((*ListDatasetsRequest)(nil), "datacatalog.ListDatasetsRequest") + proto.RegisterType((*ListDatasetsResponse)(nil), "datacatalog.ListDatasetsResponse") + proto.RegisterType((*Dataset)(nil), "datacatalog.Dataset") + proto.RegisterType((*Partition)(nil), "datacatalog.Partition") + proto.RegisterType((*DatasetID)(nil), "datacatalog.DatasetID") + proto.RegisterType((*Artifact)(nil), "datacatalog.Artifact") + proto.RegisterType((*ArtifactData)(nil), "datacatalog.ArtifactData") + proto.RegisterType((*Tag)(nil), "datacatalog.Tag") + proto.RegisterType((*Metadata)(nil), "datacatalog.Metadata") + proto.RegisterMapType((map[string]string)(nil), "datacatalog.Metadata.KeyMapEntry") + proto.RegisterType((*FilterExpression)(nil), "datacatalog.FilterExpression") + proto.RegisterType((*SinglePropertyFilter)(nil), "datacatalog.SinglePropertyFilter") + proto.RegisterType((*ArtifactPropertyFilter)(nil), "datacatalog.ArtifactPropertyFilter") + proto.RegisterType((*TagPropertyFilter)(nil), "datacatalog.TagPropertyFilter") + proto.RegisterType((*PartitionPropertyFilter)(nil), "datacatalog.PartitionPropertyFilter") + proto.RegisterType((*KeyValuePair)(nil), "datacatalog.KeyValuePair") + proto.RegisterType((*DatasetPropertyFilter)(nil), "datacatalog.DatasetPropertyFilter") + proto.RegisterType((*PaginationOptions)(nil), "datacatalog.PaginationOptions") } func init() { @@ -911,57 +1746,92 @@ func init() { } var fileDescriptor_275951237ff4368a = []byte{ - // 790 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdd, 0x6e, 0xda, 0x48, - 0x14, 0xc6, 0x36, 0xbf, 0xc7, 0x09, 0x8b, 0xce, 0xee, 0x05, 0x8b, 0x94, 0x2c, 0x99, 0x48, 0xab, - 0x6c, 0x2e, 0x88, 0x96, 0xdd, 0x56, 0xad, 0x9a, 0x56, 0x82, 0x84, 0x02, 0x29, 0x6a, 0x13, 0x93, - 0x4a, 0x6d, 0x6f, 0xd0, 0x04, 0x86, 0xc8, 0x12, 0xb1, 0xe9, 0x78, 0xa0, 0xe1, 0x0d, 0x7a, 0xd9, - 0xc7, 0xe8, 0x33, 0xb4, 0x7d, 0xaf, 0xde, 0x56, 0x1e, 0x3c, 0x8e, 0x53, 0x4c, 0x02, 0xea, 0x9d, - 0xe7, 0xcc, 0x39, 0xdf, 0xf9, 0xe6, 0x3b, 0x3f, 0x00, 0x7f, 0x0f, 0x47, 0x33, 0xc1, 0xec, 0xc1, - 0xe8, 0x60, 0x40, 0x05, 0xed, 0x53, 0x41, 0x47, 0xee, 0x65, 0xf4, 0xbb, 0x32, 0xe6, 0xae, 0x70, - 0xf1, 0xf7, 0xf1, 0x45, 0x65, 0x34, 0x1b, 0x8a, 0x4a, 0xe4, 0x8a, 0x3c, 0x80, 0xdc, 0x29, 0xe5, - 0xf4, 0x8a, 0x09, 0xc6, 0x11, 0x21, 0xe9, 0xd0, 0x2b, 0x56, 0xd4, 0xca, 0xda, 0x5e, 0xce, 0x92, - 0xdf, 0xf8, 0x07, 0xa4, 0xa6, 0x74, 0x34, 0x61, 0x45, 0x5d, 0x1a, 0xe7, 0x07, 0xf2, 0x59, 0x87, - 0x6c, 0x8d, 0x0b, 0x7b, 0x48, 0xfb, 0x02, 0xb7, 0x01, 0xc6, 0xdc, 0x9d, 0x32, 0x87, 0x3a, 0x7d, - 0x15, 0x1c, 0xb1, 0x84, 0xb0, 0x7a, 0x04, 0xb6, 0x08, 0x99, 0x29, 0xe3, 0x9e, 0xed, 0x3a, 0x45, - 0x43, 0x9a, 0xd5, 0x11, 0x4b, 0x90, 0xe5, 0x6c, 0x6a, 0xcb, 0xab, 0x64, 0x59, 0xdb, 0x33, 0xac, - 0xf0, 0x8c, 0x5b, 0x00, 0x7d, 0xce, 0xa8, 0x60, 0x83, 0x1e, 0x15, 0xc5, 0x94, 0xbc, 0xcd, 0x05, - 0x96, 0x9a, 0xc0, 0x1d, 0xd8, 0xe0, 0x6c, 0xc8, 0x38, 0x73, 0xfa, 0xac, 0x67, 0x0f, 0x8a, 0x69, - 0x89, 0x6c, 0x86, 0xb6, 0xf6, 0x00, 0x1f, 0x42, 0xda, 0x76, 0xc6, 0x13, 0xe1, 0x15, 0x33, 0x65, - 0x63, 0xcf, 0xac, 0x6e, 0x57, 0x62, 0x54, 0xa9, 0x84, 0x92, 0x58, 0x81, 0x37, 0x3e, 0x82, 0x8c, - 0x3b, 0x11, 0x32, 0x30, 0xbb, 0x52, 0xa0, 0x72, 0x27, 0x1c, 0x40, 0x29, 0xd5, 0x1e, 0xc4, 0x4a, - 0x1c, 0xd1, 0x42, 0xbf, 0xad, 0xc5, 0x0d, 0x5b, 0x63, 0x1d, 0xb6, 0xe4, 0x1a, 0xa0, 0xc9, 0x84, - 0xc5, 0xde, 0x4f, 0x98, 0x27, 0xb0, 0xbc, 0x58, 0x9f, 0x56, 0xe2, 0x56, 0x85, 0xea, 0x60, 0xd2, - 0x80, 0xa3, 0xaf, 0x9b, 0xcf, 0xc2, 0xac, 0xfe, 0x15, 0x9b, 0xec, 0xe6, 0x2d, 0x3e, 0x06, 0x0d, - 0x4f, 0xf5, 0x24, 0xe8, 0xf6, 0x80, 0xb4, 0xc0, 0x94, 0x99, 0xbd, 0xb1, 0xeb, 0x78, 0x0c, 0x1f, - 0x43, 0x56, 0xb9, 0xc8, 0xc4, 0x66, 0x75, 0xeb, 0x4e, 0x54, 0x2b, 0x74, 0x27, 0x14, 0x72, 0x6d, - 0x47, 0x3c, 0xb7, 0x47, 0x7e, 0x67, 0x86, 0x5d, 0xa8, 0xc9, 0x9a, 0xcf, 0x0f, 0xf8, 0x0c, 0xb2, - 0xee, 0x98, 0x71, 0x2a, 0x5c, 0x2e, 0x39, 0xe7, 0xab, 0x24, 0x16, 0xfd, 0x6c, 0xc2, 0xf8, 0xec, - 0x55, 0xe0, 0x69, 0x85, 0x31, 0xe4, 0x7f, 0xc8, 0xb7, 0x1d, 0x61, 0x51, 0xe7, 0x92, 0x05, 0x79, - 0x0a, 0x60, 0x5c, 0xd9, 0x4e, 0x90, 0xc5, 0xff, 0x94, 0x16, 0x7a, 0x2d, 0xe1, 0x7d, 0x0b, 0xbd, - 0x26, 0x1f, 0x35, 0x30, 0xdb, 0x8e, 0x90, 0xa0, 0x2f, 0xd8, 0x0c, 0xab, 0x60, 0x4c, 0xe9, 0x28, - 0x78, 0x5e, 0x7c, 0x85, 0xc2, 0x87, 0xb4, 0x12, 0x96, 0xef, 0x8c, 0x4f, 0x20, 0xc5, 0xfd, 0xb4, - 0x81, 0xd4, 0xbb, 0xcb, 0xa2, 0x22, 0xdc, 0x5a, 0x09, 0x6b, 0x1e, 0x53, 0xcf, 0x42, 0x7a, 0x28, - 0x4d, 0xe4, 0x9b, 0x06, 0x1b, 0x92, 0x87, 0x2a, 0xf5, 0x7a, 0xed, 0x75, 0x18, 0x19, 0x35, 0x43, - 0x12, 0x29, 0x2f, 0x23, 0xa2, 0x5e, 0xbb, 0x74, 0x18, 0x93, 0xf7, 0x0d, 0x63, 0x6a, 0x61, 0x18, - 0xc9, 0x09, 0x6c, 0x06, 0xec, 0x63, 0xdb, 0xc5, 0x58, 0xa7, 0x5d, 0xbe, 0x6a, 0xb0, 0x79, 0x24, - 0x93, 0x2b, 0x2d, 0xfe, 0x05, 0x83, 0xb3, 0x61, 0x50, 0x97, 0xfb, 0x9a, 0xd9, 0xf2, 0x7d, 0x17, - 0x38, 0xeb, 0x8b, 0x0b, 0xa4, 0xf4, 0x93, 0x66, 0xd1, 0xf5, 0x14, 0x59, 0x12, 0xc9, 0xf5, 0x96, - 0xc4, 0x17, 0x0d, 0xf2, 0x8a, 0xfd, 0x2f, 0x8f, 0x0e, 0xd6, 0x21, 0xed, 0x09, 0x2a, 0x26, 0x5e, - 0x30, 0x15, 0xfb, 0xb1, 0x81, 0xb7, 0xf3, 0x55, 0xba, 0x32, 0xc2, 0x0a, 0x22, 0xc9, 0x3f, 0x90, - 0x9e, 0x5b, 0x10, 0x21, 0x5f, 0xeb, 0x58, 0x8d, 0xda, 0xf1, 0xdb, 0x5e, 0xe3, 0x4d, 0xbb, 0x7b, - 0xde, 0x2d, 0x24, 0xd0, 0x84, 0xcc, 0x91, 0xd5, 0xa8, 0x9d, 0x37, 0x8e, 0x0b, 0x1a, 0xe9, 0xc0, - 0x9f, 0x4d, 0xe6, 0xf8, 0x33, 0xc5, 0x4e, 0xc3, 0x9d, 0xa2, 0xaa, 0x70, 0xe0, 0xaf, 0x85, 0x55, - 0x8b, 0xe0, 0x6f, 0x90, 0x43, 0x28, 0xc5, 0xa1, 0x05, 0xaa, 0xdc, 0xf3, 0x5b, 0xb3, 0xff, 0x34, - 0x68, 0x29, 0x35, 0xed, 0x98, 0x83, 0x54, 0xe3, 0xec, 0x75, 0xad, 0x53, 0x48, 0x60, 0x01, 0x36, - 0x9a, 0x92, 0xb4, 0xd5, 0x3b, 0x6f, 0xd5, 0x5e, 0x16, 0x34, 0xfc, 0x0d, 0xcc, 0x4e, 0xa3, 0xdb, - 0x55, 0x06, 0xbd, 0xfa, 0x5d, 0x87, 0x9c, 0xe2, 0xe3, 0xe1, 0x09, 0x18, 0x4d, 0x26, 0x30, 0x9e, - 0xf6, 0xcd, 0x82, 0x2d, 0x95, 0x97, 0x3b, 0xcc, 0x69, 0x93, 0x04, 0x9e, 0x42, 0x4a, 0x12, 0xc3, - 0x9d, 0xe5, 0x2b, 0x4a, 0xe1, 0x91, 0xbb, 0x5c, 0x42, 0xc4, 0x2e, 0xa4, 0xe7, 0x25, 0x44, 0x72, - 0x67, 0x7d, 0xe7, 0x98, 0xbb, 0x2b, 0xf4, 0x00, 0x49, 0xe0, 0x07, 0xc0, 0x45, 0xf5, 0xb1, 0xb2, - 0xe4, 0x81, 0x4b, 0x8a, 0x5e, 0x3a, 0x58, 0xd9, 0x5f, 0x25, 0xae, 0x17, 0xde, 0x99, 0x11, 0xdf, - 0x4f, 0x9a, 0x76, 0x91, 0x96, 0x7f, 0x5b, 0xfe, 0xfb, 0x11, 0x00, 0x00, 0xff, 0xff, 0xea, 0x1f, - 0xee, 0x85, 0xe0, 0x08, 0x00, 0x00, + // 1347 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x5f, 0x6f, 0xdb, 0xb6, + 0x17, 0xb5, 0x6c, 0xd7, 0xb6, 0xae, 0x63, 0xd7, 0x61, 0x9d, 0x54, 0x3f, 0xf5, 0x9f, 0xab, 0x16, + 0x45, 0xf0, 0xc3, 0xe6, 0x74, 0x4e, 0x57, 0xac, 0xdd, 0xb0, 0xcd, 0x8d, 0xdd, 0xc6, 0x4b, 0x93, + 0xb8, 0x8a, 0x1b, 0x60, 0xd8, 0x83, 0xc1, 0x46, 0x8c, 0xa6, 0x45, 0xb6, 0x54, 0x89, 0x29, 0xea, + 0xa7, 0x61, 0xaf, 0xdb, 0xde, 0x06, 0xec, 0xeb, 0xec, 0x71, 0x6f, 0x03, 0xf6, 0x8d, 0x06, 0x8a, + 0x94, 0x2c, 0xc9, 0x4a, 0xea, 0xe6, 0xc5, 0x10, 0xc9, 0x73, 0x8f, 0xef, 0xe5, 0xb9, 0xe4, 0xbd, + 0x84, 0x07, 0x27, 0xf6, 0x8c, 0x12, 0xcb, 0xb0, 0x37, 0x0d, 0x4c, 0xf1, 0x31, 0xa6, 0xd8, 0x76, + 0xcc, 0xf8, 0x77, 0xdb, 0xf5, 0x1c, 0xea, 0xa0, 0x6a, 0x6c, 0x4a, 0xbd, 0x19, 0x19, 0x1d, 0x3b, + 0x1e, 0xd9, 0xb4, 0x2d, 0x4a, 0x3c, 0x6c, 0xfb, 0x1c, 0xaa, 0xde, 0x31, 0x1d, 0xc7, 0xb4, 0xc9, + 0x66, 0x30, 0x7a, 0x73, 0x76, 0xb2, 0x49, 0xad, 0x09, 0xf1, 0x29, 0x9e, 0xb8, 0x1c, 0xa0, 0x3d, + 0x87, 0xe6, 0xb6, 0x47, 0x30, 0x25, 0x3d, 0x4c, 0xb1, 0x4f, 0xa8, 0x4e, 0xde, 0x9e, 0x11, 0x9f, + 0xa2, 0x36, 0x94, 0x0d, 0x3e, 0xa3, 0x48, 0x2d, 0x69, 0xa3, 0xda, 0x69, 0xb6, 0xe3, 0x8e, 0x84, + 0xe8, 0x10, 0xa4, 0x5d, 0x87, 0xb5, 0x14, 0x8f, 0xef, 0x3a, 0x53, 0x9f, 0x68, 0x7d, 0x58, 0x7d, + 0x41, 0x68, 0x8a, 0xfd, 0x61, 0x9a, 0x7d, 0x3d, 0x8b, 0x7d, 0xd0, 0x9b, 0xf3, 0xf7, 0x00, 0xc5, + 0x69, 0x38, 0xf9, 0x47, 0x7b, 0xf9, 0xa7, 0x14, 0xd0, 0x74, 0x3d, 0x6a, 0x9d, 0xe0, 0xe3, 0xcb, + 0xbb, 0x83, 0xee, 0x42, 0x15, 0x0b, 0x92, 0xb1, 0x65, 0x28, 0xf9, 0x96, 0xb4, 0x21, 0xef, 0xe4, + 0x74, 0x08, 0x27, 0x07, 0x06, 0xba, 0x01, 0x15, 0x8a, 0xcd, 0xf1, 0x14, 0x4f, 0x88, 0x52, 0x10, + 0xeb, 0x65, 0x8a, 0xcd, 0x7d, 0x3c, 0x21, 0xcf, 0xea, 0xb0, 0xf2, 0xf6, 0x8c, 0x78, 0xb3, 0xf1, + 0x8f, 0x78, 0x6a, 0xd8, 0x44, 0xdb, 0x81, 0x6b, 0x09, 0xbf, 0x44, 0x7c, 0x9f, 0x41, 0x25, 0x64, + 0x14, 0x9e, 0xad, 0x25, 0x3c, 0x8b, 0x0c, 0x22, 0x98, 0xf6, 0x5d, 0x28, 0x44, 0x3a, 0xc8, 0x4b, + 0x70, 0x29, 0xb0, 0x9e, 0xe6, 0x12, 0xaa, 0x6e, 0x41, 0xad, 0x6b, 0x18, 0x23, 0x6c, 0x86, 0xec, + 0x1a, 0x14, 0x28, 0x36, 0x05, 0x71, 0x23, 0x41, 0xcc, 0x50, 0x6c, 0x51, 0x6b, 0x40, 0x3d, 0x34, + 0x12, 0x34, 0x7f, 0x49, 0xd0, 0x7c, 0x69, 0xf9, 0x51, 0xe0, 0xfe, 0xe5, 0x15, 0xf9, 0x1c, 0x4a, + 0x27, 0x96, 0x4d, 0x89, 0x17, 0x88, 0x51, 0xed, 0xdc, 0x4a, 0x18, 0x3c, 0x0f, 0x96, 0xfa, 0xef, + 0x5d, 0x8f, 0xf8, 0xbe, 0xe5, 0x4c, 0x75, 0x01, 0x46, 0x5f, 0x03, 0xb8, 0xd8, 0xb4, 0xa6, 0x98, + 0x5a, 0xce, 0x34, 0xd0, 0xa9, 0xda, 0xb9, 0x9d, 0x30, 0x1d, 0x46, 0xcb, 0x07, 0x2e, 0xfb, 0xf5, + 0xf5, 0x98, 0x85, 0x76, 0x0a, 0x6b, 0xa9, 0x00, 0x84, 0x74, 0x5b, 0x20, 0x87, 0xfb, 0xe8, 0x2b, + 0x52, 0xab, 0x70, 0xfe, 0x7e, 0xcf, 0x71, 0xe8, 0x16, 0xc0, 0x94, 0xbc, 0xa7, 0x63, 0xea, 0x9c, + 0x92, 0x29, 0xcf, 0x2a, 0x5d, 0x66, 0x33, 0x23, 0x36, 0xa1, 0xfd, 0x2e, 0xc1, 0x35, 0xf6, 0x6f, + 0x22, 0xfc, 0x68, 0xb7, 0xe6, 0xb1, 0x4b, 0x97, 0x8f, 0x3d, 0xff, 0xd1, 0xb1, 0x9b, 0x5c, 0xbc, + 0xb9, 0x37, 0x22, 0xf4, 0x87, 0x50, 0x11, 0xaa, 0x84, 0x91, 0x67, 0x1f, 0xcb, 0x08, 0xf5, 0xa1, + 0xb8, 0x7f, 0x95, 0xa0, 0x2c, 0x8c, 0xd0, 0x03, 0xc8, 0x5b, 0xc6, 0x07, 0x92, 0x22, 0x6f, 0x19, + 0x2c, 0xdd, 0x27, 0x84, 0x62, 0x06, 0x10, 0xa1, 0x25, 0xb7, 0x7f, 0x4f, 0x2c, 0xea, 0x11, 0x0c, + 0xdd, 0x87, 0x9a, 0xcb, 0xb4, 0x60, 0xc1, 0xed, 0x92, 0x99, 0xaf, 0x14, 0x5a, 0x85, 0x0d, 0x59, + 0x4f, 0x4e, 0x6a, 0x5b, 0x20, 0x0f, 0xc3, 0x09, 0xd4, 0x80, 0xc2, 0x29, 0x99, 0x05, 0xee, 0xc8, + 0x3a, 0xfb, 0x44, 0x4d, 0xb8, 0xf2, 0x0e, 0xdb, 0x67, 0x44, 0x44, 0xc1, 0x07, 0xda, 0xcf, 0x20, + 0x47, 0xee, 0x21, 0x05, 0xca, 0xae, 0xe7, 0xfc, 0x44, 0xc4, 0x41, 0x94, 0xf5, 0x70, 0x88, 0x10, + 0x14, 0x83, 0xfb, 0x82, 0xdb, 0x06, 0xdf, 0x68, 0x1d, 0x4a, 0x86, 0x33, 0xc1, 0x16, 0xcf, 0x4e, + 0x59, 0x17, 0x23, 0xc6, 0xf2, 0x8e, 0x78, 0x4c, 0x50, 0xa5, 0xc8, 0x59, 0xc4, 0x90, 0xb1, 0xbc, + 0x7e, 0x3d, 0xe8, 0x29, 0x57, 0x38, 0x0b, 0xfb, 0xd6, 0xfe, 0xce, 0x43, 0x25, 0xcc, 0x38, 0x54, + 0x8f, 0xf6, 0x50, 0x0e, 0xf6, 0x2a, 0x76, 0xda, 0xf2, 0xcb, 0x9d, 0xb6, 0x4f, 0xa1, 0x18, 0xec, + 0x6c, 0x21, 0x90, 0xf7, 0x7f, 0x99, 0x89, 0xcd, 0xcc, 0xf4, 0x00, 0x96, 0x10, 0xa3, 0xb8, 0x9c, + 0x18, 0x8f, 0x59, 0x72, 0x8a, 0x6d, 0xf6, 0x95, 0x2b, 0xc1, 0xff, 0xac, 0xa7, 0x92, 0x53, 0x2c, + 0xeb, 0x31, 0x24, 0xba, 0x0f, 0x45, 0x8a, 0x4d, 0x5f, 0x29, 0x05, 0x16, 0x8b, 0x37, 0x51, 0xb0, + 0x8a, 0x9e, 0x00, 0x1c, 0x07, 0x37, 0x9b, 0x31, 0xc6, 0x54, 0x29, 0x07, 0x2e, 0xa9, 0x6d, 0x5e, + 0x2c, 0xdb, 0x61, 0xb1, 0x6c, 0x8f, 0xc2, 0x62, 0xa9, 0xcb, 0x02, 0xdd, 0xa5, 0xda, 0x10, 0x56, + 0xe2, 0x11, 0x46, 0x9a, 0x49, 0x31, 0xcd, 0x3e, 0x89, 0x27, 0x01, 0xf3, 0x3b, 0x2c, 0xd2, 0x6d, + 0x56, 0xa4, 0xdb, 0x2f, 0x79, 0x91, 0x0e, 0x93, 0xc3, 0x86, 0xc2, 0x08, 0x9b, 0x99, 0x44, 0x77, + 0x32, 0xea, 0x4c, 0xa2, 0xca, 0xc4, 0xa4, 0x2b, 0x2c, 0x57, 0x49, 0x7f, 0x91, 0xa0, 0x12, 0xee, + 0x37, 0x7a, 0x0a, 0xe5, 0x53, 0x32, 0x1b, 0x4f, 0xb0, 0x2b, 0x4e, 0xea, 0xdd, 0x4c, 0x5d, 0xda, + 0xbb, 0x64, 0xb6, 0x87, 0xdd, 0xfe, 0x94, 0x7a, 0x33, 0xbd, 0x74, 0x1a, 0x0c, 0xd4, 0x27, 0x50, + 0x8d, 0x4d, 0x2f, 0x7b, 0x14, 0x9e, 0xe6, 0xbf, 0x90, 0xb4, 0x03, 0x68, 0xa4, 0x6f, 0x25, 0xf4, + 0x25, 0x94, 0xf9, 0xbd, 0xe4, 0x67, 0xba, 0x72, 0x68, 0x4d, 0x4d, 0x9b, 0x0c, 0x3d, 0xc7, 0x25, + 0x1e, 0x9d, 0x71, 0x6b, 0x3d, 0xb4, 0xd0, 0xfe, 0x29, 0x40, 0x33, 0x0b, 0x81, 0xbe, 0x01, 0x60, + 0x55, 0x38, 0x71, 0x3d, 0xde, 0x4e, 0x27, 0x45, 0xd2, 0x66, 0x27, 0xa7, 0xcb, 0x14, 0x9b, 0x82, + 0xe0, 0x15, 0x34, 0xa2, 0xec, 0x1a, 0x27, 0x2a, 0xcc, 0xfd, 0xec, 0x6c, 0x5c, 0x20, 0xbb, 0x1a, + 0xd9, 0x0b, 0xca, 0x7d, 0xb8, 0x1a, 0x89, 0x2a, 0x18, 0xb9, 0x76, 0xf7, 0x32, 0xcf, 0xd1, 0x02, + 0x61, 0x3d, 0xb4, 0x16, 0x7c, 0xbb, 0x50, 0x17, 0xe2, 0x86, 0x74, 0xfc, 0x8c, 0x69, 0x59, 0xa9, + 0xb0, 0xc0, 0x56, 0x13, 0xb6, 0x82, 0x6c, 0x08, 0x15, 0x06, 0xc0, 0xd4, 0xf1, 0x14, 0x68, 0x49, + 0x1b, 0xf5, 0xce, 0xa3, 0x0f, 0xea, 0xd0, 0xde, 0x76, 0x26, 0x2e, 0xf6, 0x2c, 0x9f, 0xd5, 0x09, + 0x6e, 0xab, 0x47, 0x2c, 0x5a, 0x0b, 0xd0, 0xe2, 0x3a, 0x02, 0x28, 0xf5, 0x5f, 0xbd, 0xee, 0xbe, + 0x3c, 0x6c, 0xe4, 0x9e, 0xad, 0xc2, 0x55, 0x57, 0x10, 0x8a, 0x08, 0xb4, 0x17, 0xb0, 0x9e, 0x1d, + 0x7f, 0xba, 0xf5, 0x92, 0x16, 0x5b, 0xaf, 0x67, 0x00, 0x95, 0x90, 0x4f, 0xfb, 0x0a, 0x56, 0x17, + 0x14, 0x4e, 0xf4, 0x66, 0x52, 0xba, 0x37, 0x8b, 0x5b, 0xff, 0x00, 0xd7, 0xcf, 0x11, 0x16, 0x3d, + 0xe2, 0x47, 0xe7, 0x1d, 0xb6, 0x45, 0x5a, 0x25, 0x6f, 0xc1, 0x5d, 0x32, 0x3b, 0x62, 0xf9, 0x3e, + 0xc4, 0x16, 0xdb, 0x65, 0x76, 0x68, 0x8e, 0xb0, 0x9d, 0x20, 0x7f, 0x0c, 0x2b, 0x71, 0xd4, 0xd2, + 0xc5, 0xe4, 0x37, 0x09, 0xd6, 0x32, 0xd5, 0x44, 0x6a, 0xaa, 0xb2, 0xb0, 0xb0, 0xc2, 0xda, 0xd2, + 0x8c, 0xd7, 0x96, 0x9d, 0x9c, 0xb8, 0x60, 0x94, 0x64, 0x75, 0x61, 0x9e, 0x8a, 0xfa, 0xa2, 0xa6, + 0xea, 0x0b, 0xe3, 0x12, 0x13, 0x89, 0x28, 0xfe, 0xc8, 0xc3, 0xea, 0x42, 0x9f, 0xc0, 0x3c, 0xb7, + 0xad, 0x89, 0xc5, 0xfd, 0xa8, 0xe9, 0x7c, 0xc0, 0x66, 0xe3, 0x25, 0x9e, 0x0f, 0xd0, 0xb7, 0x50, + 0xf6, 0x1d, 0x8f, 0xee, 0x92, 0x59, 0xe0, 0x44, 0xbd, 0xf3, 0xe0, 0xe2, 0x26, 0xa4, 0x7d, 0xc8, + 0xd1, 0x7a, 0x68, 0x86, 0x9e, 0x83, 0xcc, 0x3e, 0x0f, 0x3c, 0x43, 0x24, 0x7f, 0xbd, 0xb3, 0xb1, + 0x04, 0x47, 0x80, 0xd7, 0xe7, 0xa6, 0xda, 0xff, 0x41, 0x8e, 0xe6, 0x51, 0x1d, 0xa0, 0xd7, 0x3f, + 0xdc, 0xee, 0xef, 0xf7, 0x06, 0xfb, 0x2f, 0x1a, 0x39, 0x54, 0x03, 0xb9, 0x1b, 0x0d, 0x25, 0xed, + 0x26, 0x94, 0x85, 0x1f, 0x68, 0x15, 0x6a, 0xdb, 0x7a, 0xbf, 0x3b, 0x1a, 0x1c, 0xec, 0x8f, 0x47, + 0x83, 0xbd, 0x7e, 0x23, 0xd7, 0xf9, 0xb7, 0x08, 0x55, 0xa6, 0xd1, 0x36, 0x77, 0x00, 0x1d, 0x41, + 0x2d, 0xf1, 0x3e, 0x42, 0xc9, 0xdb, 0x2d, 0xeb, 0x0d, 0xa6, 0x6a, 0x17, 0x41, 0x44, 0xaf, 0xb5, + 0x07, 0x30, 0x7f, 0x17, 0xa1, 0xe4, 0xcd, 0xb6, 0xf0, 0xee, 0x52, 0xef, 0x9c, 0xbb, 0x2e, 0xe8, + 0xbe, 0x87, 0x7a, 0xb2, 0xe3, 0x47, 0x59, 0x4e, 0xa4, 0x9e, 0x16, 0xea, 0xbd, 0x0b, 0x31, 0x82, + 0x7a, 0x08, 0xd5, 0xd8, 0x13, 0x07, 0x2d, 0xb8, 0x92, 0x26, 0x6d, 0x9d, 0x0f, 0x10, 0x8c, 0x5d, + 0x28, 0xf1, 0xf7, 0x04, 0x52, 0x93, 0x17, 0x67, 0xfc, 0x65, 0xa2, 0xde, 0xc8, 0x5c, 0x13, 0x14, + 0x47, 0x50, 0x4b, 0xb4, 0xef, 0x29, 0x59, 0xb2, 0xde, 0x26, 0x29, 0x59, 0xb2, 0xbb, 0xff, 0x43, + 0x58, 0x89, 0xb7, 0xc6, 0xa8, 0xb5, 0x60, 0x93, 0xea, 0xe1, 0xd5, 0xbb, 0x17, 0x20, 0x38, 0xe9, + 0x9b, 0x52, 0xd0, 0x98, 0x6c, 0xfd, 0x17, 0x00, 0x00, 0xff, 0xff, 0x93, 0xd2, 0x4d, 0xdb, 0x28, + 0x10, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -972,180 +1842,288 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// ArtifactsClient is the client API for Artifacts service. +// DataCatalogClient is the client API for DataCatalog service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ArtifactsClient interface { - Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) - Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) - Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) - GenerateProvenance(ctx context.Context, in *GenerateProvenanceRequest, opts ...grpc.CallOption) (*GenerateProvenanceResponse, error) +type DataCatalogClient interface { + CreateDataset(ctx context.Context, in *CreateDatasetRequest, opts ...grpc.CallOption) (*CreateDatasetResponse, error) + GetDataset(ctx context.Context, in *GetDatasetRequest, opts ...grpc.CallOption) (*GetDatasetResponse, error) + CreateArtifact(ctx context.Context, in *CreateArtifactRequest, opts ...grpc.CallOption) (*CreateArtifactResponse, error) + GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*GetArtifactResponse, error) + AddTag(ctx context.Context, in *AddTagRequest, opts ...grpc.CallOption) (*AddTagResponse, error) + ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error) + ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error) } -type artifactsClient struct { +type dataCatalogClient struct { cc *grpc.ClientConn } -func NewArtifactsClient(cc *grpc.ClientConn) ArtifactsClient { - return &artifactsClient{cc} +func NewDataCatalogClient(cc *grpc.ClientConn) DataCatalogClient { + return &dataCatalogClient{cc} +} + +func (c *dataCatalogClient) CreateDataset(ctx context.Context, in *CreateDatasetRequest, opts ...grpc.CallOption) (*CreateDatasetResponse, error) { + out := new(CreateDatasetResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/CreateDataset", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) GetDataset(ctx context.Context, in *GetDatasetRequest, opts ...grpc.CallOption) (*GetDatasetResponse, error) { + out := new(GetDatasetResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/GetDataset", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) CreateArtifact(ctx context.Context, in *CreateArtifactRequest, opts ...grpc.CallOption) (*CreateArtifactResponse, error) { + out := new(CreateArtifactResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/CreateArtifact", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (c *artifactsClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { - out := new(GetResponse) - err := c.cc.Invoke(ctx, "/pb.lyft.datacatalog.Artifacts/Get", in, out, opts...) +func (c *dataCatalogClient) GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*GetArtifactResponse, error) { + out := new(GetArtifactResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/GetArtifact", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *artifactsClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) { - out := new(QueryResponse) - err := c.cc.Invoke(ctx, "/pb.lyft.datacatalog.Artifacts/Query", in, out, opts...) +func (c *dataCatalogClient) AddTag(ctx context.Context, in *AddTagRequest, opts ...grpc.CallOption) (*AddTagResponse, error) { + out := new(AddTagResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/AddTag", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *artifactsClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { - out := new(CreateResponse) - err := c.cc.Invoke(ctx, "/pb.lyft.datacatalog.Artifacts/Create", in, out, opts...) +func (c *dataCatalogClient) ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error) { + out := new(ListArtifactsResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/ListArtifacts", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *artifactsClient) GenerateProvenance(ctx context.Context, in *GenerateProvenanceRequest, opts ...grpc.CallOption) (*GenerateProvenanceResponse, error) { - out := new(GenerateProvenanceResponse) - err := c.cc.Invoke(ctx, "/pb.lyft.datacatalog.Artifacts/GenerateProvenance", in, out, opts...) +func (c *dataCatalogClient) ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error) { + out := new(ListDatasetsResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/ListDatasets", in, out, opts...) if err != nil { return nil, err } return out, nil } -// ArtifactsServer is the server API for Artifacts service. -type ArtifactsServer interface { - Get(context.Context, *GetRequest) (*GetResponse, error) - Query(context.Context, *QueryRequest) (*QueryResponse, error) - Create(context.Context, *CreateRequest) (*CreateResponse, error) - GenerateProvenance(context.Context, *GenerateProvenanceRequest) (*GenerateProvenanceResponse, error) +// DataCatalogServer is the server API for DataCatalog service. +type DataCatalogServer interface { + CreateDataset(context.Context, *CreateDatasetRequest) (*CreateDatasetResponse, error) + GetDataset(context.Context, *GetDatasetRequest) (*GetDatasetResponse, error) + CreateArtifact(context.Context, *CreateArtifactRequest) (*CreateArtifactResponse, error) + GetArtifact(context.Context, *GetArtifactRequest) (*GetArtifactResponse, error) + AddTag(context.Context, *AddTagRequest) (*AddTagResponse, error) + ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error) + ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error) } -// UnimplementedArtifactsServer can be embedded to have forward compatible implementations. -type UnimplementedArtifactsServer struct { +// UnimplementedDataCatalogServer can be embedded to have forward compatible implementations. +type UnimplementedDataCatalogServer struct { } -func (*UnimplementedArtifactsServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +func (*UnimplementedDataCatalogServer) CreateDataset(ctx context.Context, req *CreateDatasetRequest) (*CreateDatasetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateDataset not implemented") } -func (*UnimplementedArtifactsServer) Query(ctx context.Context, req *QueryRequest) (*QueryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") +func (*UnimplementedDataCatalogServer) GetDataset(ctx context.Context, req *GetDatasetRequest) (*GetDatasetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDataset not implemented") } -func (*UnimplementedArtifactsServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +func (*UnimplementedDataCatalogServer) CreateArtifact(ctx context.Context, req *CreateArtifactRequest) (*CreateArtifactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateArtifact not implemented") +} +func (*UnimplementedDataCatalogServer) GetArtifact(ctx context.Context, req *GetArtifactRequest) (*GetArtifactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetArtifact not implemented") +} +func (*UnimplementedDataCatalogServer) AddTag(ctx context.Context, req *AddTagRequest) (*AddTagResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddTag not implemented") +} +func (*UnimplementedDataCatalogServer) ListArtifacts(ctx context.Context, req *ListArtifactsRequest) (*ListArtifactsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListArtifacts not implemented") +} +func (*UnimplementedDataCatalogServer) ListDatasets(ctx context.Context, req *ListDatasetsRequest) (*ListDatasetsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListDatasets not implemented") +} + +func RegisterDataCatalogServer(s *grpc.Server, srv DataCatalogServer) { + s.RegisterService(&_DataCatalog_serviceDesc, srv) +} + +func _DataCatalog_CreateDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateDatasetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).CreateDataset(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/CreateDataset", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).CreateDataset(ctx, req.(*CreateDatasetRequest)) + } + return interceptor(ctx, in, info, handler) } -func (*UnimplementedArtifactsServer) GenerateProvenance(ctx context.Context, req *GenerateProvenanceRequest) (*GenerateProvenanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GenerateProvenance not implemented") + +func _DataCatalog_GetDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDatasetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).GetDataset(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/GetDataset", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).GetDataset(ctx, req.(*GetDatasetRequest)) + } + return interceptor(ctx, in, info, handler) } -func RegisterArtifactsServer(s *grpc.Server, srv ArtifactsServer) { - s.RegisterService(&_Artifacts_serviceDesc, srv) +func _DataCatalog_CreateArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateArtifactRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).CreateArtifact(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/CreateArtifact", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).CreateArtifact(ctx, req.(*CreateArtifactRequest)) + } + return interceptor(ctx, in, info, handler) } -func _Artifacts_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRequest) +func _DataCatalog_GetArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetArtifactRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ArtifactsServer).Get(ctx, in) + return srv.(DataCatalogServer).GetArtifact(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.lyft.datacatalog.Artifacts/Get", + FullMethod: "/datacatalog.DataCatalog/GetArtifact", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactsServer).Get(ctx, req.(*GetRequest)) + return srv.(DataCatalogServer).GetArtifact(ctx, req.(*GetArtifactRequest)) } return interceptor(ctx, in, info, handler) } -func _Artifacts_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryRequest) +func _DataCatalog_AddTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddTagRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ArtifactsServer).Query(ctx, in) + return srv.(DataCatalogServer).AddTag(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.lyft.datacatalog.Artifacts/Query", + FullMethod: "/datacatalog.DataCatalog/AddTag", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactsServer).Query(ctx, req.(*QueryRequest)) + return srv.(DataCatalogServer).AddTag(ctx, req.(*AddTagRequest)) } return interceptor(ctx, in, info, handler) } -func _Artifacts_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateRequest) +func _DataCatalog_ListArtifacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListArtifactsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ArtifactsServer).Create(ctx, in) + return srv.(DataCatalogServer).ListArtifacts(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.lyft.datacatalog.Artifacts/Create", + FullMethod: "/datacatalog.DataCatalog/ListArtifacts", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactsServer).Create(ctx, req.(*CreateRequest)) + return srv.(DataCatalogServer).ListArtifacts(ctx, req.(*ListArtifactsRequest)) } return interceptor(ctx, in, info, handler) } -func _Artifacts_GenerateProvenance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GenerateProvenanceRequest) +func _DataCatalog_ListDatasets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListDatasetsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ArtifactsServer).GenerateProvenance(ctx, in) + return srv.(DataCatalogServer).ListDatasets(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.lyft.datacatalog.Artifacts/GenerateProvenance", + FullMethod: "/datacatalog.DataCatalog/ListDatasets", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactsServer).GenerateProvenance(ctx, req.(*GenerateProvenanceRequest)) + return srv.(DataCatalogServer).ListDatasets(ctx, req.(*ListDatasetsRequest)) } return interceptor(ctx, in, info, handler) } -var _Artifacts_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pb.lyft.datacatalog.Artifacts", - HandlerType: (*ArtifactsServer)(nil), +var _DataCatalog_serviceDesc = grpc.ServiceDesc{ + ServiceName: "datacatalog.DataCatalog", + HandlerType: (*DataCatalogServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "Get", - Handler: _Artifacts_Get_Handler, + MethodName: "CreateDataset", + Handler: _DataCatalog_CreateDataset_Handler, + }, + { + MethodName: "GetDataset", + Handler: _DataCatalog_GetDataset_Handler, + }, + { + MethodName: "CreateArtifact", + Handler: _DataCatalog_CreateArtifact_Handler, + }, + { + MethodName: "GetArtifact", + Handler: _DataCatalog_GetArtifact_Handler, }, { - MethodName: "Query", - Handler: _Artifacts_Query_Handler, + MethodName: "AddTag", + Handler: _DataCatalog_AddTag_Handler, }, { - MethodName: "Create", - Handler: _Artifacts_Create_Handler, + MethodName: "ListArtifacts", + Handler: _DataCatalog_ListArtifacts_Handler, }, { - MethodName: "GenerateProvenance", - Handler: _Artifacts_GenerateProvenance_Handler, + MethodName: "ListDatasets", + Handler: _DataCatalog_ListDatasets_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go b/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go index 7d576f821..431015a91 100644 --- a/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go +++ b/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go @@ -36,23 +36,1205 @@ var ( // define the regex for a UUID once up-front var _datacatalog_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") -// Validate checks the field values on Parameter with the rules defined in the +// Validate checks the field values on CreateDatasetRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CreateDatasetRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateDatasetRequestValidationError{ + field: "Dataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CreateDatasetRequestValidationError is the validation error returned by +// CreateDatasetRequest.Validate if the designated constraints aren't met. +type CreateDatasetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateDatasetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateDatasetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateDatasetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateDatasetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateDatasetRequestValidationError) ErrorName() string { + return "CreateDatasetRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateDatasetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateDatasetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateDatasetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateDatasetRequestValidationError{} + +// Validate checks the field values on CreateDatasetResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CreateDatasetResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// CreateDatasetResponseValidationError is the validation error returned by +// CreateDatasetResponse.Validate if the designated constraints aren't met. +type CreateDatasetResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateDatasetResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateDatasetResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateDatasetResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateDatasetResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateDatasetResponseValidationError) ErrorName() string { + return "CreateDatasetResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateDatasetResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateDatasetResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateDatasetResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateDatasetResponseValidationError{} + +// Validate checks the field values on GetDatasetRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *GetDatasetRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetDatasetRequestValidationError{ + field: "Dataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GetDatasetRequestValidationError is the validation error returned by +// GetDatasetRequest.Validate if the designated constraints aren't met. +type GetDatasetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetDatasetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetDatasetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetDatasetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetDatasetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetDatasetRequestValidationError) ErrorName() string { + return "GetDatasetRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e GetDatasetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetDatasetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetDatasetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetDatasetRequestValidationError{} + +// Validate checks the field values on GetDatasetResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GetDatasetResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetDatasetResponseValidationError{ + field: "Dataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GetDatasetResponseValidationError is the validation error returned by +// GetDatasetResponse.Validate if the designated constraints aren't met. +type GetDatasetResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetDatasetResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetDatasetResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetDatasetResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetDatasetResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetDatasetResponseValidationError) ErrorName() string { + return "GetDatasetResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e GetDatasetResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetDatasetResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetDatasetResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetDatasetResponseValidationError{} + +// Validate checks the field values on GetArtifactRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GetArtifactRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetArtifactRequestValidationError{ + field: "Dataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.QueryHandle.(type) { + + case *GetArtifactRequest_ArtifactId: + // no validation rules for ArtifactId + + case *GetArtifactRequest_TagName: + // no validation rules for TagName + + } + + return nil +} + +// GetArtifactRequestValidationError is the validation error returned by +// GetArtifactRequest.Validate if the designated constraints aren't met. +type GetArtifactRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetArtifactRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetArtifactRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetArtifactRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetArtifactRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetArtifactRequestValidationError) ErrorName() string { + return "GetArtifactRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e GetArtifactRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetArtifactRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetArtifactRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetArtifactRequestValidationError{} + +// Validate checks the field values on GetArtifactResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GetArtifactResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetArtifact()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetArtifactResponseValidationError{ + field: "Artifact", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GetArtifactResponseValidationError is the validation error returned by +// GetArtifactResponse.Validate if the designated constraints aren't met. +type GetArtifactResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetArtifactResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetArtifactResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetArtifactResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetArtifactResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetArtifactResponseValidationError) ErrorName() string { + return "GetArtifactResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e GetArtifactResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetArtifactResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetArtifactResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetArtifactResponseValidationError{} + +// Validate checks the field values on CreateArtifactRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CreateArtifactRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetArtifact()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateArtifactRequestValidationError{ + field: "Artifact", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CreateArtifactRequestValidationError is the validation error returned by +// CreateArtifactRequest.Validate if the designated constraints aren't met. +type CreateArtifactRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateArtifactRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateArtifactRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateArtifactRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateArtifactRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateArtifactRequestValidationError) ErrorName() string { + return "CreateArtifactRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateArtifactRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateArtifactRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateArtifactRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateArtifactRequestValidationError{} + +// Validate checks the field values on CreateArtifactResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CreateArtifactResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// CreateArtifactResponseValidationError is the validation error returned by +// CreateArtifactResponse.Validate if the designated constraints aren't met. +type CreateArtifactResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateArtifactResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateArtifactResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateArtifactResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateArtifactResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateArtifactResponseValidationError) ErrorName() string { + return "CreateArtifactResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateArtifactResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateArtifactResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateArtifactResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateArtifactResponseValidationError{} + +// Validate checks the field values on AddTagRequest with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *AddTagRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTag()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddTagRequestValidationError{ + field: "Tag", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// AddTagRequestValidationError is the validation error returned by +// AddTagRequest.Validate if the designated constraints aren't met. +type AddTagRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AddTagRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AddTagRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AddTagRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AddTagRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AddTagRequestValidationError) ErrorName() string { return "AddTagRequestValidationError" } + +// Error satisfies the builtin error interface +func (e AddTagRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAddTagRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AddTagRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AddTagRequestValidationError{} + +// Validate checks the field values on AddTagResponse with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *AddTagResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// AddTagResponseValidationError is the validation error returned by +// AddTagResponse.Validate if the designated constraints aren't met. +type AddTagResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AddTagResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AddTagResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AddTagResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AddTagResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AddTagResponseValidationError) ErrorName() string { return "AddTagResponseValidationError" } + +// Error satisfies the builtin error interface +func (e AddTagResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAddTagResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AddTagResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AddTagResponseValidationError{} + +// Validate checks the field values on ListArtifactsRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ListArtifactsRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListArtifactsRequestValidationError{ + field: "Dataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetFilter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListArtifactsRequestValidationError{ + field: "Filter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetPagination()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListArtifactsRequestValidationError{ + field: "Pagination", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ListArtifactsRequestValidationError is the validation error returned by +// ListArtifactsRequest.Validate if the designated constraints aren't met. +type ListArtifactsRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListArtifactsRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListArtifactsRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListArtifactsRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListArtifactsRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListArtifactsRequestValidationError) ErrorName() string { + return "ListArtifactsRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ListArtifactsRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sListArtifactsRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListArtifactsRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListArtifactsRequestValidationError{} + +// Validate checks the field values on ListArtifactsResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ListArtifactsResponse) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetArtifacts() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListArtifactsResponseValidationError{ + field: fmt.Sprintf("Artifacts[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for NextToken + + return nil +} + +// ListArtifactsResponseValidationError is the validation error returned by +// ListArtifactsResponse.Validate if the designated constraints aren't met. +type ListArtifactsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListArtifactsResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListArtifactsResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListArtifactsResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListArtifactsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListArtifactsResponseValidationError) ErrorName() string { + return "ListArtifactsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ListArtifactsResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sListArtifactsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListArtifactsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListArtifactsResponseValidationError{} + +// Validate checks the field values on ListDatasetsRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ListDatasetsRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetFilter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListDatasetsRequestValidationError{ + field: "Filter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetPagination()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListDatasetsRequestValidationError{ + field: "Pagination", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ListDatasetsRequestValidationError is the validation error returned by +// ListDatasetsRequest.Validate if the designated constraints aren't met. +type ListDatasetsRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListDatasetsRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListDatasetsRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListDatasetsRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListDatasetsRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListDatasetsRequestValidationError) ErrorName() string { + return "ListDatasetsRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ListDatasetsRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sListDatasetsRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListDatasetsRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListDatasetsRequestValidationError{} + +// Validate checks the field values on ListDatasetsResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ListDatasetsResponse) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetDatasets() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListDatasetsResponseValidationError{ + field: fmt.Sprintf("Datasets[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for NextToken + + return nil +} + +// ListDatasetsResponseValidationError is the validation error returned by +// ListDatasetsResponse.Validate if the designated constraints aren't met. +type ListDatasetsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListDatasetsResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListDatasetsResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListDatasetsResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListDatasetsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListDatasetsResponseValidationError) ErrorName() string { + return "ListDatasetsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ListDatasetsResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sListDatasetsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListDatasetsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListDatasetsResponseValidationError{} + +// Validate checks the field values on Dataset with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Dataset) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DatasetValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DatasetValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DatasetValidationError is the validation error returned by Dataset.Validate +// if the designated constraints aren't met. +type DatasetValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DatasetValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DatasetValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DatasetValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DatasetValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DatasetValidationError) ErrorName() string { return "DatasetValidationError" } + +// Error satisfies the builtin error interface +func (e DatasetValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDataset.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DatasetValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DatasetValidationError{} + +// Validate checks the field values on Partition with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned. -func (m *Parameter) Validate() error { +func (m *Partition) Validate() error { if m == nil { return nil } - // no validation rules for Name + // no validation rules for Key // no validation rules for Value return nil } -// ParameterValidationError is the validation error returned by -// Parameter.Validate if the designated constraints aren't met. -type ParameterValidationError struct { +// PartitionValidationError is the validation error returned by +// Partition.Validate if the designated constraints aren't met. +type PartitionValidationError struct { field string reason string cause error @@ -60,22 +1242,22 @@ type ParameterValidationError struct { } // Field function returns field value. -func (e ParameterValidationError) Field() string { return e.field } +func (e PartitionValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e ParameterValidationError) Reason() string { return e.reason } +func (e PartitionValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e ParameterValidationError) Cause() error { return e.cause } +func (e PartitionValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e ParameterValidationError) Key() bool { return e.key } +func (e PartitionValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e ParameterValidationError) ErrorName() string { return "ParameterValidationError" } +func (e PartitionValidationError) ErrorName() string { return "PartitionValidationError" } // Error satisfies the builtin error interface -func (e ParameterValidationError) Error() string { +func (e PartitionValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -87,14 +1269,14 @@ func (e ParameterValidationError) Error() string { } return fmt.Sprintf( - "invalid %sParameter.%s: %s%s", + "invalid %sPartition.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = ParameterValidationError{} +var _ error = PartitionValidationError{} var _ interface { Field() string @@ -102,63 +1284,31 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = ParameterValidationError{} +} = PartitionValidationError{} -// Validate checks the field values on Artifact with the rules defined in the +// Validate checks the field values on DatasetID with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned. -func (m *Artifact) Validate() error { +func (m *DatasetID) Validate() error { if m == nil { return nil } - // no validation rules for Provenance + // no validation rules for Project // no validation rules for Name - // no validation rules for Version - - // no validation rules for Revision - - // no validation rules for CreatedAt - - // no validation rules for ReferenceId + // no validation rules for Domain - for idx, item := range m.GetInputs() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ArtifactValidationError{ - field: fmt.Sprintf("Inputs[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - for idx, item := range m.GetOutputs() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ArtifactValidationError{ - field: fmt.Sprintf("Outputs[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } + // no validation rules for Version - } + // no validation rules for UUID return nil } -// ArtifactValidationError is the validation error returned by -// Artifact.Validate if the designated constraints aren't met. -type ArtifactValidationError struct { +// DatasetIDValidationError is the validation error returned by +// DatasetID.Validate if the designated constraints aren't met. +type DatasetIDValidationError struct { field string reason string cause error @@ -166,22 +1316,22 @@ type ArtifactValidationError struct { } // Field function returns field value. -func (e ArtifactValidationError) Field() string { return e.field } +func (e DatasetIDValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e ArtifactValidationError) Reason() string { return e.reason } +func (e DatasetIDValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e ArtifactValidationError) Cause() error { return e.cause } +func (e DatasetIDValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e ArtifactValidationError) Key() bool { return e.key } +func (e DatasetIDValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e ArtifactValidationError) ErrorName() string { return "ArtifactValidationError" } +func (e DatasetIDValidationError) ErrorName() string { return "DatasetIDValidationError" } // Error satisfies the builtin error interface -func (e ArtifactValidationError) Error() string { +func (e DatasetIDValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -193,14 +1343,14 @@ func (e ArtifactValidationError) Error() string { } return fmt.Sprintf( - "invalid %sArtifact.%s: %s%s", + "invalid %sDatasetID.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = ArtifactValidationError{} +var _ error = DatasetIDValidationError{} var _ interface { Field() string @@ -208,26 +1358,74 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = ArtifactValidationError{} +} = DatasetIDValidationError{} -// Validate checks the field values on ArtifactId with the rules defined in the +// Validate checks the field values on Artifact with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned. -func (m *ArtifactId) Validate() error { +func (m *Artifact) Validate() error { if m == nil { return nil } - // no validation rules for Name + // no validation rules for Id - // no validation rules for Version + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactValidationError{ + field: "Dataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetData() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetPartitions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactValidationError{ + field: fmt.Sprintf("Partitions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } - for idx, item := range m.GetInputs() { + for idx, item := range m.GetTags() { _, _ = idx, item if v, ok := interface{}(item).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { - return ArtifactIdValidationError{ - field: fmt.Sprintf("Inputs[%v]", idx), + return ArtifactValidationError{ + field: fmt.Sprintf("Tags[%v]", idx), reason: "embedded message failed validation", cause: err, } @@ -236,12 +1434,22 @@ func (m *ArtifactId) Validate() error { } + if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactValidationError{ + field: "CreatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + return nil } -// ArtifactIdValidationError is the validation error returned by -// ArtifactId.Validate if the designated constraints aren't met. -type ArtifactIdValidationError struct { +// ArtifactValidationError is the validation error returned by +// Artifact.Validate if the designated constraints aren't met. +type ArtifactValidationError struct { field string reason string cause error @@ -249,22 +1457,22 @@ type ArtifactIdValidationError struct { } // Field function returns field value. -func (e ArtifactIdValidationError) Field() string { return e.field } +func (e ArtifactValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e ArtifactIdValidationError) Reason() string { return e.reason } +func (e ArtifactValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e ArtifactIdValidationError) Cause() error { return e.cause } +func (e ArtifactValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e ArtifactIdValidationError) Key() bool { return e.key } +func (e ArtifactValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e ArtifactIdValidationError) ErrorName() string { return "ArtifactIdValidationError" } +func (e ArtifactValidationError) ErrorName() string { return "ArtifactValidationError" } // Error satisfies the builtin error interface -func (e ArtifactIdValidationError) Error() string { +func (e ArtifactValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -276,14 +1484,14 @@ func (e ArtifactIdValidationError) Error() string { } return fmt.Sprintf( - "invalid %sArtifactId.%s: %s%s", + "invalid %sArtifact.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = ArtifactIdValidationError{} +var _ error = ArtifactValidationError{} var _ interface { Field() string @@ -291,40 +1499,34 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = ArtifactIdValidationError{} +} = ArtifactValidationError{} -// Validate checks the field values on GetRequest with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *GetRequest) Validate() error { +// Validate checks the field values on ArtifactData with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ArtifactData) Validate() error { if m == nil { return nil } - switch m.Id.(type) { - - case *GetRequest_Provenance: - // no validation rules for Provenance - - case *GetRequest_ArtifactId: + // no validation rules for Name - if v, ok := interface{}(m.GetArtifactId()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetRequestValidationError{ - field: "ArtifactId", - reason: "embedded message failed validation", - cause: err, - } + if v, ok := interface{}(m.GetValue()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactDataValidationError{ + field: "Value", + reason: "embedded message failed validation", + cause: err, } } - } return nil } -// GetRequestValidationError is the validation error returned by -// GetRequest.Validate if the designated constraints aren't met. -type GetRequestValidationError struct { +// ArtifactDataValidationError is the validation error returned by +// ArtifactData.Validate if the designated constraints aren't met. +type ArtifactDataValidationError struct { field string reason string cause error @@ -332,22 +1534,22 @@ type GetRequestValidationError struct { } // Field function returns field value. -func (e GetRequestValidationError) Field() string { return e.field } +func (e ArtifactDataValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e GetRequestValidationError) Reason() string { return e.reason } +func (e ArtifactDataValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e GetRequestValidationError) Cause() error { return e.cause } +func (e ArtifactDataValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e GetRequestValidationError) Key() bool { return e.key } +func (e ArtifactDataValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e GetRequestValidationError) ErrorName() string { return "GetRequestValidationError" } +func (e ArtifactDataValidationError) ErrorName() string { return "ArtifactDataValidationError" } // Error satisfies the builtin error interface -func (e GetRequestValidationError) Error() string { +func (e ArtifactDataValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -359,14 +1561,14 @@ func (e GetRequestValidationError) Error() string { } return fmt.Sprintf( - "invalid %sGetRequest.%s: %s%s", + "invalid %sArtifactData.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = GetRequestValidationError{} +var _ error = ArtifactDataValidationError{} var _ interface { Field() string @@ -374,20 +1576,23 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = GetRequestValidationError{} +} = ArtifactDataValidationError{} -// Validate checks the field values on GetResponse with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *GetResponse) Validate() error { +// Validate checks the field values on Tag with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Tag) Validate() error { if m == nil { return nil } - if v, ok := interface{}(m.GetArtifact()).(interface{ Validate() error }); ok { + // no validation rules for Name + + // no validation rules for ArtifactId + + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { - return GetResponseValidationError{ - field: "Artifact", + return TagValidationError{ + field: "Dataset", reason: "embedded message failed validation", cause: err, } @@ -397,9 +1602,9 @@ func (m *GetResponse) Validate() error { return nil } -// GetResponseValidationError is the validation error returned by -// GetResponse.Validate if the designated constraints aren't met. -type GetResponseValidationError struct { +// TagValidationError is the validation error returned by Tag.Validate if the +// designated constraints aren't met. +type TagValidationError struct { field string reason string cause error @@ -407,22 +1612,22 @@ type GetResponseValidationError struct { } // Field function returns field value. -func (e GetResponseValidationError) Field() string { return e.field } +func (e TagValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e GetResponseValidationError) Reason() string { return e.reason } +func (e TagValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e GetResponseValidationError) Cause() error { return e.cause } +func (e TagValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e GetResponseValidationError) Key() bool { return e.key } +func (e TagValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e GetResponseValidationError) ErrorName() string { return "GetResponseValidationError" } +func (e TagValidationError) ErrorName() string { return "TagValidationError" } // Error satisfies the builtin error interface -func (e GetResponseValidationError) Error() string { +func (e TagValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -434,14 +1639,14 @@ func (e GetResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sGetResponse.%s: %s%s", + "invalid %sTag.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = GetResponseValidationError{} +var _ error = TagValidationError{} var _ interface { Field() string @@ -449,25 +1654,23 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = GetResponseValidationError{} +} = TagValidationError{} -// Validate checks the field values on IntFilter with the rules defined in the +// Validate checks the field values on Metadata with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned. -func (m *IntFilter) Validate() error { +func (m *Metadata) Validate() error { if m == nil { return nil } - // no validation rules for Value - - // no validation rules for Operator + // no validation rules for KeyMap return nil } -// IntFilterValidationError is the validation error returned by -// IntFilter.Validate if the designated constraints aren't met. -type IntFilterValidationError struct { +// MetadataValidationError is the validation error returned by +// Metadata.Validate if the designated constraints aren't met. +type MetadataValidationError struct { field string reason string cause error @@ -475,22 +1678,22 @@ type IntFilterValidationError struct { } // Field function returns field value. -func (e IntFilterValidationError) Field() string { return e.field } +func (e MetadataValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e IntFilterValidationError) Reason() string { return e.reason } +func (e MetadataValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e IntFilterValidationError) Cause() error { return e.cause } +func (e MetadataValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e IntFilterValidationError) Key() bool { return e.key } +func (e MetadataValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e IntFilterValidationError) ErrorName() string { return "IntFilterValidationError" } +func (e MetadataValidationError) ErrorName() string { return "MetadataValidationError" } // Error satisfies the builtin error interface -func (e IntFilterValidationError) Error() string { +func (e MetadataValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -502,14 +1705,14 @@ func (e IntFilterValidationError) Error() string { } return fmt.Sprintf( - "invalid %sIntFilter.%s: %s%s", + "invalid %sMetadata.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = IntFilterValidationError{} +var _ error = MetadataValidationError{} var _ interface { Field() string @@ -517,26 +1720,37 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = IntFilterValidationError{} +} = MetadataValidationError{} -// Validate checks the field values on IntRangeFilter with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *IntRangeFilter) Validate() error { +// Validate checks the field values on FilterExpression with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *FilterExpression) Validate() error { if m == nil { return nil } - // no validation rules for Min + for idx, item := range m.GetFilters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FilterExpressionValidationError{ + field: fmt.Sprintf("Filters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } - // no validation rules for Max + } return nil } -// IntRangeFilterValidationError is the validation error returned by -// IntRangeFilter.Validate if the designated constraints aren't met. -type IntRangeFilterValidationError struct { +// FilterExpressionValidationError is the validation error returned by +// FilterExpression.Validate if the designated constraints aren't met. +type FilterExpressionValidationError struct { field string reason string cause error @@ -544,22 +1758,22 @@ type IntRangeFilterValidationError struct { } // Field function returns field value. -func (e IntRangeFilterValidationError) Field() string { return e.field } +func (e FilterExpressionValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e IntRangeFilterValidationError) Reason() string { return e.reason } +func (e FilterExpressionValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e IntRangeFilterValidationError) Cause() error { return e.cause } +func (e FilterExpressionValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e IntRangeFilterValidationError) Key() bool { return e.key } +func (e FilterExpressionValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e IntRangeFilterValidationError) ErrorName() string { return "IntRangeFilterValidationError" } +func (e FilterExpressionValidationError) ErrorName() string { return "FilterExpressionValidationError" } // Error satisfies the builtin error interface -func (e IntRangeFilterValidationError) Error() string { +func (e FilterExpressionValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -571,14 +1785,14 @@ func (e IntRangeFilterValidationError) Error() string { } return fmt.Sprintf( - "invalid %sIntRangeFilter.%s: %s%s", + "invalid %sFilterExpression.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = IntRangeFilterValidationError{} +var _ error = FilterExpressionValidationError{} var _ interface { Field() string @@ -586,36 +1800,62 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = IntRangeFilterValidationError{} +} = FilterExpressionValidationError{} -// Validate checks the field values on IntQueryKey with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *IntQueryKey) Validate() error { +// Validate checks the field values on SinglePropertyFilter with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SinglePropertyFilter) Validate() error { if m == nil { return nil } - switch m.Filter.(type) { + // no validation rules for Operator + + switch m.PropertyFilter.(type) { + + case *SinglePropertyFilter_TagFilter: + + if v, ok := interface{}(m.GetTagFilter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SinglePropertyFilterValidationError{ + field: "TagFilter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *SinglePropertyFilter_PartitionFilter: + + if v, ok := interface{}(m.GetPartitionFilter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SinglePropertyFilterValidationError{ + field: "PartitionFilter", + reason: "embedded message failed validation", + cause: err, + } + } + } - case *IntQueryKey_Val: + case *SinglePropertyFilter_ArtifactFilter: - if v, ok := interface{}(m.GetVal()).(interface{ Validate() error }); ok { + if v, ok := interface{}(m.GetArtifactFilter()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { - return IntQueryKeyValidationError{ - field: "Val", + return SinglePropertyFilterValidationError{ + field: "ArtifactFilter", reason: "embedded message failed validation", cause: err, } } } - case *IntQueryKey_Range: + case *SinglePropertyFilter_DatasetFilter: - if v, ok := interface{}(m.GetRange()).(interface{ Validate() error }); ok { + if v, ok := interface{}(m.GetDatasetFilter()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { - return IntQueryKeyValidationError{ - field: "Range", + return SinglePropertyFilterValidationError{ + field: "DatasetFilter", reason: "embedded message failed validation", cause: err, } @@ -627,9 +1867,9 @@ func (m *IntQueryKey) Validate() error { return nil } -// IntQueryKeyValidationError is the validation error returned by -// IntQueryKey.Validate if the designated constraints aren't met. -type IntQueryKeyValidationError struct { +// SinglePropertyFilterValidationError is the validation error returned by +// SinglePropertyFilter.Validate if the designated constraints aren't met. +type SinglePropertyFilterValidationError struct { field string reason string cause error @@ -637,22 +1877,24 @@ type IntQueryKeyValidationError struct { } // Field function returns field value. -func (e IntQueryKeyValidationError) Field() string { return e.field } +func (e SinglePropertyFilterValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e IntQueryKeyValidationError) Reason() string { return e.reason } +func (e SinglePropertyFilterValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e IntQueryKeyValidationError) Cause() error { return e.cause } +func (e SinglePropertyFilterValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e IntQueryKeyValidationError) Key() bool { return e.key } +func (e SinglePropertyFilterValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e IntQueryKeyValidationError) ErrorName() string { return "IntQueryKeyValidationError" } +func (e SinglePropertyFilterValidationError) ErrorName() string { + return "SinglePropertyFilterValidationError" +} // Error satisfies the builtin error interface -func (e IntQueryKeyValidationError) Error() string { +func (e SinglePropertyFilterValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -664,14 +1906,14 @@ func (e IntQueryKeyValidationError) Error() string { } return fmt.Sprintf( - "invalid %sIntQueryKey.%s: %s%s", + "invalid %sSinglePropertyFilter.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = IntQueryKeyValidationError{} +var _ error = SinglePropertyFilterValidationError{} var _ interface { Field() string @@ -679,40 +1921,29 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = IntQueryKeyValidationError{} +} = SinglePropertyFilterValidationError{} -// Validate checks the field values on QueryRequest with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *QueryRequest) Validate() error { +// Validate checks the field values on ArtifactPropertyFilter with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ArtifactPropertyFilter) Validate() error { if m == nil { return nil } - // no validation rules for Name + switch m.Property.(type) { - // no validation rules for Version + case *ArtifactPropertyFilter_ArtifactId: + // no validation rules for ArtifactId - if v, ok := interface{}(m.GetRevision()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return QueryRequestValidationError{ - field: "Revision", - reason: "embedded message failed validation", - cause: err, - } - } } - // no validation rules for CreatedAt - - // no validation rules for ReferenceId - return nil } -// QueryRequestValidationError is the validation error returned by -// QueryRequest.Validate if the designated constraints aren't met. -type QueryRequestValidationError struct { +// ArtifactPropertyFilterValidationError is the validation error returned by +// ArtifactPropertyFilter.Validate if the designated constraints aren't met. +type ArtifactPropertyFilterValidationError struct { field string reason string cause error @@ -720,22 +1951,24 @@ type QueryRequestValidationError struct { } // Field function returns field value. -func (e QueryRequestValidationError) Field() string { return e.field } +func (e ArtifactPropertyFilterValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e QueryRequestValidationError) Reason() string { return e.reason } +func (e ArtifactPropertyFilterValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e QueryRequestValidationError) Cause() error { return e.cause } +func (e ArtifactPropertyFilterValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e QueryRequestValidationError) Key() bool { return e.key } +func (e ArtifactPropertyFilterValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e QueryRequestValidationError) ErrorName() string { return "QueryRequestValidationError" } +func (e ArtifactPropertyFilterValidationError) ErrorName() string { + return "ArtifactPropertyFilterValidationError" +} // Error satisfies the builtin error interface -func (e QueryRequestValidationError) Error() string { +func (e ArtifactPropertyFilterValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -747,14 +1980,14 @@ func (e QueryRequestValidationError) Error() string { } return fmt.Sprintf( - "invalid %sQueryRequest.%s: %s%s", + "invalid %sArtifactPropertyFilter.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = QueryRequestValidationError{} +var _ error = ArtifactPropertyFilterValidationError{} var _ interface { Field() string @@ -762,37 +1995,29 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = QueryRequestValidationError{} +} = ArtifactPropertyFilterValidationError{} -// Validate checks the field values on QueryResponse with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *QueryResponse) Validate() error { +// Validate checks the field values on TagPropertyFilter with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TagPropertyFilter) Validate() error { if m == nil { return nil } - for idx, item := range m.GetArtifact() { - _, _ = idx, item + switch m.Property.(type) { - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return QueryResponseValidationError{ - field: fmt.Sprintf("Artifact[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } + case *TagPropertyFilter_TagName: + // no validation rules for TagName } return nil } -// QueryResponseValidationError is the validation error returned by -// QueryResponse.Validate if the designated constraints aren't met. -type QueryResponseValidationError struct { +// TagPropertyFilterValidationError is the validation error returned by +// TagPropertyFilter.Validate if the designated constraints aren't met. +type TagPropertyFilterValidationError struct { field string reason string cause error @@ -800,22 +2025,24 @@ type QueryResponseValidationError struct { } // Field function returns field value. -func (e QueryResponseValidationError) Field() string { return e.field } +func (e TagPropertyFilterValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e QueryResponseValidationError) Reason() string { return e.reason } +func (e TagPropertyFilterValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e QueryResponseValidationError) Cause() error { return e.cause } +func (e TagPropertyFilterValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e QueryResponseValidationError) Key() bool { return e.key } +func (e TagPropertyFilterValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e QueryResponseValidationError) ErrorName() string { return "QueryResponseValidationError" } +func (e TagPropertyFilterValidationError) ErrorName() string { + return "TagPropertyFilterValidationError" +} // Error satisfies the builtin error interface -func (e QueryResponseValidationError) Error() string { +func (e TagPropertyFilterValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -827,14 +2054,14 @@ func (e QueryResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sQueryResponse.%s: %s%s", + "invalid %sTagPropertyFilter.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = QueryResponseValidationError{} +var _ error = TagPropertyFilterValidationError{} var _ interface { Field() string @@ -842,37 +2069,24 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = QueryResponseValidationError{} +} = TagPropertyFilterValidationError{} -// Validate checks the field values on CreateRequest with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *CreateRequest) Validate() error { +// Validate checks the field values on PartitionPropertyFilter with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *PartitionPropertyFilter) Validate() error { if m == nil { return nil } - if v, ok := interface{}(m.GetRef()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CreateRequestValidationError{ - field: "Ref", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for ReferenceId - - // no validation rules for Revision + switch m.Property.(type) { - for idx, item := range m.GetOutputs() { - _, _ = idx, item + case *PartitionPropertyFilter_KeyVal: - if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if v, ok := interface{}(m.GetKeyVal()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { - return CreateRequestValidationError{ - field: fmt.Sprintf("Outputs[%v]", idx), + return PartitionPropertyFilterValidationError{ + field: "KeyVal", reason: "embedded message failed validation", cause: err, } @@ -884,9 +2098,9 @@ func (m *CreateRequest) Validate() error { return nil } -// CreateRequestValidationError is the validation error returned by -// CreateRequest.Validate if the designated constraints aren't met. -type CreateRequestValidationError struct { +// PartitionPropertyFilterValidationError is the validation error returned by +// PartitionPropertyFilter.Validate if the designated constraints aren't met. +type PartitionPropertyFilterValidationError struct { field string reason string cause error @@ -894,22 +2108,24 @@ type CreateRequestValidationError struct { } // Field function returns field value. -func (e CreateRequestValidationError) Field() string { return e.field } +func (e PartitionPropertyFilterValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e CreateRequestValidationError) Reason() string { return e.reason } +func (e PartitionPropertyFilterValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e CreateRequestValidationError) Cause() error { return e.cause } +func (e PartitionPropertyFilterValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e CreateRequestValidationError) Key() bool { return e.key } +func (e PartitionPropertyFilterValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e CreateRequestValidationError) ErrorName() string { return "CreateRequestValidationError" } +func (e PartitionPropertyFilterValidationError) ErrorName() string { + return "PartitionPropertyFilterValidationError" +} // Error satisfies the builtin error interface -func (e CreateRequestValidationError) Error() string { +func (e PartitionPropertyFilterValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -921,14 +2137,14 @@ func (e CreateRequestValidationError) Error() string { } return fmt.Sprintf( - "invalid %sCreateRequest.%s: %s%s", + "invalid %sPartitionPropertyFilter.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = CreateRequestValidationError{} +var _ error = PartitionPropertyFilterValidationError{} var _ interface { Field() string @@ -936,34 +2152,26 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = CreateRequestValidationError{} +} = PartitionPropertyFilterValidationError{} -// Validate checks the field values on CreateResponse with the rules defined in +// Validate checks the field values on KeyValuePair with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned. -func (m *CreateResponse) Validate() error { +func (m *KeyValuePair) Validate() error { if m == nil { return nil } - if v, ok := interface{}(m.GetArtifact()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CreateResponseValidationError{ - field: "Artifact", - reason: "embedded message failed validation", - cause: err, - } - } - } + // no validation rules for Key - // no validation rules for Status + // no validation rules for Value return nil } -// CreateResponseValidationError is the validation error returned by -// CreateResponse.Validate if the designated constraints aren't met. -type CreateResponseValidationError struct { +// KeyValuePairValidationError is the validation error returned by +// KeyValuePair.Validate if the designated constraints aren't met. +type KeyValuePairValidationError struct { field string reason string cause error @@ -971,22 +2179,22 @@ type CreateResponseValidationError struct { } // Field function returns field value. -func (e CreateResponseValidationError) Field() string { return e.field } +func (e KeyValuePairValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e CreateResponseValidationError) Reason() string { return e.reason } +func (e KeyValuePairValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e CreateResponseValidationError) Cause() error { return e.cause } +func (e KeyValuePairValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e CreateResponseValidationError) Key() bool { return e.key } +func (e KeyValuePairValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e CreateResponseValidationError) ErrorName() string { return "CreateResponseValidationError" } +func (e KeyValuePairValidationError) ErrorName() string { return "KeyValuePairValidationError" } // Error satisfies the builtin error interface -func (e CreateResponseValidationError) Error() string { +func (e KeyValuePairValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -998,14 +2206,14 @@ func (e CreateResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sCreateResponse.%s: %s%s", + "invalid %sKeyValuePair.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = CreateResponseValidationError{} +var _ error = KeyValuePairValidationError{} var _ interface { Field() string @@ -1013,32 +2221,38 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = CreateResponseValidationError{} +} = KeyValuePairValidationError{} -// Validate checks the field values on GenerateProvenanceRequest with the rules +// Validate checks the field values on DatasetPropertyFilter with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned. -func (m *GenerateProvenanceRequest) Validate() error { +func (m *DatasetPropertyFilter) Validate() error { if m == nil { return nil } - if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GenerateProvenanceRequestValidationError{ - field: "Id", - reason: "embedded message failed validation", - cause: err, - } - } + switch m.Property.(type) { + + case *DatasetPropertyFilter_Project: + // no validation rules for Project + + case *DatasetPropertyFilter_Name: + // no validation rules for Name + + case *DatasetPropertyFilter_Domain: + // no validation rules for Domain + + case *DatasetPropertyFilter_Version: + // no validation rules for Version + } return nil } -// GenerateProvenanceRequestValidationError is the validation error returned by -// GenerateProvenanceRequest.Validate if the designated constraints aren't met. -type GenerateProvenanceRequestValidationError struct { +// DatasetPropertyFilterValidationError is the validation error returned by +// DatasetPropertyFilter.Validate if the designated constraints aren't met. +type DatasetPropertyFilterValidationError struct { field string reason string cause error @@ -1046,24 +2260,24 @@ type GenerateProvenanceRequestValidationError struct { } // Field function returns field value. -func (e GenerateProvenanceRequestValidationError) Field() string { return e.field } +func (e DatasetPropertyFilterValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e GenerateProvenanceRequestValidationError) Reason() string { return e.reason } +func (e DatasetPropertyFilterValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e GenerateProvenanceRequestValidationError) Cause() error { return e.cause } +func (e DatasetPropertyFilterValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e GenerateProvenanceRequestValidationError) Key() bool { return e.key } +func (e DatasetPropertyFilterValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e GenerateProvenanceRequestValidationError) ErrorName() string { - return "GenerateProvenanceRequestValidationError" +func (e DatasetPropertyFilterValidationError) ErrorName() string { + return "DatasetPropertyFilterValidationError" } // Error satisfies the builtin error interface -func (e GenerateProvenanceRequestValidationError) Error() string { +func (e DatasetPropertyFilterValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -1075,14 +2289,14 @@ func (e GenerateProvenanceRequestValidationError) Error() string { } return fmt.Sprintf( - "invalid %sGenerateProvenanceRequest.%s: %s%s", + "invalid %sDatasetPropertyFilter.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = GenerateProvenanceRequestValidationError{} +var _ error = DatasetPropertyFilterValidationError{} var _ interface { Field() string @@ -1090,24 +2304,30 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = GenerateProvenanceRequestValidationError{} +} = DatasetPropertyFilterValidationError{} -// Validate checks the field values on GenerateProvenanceResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *GenerateProvenanceResponse) Validate() error { +// Validate checks the field values on PaginationOptions with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *PaginationOptions) Validate() error { if m == nil { return nil } - // no validation rules for Provenance + // no validation rules for Limit + + // no validation rules for Token + + // no validation rules for SortKey + + // no validation rules for SortOrder return nil } -// GenerateProvenanceResponseValidationError is the validation error returned -// by GenerateProvenanceResponse.Validate if the designated constraints aren't met. -type GenerateProvenanceResponseValidationError struct { +// PaginationOptionsValidationError is the validation error returned by +// PaginationOptions.Validate if the designated constraints aren't met. +type PaginationOptionsValidationError struct { field string reason string cause error @@ -1115,24 +2335,24 @@ type GenerateProvenanceResponseValidationError struct { } // Field function returns field value. -func (e GenerateProvenanceResponseValidationError) Field() string { return e.field } +func (e PaginationOptionsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e GenerateProvenanceResponseValidationError) Reason() string { return e.reason } +func (e PaginationOptionsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e GenerateProvenanceResponseValidationError) Cause() error { return e.cause } +func (e PaginationOptionsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e GenerateProvenanceResponseValidationError) Key() bool { return e.key } +func (e PaginationOptionsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e GenerateProvenanceResponseValidationError) ErrorName() string { - return "GenerateProvenanceResponseValidationError" +func (e PaginationOptionsValidationError) ErrorName() string { + return "PaginationOptionsValidationError" } // Error satisfies the builtin error interface -func (e GenerateProvenanceResponseValidationError) Error() string { +func (e PaginationOptionsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -1144,14 +2364,14 @@ func (e GenerateProvenanceResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sGenerateProvenanceResponse.%s: %s%s", + "invalid %sPaginationOptions.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = GenerateProvenanceResponseValidationError{} +var _ error = PaginationOptionsValidationError{} var _ interface { Field() string @@ -1159,4 +2379,4 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = GenerateProvenanceResponseValidationError{} +} = PaginationOptionsValidationError{} diff --git a/gen/pb-java/datacatalog/Datacatalog.java b/gen/pb-java/datacatalog/Datacatalog.java new file mode 100644 index 000000000..bf3dd3221 --- /dev/null +++ b/gen/pb-java/datacatalog/Datacatalog.java @@ -0,0 +1,25532 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/datacatalog/datacatalog.proto + +package 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); + } + public interface CreateDatasetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.CreateDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.Dataset dataset = 1; + */ + boolean hasDataset(); + /** + * .datacatalog.Dataset dataset = 1; + */ + datacatalog.Datacatalog.Dataset getDataset(); + /** + * .datacatalog.Dataset dataset = 1; + */ + datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder(); + } + /** + * Protobuf type {@code datacatalog.CreateDatasetRequest} + */ + public static final class CreateDatasetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.CreateDatasetRequest) + CreateDatasetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDatasetRequest.newBuilder() to construct. + private CreateDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateDatasetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateDatasetRequest( + 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: { + datacatalog.Datacatalog.Dataset.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.Dataset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateDatasetRequest.class, datacatalog.Datacatalog.CreateDatasetRequest.Builder.class); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.Dataset dataset_; + /** + * .datacatalog.Dataset dataset = 1; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.Dataset getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + 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 (dataset_ != null) { + output.writeMessage(1, getDataset()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDataset()); + } + 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 datacatalog.Datacatalog.CreateDatasetRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.CreateDatasetRequest other = (datacatalog.Datacatalog.CreateDatasetRequest) obj; + + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) 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 (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateDatasetRequest 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 datacatalog.Datacatalog.CreateDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateDatasetRequest 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 datacatalog.Datacatalog.CreateDatasetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateDatasetRequest 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(datacatalog.Datacatalog.CreateDatasetRequest 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 datacatalog.CreateDatasetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.CreateDatasetRequest) + datacatalog.Datacatalog.CreateDatasetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateDatasetRequest.class, datacatalog.Datacatalog.CreateDatasetRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.CreateDatasetRequest.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 (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateDatasetRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.CreateDatasetRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateDatasetRequest build() { + datacatalog.Datacatalog.CreateDatasetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateDatasetRequest buildPartial() { + datacatalog.Datacatalog.CreateDatasetRequest result = new datacatalog.Datacatalog.CreateDatasetRequest(this); + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.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 datacatalog.Datacatalog.CreateDatasetRequest) { + return mergeFrom((datacatalog.Datacatalog.CreateDatasetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.CreateDatasetRequest other) { + if (other == datacatalog.Datacatalog.CreateDatasetRequest.getDefaultInstance()) return this; + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + 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 { + datacatalog.Datacatalog.CreateDatasetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.CreateDatasetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.Dataset dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> datasetBuilder_; + /** + * .datacatalog.Dataset dataset = 1; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.Dataset getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder setDataset(datacatalog.Datacatalog.Dataset value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder setDataset( + datacatalog.Datacatalog.Dataset.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder mergeDataset(datacatalog.Datacatalog.Dataset value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.Dataset.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.Dataset.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; + } + } + /** + * .datacatalog.Dataset dataset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + @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:datacatalog.CreateDatasetRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.CreateDatasetRequest) + private static final datacatalog.Datacatalog.CreateDatasetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.CreateDatasetRequest(); + } + + public static datacatalog.Datacatalog.CreateDatasetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDatasetRequest(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 datacatalog.Datacatalog.CreateDatasetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateDatasetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.CreateDatasetResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code datacatalog.CreateDatasetResponse} + */ + public static final class CreateDatasetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.CreateDatasetResponse) + CreateDatasetResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDatasetResponse.newBuilder() to construct. + private CreateDatasetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateDatasetResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateDatasetResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + 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 datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateDatasetResponse.class, datacatalog.Datacatalog.CreateDatasetResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 datacatalog.Datacatalog.CreateDatasetResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.CreateDatasetResponse other = (datacatalog.Datacatalog.CreateDatasetResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateDatasetResponse 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 datacatalog.Datacatalog.CreateDatasetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateDatasetResponse 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 datacatalog.Datacatalog.CreateDatasetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateDatasetResponse 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(datacatalog.Datacatalog.CreateDatasetResponse 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 datacatalog.CreateDatasetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.CreateDatasetResponse) + datacatalog.Datacatalog.CreateDatasetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateDatasetResponse.class, datacatalog.Datacatalog.CreateDatasetResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.CreateDatasetResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateDatasetResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.CreateDatasetResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateDatasetResponse build() { + datacatalog.Datacatalog.CreateDatasetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateDatasetResponse buildPartial() { + datacatalog.Datacatalog.CreateDatasetResponse result = new datacatalog.Datacatalog.CreateDatasetResponse(this); + 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 datacatalog.Datacatalog.CreateDatasetResponse) { + return mergeFrom((datacatalog.Datacatalog.CreateDatasetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.CreateDatasetResponse other) { + if (other == datacatalog.Datacatalog.CreateDatasetResponse.getDefaultInstance()) return this; + 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 { + datacatalog.Datacatalog.CreateDatasetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.CreateDatasetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:datacatalog.CreateDatasetResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.CreateDatasetResponse) + private static final datacatalog.Datacatalog.CreateDatasetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.CreateDatasetResponse(); + } + + public static datacatalog.Datacatalog.CreateDatasetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatasetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDatasetResponse(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 datacatalog.Datacatalog.CreateDatasetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetDatasetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.GetDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.DatasetID dataset = 1; + */ + boolean hasDataset(); + /** + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetID getDataset(); + /** + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); + } + /** + * Protobuf type {@code datacatalog.GetDatasetRequest} + */ + public static final class GetDatasetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.GetDatasetRequest) + GetDatasetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDatasetRequest.newBuilder() to construct. + private GetDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetDatasetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetDatasetRequest( + 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: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetDatasetRequest.class, datacatalog.Datacatalog.GetDatasetRequest.Builder.class); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.DatasetID dataset_; + /** + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + 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 (dataset_ != null) { + output.writeMessage(1, getDataset()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDataset()); + } + 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 datacatalog.Datacatalog.GetDatasetRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.GetDatasetRequest other = (datacatalog.Datacatalog.GetDatasetRequest) obj; + + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) 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 (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetDatasetRequest 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 datacatalog.Datacatalog.GetDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetDatasetRequest 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 datacatalog.Datacatalog.GetDatasetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetDatasetRequest 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(datacatalog.Datacatalog.GetDatasetRequest 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 datacatalog.GetDatasetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.GetDatasetRequest) + datacatalog.Datacatalog.GetDatasetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetDatasetRequest.class, datacatalog.Datacatalog.GetDatasetRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.GetDatasetRequest.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 (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetDatasetRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.GetDatasetRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.GetDatasetRequest build() { + datacatalog.Datacatalog.GetDatasetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetDatasetRequest buildPartial() { + datacatalog.Datacatalog.GetDatasetRequest result = new datacatalog.Datacatalog.GetDatasetRequest(this); + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.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 datacatalog.Datacatalog.GetDatasetRequest) { + return mergeFrom((datacatalog.Datacatalog.GetDatasetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.GetDatasetRequest other) { + if (other == datacatalog.Datacatalog.GetDatasetRequest.getDefaultInstance()) return this; + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + 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 { + datacatalog.Datacatalog.GetDatasetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.GetDatasetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.DatasetID dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; + /** + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + @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:datacatalog.GetDatasetRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.GetDatasetRequest) + private static final datacatalog.Datacatalog.GetDatasetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetDatasetRequest(); + } + + public static datacatalog.Datacatalog.GetDatasetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDatasetRequest(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 datacatalog.Datacatalog.GetDatasetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetDatasetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.GetDatasetResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.Dataset dataset = 1; + */ + boolean hasDataset(); + /** + * .datacatalog.Dataset dataset = 1; + */ + datacatalog.Datacatalog.Dataset getDataset(); + /** + * .datacatalog.Dataset dataset = 1; + */ + datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder(); + } + /** + * Protobuf type {@code datacatalog.GetDatasetResponse} + */ + public static final class GetDatasetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.GetDatasetResponse) + GetDatasetResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDatasetResponse.newBuilder() to construct. + private GetDatasetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetDatasetResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetDatasetResponse( + 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: { + datacatalog.Datacatalog.Dataset.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.Dataset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetDatasetResponse.class, datacatalog.Datacatalog.GetDatasetResponse.Builder.class); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.Dataset dataset_; + /** + * .datacatalog.Dataset dataset = 1; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.Dataset getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + 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 (dataset_ != null) { + output.writeMessage(1, getDataset()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDataset()); + } + 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 datacatalog.Datacatalog.GetDatasetResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.GetDatasetResponse other = (datacatalog.Datacatalog.GetDatasetResponse) obj; + + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) 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 (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetDatasetResponse 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 datacatalog.Datacatalog.GetDatasetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetDatasetResponse 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 datacatalog.Datacatalog.GetDatasetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetDatasetResponse 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(datacatalog.Datacatalog.GetDatasetResponse 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 datacatalog.GetDatasetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.GetDatasetResponse) + datacatalog.Datacatalog.GetDatasetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetDatasetResponse.class, datacatalog.Datacatalog.GetDatasetResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.GetDatasetResponse.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 (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetDatasetResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.GetDatasetResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.GetDatasetResponse build() { + datacatalog.Datacatalog.GetDatasetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetDatasetResponse buildPartial() { + datacatalog.Datacatalog.GetDatasetResponse result = new datacatalog.Datacatalog.GetDatasetResponse(this); + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.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 datacatalog.Datacatalog.GetDatasetResponse) { + return mergeFrom((datacatalog.Datacatalog.GetDatasetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.GetDatasetResponse other) { + if (other == datacatalog.Datacatalog.GetDatasetResponse.getDefaultInstance()) return this; + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + 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 { + datacatalog.Datacatalog.GetDatasetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.GetDatasetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.Dataset dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> datasetBuilder_; + /** + * .datacatalog.Dataset dataset = 1; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.Dataset getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder setDataset(datacatalog.Datacatalog.Dataset value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder setDataset( + datacatalog.Datacatalog.Dataset.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder mergeDataset(datacatalog.Datacatalog.Dataset value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.Dataset.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.Dataset.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; + } + } + /** + * .datacatalog.Dataset dataset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + @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:datacatalog.GetDatasetResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.GetDatasetResponse) + private static final datacatalog.Datacatalog.GetDatasetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetDatasetResponse(); + } + + public static datacatalog.Datacatalog.GetDatasetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDatasetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDatasetResponse(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 datacatalog.Datacatalog.GetDatasetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetArtifactRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.GetArtifactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.DatasetID dataset = 1; + */ + boolean hasDataset(); + /** + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetID getDataset(); + /** + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); + + /** + * string artifact_id = 2; + */ + java.lang.String getArtifactId(); + /** + * string artifact_id = 2; + */ + com.google.protobuf.ByteString + getArtifactIdBytes(); + + /** + * string tag_name = 3; + */ + java.lang.String getTagName(); + /** + * string tag_name = 3; + */ + com.google.protobuf.ByteString + getTagNameBytes(); + + public datacatalog.Datacatalog.GetArtifactRequest.QueryHandleCase getQueryHandleCase(); + } + /** + * Protobuf type {@code datacatalog.GetArtifactRequest} + */ + public static final class GetArtifactRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.GetArtifactRequest) + GetArtifactRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetArtifactRequest.newBuilder() to construct. + private GetArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetArtifactRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetArtifactRequest( + 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: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + queryHandleCase_ = 2; + queryHandle_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + queryHandleCase_ = 3; + queryHandle_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetArtifactRequest.class, datacatalog.Datacatalog.GetArtifactRequest.Builder.class); + } + + private int queryHandleCase_ = 0; + private java.lang.Object queryHandle_; + public enum QueryHandleCase + implements com.google.protobuf.Internal.EnumLite { + ARTIFACT_ID(2), + TAG_NAME(3), + QUERYHANDLE_NOT_SET(0); + private final int value; + private QueryHandleCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryHandleCase valueOf(int value) { + return forNumber(value); + } + + public static QueryHandleCase forNumber(int value) { + switch (value) { + case 2: return ARTIFACT_ID; + case 3: return TAG_NAME; + case 0: return QUERYHANDLE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public QueryHandleCase + getQueryHandleCase() { + return QueryHandleCase.forNumber( + queryHandleCase_); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.DatasetID dataset_; + /** + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + public static final int ARTIFACT_ID_FIELD_NUMBER = 2; + /** + * string artifact_id = 2; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + 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 (queryHandleCase_ == 2) { + queryHandle_ = s; + } + return s; + } + } + /** + * string artifact_id = 2; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 2) { + queryHandle_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAG_NAME_FIELD_NUMBER = 3; + /** + * string tag_name = 3; + */ + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + 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 (queryHandleCase_ == 3) { + queryHandle_ = s; + } + return s; + } + } + /** + * string tag_name = 3; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 3) { + queryHandle_ = 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 (dataset_ != null) { + output.writeMessage(1, getDataset()); + } + if (queryHandleCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, queryHandle_); + } + if (queryHandleCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, queryHandle_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDataset()); + } + if (queryHandleCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, queryHandle_); + } + if (queryHandleCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, queryHandle_); + } + 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 datacatalog.Datacatalog.GetArtifactRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.GetArtifactRequest other = (datacatalog.Datacatalog.GetArtifactRequest) obj; + + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) return false; + } + if (!getQueryHandleCase().equals(other.getQueryHandleCase())) return false; + switch (queryHandleCase_) { + case 2: + if (!getArtifactId() + .equals(other.getArtifactId())) return false; + break; + case 3: + if (!getTagName() + .equals(other.getTagName())) 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(); + if (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + switch (queryHandleCase_) { + case 2: + hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getArtifactId().hashCode(); + break; + case 3: + hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTagName().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetArtifactRequest 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 datacatalog.Datacatalog.GetArtifactRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetArtifactRequest 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 datacatalog.Datacatalog.GetArtifactRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetArtifactRequest 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(datacatalog.Datacatalog.GetArtifactRequest 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 datacatalog.GetArtifactRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.GetArtifactRequest) + datacatalog.Datacatalog.GetArtifactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetArtifactRequest.class, datacatalog.Datacatalog.GetArtifactRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.GetArtifactRequest.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 (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + queryHandleCase_ = 0; + queryHandle_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetArtifactRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.GetArtifactRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.GetArtifactRequest build() { + datacatalog.Datacatalog.GetArtifactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetArtifactRequest buildPartial() { + datacatalog.Datacatalog.GetArtifactRequest result = new datacatalog.Datacatalog.GetArtifactRequest(this); + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.build(); + } + if (queryHandleCase_ == 2) { + result.queryHandle_ = queryHandle_; + } + if (queryHandleCase_ == 3) { + result.queryHandle_ = queryHandle_; + } + result.queryHandleCase_ = queryHandleCase_; + 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 datacatalog.Datacatalog.GetArtifactRequest) { + return mergeFrom((datacatalog.Datacatalog.GetArtifactRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.GetArtifactRequest other) { + if (other == datacatalog.Datacatalog.GetArtifactRequest.getDefaultInstance()) return this; + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + switch (other.getQueryHandleCase()) { + case ARTIFACT_ID: { + queryHandleCase_ = 2; + queryHandle_ = other.queryHandle_; + onChanged(); + break; + } + case TAG_NAME: { + queryHandleCase_ = 3; + queryHandle_ = other.queryHandle_; + onChanged(); + break; + } + case QUERYHANDLE_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 { + datacatalog.Datacatalog.GetArtifactRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.GetArtifactRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int queryHandleCase_ = 0; + private java.lang.Object queryHandle_; + public QueryHandleCase + getQueryHandleCase() { + return QueryHandleCase.forNumber( + queryHandleCase_); + } + + public Builder clearQueryHandle() { + queryHandleCase_ = 0; + queryHandle_ = null; + onChanged(); + return this; + } + + + private datacatalog.Datacatalog.DatasetID dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; + /** + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + + /** + * string artifact_id = 2; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryHandleCase_ == 2) { + queryHandle_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string artifact_id = 2; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 2) { + queryHandle_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string artifact_id = 2; + */ + public Builder setArtifactId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryHandleCase_ = 2; + queryHandle_ = value; + onChanged(); + return this; + } + /** + * string artifact_id = 2; + */ + public Builder clearArtifactId() { + if (queryHandleCase_ == 2) { + queryHandleCase_ = 0; + queryHandle_ = null; + onChanged(); + } + return this; + } + /** + * string artifact_id = 2; + */ + public Builder setArtifactIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryHandleCase_ = 2; + queryHandle_ = value; + onChanged(); + return this; + } + + /** + * string tag_name = 3; + */ + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryHandleCase_ == 3) { + queryHandle_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tag_name = 3; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 3) { + queryHandle_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tag_name = 3; + */ + public Builder setTagName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryHandleCase_ = 3; + queryHandle_ = value; + onChanged(); + return this; + } + /** + * string tag_name = 3; + */ + public Builder clearTagName() { + if (queryHandleCase_ == 3) { + queryHandleCase_ = 0; + queryHandle_ = null; + onChanged(); + } + return this; + } + /** + * string tag_name = 3; + */ + public Builder setTagNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryHandleCase_ = 3; + queryHandle_ = 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:datacatalog.GetArtifactRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.GetArtifactRequest) + private static final datacatalog.Datacatalog.GetArtifactRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetArtifactRequest(); + } + + public static datacatalog.Datacatalog.GetArtifactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetArtifactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetArtifactRequest(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 datacatalog.Datacatalog.GetArtifactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetArtifactResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.GetArtifactResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.Artifact artifact = 1; + */ + boolean hasArtifact(); + /** + * .datacatalog.Artifact artifact = 1; + */ + datacatalog.Datacatalog.Artifact getArtifact(); + /** + * .datacatalog.Artifact artifact = 1; + */ + datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder(); + } + /** + * Protobuf type {@code datacatalog.GetArtifactResponse} + */ + public static final class GetArtifactResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.GetArtifactResponse) + GetArtifactResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetArtifactResponse.newBuilder() to construct. + private GetArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetArtifactResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetArtifactResponse( + 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: { + datacatalog.Datacatalog.Artifact.Builder subBuilder = null; + if (artifact_ != null) { + subBuilder = artifact_.toBuilder(); + } + artifact_ = input.readMessage(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 datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetArtifactResponse.class, datacatalog.Datacatalog.GetArtifactResponse.Builder.class); + } + + public static final int ARTIFACT_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.Artifact artifact_; + /** + * .datacatalog.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return artifact_ != null; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.Artifact getArtifact() { + return artifact_ == null ? datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public 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 datacatalog.Datacatalog.GetArtifactResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.GetArtifactResponse other = (datacatalog.Datacatalog.GetArtifactResponse) 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 datacatalog.Datacatalog.GetArtifactResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetArtifactResponse 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 datacatalog.Datacatalog.GetArtifactResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetArtifactResponse 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 datacatalog.Datacatalog.GetArtifactResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetArtifactResponse 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(datacatalog.Datacatalog.GetArtifactResponse 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 datacatalog.GetArtifactResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.GetArtifactResponse) + datacatalog.Datacatalog.GetArtifactResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetArtifactResponse.class, datacatalog.Datacatalog.GetArtifactResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.GetArtifactResponse.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 datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetArtifactResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.GetArtifactResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.GetArtifactResponse build() { + datacatalog.Datacatalog.GetArtifactResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetArtifactResponse buildPartial() { + datacatalog.Datacatalog.GetArtifactResponse result = new datacatalog.Datacatalog.GetArtifactResponse(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 datacatalog.Datacatalog.GetArtifactResponse) { + return mergeFrom((datacatalog.Datacatalog.GetArtifactResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.GetArtifactResponse other) { + if (other == datacatalog.Datacatalog.GetArtifactResponse.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 { + datacatalog.Datacatalog.GetArtifactResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.GetArtifactResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.Artifact artifact_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> artifactBuilder_; + /** + * .datacatalog.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return artifactBuilder_ != null || artifact_ != null; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.Artifact getArtifact() { + if (artifactBuilder_ == null) { + return artifact_ == null ? datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } else { + return artifactBuilder_.getMessage(); + } + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact(datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifact_ = value; + onChanged(); + } else { + artifactBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact( + datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactBuilder_ == null) { + artifact_ = builderForValue.build(); + onChanged(); + } else { + artifactBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder mergeArtifact(datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (artifact_ != null) { + artifact_ = + datacatalog.Datacatalog.Artifact.newBuilder(artifact_).mergeFrom(value).buildPartial(); + } else { + artifact_ = value; + } + onChanged(); + } else { + artifactBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder clearArtifact() { + if (artifactBuilder_ == null) { + artifact_ = null; + onChanged(); + } else { + artifact_ = null; + artifactBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.Artifact.Builder getArtifactBuilder() { + + onChanged(); + return getArtifactFieldBuilder().getBuilder(); + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder() { + if (artifactBuilder_ != null) { + return artifactBuilder_.getMessageOrBuilder(); + } else { + return artifact_ == null ? + datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } + } + /** + * .datacatalog.Artifact artifact = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> + getArtifactFieldBuilder() { + if (artifactBuilder_ == null) { + artifactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, 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:datacatalog.GetArtifactResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.GetArtifactResponse) + private static final datacatalog.Datacatalog.GetArtifactResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetArtifactResponse(); + } + + public static datacatalog.Datacatalog.GetArtifactResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetArtifactResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetArtifactResponse(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 datacatalog.Datacatalog.GetArtifactResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateArtifactRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.CreateArtifactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.Artifact artifact = 1; + */ + boolean hasArtifact(); + /** + * .datacatalog.Artifact artifact = 1; + */ + datacatalog.Datacatalog.Artifact getArtifact(); + /** + * .datacatalog.Artifact artifact = 1; + */ + datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder(); + } + /** + * Protobuf type {@code datacatalog.CreateArtifactRequest} + */ + public static final class CreateArtifactRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.CreateArtifactRequest) + CreateArtifactRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateArtifactRequest.newBuilder() to construct. + private CreateArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateArtifactRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateArtifactRequest( + 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: { + datacatalog.Datacatalog.Artifact.Builder subBuilder = null; + if (artifact_ != null) { + subBuilder = artifact_.toBuilder(); + } + artifact_ = input.readMessage(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 datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateArtifactRequest.class, datacatalog.Datacatalog.CreateArtifactRequest.Builder.class); + } + + public static final int ARTIFACT_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.Artifact artifact_; + /** + * .datacatalog.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return artifact_ != null; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.Artifact getArtifact() { + return artifact_ == null ? datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public 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 datacatalog.Datacatalog.CreateArtifactRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.CreateArtifactRequest other = (datacatalog.Datacatalog.CreateArtifactRequest) 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 datacatalog.Datacatalog.CreateArtifactRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateArtifactRequest 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 datacatalog.Datacatalog.CreateArtifactRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateArtifactRequest 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 datacatalog.Datacatalog.CreateArtifactRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateArtifactRequest 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(datacatalog.Datacatalog.CreateArtifactRequest 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 datacatalog.CreateArtifactRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.CreateArtifactRequest) + datacatalog.Datacatalog.CreateArtifactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateArtifactRequest.class, datacatalog.Datacatalog.CreateArtifactRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.CreateArtifactRequest.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 datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateArtifactRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.CreateArtifactRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateArtifactRequest build() { + datacatalog.Datacatalog.CreateArtifactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateArtifactRequest buildPartial() { + datacatalog.Datacatalog.CreateArtifactRequest result = new datacatalog.Datacatalog.CreateArtifactRequest(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 datacatalog.Datacatalog.CreateArtifactRequest) { + return mergeFrom((datacatalog.Datacatalog.CreateArtifactRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.CreateArtifactRequest other) { + if (other == datacatalog.Datacatalog.CreateArtifactRequest.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 { + datacatalog.Datacatalog.CreateArtifactRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.CreateArtifactRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.Artifact artifact_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> artifactBuilder_; + /** + * .datacatalog.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return artifactBuilder_ != null || artifact_ != null; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.Artifact getArtifact() { + if (artifactBuilder_ == null) { + return artifact_ == null ? datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } else { + return artifactBuilder_.getMessage(); + } + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact(datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifact_ = value; + onChanged(); + } else { + artifactBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact( + datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactBuilder_ == null) { + artifact_ = builderForValue.build(); + onChanged(); + } else { + artifactBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder mergeArtifact(datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (artifact_ != null) { + artifact_ = + datacatalog.Datacatalog.Artifact.newBuilder(artifact_).mergeFrom(value).buildPartial(); + } else { + artifact_ = value; + } + onChanged(); + } else { + artifactBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder clearArtifact() { + if (artifactBuilder_ == null) { + artifact_ = null; + onChanged(); + } else { + artifact_ = null; + artifactBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.Artifact.Builder getArtifactBuilder() { + + onChanged(); + return getArtifactFieldBuilder().getBuilder(); + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder() { + if (artifactBuilder_ != null) { + return artifactBuilder_.getMessageOrBuilder(); + } else { + return artifact_ == null ? + datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } + } + /** + * .datacatalog.Artifact artifact = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> + getArtifactFieldBuilder() { + if (artifactBuilder_ == null) { + artifactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, 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:datacatalog.CreateArtifactRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.CreateArtifactRequest) + private static final datacatalog.Datacatalog.CreateArtifactRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.CreateArtifactRequest(); + } + + public static datacatalog.Datacatalog.CreateArtifactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateArtifactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateArtifactRequest(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 datacatalog.Datacatalog.CreateArtifactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateArtifactResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.CreateArtifactResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code datacatalog.CreateArtifactResponse} + */ + public static final class CreateArtifactResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.CreateArtifactResponse) + CreateArtifactResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateArtifactResponse.newBuilder() to construct. + private CreateArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateArtifactResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateArtifactResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + 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 datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateArtifactResponse.class, datacatalog.Datacatalog.CreateArtifactResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 datacatalog.Datacatalog.CreateArtifactResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.CreateArtifactResponse other = (datacatalog.Datacatalog.CreateArtifactResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.CreateArtifactResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datacatalog.CreateArtifactResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.CreateArtifactResponse) + datacatalog.Datacatalog.CreateArtifactResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateArtifactResponse.class, datacatalog.Datacatalog.CreateArtifactResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.CreateArtifactResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateArtifactResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.CreateArtifactResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateArtifactResponse build() { + datacatalog.Datacatalog.CreateArtifactResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateArtifactResponse buildPartial() { + datacatalog.Datacatalog.CreateArtifactResponse result = new datacatalog.Datacatalog.CreateArtifactResponse(this); + 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 datacatalog.Datacatalog.CreateArtifactResponse) { + return mergeFrom((datacatalog.Datacatalog.CreateArtifactResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.CreateArtifactResponse other) { + if (other == datacatalog.Datacatalog.CreateArtifactResponse.getDefaultInstance()) return this; + 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 { + datacatalog.Datacatalog.CreateArtifactResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.CreateArtifactResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:datacatalog.CreateArtifactResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.CreateArtifactResponse) + private static final datacatalog.Datacatalog.CreateArtifactResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.CreateArtifactResponse(); + } + + public static datacatalog.Datacatalog.CreateArtifactResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateArtifactResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateArtifactResponse(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 datacatalog.Datacatalog.CreateArtifactResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AddTagRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.AddTagRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.Tag tag = 1; + */ + boolean hasTag(); + /** + * .datacatalog.Tag tag = 1; + */ + datacatalog.Datacatalog.Tag getTag(); + /** + * .datacatalog.Tag tag = 1; + */ + datacatalog.Datacatalog.TagOrBuilder getTagOrBuilder(); + } + /** + * Protobuf type {@code datacatalog.AddTagRequest} + */ + public static final class AddTagRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.AddTagRequest) + AddTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AddTagRequest.newBuilder() to construct. + private AddTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AddTagRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AddTagRequest( + 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: { + datacatalog.Datacatalog.Tag.Builder subBuilder = null; + if (tag_ != null) { + subBuilder = tag_.toBuilder(); + } + tag_ = input.readMessage(datacatalog.Datacatalog.Tag.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tag_); + tag_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_AddTagRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.AddTagRequest.class, datacatalog.Datacatalog.AddTagRequest.Builder.class); + } + + public static final int TAG_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.Tag tag_; + /** + * .datacatalog.Tag tag = 1; + */ + public boolean hasTag() { + return tag_ != null; + } + /** + * .datacatalog.Tag tag = 1; + */ + public datacatalog.Datacatalog.Tag getTag() { + return tag_ == null ? datacatalog.Datacatalog.Tag.getDefaultInstance() : tag_; + } + /** + * .datacatalog.Tag tag = 1; + */ + public datacatalog.Datacatalog.TagOrBuilder getTagOrBuilder() { + return getTag(); + } + + 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 (tag_ != null) { + output.writeMessage(1, getTag()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tag_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTag()); + } + 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 datacatalog.Datacatalog.AddTagRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.AddTagRequest other = (datacatalog.Datacatalog.AddTagRequest) obj; + + if (hasTag() != other.hasTag()) return false; + if (hasTag()) { + if (!getTag() + .equals(other.getTag())) 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 (hasTag()) { + hash = (37 * hash) + TAG_FIELD_NUMBER; + hash = (53 * hash) + getTag().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.AddTagRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.AddTagRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.AddTagRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.AddTagRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.AddTagRequest 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 datacatalog.Datacatalog.AddTagRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.AddTagRequest 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 datacatalog.Datacatalog.AddTagRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.AddTagRequest 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(datacatalog.Datacatalog.AddTagRequest 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 datacatalog.AddTagRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.AddTagRequest) + datacatalog.Datacatalog.AddTagRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.AddTagRequest.class, datacatalog.Datacatalog.AddTagRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.AddTagRequest.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 (tagBuilder_ == null) { + tag_ = null; + } else { + tag_ = null; + tagBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.AddTagRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.AddTagRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.AddTagRequest build() { + datacatalog.Datacatalog.AddTagRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.AddTagRequest buildPartial() { + datacatalog.Datacatalog.AddTagRequest result = new datacatalog.Datacatalog.AddTagRequest(this); + if (tagBuilder_ == null) { + result.tag_ = tag_; + } else { + result.tag_ = tagBuilder_.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 datacatalog.Datacatalog.AddTagRequest) { + return mergeFrom((datacatalog.Datacatalog.AddTagRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.AddTagRequest other) { + if (other == datacatalog.Datacatalog.AddTagRequest.getDefaultInstance()) return this; + if (other.hasTag()) { + mergeTag(other.getTag()); + } + 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 { + datacatalog.Datacatalog.AddTagRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.AddTagRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.Tag tag_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder> tagBuilder_; + /** + * .datacatalog.Tag tag = 1; + */ + public boolean hasTag() { + return tagBuilder_ != null || tag_ != null; + } + /** + * .datacatalog.Tag tag = 1; + */ + public datacatalog.Datacatalog.Tag getTag() { + if (tagBuilder_ == null) { + return tag_ == null ? datacatalog.Datacatalog.Tag.getDefaultInstance() : tag_; + } else { + return tagBuilder_.getMessage(); + } + } + /** + * .datacatalog.Tag tag = 1; + */ + public Builder setTag(datacatalog.Datacatalog.Tag value) { + if (tagBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tag_ = value; + onChanged(); + } else { + tagBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.Tag tag = 1; + */ + public Builder setTag( + datacatalog.Datacatalog.Tag.Builder builderForValue) { + if (tagBuilder_ == null) { + tag_ = builderForValue.build(); + onChanged(); + } else { + tagBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.Tag tag = 1; + */ + public Builder mergeTag(datacatalog.Datacatalog.Tag value) { + if (tagBuilder_ == null) { + if (tag_ != null) { + tag_ = + datacatalog.Datacatalog.Tag.newBuilder(tag_).mergeFrom(value).buildPartial(); + } else { + tag_ = value; + } + onChanged(); + } else { + tagBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.Tag tag = 1; + */ + public Builder clearTag() { + if (tagBuilder_ == null) { + tag_ = null; + onChanged(); + } else { + tag_ = null; + tagBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.Tag tag = 1; + */ + public datacatalog.Datacatalog.Tag.Builder getTagBuilder() { + + onChanged(); + return getTagFieldBuilder().getBuilder(); + } + /** + * .datacatalog.Tag tag = 1; + */ + public datacatalog.Datacatalog.TagOrBuilder getTagOrBuilder() { + if (tagBuilder_ != null) { + return tagBuilder_.getMessageOrBuilder(); + } else { + return tag_ == null ? + datacatalog.Datacatalog.Tag.getDefaultInstance() : tag_; + } + } + /** + * .datacatalog.Tag tag = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder> + getTagFieldBuilder() { + if (tagBuilder_ == null) { + tagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder>( + getTag(), + getParentForChildren(), + isClean()); + tag_ = null; + } + return tagBuilder_; + } + @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:datacatalog.AddTagRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.AddTagRequest) + private static final datacatalog.Datacatalog.AddTagRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.AddTagRequest(); + } + + public static datacatalog.Datacatalog.AddTagRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddTagRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddTagRequest(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 datacatalog.Datacatalog.AddTagRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AddTagResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.AddTagResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code datacatalog.AddTagResponse} + */ + public static final class AddTagResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.AddTagResponse) + AddTagResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use AddTagResponse.newBuilder() to construct. + private AddTagResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AddTagResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AddTagResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + 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 datacatalog.Datacatalog.internal_static_datacatalog_AddTagResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.AddTagResponse.class, datacatalog.Datacatalog.AddTagResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 datacatalog.Datacatalog.AddTagResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.AddTagResponse other = (datacatalog.Datacatalog.AddTagResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.AddTagResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.AddTagResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.AddTagResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.AddTagResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.AddTagResponse 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 datacatalog.Datacatalog.AddTagResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.AddTagResponse 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 datacatalog.Datacatalog.AddTagResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.AddTagResponse 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(datacatalog.Datacatalog.AddTagResponse 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 datacatalog.AddTagResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.AddTagResponse) + datacatalog.Datacatalog.AddTagResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.AddTagResponse.class, datacatalog.Datacatalog.AddTagResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.AddTagResponse.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.AddTagResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.AddTagResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.AddTagResponse build() { + datacatalog.Datacatalog.AddTagResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.AddTagResponse buildPartial() { + datacatalog.Datacatalog.AddTagResponse result = new datacatalog.Datacatalog.AddTagResponse(this); + 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 datacatalog.Datacatalog.AddTagResponse) { + return mergeFrom((datacatalog.Datacatalog.AddTagResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.AddTagResponse other) { + if (other == datacatalog.Datacatalog.AddTagResponse.getDefaultInstance()) return this; + 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 { + datacatalog.Datacatalog.AddTagResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.AddTagResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:datacatalog.AddTagResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.AddTagResponse) + private static final datacatalog.Datacatalog.AddTagResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.AddTagResponse(); + } + + public static datacatalog.Datacatalog.AddTagResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddTagResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddTagResponse(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 datacatalog.Datacatalog.AddTagResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListArtifactsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ListArtifactsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.DatasetID dataset = 1; + */ + boolean hasDataset(); + /** + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetID getDataset(); + /** + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); + + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + boolean hasFilter(); + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + datacatalog.Datacatalog.FilterExpression getFilter(); + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder(); + + /** + *
+     * Pagination options to get a page of artifacts
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + boolean hasPagination(); + /** + *
+     * Pagination options to get a page of artifacts
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + datacatalog.Datacatalog.PaginationOptions getPagination(); + /** + *
+     * Pagination options to get a page of artifacts
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder(); + } + /** + *
+   * List the artifacts that belong to the Dataset
+   * 
+ * + * Protobuf type {@code datacatalog.ListArtifactsRequest} + */ + public static final class ListArtifactsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ListArtifactsRequest) + ListArtifactsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListArtifactsRequest.newBuilder() to construct. + private ListArtifactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListArtifactsRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListArtifactsRequest( + 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: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + datacatalog.Datacatalog.FilterExpression.Builder subBuilder = null; + if (filter_ != null) { + subBuilder = filter_.toBuilder(); + } + filter_ = input.readMessage(datacatalog.Datacatalog.FilterExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filter_); + filter_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + datacatalog.Datacatalog.PaginationOptions.Builder subBuilder = null; + if (pagination_ != null) { + subBuilder = pagination_.toBuilder(); + } + pagination_ = input.readMessage(datacatalog.Datacatalog.PaginationOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pagination_); + pagination_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListArtifactsRequest.class, datacatalog.Datacatalog.ListArtifactsRequest.Builder.class); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.DatasetID dataset_; + /** + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + public static final int FILTER_FIELD_NUMBER = 2; + private datacatalog.Datacatalog.FilterExpression filter_; + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public boolean hasFilter() { + return filter_ != null; + } + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public datacatalog.Datacatalog.FilterExpression getFilter() { + return filter_ == null ? datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; + } + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder() { + return getFilter(); + } + + public static final int PAGINATION_FIELD_NUMBER = 3; + private datacatalog.Datacatalog.PaginationOptions pagination_; + /** + *
+     * Pagination options to get a page of artifacts
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public boolean hasPagination() { + return pagination_ != null; + } + /** + *
+     * Pagination options to get a page of artifacts
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public datacatalog.Datacatalog.PaginationOptions getPagination() { + return pagination_ == null ? datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; + } + /** + *
+     * Pagination options to get a page of artifacts
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder() { + return getPagination(); + } + + 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 (dataset_ != null) { + output.writeMessage(1, getDataset()); + } + if (filter_ != null) { + output.writeMessage(2, getFilter()); + } + if (pagination_ != null) { + output.writeMessage(3, getPagination()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDataset()); + } + if (filter_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFilter()); + } + if (pagination_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPagination()); + } + 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 datacatalog.Datacatalog.ListArtifactsRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ListArtifactsRequest other = (datacatalog.Datacatalog.ListArtifactsRequest) obj; + + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) return false; + } + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter() + .equals(other.getFilter())) return false; + } + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) 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 (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListArtifactsRequest 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 datacatalog.Datacatalog.ListArtifactsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListArtifactsRequest 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 datacatalog.Datacatalog.ListArtifactsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListArtifactsRequest 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(datacatalog.Datacatalog.ListArtifactsRequest 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; + } + /** + *
+     * List the artifacts that belong to the Dataset
+     * 
+ * + * Protobuf type {@code datacatalog.ListArtifactsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ListArtifactsRequest) + datacatalog.Datacatalog.ListArtifactsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListArtifactsRequest.class, datacatalog.Datacatalog.ListArtifactsRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ListArtifactsRequest.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 (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + if (filterBuilder_ == null) { + filter_ = null; + } else { + filter_ = null; + filterBuilder_ = null; + } + if (paginationBuilder_ == null) { + pagination_ = null; + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListArtifactsRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.ListArtifactsRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ListArtifactsRequest build() { + datacatalog.Datacatalog.ListArtifactsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListArtifactsRequest buildPartial() { + datacatalog.Datacatalog.ListArtifactsRequest result = new datacatalog.Datacatalog.ListArtifactsRequest(this); + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.build(); + } + if (filterBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = filterBuilder_.build(); + } + if (paginationBuilder_ == null) { + result.pagination_ = pagination_; + } else { + result.pagination_ = paginationBuilder_.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 datacatalog.Datacatalog.ListArtifactsRequest) { + return mergeFrom((datacatalog.Datacatalog.ListArtifactsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ListArtifactsRequest other) { + if (other == datacatalog.Datacatalog.ListArtifactsRequest.getDefaultInstance()) return this; + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + 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 { + datacatalog.Datacatalog.ListArtifactsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ListArtifactsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.DatasetID dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; + /** + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + + private datacatalog.Datacatalog.FilterExpression filter_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder> filterBuilder_; + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public boolean hasFilter() { + return filterBuilder_ != null || filter_ != null; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public datacatalog.Datacatalog.FilterExpression getFilter() { + if (filterBuilder_ == null) { + return filter_ == null ? datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public Builder setFilter(datacatalog.Datacatalog.FilterExpression value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + filterBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public Builder setFilter( + datacatalog.Datacatalog.FilterExpression.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public Builder mergeFilter(datacatalog.Datacatalog.FilterExpression value) { + if (filterBuilder_ == null) { + if (filter_ != null) { + filter_ = + datacatalog.Datacatalog.FilterExpression.newBuilder(filter_).mergeFrom(value).buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + filterBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + filter_ = null; + onChanged(); + } else { + filter_ = null; + filterBuilder_ = null; + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public datacatalog.Datacatalog.FilterExpression.Builder getFilterBuilder() { + + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null ? + datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; + } + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder>( + getFilter(), + getParentForChildren(), + isClean()); + filter_ = null; + } + return filterBuilder_; + } + + private datacatalog.Datacatalog.PaginationOptions pagination_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder> paginationBuilder_; + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public boolean hasPagination() { + return paginationBuilder_ != null || pagination_ != null; + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public datacatalog.Datacatalog.PaginationOptions getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public Builder setPagination(datacatalog.Datacatalog.PaginationOptions value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + onChanged(); + } else { + paginationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public Builder setPagination( + datacatalog.Datacatalog.PaginationOptions.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + onChanged(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public Builder mergePagination(datacatalog.Datacatalog.PaginationOptions value) { + if (paginationBuilder_ == null) { + if (pagination_ != null) { + pagination_ = + datacatalog.Datacatalog.PaginationOptions.newBuilder(pagination_).mergeFrom(value).buildPartial(); + } else { + pagination_ = value; + } + onChanged(); + } else { + paginationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public Builder clearPagination() { + if (paginationBuilder_ == null) { + pagination_ = null; + onChanged(); + } else { + pagination_ = null; + paginationBuilder_ = null; + } + + return this; + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public datacatalog.Datacatalog.PaginationOptions.Builder getPaginationBuilder() { + + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; + } + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + @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:datacatalog.ListArtifactsRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ListArtifactsRequest) + private static final datacatalog.Datacatalog.ListArtifactsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ListArtifactsRequest(); + } + + public static datacatalog.Datacatalog.ListArtifactsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListArtifactsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListArtifactsRequest(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 datacatalog.Datacatalog.ListArtifactsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListArtifactsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ListArtifactsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + java.util.List + getArtifactsList(); + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + datacatalog.Datacatalog.Artifact getArtifacts(int index); + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + int getArtifactsCount(); + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + java.util.List + getArtifactsOrBuilderList(); + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + datacatalog.Datacatalog.ArtifactOrBuilder getArtifactsOrBuilder( + int index); + + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + java.lang.String getNextToken(); + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + com.google.protobuf.ByteString + getNextTokenBytes(); + } + /** + *
+   * Response to list artifacts
+   * 
+ * + * Protobuf type {@code datacatalog.ListArtifactsResponse} + */ + public static final class ListArtifactsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ListArtifactsResponse) + ListArtifactsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListArtifactsResponse.newBuilder() to construct. + private ListArtifactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListArtifactsResponse() { + artifacts_ = java.util.Collections.emptyList(); + nextToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListArtifactsResponse( + 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)) { + artifacts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + artifacts_.add( + input.readMessage(datacatalog.Datacatalog.Artifact.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextToken_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + artifacts_ = java.util.Collections.unmodifiableList(artifacts_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListArtifactsResponse.class, datacatalog.Datacatalog.ListArtifactsResponse.Builder.class); + } + + private int bitField0_; + public static final int ARTIFACTS_FIELD_NUMBER = 1; + private java.util.List artifacts_; + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public java.util.List getArtifactsList() { + return artifacts_; + } + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public java.util.List + getArtifactsOrBuilderList() { + return artifacts_; + } + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public int getArtifactsCount() { + return artifacts_.size(); + } + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public datacatalog.Datacatalog.Artifact getArtifacts(int index) { + return artifacts_.get(index); + } + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactsOrBuilder( + int index) { + return artifacts_.get(index); + } + + public static final int NEXT_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextToken_; + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + public java.lang.String getNextToken() { + java.lang.Object ref = nextToken_; + 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(); + nextToken_ = s; + return s; + } + } + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + public com.google.protobuf.ByteString + getNextTokenBytes() { + java.lang.Object ref = nextToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextToken_ = 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 { + for (int i = 0; i < artifacts_.size(); i++) { + output.writeMessage(1, artifacts_.get(i)); + } + if (!getNextTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < artifacts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, artifacts_.get(i)); + } + if (!getNextTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextToken_); + } + 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 datacatalog.Datacatalog.ListArtifactsResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ListArtifactsResponse other = (datacatalog.Datacatalog.ListArtifactsResponse) obj; + + if (!getArtifactsList() + .equals(other.getArtifactsList())) return false; + if (!getNextToken() + .equals(other.getNextToken())) 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 (getArtifactsCount() > 0) { + hash = (37 * hash) + ARTIFACTS_FIELD_NUMBER; + hash = (53 * hash) + getArtifactsList().hashCode(); + } + hash = (37 * hash) + NEXT_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListArtifactsResponse 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 datacatalog.Datacatalog.ListArtifactsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListArtifactsResponse 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 datacatalog.Datacatalog.ListArtifactsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListArtifactsResponse 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(datacatalog.Datacatalog.ListArtifactsResponse 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; + } + /** + *
+     * Response to list artifacts
+     * 
+ * + * Protobuf type {@code datacatalog.ListArtifactsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ListArtifactsResponse) + datacatalog.Datacatalog.ListArtifactsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListArtifactsResponse.class, datacatalog.Datacatalog.ListArtifactsResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ListArtifactsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getArtifactsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (artifactsBuilder_ == null) { + artifacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + artifactsBuilder_.clear(); + } + nextToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListArtifactsResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.ListArtifactsResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ListArtifactsResponse build() { + datacatalog.Datacatalog.ListArtifactsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListArtifactsResponse buildPartial() { + datacatalog.Datacatalog.ListArtifactsResponse result = new datacatalog.Datacatalog.ListArtifactsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (artifactsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + artifacts_ = java.util.Collections.unmodifiableList(artifacts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.artifacts_ = artifacts_; + } else { + result.artifacts_ = artifactsBuilder_.build(); + } + result.nextToken_ = nextToken_; + 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 datacatalog.Datacatalog.ListArtifactsResponse) { + return mergeFrom((datacatalog.Datacatalog.ListArtifactsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ListArtifactsResponse other) { + if (other == datacatalog.Datacatalog.ListArtifactsResponse.getDefaultInstance()) return this; + if (artifactsBuilder_ == null) { + if (!other.artifacts_.isEmpty()) { + if (artifacts_.isEmpty()) { + artifacts_ = other.artifacts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureArtifactsIsMutable(); + artifacts_.addAll(other.artifacts_); + } + onChanged(); + } + } else { + if (!other.artifacts_.isEmpty()) { + if (artifactsBuilder_.isEmpty()) { + artifactsBuilder_.dispose(); + artifactsBuilder_ = null; + artifacts_ = other.artifacts_; + bitField0_ = (bitField0_ & ~0x00000001); + artifactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getArtifactsFieldBuilder() : null; + } else { + artifactsBuilder_.addAllMessages(other.artifacts_); + } + } + } + if (!other.getNextToken().isEmpty()) { + nextToken_ = other.nextToken_; + 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 { + datacatalog.Datacatalog.ListArtifactsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ListArtifactsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List artifacts_ = + java.util.Collections.emptyList(); + private void ensureArtifactsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + artifacts_ = new java.util.ArrayList(artifacts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> artifactsBuilder_; + + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public java.util.List getArtifactsList() { + if (artifactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(artifacts_); + } else { + return artifactsBuilder_.getMessageList(); + } + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public int getArtifactsCount() { + if (artifactsBuilder_ == null) { + return artifacts_.size(); + } else { + return artifactsBuilder_.getCount(); + } + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public datacatalog.Datacatalog.Artifact getArtifacts(int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); + } else { + return artifactsBuilder_.getMessage(index); + } + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder setArtifacts( + int index, datacatalog.Datacatalog.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.set(index, value); + onChanged(); + } else { + artifactsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder setArtifacts( + int index, datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.set(index, builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder addArtifacts(datacatalog.Datacatalog.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.add(value); + onChanged(); + } else { + artifactsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder addArtifacts( + int index, datacatalog.Datacatalog.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.add(index, value); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder addArtifacts( + datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder addArtifacts( + int index, datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(index, builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder addAllArtifacts( + java.lang.Iterable values) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, artifacts_); + onChanged(); + } else { + artifactsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder clearArtifacts() { + if (artifactsBuilder_ == null) { + artifacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + artifactsBuilder_.clear(); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder removeArtifacts(int index) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.remove(index); + onChanged(); + } else { + artifactsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public datacatalog.Datacatalog.Artifact.Builder getArtifactsBuilder( + int index) { + return getArtifactsFieldBuilder().getBuilder(index); + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactsOrBuilder( + int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); } else { + return artifactsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public java.util.List + getArtifactsOrBuilderList() { + if (artifactsBuilder_ != null) { + return artifactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(artifacts_); + } + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public datacatalog.Datacatalog.Artifact.Builder addArtifactsBuilder() { + return getArtifactsFieldBuilder().addBuilder( + datacatalog.Datacatalog.Artifact.getDefaultInstance()); + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public datacatalog.Datacatalog.Artifact.Builder addArtifactsBuilder( + int index) { + return getArtifactsFieldBuilder().addBuilder( + index, datacatalog.Datacatalog.Artifact.getDefaultInstance()); + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public java.util.List + getArtifactsBuilderList() { + return getArtifactsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> + getArtifactsFieldBuilder() { + if (artifactsBuilder_ == null) { + artifactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder>( + artifacts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + artifacts_ = null; + } + return artifactsBuilder_; + } + + private java.lang.Object nextToken_ = ""; + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public java.lang.String getNextToken() { + java.lang.Object ref = nextToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public com.google.protobuf.ByteString + getNextTokenBytes() { + java.lang.Object ref = nextToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public Builder setNextToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextToken_ = value; + onChanged(); + return this; + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public Builder clearNextToken() { + + nextToken_ = getDefaultInstance().getNextToken(); + onChanged(); + return this; + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public Builder setNextTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextToken_ = 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:datacatalog.ListArtifactsResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ListArtifactsResponse) + private static final datacatalog.Datacatalog.ListArtifactsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ListArtifactsResponse(); + } + + public static datacatalog.Datacatalog.ListArtifactsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListArtifactsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListArtifactsResponse(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 datacatalog.Datacatalog.ListArtifactsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListDatasetsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ListDatasetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + boolean hasFilter(); + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + datacatalog.Datacatalog.FilterExpression getFilter(); + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder(); + + /** + *
+     * Pagination options to get a page of datasets
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + boolean hasPagination(); + /** + *
+     * Pagination options to get a page of datasets
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + datacatalog.Datacatalog.PaginationOptions getPagination(); + /** + *
+     * Pagination options to get a page of datasets
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder(); + } + /** + *
+   * List the datasets for the given query
+   * 
+ * + * Protobuf type {@code datacatalog.ListDatasetsRequest} + */ + public static final class ListDatasetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ListDatasetsRequest) + ListDatasetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDatasetsRequest.newBuilder() to construct. + private ListDatasetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListDatasetsRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListDatasetsRequest( + 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: { + datacatalog.Datacatalog.FilterExpression.Builder subBuilder = null; + if (filter_ != null) { + subBuilder = filter_.toBuilder(); + } + filter_ = input.readMessage(datacatalog.Datacatalog.FilterExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filter_); + filter_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + datacatalog.Datacatalog.PaginationOptions.Builder subBuilder = null; + if (pagination_ != null) { + subBuilder = pagination_.toBuilder(); + } + pagination_ = input.readMessage(datacatalog.Datacatalog.PaginationOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pagination_); + pagination_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListDatasetsRequest.class, datacatalog.Datacatalog.ListDatasetsRequest.Builder.class); + } + + public static final int FILTER_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.FilterExpression filter_; + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public boolean hasFilter() { + return filter_ != null; + } + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public datacatalog.Datacatalog.FilterExpression getFilter() { + return filter_ == null ? datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; + } + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder() { + return getFilter(); + } + + public static final int PAGINATION_FIELD_NUMBER = 2; + private datacatalog.Datacatalog.PaginationOptions pagination_; + /** + *
+     * Pagination options to get a page of datasets
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public boolean hasPagination() { + return pagination_ != null; + } + /** + *
+     * Pagination options to get a page of datasets
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public datacatalog.Datacatalog.PaginationOptions getPagination() { + return pagination_ == null ? datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; + } + /** + *
+     * Pagination options to get a page of datasets
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder() { + return getPagination(); + } + + 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 (filter_ != null) { + output.writeMessage(1, getFilter()); + } + if (pagination_ != null) { + output.writeMessage(2, getPagination()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filter_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFilter()); + } + if (pagination_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPagination()); + } + 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 datacatalog.Datacatalog.ListDatasetsRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ListDatasetsRequest other = (datacatalog.Datacatalog.ListDatasetsRequest) obj; + + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter() + .equals(other.getFilter())) return false; + } + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) 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 (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListDatasetsRequest 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 datacatalog.Datacatalog.ListDatasetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListDatasetsRequest 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 datacatalog.Datacatalog.ListDatasetsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListDatasetsRequest 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(datacatalog.Datacatalog.ListDatasetsRequest 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; + } + /** + *
+     * List the datasets for the given query
+     * 
+ * + * Protobuf type {@code datacatalog.ListDatasetsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ListDatasetsRequest) + datacatalog.Datacatalog.ListDatasetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListDatasetsRequest.class, datacatalog.Datacatalog.ListDatasetsRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ListDatasetsRequest.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 (filterBuilder_ == null) { + filter_ = null; + } else { + filter_ = null; + filterBuilder_ = null; + } + if (paginationBuilder_ == null) { + pagination_ = null; + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListDatasetsRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.ListDatasetsRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ListDatasetsRequest build() { + datacatalog.Datacatalog.ListDatasetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListDatasetsRequest buildPartial() { + datacatalog.Datacatalog.ListDatasetsRequest result = new datacatalog.Datacatalog.ListDatasetsRequest(this); + if (filterBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = filterBuilder_.build(); + } + if (paginationBuilder_ == null) { + result.pagination_ = pagination_; + } else { + result.pagination_ = paginationBuilder_.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 datacatalog.Datacatalog.ListDatasetsRequest) { + return mergeFrom((datacatalog.Datacatalog.ListDatasetsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ListDatasetsRequest other) { + if (other == datacatalog.Datacatalog.ListDatasetsRequest.getDefaultInstance()) return this; + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + 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 { + datacatalog.Datacatalog.ListDatasetsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ListDatasetsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.FilterExpression filter_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder> filterBuilder_; + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public boolean hasFilter() { + return filterBuilder_ != null || filter_ != null; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public datacatalog.Datacatalog.FilterExpression getFilter() { + if (filterBuilder_ == null) { + return filter_ == null ? datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public Builder setFilter(datacatalog.Datacatalog.FilterExpression value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + filterBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public Builder setFilter( + datacatalog.Datacatalog.FilterExpression.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public Builder mergeFilter(datacatalog.Datacatalog.FilterExpression value) { + if (filterBuilder_ == null) { + if (filter_ != null) { + filter_ = + datacatalog.Datacatalog.FilterExpression.newBuilder(filter_).mergeFrom(value).buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + filterBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + filter_ = null; + onChanged(); + } else { + filter_ = null; + filterBuilder_ = null; + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public datacatalog.Datacatalog.FilterExpression.Builder getFilterBuilder() { + + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null ? + datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; + } + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder>( + getFilter(), + getParentForChildren(), + isClean()); + filter_ = null; + } + return filterBuilder_; + } + + private datacatalog.Datacatalog.PaginationOptions pagination_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder> paginationBuilder_; + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public boolean hasPagination() { + return paginationBuilder_ != null || pagination_ != null; + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public datacatalog.Datacatalog.PaginationOptions getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public Builder setPagination(datacatalog.Datacatalog.PaginationOptions value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + onChanged(); + } else { + paginationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public Builder setPagination( + datacatalog.Datacatalog.PaginationOptions.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + onChanged(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public Builder mergePagination(datacatalog.Datacatalog.PaginationOptions value) { + if (paginationBuilder_ == null) { + if (pagination_ != null) { + pagination_ = + datacatalog.Datacatalog.PaginationOptions.newBuilder(pagination_).mergeFrom(value).buildPartial(); + } else { + pagination_ = value; + } + onChanged(); + } else { + paginationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public Builder clearPagination() { + if (paginationBuilder_ == null) { + pagination_ = null; + onChanged(); + } else { + pagination_ = null; + paginationBuilder_ = null; + } + + return this; + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public datacatalog.Datacatalog.PaginationOptions.Builder getPaginationBuilder() { + + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; + } + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + @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:datacatalog.ListDatasetsRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ListDatasetsRequest) + private static final datacatalog.Datacatalog.ListDatasetsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ListDatasetsRequest(); + } + + public static datacatalog.Datacatalog.ListDatasetsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDatasetsRequest(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 datacatalog.Datacatalog.ListDatasetsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListDatasetsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ListDatasetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + java.util.List + getDatasetsList(); + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + datacatalog.Datacatalog.Dataset getDatasets(int index); + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + int getDatasetsCount(); + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + java.util.List + getDatasetsOrBuilderList(); + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + datacatalog.Datacatalog.DatasetOrBuilder getDatasetsOrBuilder( + int index); + + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + java.lang.String getNextToken(); + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + com.google.protobuf.ByteString + getNextTokenBytes(); + } + /** + *
+   * List the datasets response with token for next pagination
+   * 
+ * + * Protobuf type {@code datacatalog.ListDatasetsResponse} + */ + public static final class ListDatasetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ListDatasetsResponse) + ListDatasetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDatasetsResponse.newBuilder() to construct. + private ListDatasetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListDatasetsResponse() { + datasets_ = java.util.Collections.emptyList(); + nextToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListDatasetsResponse( + 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)) { + datasets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + datasets_.add( + input.readMessage(datacatalog.Datacatalog.Dataset.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextToken_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + datasets_ = java.util.Collections.unmodifiableList(datasets_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListDatasetsResponse.class, datacatalog.Datacatalog.ListDatasetsResponse.Builder.class); + } + + private int bitField0_; + public static final int DATASETS_FIELD_NUMBER = 1; + private java.util.List datasets_; + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public java.util.List getDatasetsList() { + return datasets_; + } + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public java.util.List + getDatasetsOrBuilderList() { + return datasets_; + } + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public int getDatasetsCount() { + return datasets_.size(); + } + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public datacatalog.Datacatalog.Dataset getDatasets(int index) { + return datasets_.get(index); + } + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public datacatalog.Datacatalog.DatasetOrBuilder getDatasetsOrBuilder( + int index) { + return datasets_.get(index); + } + + public static final int NEXT_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextToken_; + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + public java.lang.String getNextToken() { + java.lang.Object ref = nextToken_; + 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(); + nextToken_ = s; + return s; + } + } + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + public com.google.protobuf.ByteString + getNextTokenBytes() { + java.lang.Object ref = nextToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextToken_ = 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 { + for (int i = 0; i < datasets_.size(); i++) { + output.writeMessage(1, datasets_.get(i)); + } + if (!getNextTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < datasets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, datasets_.get(i)); + } + if (!getNextTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextToken_); + } + 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 datacatalog.Datacatalog.ListDatasetsResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ListDatasetsResponse other = (datacatalog.Datacatalog.ListDatasetsResponse) obj; + + if (!getDatasetsList() + .equals(other.getDatasetsList())) return false; + if (!getNextToken() + .equals(other.getNextToken())) 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 (getDatasetsCount() > 0) { + hash = (37 * hash) + DATASETS_FIELD_NUMBER; + hash = (53 * hash) + getDatasetsList().hashCode(); + } + hash = (37 * hash) + NEXT_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListDatasetsResponse 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 datacatalog.Datacatalog.ListDatasetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListDatasetsResponse 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 datacatalog.Datacatalog.ListDatasetsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListDatasetsResponse 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(datacatalog.Datacatalog.ListDatasetsResponse 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; + } + /** + *
+     * List the datasets response with token for next pagination
+     * 
+ * + * Protobuf type {@code datacatalog.ListDatasetsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ListDatasetsResponse) + datacatalog.Datacatalog.ListDatasetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListDatasetsResponse.class, datacatalog.Datacatalog.ListDatasetsResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ListDatasetsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDatasetsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetsBuilder_ == null) { + datasets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + datasetsBuilder_.clear(); + } + nextToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListDatasetsResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.ListDatasetsResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ListDatasetsResponse build() { + datacatalog.Datacatalog.ListDatasetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListDatasetsResponse buildPartial() { + datacatalog.Datacatalog.ListDatasetsResponse result = new datacatalog.Datacatalog.ListDatasetsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (datasetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + datasets_ = java.util.Collections.unmodifiableList(datasets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.datasets_ = datasets_; + } else { + result.datasets_ = datasetsBuilder_.build(); + } + result.nextToken_ = nextToken_; + 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 datacatalog.Datacatalog.ListDatasetsResponse) { + return mergeFrom((datacatalog.Datacatalog.ListDatasetsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ListDatasetsResponse other) { + if (other == datacatalog.Datacatalog.ListDatasetsResponse.getDefaultInstance()) return this; + if (datasetsBuilder_ == null) { + if (!other.datasets_.isEmpty()) { + if (datasets_.isEmpty()) { + datasets_ = other.datasets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDatasetsIsMutable(); + datasets_.addAll(other.datasets_); + } + onChanged(); + } + } else { + if (!other.datasets_.isEmpty()) { + if (datasetsBuilder_.isEmpty()) { + datasetsBuilder_.dispose(); + datasetsBuilder_ = null; + datasets_ = other.datasets_; + bitField0_ = (bitField0_ & ~0x00000001); + datasetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDatasetsFieldBuilder() : null; + } else { + datasetsBuilder_.addAllMessages(other.datasets_); + } + } + } + if (!other.getNextToken().isEmpty()) { + nextToken_ = other.nextToken_; + 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 { + datacatalog.Datacatalog.ListDatasetsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ListDatasetsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List datasets_ = + java.util.Collections.emptyList(); + private void ensureDatasetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + datasets_ = new java.util.ArrayList(datasets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> datasetsBuilder_; + + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public java.util.List getDatasetsList() { + if (datasetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(datasets_); + } else { + return datasetsBuilder_.getMessageList(); + } + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public int getDatasetsCount() { + if (datasetsBuilder_ == null) { + return datasets_.size(); + } else { + return datasetsBuilder_.getCount(); + } + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public datacatalog.Datacatalog.Dataset getDatasets(int index) { + if (datasetsBuilder_ == null) { + return datasets_.get(index); + } else { + return datasetsBuilder_.getMessage(index); + } + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder setDatasets( + int index, datacatalog.Datacatalog.Dataset value) { + if (datasetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetsIsMutable(); + datasets_.set(index, value); + onChanged(); + } else { + datasetsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder setDatasets( + int index, datacatalog.Datacatalog.Dataset.Builder builderForValue) { + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + datasets_.set(index, builderForValue.build()); + onChanged(); + } else { + datasetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder addDatasets(datacatalog.Datacatalog.Dataset value) { + if (datasetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetsIsMutable(); + datasets_.add(value); + onChanged(); + } else { + datasetsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder addDatasets( + int index, datacatalog.Datacatalog.Dataset value) { + if (datasetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetsIsMutable(); + datasets_.add(index, value); + onChanged(); + } else { + datasetsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder addDatasets( + datacatalog.Datacatalog.Dataset.Builder builderForValue) { + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + datasets_.add(builderForValue.build()); + onChanged(); + } else { + datasetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder addDatasets( + int index, datacatalog.Datacatalog.Dataset.Builder builderForValue) { + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + datasets_.add(index, builderForValue.build()); + onChanged(); + } else { + datasetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder addAllDatasets( + java.lang.Iterable values) { + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, datasets_); + onChanged(); + } else { + datasetsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder clearDatasets() { + if (datasetsBuilder_ == null) { + datasets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + datasetsBuilder_.clear(); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder removeDatasets(int index) { + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + datasets_.remove(index); + onChanged(); + } else { + datasetsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public datacatalog.Datacatalog.Dataset.Builder getDatasetsBuilder( + int index) { + return getDatasetsFieldBuilder().getBuilder(index); + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public datacatalog.Datacatalog.DatasetOrBuilder getDatasetsOrBuilder( + int index) { + if (datasetsBuilder_ == null) { + return datasets_.get(index); } else { + return datasetsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public java.util.List + getDatasetsOrBuilderList() { + if (datasetsBuilder_ != null) { + return datasetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(datasets_); + } + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public datacatalog.Datacatalog.Dataset.Builder addDatasetsBuilder() { + return getDatasetsFieldBuilder().addBuilder( + datacatalog.Datacatalog.Dataset.getDefaultInstance()); + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public datacatalog.Datacatalog.Dataset.Builder addDatasetsBuilder( + int index) { + return getDatasetsFieldBuilder().addBuilder( + index, datacatalog.Datacatalog.Dataset.getDefaultInstance()); + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public java.util.List + getDatasetsBuilderList() { + return getDatasetsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> + getDatasetsFieldBuilder() { + if (datasetsBuilder_ == null) { + datasetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder>( + datasets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + datasets_ = null; + } + return datasetsBuilder_; + } + + private java.lang.Object nextToken_ = ""; + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public java.lang.String getNextToken() { + java.lang.Object ref = nextToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public com.google.protobuf.ByteString + getNextTokenBytes() { + java.lang.Object ref = nextToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public Builder setNextToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextToken_ = value; + onChanged(); + return this; + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public Builder clearNextToken() { + + nextToken_ = getDefaultInstance().getNextToken(); + onChanged(); + return this; + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public Builder setNextTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextToken_ = 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:datacatalog.ListDatasetsResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ListDatasetsResponse) + private static final datacatalog.Datacatalog.ListDatasetsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ListDatasetsResponse(); + } + + public static datacatalog.Datacatalog.ListDatasetsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDatasetsResponse(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 datacatalog.Datacatalog.ListDatasetsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DatasetOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.Dataset) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.DatasetID id = 1; + */ + boolean hasId(); + /** + * .datacatalog.DatasetID id = 1; + */ + datacatalog.Datacatalog.DatasetID getId(); + /** + * .datacatalog.DatasetID id = 1; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getIdOrBuilder(); + + /** + * .datacatalog.Metadata metadata = 2; + */ + boolean hasMetadata(); + /** + * .datacatalog.Metadata metadata = 2; + */ + datacatalog.Datacatalog.Metadata getMetadata(); + /** + * .datacatalog.Metadata metadata = 2; + */ + datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder(); + + /** + * repeated string partitionKeys = 3; + */ + java.util.List + getPartitionKeysList(); + /** + * repeated string partitionKeys = 3; + */ + int getPartitionKeysCount(); + /** + * repeated string partitionKeys = 3; + */ + java.lang.String getPartitionKeys(int index); + /** + * repeated string partitionKeys = 3; + */ + com.google.protobuf.ByteString + getPartitionKeysBytes(int index); + } + /** + * Protobuf type {@code datacatalog.Dataset} + */ + public static final class Dataset extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.Dataset) + DatasetOrBuilder { + private static final long serialVersionUID = 0L; + // Use Dataset.newBuilder() to construct. + private Dataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Dataset() { + partitionKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Dataset( + 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: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + datacatalog.Datacatalog.Metadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(datacatalog.Datacatalog.Metadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + partitionKeys_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + partitionKeys_.add(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 { + if (((mutable_bitField0_ & 0x00000004) != 0)) { + partitionKeys_ = partitionKeys_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Dataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Dataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Dataset.class, datacatalog.Datacatalog.Dataset.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.DatasetID id_; + /** + * .datacatalog.DatasetID id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .datacatalog.DatasetID id = 1; + */ + public datacatalog.Datacatalog.DatasetID getId() { + return id_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : id_; + } + /** + * .datacatalog.DatasetID id = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int METADATA_FIELD_NUMBER = 2; + private datacatalog.Datacatalog.Metadata metadata_; + /** + * .datacatalog.Metadata metadata = 2; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public datacatalog.Datacatalog.Metadata getMetadata() { + return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int PARTITIONKEYS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList partitionKeys_; + /** + * repeated string partitionKeys = 3; + */ + public com.google.protobuf.ProtocolStringList + getPartitionKeysList() { + return partitionKeys_; + } + /** + * repeated string partitionKeys = 3; + */ + public int getPartitionKeysCount() { + return partitionKeys_.size(); + } + /** + * repeated string partitionKeys = 3; + */ + public java.lang.String getPartitionKeys(int index) { + return partitionKeys_.get(index); + } + /** + * repeated string partitionKeys = 3; + */ + public com.google.protobuf.ByteString + getPartitionKeysBytes(int index) { + return partitionKeys_.getByteString(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 (id_ != null) { + output.writeMessage(1, getId()); + } + if (metadata_ != null) { + output.writeMessage(2, getMetadata()); + } + for (int i = 0; i < partitionKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, partitionKeys_.getRaw(i)); + } + 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()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); + } + { + int dataSize = 0; + for (int i = 0; i < partitionKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(partitionKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getPartitionKeysList().size(); + } + 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 datacatalog.Datacatalog.Dataset)) { + return super.equals(obj); + } + datacatalog.Datacatalog.Dataset other = (datacatalog.Datacatalog.Dataset) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getPartitionKeysList() + .equals(other.getPartitionKeysList())) 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(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getPartitionKeysCount() > 0) { + hash = (37 * hash) + PARTITIONKEYS_FIELD_NUMBER; + hash = (53 * hash) + getPartitionKeysList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.Dataset parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Dataset parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Dataset parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Dataset parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Dataset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Dataset parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Dataset parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Dataset 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 datacatalog.Datacatalog.Dataset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Dataset 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 datacatalog.Datacatalog.Dataset parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Dataset 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(datacatalog.Datacatalog.Dataset 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 datacatalog.Dataset} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.Dataset) + datacatalog.Datacatalog.DatasetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Dataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Dataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Dataset.class, datacatalog.Datacatalog.Dataset.Builder.class); + } + + // Construct using datacatalog.Datacatalog.Dataset.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; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + partitionKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_Dataset_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.Dataset getDefaultInstanceForType() { + return datacatalog.Datacatalog.Dataset.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.Dataset build() { + datacatalog.Datacatalog.Dataset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.Dataset buildPartial() { + datacatalog.Datacatalog.Dataset result = new datacatalog.Datacatalog.Dataset(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + partitionKeys_ = partitionKeys_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.partitionKeys_ = partitionKeys_; + 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 datacatalog.Datacatalog.Dataset) { + return mergeFrom((datacatalog.Datacatalog.Dataset)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.Dataset other) { + if (other == datacatalog.Datacatalog.Dataset.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.partitionKeys_.isEmpty()) { + if (partitionKeys_.isEmpty()) { + partitionKeys_ = other.partitionKeys_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePartitionKeysIsMutable(); + partitionKeys_.addAll(other.partitionKeys_); + } + 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 { + datacatalog.Datacatalog.Dataset parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.Dataset) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private datacatalog.Datacatalog.DatasetID id_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> idBuilder_; + /** + * .datacatalog.DatasetID id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .datacatalog.DatasetID id = 1; + */ + public datacatalog.Datacatalog.DatasetID getId() { + if (idBuilder_ == null) { + return id_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .datacatalog.DatasetID id = 1; + */ + public Builder setId(datacatalog.Datacatalog.DatasetID value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.DatasetID id = 1; + */ + public Builder setId( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.DatasetID id = 1; + */ + public Builder mergeId(datacatalog.Datacatalog.DatasetID value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + datacatalog.Datacatalog.DatasetID.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.DatasetID id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.DatasetID id = 1; + */ + public datacatalog.Datacatalog.DatasetID.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .datacatalog.DatasetID id = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : id_; + } + } + /** + * .datacatalog.DatasetID id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private datacatalog.Datacatalog.Metadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> metadataBuilder_; + /** + * .datacatalog.Metadata metadata = 2; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public datacatalog.Datacatalog.Metadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public Builder setMetadata(datacatalog.Datacatalog.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public Builder setMetadata( + datacatalog.Datacatalog.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public Builder mergeMetadata(datacatalog.Datacatalog.Metadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + datacatalog.Datacatalog.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public datacatalog.Datacatalog.Metadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } + } + /** + * .datacatalog.Metadata metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private com.google.protobuf.LazyStringList partitionKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePartitionKeysIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + partitionKeys_ = new com.google.protobuf.LazyStringArrayList(partitionKeys_); + bitField0_ |= 0x00000004; + } + } + /** + * repeated string partitionKeys = 3; + */ + public com.google.protobuf.ProtocolStringList + getPartitionKeysList() { + return partitionKeys_.getUnmodifiableView(); + } + /** + * repeated string partitionKeys = 3; + */ + public int getPartitionKeysCount() { + return partitionKeys_.size(); + } + /** + * repeated string partitionKeys = 3; + */ + public java.lang.String getPartitionKeys(int index) { + return partitionKeys_.get(index); + } + /** + * repeated string partitionKeys = 3; + */ + public com.google.protobuf.ByteString + getPartitionKeysBytes(int index) { + return partitionKeys_.getByteString(index); + } + /** + * repeated string partitionKeys = 3; + */ + public Builder setPartitionKeys( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartitionKeysIsMutable(); + partitionKeys_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string partitionKeys = 3; + */ + public Builder addPartitionKeys( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartitionKeysIsMutable(); + partitionKeys_.add(value); + onChanged(); + return this; + } + /** + * repeated string partitionKeys = 3; + */ + public Builder addAllPartitionKeys( + java.lang.Iterable values) { + ensurePartitionKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partitionKeys_); + onChanged(); + return this; + } + /** + * repeated string partitionKeys = 3; + */ + public Builder clearPartitionKeys() { + partitionKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * repeated string partitionKeys = 3; + */ + public Builder addPartitionKeysBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePartitionKeysIsMutable(); + partitionKeys_.add(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:datacatalog.Dataset) + } + + // @@protoc_insertion_point(class_scope:datacatalog.Dataset) + private static final datacatalog.Datacatalog.Dataset DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.Dataset(); + } + + public static datacatalog.Datacatalog.Dataset getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Dataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Dataset(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 datacatalog.Datacatalog.Dataset getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PartitionOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.Partition) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + */ + java.lang.String getKey(); + /** + * string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * string value = 2; + */ + java.lang.String getValue(); + /** + * string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code datacatalog.Partition} + */ + public static final class Partition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.Partition) + PartitionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Partition.newBuilder() to construct. + private Partition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Partition() { + key_ = ""; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Partition( + 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(); + + key_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_Partition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Partition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Partition.class, datacatalog.Datacatalog.Partition.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } + } + /** + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = 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 (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + 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 (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + 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 datacatalog.Datacatalog.Partition)) { + return super.equals(obj); + } + datacatalog.Datacatalog.Partition other = (datacatalog.Datacatalog.Partition) obj; + + if (!getKey() + .equals(other.getKey())) 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.Partition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Partition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Partition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Partition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Partition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Partition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Partition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Partition 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 datacatalog.Datacatalog.Partition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Partition 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 datacatalog.Datacatalog.Partition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Partition 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(datacatalog.Datacatalog.Partition 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 datacatalog.Partition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.Partition) + datacatalog.Datacatalog.PartitionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Partition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Partition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Partition.class, datacatalog.Datacatalog.Partition.Builder.class); + } + + // Construct using datacatalog.Datacatalog.Partition.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(); + key_ = ""; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_Partition_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.Partition getDefaultInstanceForType() { + return datacatalog.Datacatalog.Partition.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.Partition build() { + datacatalog.Datacatalog.Partition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.Partition buildPartial() { + datacatalog.Datacatalog.Partition result = new datacatalog.Datacatalog.Partition(this); + result.key_ = key_; + 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 datacatalog.Datacatalog.Partition) { + return mergeFrom((datacatalog.Datacatalog.Partition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.Partition other) { + if (other == datacatalog.Datacatalog.Partition.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + 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 { + datacatalog.Datacatalog.Partition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.Partition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * string key = 1; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = 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:datacatalog.Partition) + } + + // @@protoc_insertion_point(class_scope:datacatalog.Partition) + private static final datacatalog.Datacatalog.Partition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.Partition(); + } + + public static datacatalog.Datacatalog.Partition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Partition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Partition(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 datacatalog.Datacatalog.Partition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DatasetIDOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.DatasetID) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The name of the project
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * The name of the project
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * The name of the dataset
+     * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+     * The name of the dataset
+     * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * The domain (eg. environment)
+     * 
+ * + * string domain = 3; + */ + java.lang.String getDomain(); + /** + *
+     * The domain (eg. environment)
+     * 
+ * + * string domain = 3; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Version of the data schema
+     * 
+ * + * string version = 4; + */ + java.lang.String getVersion(); + /** + *
+     * Version of the data schema
+     * 
+ * + * string version = 4; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+     * UUID for the dataset (if set the above fields are optional)
+     * 
+ * + * string UUID = 5; + */ + java.lang.String getUUID(); + /** + *
+     * UUID for the dataset (if set the above fields are optional)
+     * 
+ * + * string UUID = 5; + */ + com.google.protobuf.ByteString + getUUIDBytes(); + } + /** + * Protobuf type {@code datacatalog.DatasetID} + */ + public static final class DatasetID extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.DatasetID) + DatasetIDOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatasetID.newBuilder() to construct. + private DatasetID(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DatasetID() { + project_ = ""; + name_ = ""; + domain_ = ""; + version_ = ""; + uUID_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DatasetID( + 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(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + uUID_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_DatasetID_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetID_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.DatasetID.class, datacatalog.Datacatalog.DatasetID.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * The name of the project
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * The name of the project
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     * The name of the dataset
+     * 
+ * + * 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; + } + } + /** + *
+     * The name of the dataset
+     * 
+ * + * 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 DOMAIN_FIELD_NUMBER = 3; + private volatile java.lang.Object domain_; + /** + *
+     * The domain (eg. environment)
+     * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * The domain (eg. environment)
+     * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object version_; + /** + *
+     * Version of the data schema
+     * 
+ * + * string version = 4; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + *
+     * Version of the data schema
+     * 
+ * + * string version = 4; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UUID_FIELD_NUMBER = 5; + private volatile java.lang.Object uUID_; + /** + *
+     * UUID for the dataset (if set the above fields are optional)
+     * 
+ * + * string UUID = 5; + */ + public java.lang.String getUUID() { + java.lang.Object ref = uUID_; + 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(); + uUID_ = s; + return s; + } + } + /** + *
+     * UUID for the dataset (if set the above fields are optional)
+     * 
+ * + * string UUID = 5; + */ + public com.google.protobuf.ByteString + getUUIDBytes() { + java.lang.Object ref = uUID_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uUID_ = 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 (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); + } + if (!getUUIDBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, uUID_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); + } + if (!getUUIDBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, uUID_); + } + 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 datacatalog.Datacatalog.DatasetID)) { + return super.equals(obj); + } + datacatalog.Datacatalog.DatasetID other = (datacatalog.Datacatalog.DatasetID) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getUUID() + .equals(other.getUUID())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUUID().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.DatasetID parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.DatasetID parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetID parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.DatasetID parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetID parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.DatasetID parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetID parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.DatasetID 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 datacatalog.Datacatalog.DatasetID parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.DatasetID 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 datacatalog.Datacatalog.DatasetID parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.DatasetID 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(datacatalog.Datacatalog.DatasetID 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 datacatalog.DatasetID} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.DatasetID) + datacatalog.Datacatalog.DatasetIDOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetID_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetID_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.DatasetID.class, datacatalog.Datacatalog.DatasetID.Builder.class); + } + + // Construct using datacatalog.Datacatalog.DatasetID.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(); + project_ = ""; + + name_ = ""; + + domain_ = ""; + + version_ = ""; + + uUID_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetID_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.DatasetID getDefaultInstanceForType() { + return datacatalog.Datacatalog.DatasetID.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.DatasetID build() { + datacatalog.Datacatalog.DatasetID result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.DatasetID buildPartial() { + datacatalog.Datacatalog.DatasetID result = new datacatalog.Datacatalog.DatasetID(this); + result.project_ = project_; + result.name_ = name_; + result.domain_ = domain_; + result.version_ = version_; + result.uUID_ = uUID_; + 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 datacatalog.Datacatalog.DatasetID) { + return mergeFrom((datacatalog.Datacatalog.DatasetID)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.DatasetID other) { + if (other == datacatalog.Datacatalog.DatasetID.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getUUID().isEmpty()) { + uUID_ = other.uUID_; + 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 { + datacatalog.Datacatalog.DatasetID parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.DatasetID) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * The name of the project
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of the project
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of the project
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of the project
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * The name of the project
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * The name of the dataset
+       * 
+ * + * 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; + } + } + /** + *
+       * The name of the dataset
+       * 
+ * + * 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; + } + } + /** + *
+       * The name of the dataset
+       * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of the dataset
+       * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * The name of the dataset
+       * 
+ * + * 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 domain_ = ""; + /** + *
+       * The domain (eg. environment)
+       * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The domain (eg. environment)
+       * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The domain (eg. environment)
+       * 
+ * + * string domain = 3; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * The domain (eg. environment)
+       * 
+ * + * string domain = 3; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * The domain (eg. environment)
+       * 
+ * + * string domain = 3; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + *
+       * Version of the data schema
+       * 
+ * + * string version = 4; + */ + 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; + } + } + /** + *
+       * Version of the data schema
+       * 
+ * + * string version = 4; + */ + 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; + } + } + /** + *
+       * Version of the data schema
+       * 
+ * + * string version = 4; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+       * Version of the data schema
+       * 
+ * + * string version = 4; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       * Version of the data schema
+       * 
+ * + * string version = 4; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.lang.Object uUID_ = ""; + /** + *
+       * UUID for the dataset (if set the above fields are optional)
+       * 
+ * + * string UUID = 5; + */ + public java.lang.String getUUID() { + java.lang.Object ref = uUID_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uUID_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * UUID for the dataset (if set the above fields are optional)
+       * 
+ * + * string UUID = 5; + */ + public com.google.protobuf.ByteString + getUUIDBytes() { + java.lang.Object ref = uUID_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uUID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * UUID for the dataset (if set the above fields are optional)
+       * 
+ * + * string UUID = 5; + */ + public Builder setUUID( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uUID_ = value; + onChanged(); + return this; + } + /** + *
+       * UUID for the dataset (if set the above fields are optional)
+       * 
+ * + * string UUID = 5; + */ + public Builder clearUUID() { + + uUID_ = getDefaultInstance().getUUID(); + onChanged(); + return this; + } + /** + *
+       * UUID for the dataset (if set the above fields are optional)
+       * 
+ * + * string UUID = 5; + */ + public Builder setUUIDBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uUID_ = 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:datacatalog.DatasetID) + } + + // @@protoc_insertion_point(class_scope:datacatalog.DatasetID) + private static final datacatalog.Datacatalog.DatasetID DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.DatasetID(); + } + + public static datacatalog.Datacatalog.DatasetID getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetID parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DatasetID(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 datacatalog.Datacatalog.DatasetID getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ArtifactOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.Artifact) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1; + */ + java.lang.String getId(); + /** + * string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * .datacatalog.DatasetID dataset = 2; + */ + boolean hasDataset(); + /** + * .datacatalog.DatasetID dataset = 2; + */ + datacatalog.Datacatalog.DatasetID getDataset(); + /** + * .datacatalog.DatasetID dataset = 2; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); + + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + java.util.List + getDataList(); + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + datacatalog.Datacatalog.ArtifactData getData(int index); + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + int getDataCount(); + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + java.util.List + getDataOrBuilderList(); + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( + int index); + + /** + * .datacatalog.Metadata metadata = 4; + */ + boolean hasMetadata(); + /** + * .datacatalog.Metadata metadata = 4; + */ + datacatalog.Datacatalog.Metadata getMetadata(); + /** + * .datacatalog.Metadata metadata = 4; + */ + datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder(); + + /** + * repeated .datacatalog.Partition partitions = 5; + */ + java.util.List + getPartitionsList(); + /** + * repeated .datacatalog.Partition partitions = 5; + */ + datacatalog.Datacatalog.Partition getPartitions(int index); + /** + * repeated .datacatalog.Partition partitions = 5; + */ + int getPartitionsCount(); + /** + * repeated .datacatalog.Partition partitions = 5; + */ + java.util.List + getPartitionsOrBuilderList(); + /** + * repeated .datacatalog.Partition partitions = 5; + */ + datacatalog.Datacatalog.PartitionOrBuilder getPartitionsOrBuilder( + int index); + + /** + * repeated .datacatalog.Tag tags = 6; + */ + java.util.List + getTagsList(); + /** + * repeated .datacatalog.Tag tags = 6; + */ + datacatalog.Datacatalog.Tag getTags(int index); + /** + * repeated .datacatalog.Tag tags = 6; + */ + int getTagsCount(); + /** + * repeated .datacatalog.Tag tags = 6; + */ + java.util.List + getTagsOrBuilderList(); + /** + * repeated .datacatalog.Tag tags = 6; + */ + datacatalog.Datacatalog.TagOrBuilder getTagsOrBuilder( + int index); + + /** + *
+     * creation timestamp of artifact, autogenerated by service
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + boolean hasCreatedAt(); + /** + *
+     * creation timestamp of artifact, autogenerated by service
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * creation timestamp of artifact, autogenerated by service
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + } + /** + * Protobuf type {@code datacatalog.Artifact} + */ + public static final class Artifact extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements: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() { + id_ = ""; + data_ = java.util.Collections.emptyList(); + partitions_ = java.util.Collections.emptyList(); + tags_ = 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(); + + id_ = s; + break; + } + case 18: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + data_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + data_.add( + input.readMessage(datacatalog.Datacatalog.ArtifactData.parser(), extensionRegistry)); + break; + } + case 34: { + datacatalog.Datacatalog.Metadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(datacatalog.Datacatalog.Metadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + partitions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + partitions_.add( + input.readMessage(datacatalog.Datacatalog.Partition.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + tags_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + tags_.add( + input.readMessage(datacatalog.Datacatalog.Tag.parser(), extensionRegistry)); + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createdAt_ != null) { + subBuilder = createdAt_.toBuilder(); + } + createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createdAt_); + createdAt_ = 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 { + if (((mutable_bitField0_ & 0x00000004) != 0)) { + data_ = java.util.Collections.unmodifiableList(data_); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + partitions_ = java.util.Collections.unmodifiableList(partitions_); + } + if (((mutable_bitField0_ & 0x00000020) != 0)) { + tags_ = java.util.Collections.unmodifiableList(tags_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Artifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Artifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Artifact.class, datacatalog.Datacatalog.Artifact.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object 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(); + id_ = s; + return s; + } + } + /** + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATASET_FIELD_NUMBER = 2; + private datacatalog.Datacatalog.DatasetID dataset_; + /** + * .datacatalog.DatasetID dataset = 2; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + * .datacatalog.DatasetID dataset = 2; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + /** + * .datacatalog.DatasetID dataset = 2; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + public static final int DATA_FIELD_NUMBER = 3; + private java.util.List data_; + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public java.util.List getDataList() { + return data_; + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public java.util.List + getDataOrBuilderList() { + return data_; + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public int getDataCount() { + return data_.size(); + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public datacatalog.Datacatalog.ArtifactData getData(int index) { + return data_.get(index); + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( + int index) { + return data_.get(index); + } + + public static final int METADATA_FIELD_NUMBER = 4; + private datacatalog.Datacatalog.Metadata metadata_; + /** + * .datacatalog.Metadata metadata = 4; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * .datacatalog.Metadata metadata = 4; + */ + public datacatalog.Datacatalog.Metadata getMetadata() { + return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } + /** + * .datacatalog.Metadata metadata = 4; + */ + public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int PARTITIONS_FIELD_NUMBER = 5; + private java.util.List partitions_; + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public java.util.List getPartitionsList() { + return partitions_; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public java.util.List + getPartitionsOrBuilderList() { + return partitions_; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public int getPartitionsCount() { + return partitions_.size(); + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public datacatalog.Datacatalog.Partition getPartitions(int index) { + return partitions_.get(index); + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public datacatalog.Datacatalog.PartitionOrBuilder getPartitionsOrBuilder( + int index) { + return partitions_.get(index); + } + + public static final int TAGS_FIELD_NUMBER = 6; + private java.util.List tags_; + /** + * repeated .datacatalog.Tag tags = 6; + */ + public java.util.List getTagsList() { + return tags_; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public java.util.List + getTagsOrBuilderList() { + return tags_; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public datacatalog.Datacatalog.Tag getTags(int index) { + return tags_.get(index); + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public datacatalog.Datacatalog.TagOrBuilder getTagsOrBuilder( + int index) { + return tags_.get(index); + } + + public static final int CREATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * creation timestamp of artifact, autogenerated by service
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * creation timestamp of artifact, autogenerated by service
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * creation timestamp of artifact, autogenerated by service
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + 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 (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (dataset_ != null) { + output.writeMessage(2, getDataset()); + } + for (int i = 0; i < data_.size(); i++) { + output.writeMessage(3, data_.get(i)); + } + if (metadata_ != null) { + output.writeMessage(4, getMetadata()); + } + for (int i = 0; i < partitions_.size(); i++) { + output.writeMessage(5, partitions_.get(i)); + } + for (int i = 0; i < tags_.size(); i++) { + output.writeMessage(6, tags_.get(i)); + } + if (createdAt_ != null) { + output.writeMessage(7, getCreatedAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDataset()); + } + for (int i = 0; i < data_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, data_.get(i)); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMetadata()); + } + for (int i = 0; i < partitions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, partitions_.get(i)); + } + for (int i = 0; i < tags_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, tags_.get(i)); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreatedAt()); + } + 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 datacatalog.Datacatalog.Artifact)) { + return super.equals(obj); + } + datacatalog.Datacatalog.Artifact other = (datacatalog.Datacatalog.Artifact) obj; + + if (!getId() + .equals(other.getId())) return false; + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) return false; + } + if (!getDataList() + .equals(other.getDataList())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getPartitionsList() + .equals(other.getPartitionsList())) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + if (getDataCount() > 0) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getDataList().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getPartitionsCount() > 0) { + hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; + hash = (53 * hash) + getPartitionsList().hashCode(); + } + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.Artifact parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static 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 datacatalog.Datacatalog.Artifact parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static 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 datacatalog.Datacatalog.Artifact parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Artifact parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Artifact parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static 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 datacatalog.Datacatalog.Artifact parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static 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 datacatalog.Datacatalog.Artifact parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static 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(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; + } + /** + * Protobuf type {@code datacatalog.Artifact} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.Artifact) + datacatalog.Datacatalog.ArtifactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Artifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Artifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Artifact.class, datacatalog.Datacatalog.Artifact.Builder.class); + } + + // Construct using 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) { + getDataFieldBuilder(); + getPartitionsFieldBuilder(); + getTagsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + if (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + dataBuilder_.clear(); + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (partitionsBuilder_ == null) { + partitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + partitionsBuilder_.clear(); + } + if (tagsBuilder_ == null) { + tags_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + tagsBuilder_.clear(); + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_Artifact_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.Artifact getDefaultInstanceForType() { + return datacatalog.Datacatalog.Artifact.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.Artifact build() { + datacatalog.Datacatalog.Artifact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.Artifact buildPartial() { + datacatalog.Datacatalog.Artifact result = new datacatalog.Datacatalog.Artifact(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.id_ = id_; + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.build(); + } + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + data_ = java.util.Collections.unmodifiableList(data_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (partitionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + partitions_ = java.util.Collections.unmodifiableList(partitions_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.partitions_ = partitions_; + } else { + result.partitions_ = partitionsBuilder_.build(); + } + if (tagsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + tags_ = java.util.Collections.unmodifiableList(tags_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.tags_ = tags_; + } else { + result.tags_ = tagsBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.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 datacatalog.Datacatalog.Artifact) { + return mergeFrom((datacatalog.Datacatalog.Artifact)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.Artifact other) { + if (other == datacatalog.Datacatalog.Artifact.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + if (dataBuilder_ == null) { + if (!other.data_.isEmpty()) { + if (data_.isEmpty()) { + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDataIsMutable(); + data_.addAll(other.data_); + } + onChanged(); + } + } else { + if (!other.data_.isEmpty()) { + if (dataBuilder_.isEmpty()) { + dataBuilder_.dispose(); + dataBuilder_ = null; + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000004); + dataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDataFieldBuilder() : null; + } else { + dataBuilder_.addAllMessages(other.data_); + } + } + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (partitionsBuilder_ == null) { + if (!other.partitions_.isEmpty()) { + if (partitions_.isEmpty()) { + partitions_ = other.partitions_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensurePartitionsIsMutable(); + partitions_.addAll(other.partitions_); + } + onChanged(); + } + } else { + if (!other.partitions_.isEmpty()) { + if (partitionsBuilder_.isEmpty()) { + partitionsBuilder_.dispose(); + partitionsBuilder_ = null; + partitions_ = other.partitions_; + bitField0_ = (bitField0_ & ~0x00000010); + partitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartitionsFieldBuilder() : null; + } else { + partitionsBuilder_.addAllMessages(other.partitions_); + } + } + } + if (tagsBuilder_ == null) { + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + } else { + if (!other.tags_.isEmpty()) { + if (tagsBuilder_.isEmpty()) { + tagsBuilder_.dispose(); + tagsBuilder_ = null; + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000020); + tagsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTagsFieldBuilder() : null; + } else { + tagsBuilder_.addAllMessages(other.tags_); + } + } + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + 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 { + datacatalog.Datacatalog.Artifact parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.Artifact) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private datacatalog.Datacatalog.DatasetID dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; + /** + * .datacatalog.DatasetID dataset = 2; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + * .datacatalog.DatasetID dataset = 2; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + * .datacatalog.DatasetID dataset = 2; + */ + public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 2; + */ + public Builder setDataset( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 2; + */ + public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 2; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 2; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + * .datacatalog.DatasetID dataset = 2; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + } + /** + * .datacatalog.DatasetID dataset = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + + private java.util.List data_ = + java.util.Collections.emptyList(); + private void ensureDataIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + data_ = new java.util.ArrayList(data_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder> dataBuilder_; + + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public java.util.List getDataList() { + if (dataBuilder_ == null) { + return java.util.Collections.unmodifiableList(data_); + } else { + return dataBuilder_.getMessageList(); + } + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public int getDataCount() { + if (dataBuilder_ == null) { + return data_.size(); + } else { + return dataBuilder_.getCount(); + } + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public datacatalog.Datacatalog.ArtifactData getData(int index) { + if (dataBuilder_ == null) { + return data_.get(index); + } else { + return dataBuilder_.getMessage(index); + } + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder setData( + int index, datacatalog.Datacatalog.ArtifactData value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.set(index, value); + onChanged(); + } else { + dataBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder setData( + int index, datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.set(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder addData(datacatalog.Datacatalog.ArtifactData value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(value); + onChanged(); + } else { + dataBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder addData( + int index, datacatalog.Datacatalog.ArtifactData value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(index, value); + onChanged(); + } else { + dataBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder addData( + datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder addData( + int index, datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder addAllData( + java.lang.Iterable values) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, data_); + onChanged(); + } else { + dataBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + dataBuilder_.clear(); + } + return this; + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder removeData(int index) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.remove(index); + onChanged(); + } else { + dataBuilder_.remove(index); + } + return this; + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public datacatalog.Datacatalog.ArtifactData.Builder getDataBuilder( + int index) { + return getDataFieldBuilder().getBuilder(index); + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( + int index) { + if (dataBuilder_ == null) { + return data_.get(index); } else { + return dataBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public java.util.List + getDataOrBuilderList() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(data_); + } + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public datacatalog.Datacatalog.ArtifactData.Builder addDataBuilder() { + return getDataFieldBuilder().addBuilder( + datacatalog.Datacatalog.ArtifactData.getDefaultInstance()); + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public datacatalog.Datacatalog.ArtifactData.Builder addDataBuilder( + int index) { + return getDataFieldBuilder().addBuilder( + index, datacatalog.Datacatalog.ArtifactData.getDefaultInstance()); + } + /** + * repeated .datacatalog.ArtifactData data = 3; + */ + public java.util.List + getDataBuilderList() { + return getDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder>( + data_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + + private datacatalog.Datacatalog.Metadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> metadataBuilder_; + /** + * .datacatalog.Metadata metadata = 4; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * .datacatalog.Metadata metadata = 4; + */ + public datacatalog.Datacatalog.Metadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .datacatalog.Metadata metadata = 4; + */ + public Builder setMetadata(datacatalog.Datacatalog.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 4; + */ + public Builder setMetadata( + datacatalog.Datacatalog.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 4; + */ + public Builder mergeMetadata(datacatalog.Datacatalog.Metadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + datacatalog.Datacatalog.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 4; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 4; + */ + public datacatalog.Datacatalog.Metadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .datacatalog.Metadata metadata = 4; + */ + public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } + } + /** + * .datacatalog.Metadata metadata = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List partitions_ = + java.util.Collections.emptyList(); + private void ensurePartitionsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + partitions_ = new java.util.ArrayList(partitions_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Partition, datacatalog.Datacatalog.Partition.Builder, datacatalog.Datacatalog.PartitionOrBuilder> partitionsBuilder_; + + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public java.util.List getPartitionsList() { + if (partitionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(partitions_); + } else { + return partitionsBuilder_.getMessageList(); + } + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public int getPartitionsCount() { + if (partitionsBuilder_ == null) { + return partitions_.size(); + } else { + return partitionsBuilder_.getCount(); + } + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public datacatalog.Datacatalog.Partition getPartitions(int index) { + if (partitionsBuilder_ == null) { + return partitions_.get(index); + } else { + return partitionsBuilder_.getMessage(index); + } + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder setPartitions( + int index, datacatalog.Datacatalog.Partition value) { + if (partitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartitionsIsMutable(); + partitions_.set(index, value); + onChanged(); + } else { + partitionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder setPartitions( + int index, datacatalog.Datacatalog.Partition.Builder builderForValue) { + if (partitionsBuilder_ == null) { + ensurePartitionsIsMutable(); + partitions_.set(index, builderForValue.build()); + onChanged(); + } else { + partitionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder addPartitions(datacatalog.Datacatalog.Partition value) { + if (partitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartitionsIsMutable(); + partitions_.add(value); + onChanged(); + } else { + partitionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder addPartitions( + int index, datacatalog.Datacatalog.Partition value) { + if (partitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartitionsIsMutable(); + partitions_.add(index, value); + onChanged(); + } else { + partitionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder addPartitions( + datacatalog.Datacatalog.Partition.Builder builderForValue) { + if (partitionsBuilder_ == null) { + ensurePartitionsIsMutable(); + partitions_.add(builderForValue.build()); + onChanged(); + } else { + partitionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder addPartitions( + int index, datacatalog.Datacatalog.Partition.Builder builderForValue) { + if (partitionsBuilder_ == null) { + ensurePartitionsIsMutable(); + partitions_.add(index, builderForValue.build()); + onChanged(); + } else { + partitionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder addAllPartitions( + java.lang.Iterable values) { + if (partitionsBuilder_ == null) { + ensurePartitionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partitions_); + onChanged(); + } else { + partitionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder clearPartitions() { + if (partitionsBuilder_ == null) { + partitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + partitionsBuilder_.clear(); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder removePartitions(int index) { + if (partitionsBuilder_ == null) { + ensurePartitionsIsMutable(); + partitions_.remove(index); + onChanged(); + } else { + partitionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public datacatalog.Datacatalog.Partition.Builder getPartitionsBuilder( + int index) { + return getPartitionsFieldBuilder().getBuilder(index); + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public datacatalog.Datacatalog.PartitionOrBuilder getPartitionsOrBuilder( + int index) { + if (partitionsBuilder_ == null) { + return partitions_.get(index); } else { + return partitionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public java.util.List + getPartitionsOrBuilderList() { + if (partitionsBuilder_ != null) { + return partitionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(partitions_); + } + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public datacatalog.Datacatalog.Partition.Builder addPartitionsBuilder() { + return getPartitionsFieldBuilder().addBuilder( + datacatalog.Datacatalog.Partition.getDefaultInstance()); + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public datacatalog.Datacatalog.Partition.Builder addPartitionsBuilder( + int index) { + return getPartitionsFieldBuilder().addBuilder( + index, datacatalog.Datacatalog.Partition.getDefaultInstance()); + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public java.util.List + getPartitionsBuilderList() { + return getPartitionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Partition, datacatalog.Datacatalog.Partition.Builder, datacatalog.Datacatalog.PartitionOrBuilder> + getPartitionsFieldBuilder() { + if (partitionsBuilder_ == null) { + partitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Partition, datacatalog.Datacatalog.Partition.Builder, datacatalog.Datacatalog.PartitionOrBuilder>( + partitions_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + partitions_ = null; + } + return partitionsBuilder_; + } + + private java.util.List tags_ = + java.util.Collections.emptyList(); + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + tags_ = new java.util.ArrayList(tags_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder> tagsBuilder_; + + /** + * repeated .datacatalog.Tag tags = 6; + */ + public java.util.List getTagsList() { + if (tagsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tags_); + } else { + return tagsBuilder_.getMessageList(); + } + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public int getTagsCount() { + if (tagsBuilder_ == null) { + return tags_.size(); + } else { + return tagsBuilder_.getCount(); + } + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public datacatalog.Datacatalog.Tag getTags(int index) { + if (tagsBuilder_ == null) { + return tags_.get(index); + } else { + return tagsBuilder_.getMessage(index); + } + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder setTags( + int index, datacatalog.Datacatalog.Tag value) { + if (tagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + } else { + tagsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder setTags( + int index, datacatalog.Datacatalog.Tag.Builder builderForValue) { + if (tagsBuilder_ == null) { + ensureTagsIsMutable(); + tags_.set(index, builderForValue.build()); + onChanged(); + } else { + tagsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder addTags(datacatalog.Datacatalog.Tag value) { + if (tagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + } else { + tagsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder addTags( + int index, datacatalog.Datacatalog.Tag value) { + if (tagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(index, value); + onChanged(); + } else { + tagsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder addTags( + datacatalog.Datacatalog.Tag.Builder builderForValue) { + if (tagsBuilder_ == null) { + ensureTagsIsMutable(); + tags_.add(builderForValue.build()); + onChanged(); + } else { + tagsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder addTags( + int index, datacatalog.Datacatalog.Tag.Builder builderForValue) { + if (tagsBuilder_ == null) { + ensureTagsIsMutable(); + tags_.add(index, builderForValue.build()); + onChanged(); + } else { + tagsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder addAllTags( + java.lang.Iterable values) { + if (tagsBuilder_ == null) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + } else { + tagsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder clearTags() { + if (tagsBuilder_ == null) { + tags_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + tagsBuilder_.clear(); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder removeTags(int index) { + if (tagsBuilder_ == null) { + ensureTagsIsMutable(); + tags_.remove(index); + onChanged(); + } else { + tagsBuilder_.remove(index); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public datacatalog.Datacatalog.Tag.Builder getTagsBuilder( + int index) { + return getTagsFieldBuilder().getBuilder(index); + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public datacatalog.Datacatalog.TagOrBuilder getTagsOrBuilder( + int index) { + if (tagsBuilder_ == null) { + return tags_.get(index); } else { + return tagsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public java.util.List + getTagsOrBuilderList() { + if (tagsBuilder_ != null) { + return tagsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tags_); + } + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public datacatalog.Datacatalog.Tag.Builder addTagsBuilder() { + return getTagsFieldBuilder().addBuilder( + datacatalog.Datacatalog.Tag.getDefaultInstance()); + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public datacatalog.Datacatalog.Tag.Builder addTagsBuilder( + int index) { + return getTagsFieldBuilder().addBuilder( + index, datacatalog.Datacatalog.Tag.getDefaultInstance()); + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public java.util.List + getTagsBuilderList() { + return getTagsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder> + getTagsFieldBuilder() { + if (tagsBuilder_ == null) { + tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder>( + tags_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + tags_ = null; + } + return tagsBuilder_; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + onChanged(); + } else { + createdAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (createdAt_ != null) { + createdAt_ = + com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); + } else { + createdAt_ = value; + } + onChanged(); + } else { + createdAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + @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:datacatalog.Artifact) + } + + // @@protoc_insertion_point(class_scope:datacatalog.Artifact) + private static final datacatalog.Datacatalog.Artifact DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.Artifact(); + } + + public static 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 datacatalog.Datacatalog.Artifact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ArtifactDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ArtifactData) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + */ + java.lang.String getName(); + /** + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .flyteidl.core.Literal value = 2; + */ + boolean hasValue(); + /** + * .flyteidl.core.Literal value = 2; + */ + flyteidl.core.Literals.Literal getValue(); + /** + * .flyteidl.core.Literal value = 2; + */ + flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder(); + } + /** + * Protobuf type {@code datacatalog.ArtifactData} + */ + public static final class ArtifactData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ArtifactData) + ArtifactDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArtifactData.newBuilder() to construct. + private ArtifactData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ArtifactData() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ArtifactData( + 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: { + flyteidl.core.Literals.Literal.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_ArtifactData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ArtifactData.class, datacatalog.Datacatalog.ArtifactData.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 flyteidl.core.Literals.Literal value_; + /** + * .flyteidl.core.Literal value = 2; + */ + public boolean hasValue() { + return value_ != null; + } + /** + * .flyteidl.core.Literal value = 2; + */ + public flyteidl.core.Literals.Literal getValue() { + return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + } + /** + * .flyteidl.core.Literal value = 2; + */ + public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { + return getValue(); + } + + 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 (value_ != null) { + output.writeMessage(2, getValue()); + } + 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 (value_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getValue()); + } + 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 datacatalog.Datacatalog.ArtifactData)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ArtifactData other = (datacatalog.Datacatalog.ArtifactData) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + 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(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ArtifactData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ArtifactData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ArtifactData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ArtifactData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ArtifactData 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 datacatalog.Datacatalog.ArtifactData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ArtifactData 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 datacatalog.Datacatalog.ArtifactData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ArtifactData 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(datacatalog.Datacatalog.ArtifactData 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 datacatalog.ArtifactData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ArtifactData) + datacatalog.Datacatalog.ArtifactDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ArtifactData.class, datacatalog.Datacatalog.ArtifactData.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ArtifactData.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_ = ""; + + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactData_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ArtifactData getDefaultInstanceForType() { + return datacatalog.Datacatalog.ArtifactData.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ArtifactData build() { + datacatalog.Datacatalog.ArtifactData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ArtifactData buildPartial() { + datacatalog.Datacatalog.ArtifactData result = new datacatalog.Datacatalog.ArtifactData(this); + result.name_ = name_; + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.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 datacatalog.Datacatalog.ArtifactData) { + return mergeFrom((datacatalog.Datacatalog.ArtifactData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ArtifactData other) { + if (other == datacatalog.Datacatalog.ArtifactData.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + 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 { + datacatalog.Datacatalog.ArtifactData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ArtifactData) 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 flyteidl.core.Literals.Literal value_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> valueBuilder_; + /** + * .flyteidl.core.Literal value = 2; + */ + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; + } + /** + * .flyteidl.core.Literal value = 2; + */ + public flyteidl.core.Literals.Literal getValue() { + if (valueBuilder_ == null) { + return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Literal value = 2; + */ + public Builder setValue(flyteidl.core.Literals.Literal value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Literal value = 2; + */ + public Builder setValue( + flyteidl.core.Literals.Literal.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Literal value = 2; + */ + public Builder mergeValue(flyteidl.core.Literals.Literal value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + flyteidl.core.Literals.Literal.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Literal value = 2; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + value_ = null; + valueBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Literal value = 2; + */ + public flyteidl.core.Literals.Literal.Builder getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Literal value = 2; + */ + public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + } + } + /** + * .flyteidl.core.Literal value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + @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:datacatalog.ArtifactData) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ArtifactData) + private static final datacatalog.Datacatalog.ArtifactData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ArtifactData(); + } + + public static datacatalog.Datacatalog.ArtifactData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArtifactData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArtifactData(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 datacatalog.Datacatalog.ArtifactData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TagOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.Tag) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + */ + java.lang.String getName(); + /** + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string artifact_id = 2; + */ + java.lang.String getArtifactId(); + /** + * string artifact_id = 2; + */ + com.google.protobuf.ByteString + getArtifactIdBytes(); + + /** + * .datacatalog.DatasetID dataset = 3; + */ + boolean hasDataset(); + /** + * .datacatalog.DatasetID dataset = 3; + */ + datacatalog.Datacatalog.DatasetID getDataset(); + /** + * .datacatalog.DatasetID dataset = 3; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); + } + /** + * Protobuf type {@code datacatalog.Tag} + */ + public static final class Tag extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.Tag) + TagOrBuilder { + private static final long serialVersionUID = 0L; + // Use Tag.newBuilder() to construct. + private Tag(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Tag() { + name_ = ""; + artifactId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Tag( + 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(); + + artifactId_ = s; + break; + } + case 26: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_Tag_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Tag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Tag.class, datacatalog.Datacatalog.Tag.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 ARTIFACT_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object artifactId_; + /** + * string artifact_id = 2; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + 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(); + artifactId_ = s; + return s; + } + } + /** + * string artifact_id = 2; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + artifactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATASET_FIELD_NUMBER = 3; + private datacatalog.Datacatalog.DatasetID dataset_; + /** + * .datacatalog.DatasetID dataset = 3; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + * .datacatalog.DatasetID dataset = 3; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + /** + * .datacatalog.DatasetID dataset = 3; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + 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 (!getArtifactIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, artifactId_); + } + if (dataset_ != null) { + output.writeMessage(3, getDataset()); + } + 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 (!getArtifactIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, artifactId_); + } + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDataset()); + } + 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 datacatalog.Datacatalog.Tag)) { + return super.equals(obj); + } + datacatalog.Datacatalog.Tag other = (datacatalog.Datacatalog.Tag) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getArtifactId() + .equals(other.getArtifactId())) return false; + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) 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) + ARTIFACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getArtifactId().hashCode(); + if (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.Tag parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Tag parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Tag parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Tag parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Tag parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Tag parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Tag parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Tag 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 datacatalog.Datacatalog.Tag parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Tag 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 datacatalog.Datacatalog.Tag parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Tag 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(datacatalog.Datacatalog.Tag 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 datacatalog.Tag} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.Tag) + datacatalog.Datacatalog.TagOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Tag_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Tag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Tag.class, datacatalog.Datacatalog.Tag.Builder.class); + } + + // Construct using datacatalog.Datacatalog.Tag.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_ = ""; + + artifactId_ = ""; + + if (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_Tag_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.Tag getDefaultInstanceForType() { + return datacatalog.Datacatalog.Tag.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.Tag build() { + datacatalog.Datacatalog.Tag result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.Tag buildPartial() { + datacatalog.Datacatalog.Tag result = new datacatalog.Datacatalog.Tag(this); + result.name_ = name_; + result.artifactId_ = artifactId_; + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.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 datacatalog.Datacatalog.Tag) { + return mergeFrom((datacatalog.Datacatalog.Tag)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.Tag other) { + if (other == datacatalog.Datacatalog.Tag.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getArtifactId().isEmpty()) { + artifactId_ = other.artifactId_; + onChanged(); + } + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + 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 { + datacatalog.Datacatalog.Tag parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.Tag) 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 artifactId_ = ""; + /** + * string artifact_id = 2; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string artifact_id = 2; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + artifactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string artifact_id = 2; + */ + public Builder setArtifactId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + artifactId_ = value; + onChanged(); + return this; + } + /** + * string artifact_id = 2; + */ + public Builder clearArtifactId() { + + artifactId_ = getDefaultInstance().getArtifactId(); + onChanged(); + return this; + } + /** + * string artifact_id = 2; + */ + public Builder setArtifactIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + artifactId_ = value; + onChanged(); + return this; + } + + private datacatalog.Datacatalog.DatasetID dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; + /** + * .datacatalog.DatasetID dataset = 3; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + * .datacatalog.DatasetID dataset = 3; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + * .datacatalog.DatasetID dataset = 3; + */ + public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 3; + */ + public Builder setDataset( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 3; + */ + public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 3; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 3; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + * .datacatalog.DatasetID dataset = 3; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + } + /** + * .datacatalog.DatasetID dataset = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + @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:datacatalog.Tag) + } + + // @@protoc_insertion_point(class_scope:datacatalog.Tag) + private static final datacatalog.Datacatalog.Tag DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.Tag(); + } + + public static datacatalog.Datacatalog.Tag getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tag parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Tag(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 datacatalog.Datacatalog.Tag getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.Metadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + int getKeyMapCount(); + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + boolean containsKeyMap( + java.lang.String key); + /** + * Use {@link #getKeyMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getKeyMap(); + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + java.util.Map + getKeyMapMap(); + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + + java.lang.String getKeyMapOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + + java.lang.String getKeyMapOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code datacatalog.Metadata} + */ + public static final class Metadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.Metadata) + MetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use Metadata.newBuilder() to construct. + private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Metadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Metadata( + 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)) { + keyMap_ = com.google.protobuf.MapField.newMapField( + KeyMapDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + keyMap__ = input.readMessage( + KeyMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + keyMap_.getMutableMap().put( + keyMap__.getKey(), keyMap__.getValue()); + 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 datacatalog.Datacatalog.internal_static_datacatalog_Metadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetKeyMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Metadata.class, datacatalog.Datacatalog.Metadata.Builder.class); + } + + public static final int KEY_MAP_FIELD_NUMBER = 1; + private static final class KeyMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datacatalog.Datacatalog.internal_static_datacatalog_Metadata_KeyMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> keyMap_; + private com.google.protobuf.MapField + internalGetKeyMap() { + if (keyMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + KeyMapDefaultEntryHolder.defaultEntry); + } + return keyMap_; + } + + public int getKeyMapCount() { + return internalGetKeyMap().getMap().size(); + } + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + + public boolean containsKeyMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetKeyMap().getMap().containsKey(key); + } + /** + * Use {@link #getKeyMapMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getKeyMap() { + return getKeyMapMap(); + } + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + + public java.util.Map getKeyMapMap() { + return internalGetKeyMap().getMap(); + } + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + + public java.lang.String getKeyMapOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetKeyMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + + public java.lang.String getKeyMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetKeyMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetKeyMap(), + KeyMapDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetKeyMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + keyMap__ = KeyMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, keyMap__); + } + 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 datacatalog.Datacatalog.Metadata)) { + return super.equals(obj); + } + datacatalog.Datacatalog.Metadata other = (datacatalog.Datacatalog.Metadata) obj; + + if (!internalGetKeyMap().equals( + other.internalGetKeyMap())) 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 (!internalGetKeyMap().getMap().isEmpty()) { + hash = (37 * hash) + KEY_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetKeyMap().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.Metadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Metadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Metadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Metadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Metadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Metadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Metadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Metadata 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 datacatalog.Datacatalog.Metadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Metadata 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 datacatalog.Datacatalog.Metadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Metadata 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(datacatalog.Datacatalog.Metadata 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 datacatalog.Metadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.Metadata) + datacatalog.Datacatalog.MetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Metadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetKeyMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableKeyMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Metadata.class, datacatalog.Datacatalog.Metadata.Builder.class); + } + + // Construct using datacatalog.Datacatalog.Metadata.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(); + internalGetMutableKeyMap().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_Metadata_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.Metadata getDefaultInstanceForType() { + return datacatalog.Datacatalog.Metadata.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.Metadata build() { + datacatalog.Datacatalog.Metadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.Metadata buildPartial() { + datacatalog.Datacatalog.Metadata result = new datacatalog.Datacatalog.Metadata(this); + int from_bitField0_ = bitField0_; + result.keyMap_ = internalGetKeyMap(); + result.keyMap_.makeImmutable(); + 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 datacatalog.Datacatalog.Metadata) { + return mergeFrom((datacatalog.Datacatalog.Metadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.Metadata other) { + if (other == datacatalog.Datacatalog.Metadata.getDefaultInstance()) return this; + internalGetMutableKeyMap().mergeFrom( + other.internalGetKeyMap()); + 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 { + datacatalog.Datacatalog.Metadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.Metadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> keyMap_; + private com.google.protobuf.MapField + internalGetKeyMap() { + if (keyMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + KeyMapDefaultEntryHolder.defaultEntry); + } + return keyMap_; + } + private com.google.protobuf.MapField + internalGetMutableKeyMap() { + onChanged();; + if (keyMap_ == null) { + keyMap_ = com.google.protobuf.MapField.newMapField( + KeyMapDefaultEntryHolder.defaultEntry); + } + if (!keyMap_.isMutable()) { + keyMap_ = keyMap_.copy(); + } + return keyMap_; + } + + public int getKeyMapCount() { + return internalGetKeyMap().getMap().size(); + } + /** + *
+       * key map is a dictionary of key/val strings that represent metadata
+       * 
+ * + * map<string, string> key_map = 1; + */ + + public boolean containsKeyMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetKeyMap().getMap().containsKey(key); + } + /** + * Use {@link #getKeyMapMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getKeyMap() { + return getKeyMapMap(); + } + /** + *
+       * key map is a dictionary of key/val strings that represent metadata
+       * 
+ * + * map<string, string> key_map = 1; + */ + + public java.util.Map getKeyMapMap() { + return internalGetKeyMap().getMap(); + } + /** + *
+       * key map is a dictionary of key/val strings that represent metadata
+       * 
+ * + * map<string, string> key_map = 1; + */ + + public java.lang.String getKeyMapOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetKeyMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * key map is a dictionary of key/val strings that represent metadata
+       * 
+ * + * map<string, string> key_map = 1; + */ + + public java.lang.String getKeyMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetKeyMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearKeyMap() { + internalGetMutableKeyMap().getMutableMap() + .clear(); + return this; + } + /** + *
+       * key map is a dictionary of key/val strings that represent metadata
+       * 
+ * + * map<string, string> key_map = 1; + */ + + public Builder removeKeyMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableKeyMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableKeyMap() { + return internalGetMutableKeyMap().getMutableMap(); + } + /** + *
+       * key map is a dictionary of key/val strings that represent metadata
+       * 
+ * + * map<string, string> key_map = 1; + */ + public Builder putKeyMap( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableKeyMap().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * key map is a dictionary of key/val strings that represent metadata
+       * 
+ * + * map<string, string> key_map = 1; + */ + + public Builder putAllKeyMap( + java.util.Map values) { + internalGetMutableKeyMap().getMutableMap() + .putAll(values); + 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:datacatalog.Metadata) + } + + // @@protoc_insertion_point(class_scope:datacatalog.Metadata) + private static final datacatalog.Datacatalog.Metadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.Metadata(); + } + + public static datacatalog.Datacatalog.Metadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Metadata(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 datacatalog.Datacatalog.Metadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FilterExpressionOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.FilterExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + java.util.List + getFiltersList(); + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + datacatalog.Datacatalog.SinglePropertyFilter getFilters(int index); + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + int getFiltersCount(); + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + java.util.List + getFiltersOrBuilderList(); + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + datacatalog.Datacatalog.SinglePropertyFilterOrBuilder getFiltersOrBuilder( + int index); + } + /** + *
+   * Filter expression that is composed of a combination of single filters
+   * 
+ * + * Protobuf type {@code datacatalog.FilterExpression} + */ + public static final class FilterExpression extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.FilterExpression) + FilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use FilterExpression.newBuilder() to construct. + private FilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FilterExpression() { + filters_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FilterExpression( + 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)) { + filters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + filters_.add( + input.readMessage(datacatalog.Datacatalog.SinglePropertyFilter.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)) { + filters_ = java.util.Collections.unmodifiableList(filters_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_FilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_FilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.FilterExpression.class, datacatalog.Datacatalog.FilterExpression.Builder.class); + } + + public static final int FILTERS_FIELD_NUMBER = 1; + private java.util.List filters_; + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public java.util.List getFiltersList() { + return filters_; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public java.util.List + getFiltersOrBuilderList() { + return filters_; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public int getFiltersCount() { + return filters_.size(); + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public datacatalog.Datacatalog.SinglePropertyFilter getFilters(int index) { + return filters_.get(index); + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public datacatalog.Datacatalog.SinglePropertyFilterOrBuilder getFiltersOrBuilder( + int index) { + return filters_.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 < filters_.size(); i++) { + output.writeMessage(1, filters_.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 < filters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, filters_.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 datacatalog.Datacatalog.FilterExpression)) { + return super.equals(obj); + } + datacatalog.Datacatalog.FilterExpression other = (datacatalog.Datacatalog.FilterExpression) obj; + + if (!getFiltersList() + .equals(other.getFiltersList())) 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 (getFiltersCount() > 0) { + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFiltersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.FilterExpression parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.FilterExpression parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.FilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.FilterExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.FilterExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.FilterExpression parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.FilterExpression parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.FilterExpression 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 datacatalog.Datacatalog.FilterExpression parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.FilterExpression 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 datacatalog.Datacatalog.FilterExpression parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.FilterExpression 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(datacatalog.Datacatalog.FilterExpression 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; + } + /** + *
+     * Filter expression that is composed of a combination of single filters
+     * 
+ * + * Protobuf type {@code datacatalog.FilterExpression} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.FilterExpression) + datacatalog.Datacatalog.FilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_FilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_FilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.FilterExpression.class, datacatalog.Datacatalog.FilterExpression.Builder.class); + } + + // Construct using datacatalog.Datacatalog.FilterExpression.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFiltersFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (filtersBuilder_ == null) { + filters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + filtersBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_FilterExpression_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.FilterExpression getDefaultInstanceForType() { + return datacatalog.Datacatalog.FilterExpression.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.FilterExpression build() { + datacatalog.Datacatalog.FilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.FilterExpression buildPartial() { + datacatalog.Datacatalog.FilterExpression result = new datacatalog.Datacatalog.FilterExpression(this); + int from_bitField0_ = bitField0_; + if (filtersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + filters_ = java.util.Collections.unmodifiableList(filters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.filters_ = filters_; + } else { + result.filters_ = filtersBuilder_.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 datacatalog.Datacatalog.FilterExpression) { + return mergeFrom((datacatalog.Datacatalog.FilterExpression)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.FilterExpression other) { + if (other == datacatalog.Datacatalog.FilterExpression.getDefaultInstance()) return this; + if (filtersBuilder_ == null) { + if (!other.filters_.isEmpty()) { + if (filters_.isEmpty()) { + filters_ = other.filters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFiltersIsMutable(); + filters_.addAll(other.filters_); + } + onChanged(); + } + } else { + if (!other.filters_.isEmpty()) { + if (filtersBuilder_.isEmpty()) { + filtersBuilder_.dispose(); + filtersBuilder_ = null; + filters_ = other.filters_; + bitField0_ = (bitField0_ & ~0x00000001); + filtersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFiltersFieldBuilder() : null; + } else { + filtersBuilder_.addAllMessages(other.filters_); + } + } + } + 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 { + datacatalog.Datacatalog.FilterExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.FilterExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List filters_ = + java.util.Collections.emptyList(); + private void ensureFiltersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + filters_ = new java.util.ArrayList(filters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.SinglePropertyFilter, datacatalog.Datacatalog.SinglePropertyFilter.Builder, datacatalog.Datacatalog.SinglePropertyFilterOrBuilder> filtersBuilder_; + + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public java.util.List getFiltersList() { + if (filtersBuilder_ == null) { + return java.util.Collections.unmodifiableList(filters_); + } else { + return filtersBuilder_.getMessageList(); + } + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public int getFiltersCount() { + if (filtersBuilder_ == null) { + return filters_.size(); + } else { + return filtersBuilder_.getCount(); + } + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public datacatalog.Datacatalog.SinglePropertyFilter getFilters(int index) { + if (filtersBuilder_ == null) { + return filters_.get(index); + } else { + return filtersBuilder_.getMessage(index); + } + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder setFilters( + int index, datacatalog.Datacatalog.SinglePropertyFilter value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.set(index, value); + onChanged(); + } else { + filtersBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder setFilters( + int index, datacatalog.Datacatalog.SinglePropertyFilter.Builder builderForValue) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.set(index, builderForValue.build()); + onChanged(); + } else { + filtersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder addFilters(datacatalog.Datacatalog.SinglePropertyFilter value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.add(value); + onChanged(); + } else { + filtersBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder addFilters( + int index, datacatalog.Datacatalog.SinglePropertyFilter value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.add(index, value); + onChanged(); + } else { + filtersBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder addFilters( + datacatalog.Datacatalog.SinglePropertyFilter.Builder builderForValue) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.add(builderForValue.build()); + onChanged(); + } else { + filtersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder addFilters( + int index, datacatalog.Datacatalog.SinglePropertyFilter.Builder builderForValue) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.add(index, builderForValue.build()); + onChanged(); + } else { + filtersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder addAllFilters( + java.lang.Iterable values) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, filters_); + onChanged(); + } else { + filtersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder clearFilters() { + if (filtersBuilder_ == null) { + filters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filtersBuilder_.clear(); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder removeFilters(int index) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.remove(index); + onChanged(); + } else { + filtersBuilder_.remove(index); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public datacatalog.Datacatalog.SinglePropertyFilter.Builder getFiltersBuilder( + int index) { + return getFiltersFieldBuilder().getBuilder(index); + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public datacatalog.Datacatalog.SinglePropertyFilterOrBuilder getFiltersOrBuilder( + int index) { + if (filtersBuilder_ == null) { + return filters_.get(index); } else { + return filtersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public java.util.List + getFiltersOrBuilderList() { + if (filtersBuilder_ != null) { + return filtersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filters_); + } + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public datacatalog.Datacatalog.SinglePropertyFilter.Builder addFiltersBuilder() { + return getFiltersFieldBuilder().addBuilder( + datacatalog.Datacatalog.SinglePropertyFilter.getDefaultInstance()); + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public datacatalog.Datacatalog.SinglePropertyFilter.Builder addFiltersBuilder( + int index) { + return getFiltersFieldBuilder().addBuilder( + index, datacatalog.Datacatalog.SinglePropertyFilter.getDefaultInstance()); + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public java.util.List + getFiltersBuilderList() { + return getFiltersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.SinglePropertyFilter, datacatalog.Datacatalog.SinglePropertyFilter.Builder, datacatalog.Datacatalog.SinglePropertyFilterOrBuilder> + getFiltersFieldBuilder() { + if (filtersBuilder_ == null) { + filtersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.SinglePropertyFilter, datacatalog.Datacatalog.SinglePropertyFilter.Builder, datacatalog.Datacatalog.SinglePropertyFilterOrBuilder>( + filters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + filters_ = null; + } + return filtersBuilder_; + } + @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:datacatalog.FilterExpression) + } + + // @@protoc_insertion_point(class_scope:datacatalog.FilterExpression) + private static final datacatalog.Datacatalog.FilterExpression DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.FilterExpression(); + } + + public static datacatalog.Datacatalog.FilterExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FilterExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FilterExpression(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 datacatalog.Datacatalog.FilterExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SinglePropertyFilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.SinglePropertyFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + boolean hasTagFilter(); + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + datacatalog.Datacatalog.TagPropertyFilter getTagFilter(); + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + datacatalog.Datacatalog.TagPropertyFilterOrBuilder getTagFilterOrBuilder(); + + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + boolean hasPartitionFilter(); + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + datacatalog.Datacatalog.PartitionPropertyFilter getPartitionFilter(); + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder getPartitionFilterOrBuilder(); + + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + boolean hasArtifactFilter(); + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + datacatalog.Datacatalog.ArtifactPropertyFilter getArtifactFilter(); + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder getArtifactFilterOrBuilder(); + + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + boolean hasDatasetFilter(); + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + datacatalog.Datacatalog.DatasetPropertyFilter getDatasetFilter(); + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder getDatasetFilterOrBuilder(); + + /** + *
+     * field 10 in case we add more entities to query
+     * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + int getOperatorValue(); + /** + *
+     * field 10 in case we add more entities to query
+     * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator getOperator(); + + public datacatalog.Datacatalog.SinglePropertyFilter.PropertyFilterCase getPropertyFilterCase(); + } + /** + *
+   * A single property to filter on.
+   * 
+ * + * Protobuf type {@code datacatalog.SinglePropertyFilter} + */ + public static final class SinglePropertyFilter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.SinglePropertyFilter) + SinglePropertyFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use SinglePropertyFilter.newBuilder() to construct. + private SinglePropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SinglePropertyFilter() { + operator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SinglePropertyFilter( + 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: { + datacatalog.Datacatalog.TagPropertyFilter.Builder subBuilder = null; + if (propertyFilterCase_ == 1) { + subBuilder = ((datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_).toBuilder(); + } + propertyFilter_ = + input.readMessage(datacatalog.Datacatalog.TagPropertyFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_); + propertyFilter_ = subBuilder.buildPartial(); + } + propertyFilterCase_ = 1; + break; + } + case 18: { + datacatalog.Datacatalog.PartitionPropertyFilter.Builder subBuilder = null; + if (propertyFilterCase_ == 2) { + subBuilder = ((datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_).toBuilder(); + } + propertyFilter_ = + input.readMessage(datacatalog.Datacatalog.PartitionPropertyFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_); + propertyFilter_ = subBuilder.buildPartial(); + } + propertyFilterCase_ = 2; + break; + } + case 26: { + datacatalog.Datacatalog.ArtifactPropertyFilter.Builder subBuilder = null; + if (propertyFilterCase_ == 3) { + subBuilder = ((datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_).toBuilder(); + } + propertyFilter_ = + input.readMessage(datacatalog.Datacatalog.ArtifactPropertyFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_); + propertyFilter_ = subBuilder.buildPartial(); + } + propertyFilterCase_ = 3; + break; + } + case 34: { + datacatalog.Datacatalog.DatasetPropertyFilter.Builder subBuilder = null; + if (propertyFilterCase_ == 4) { + subBuilder = ((datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_).toBuilder(); + } + propertyFilter_ = + input.readMessage(datacatalog.Datacatalog.DatasetPropertyFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_); + propertyFilter_ = subBuilder.buildPartial(); + } + propertyFilterCase_ = 4; + break; + } + case 80: { + 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 datacatalog.Datacatalog.internal_static_datacatalog_SinglePropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_SinglePropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.SinglePropertyFilter.class, datacatalog.Datacatalog.SinglePropertyFilter.Builder.class); + } + + /** + *
+     * as use-cases come up we can add more operators, ex: gte, like, not eq etc.
+     * 
+ * + * Protobuf enum {@code datacatalog.SinglePropertyFilter.ComparisonOperator} + */ + public enum ComparisonOperator + implements com.google.protobuf.ProtocolMessageEnum { + /** + * EQUALS = 0; + */ + EQUALS(0), + UNRECOGNIZED(-1), + ; + + /** + * EQUALS = 0; + */ + public static final int EQUALS_VALUE = 0; + + + 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 ComparisonOperator valueOf(int value) { + return forNumber(value); + } + + public static ComparisonOperator forNumber(int value) { + switch (value) { + case 0: return EQUALS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ComparisonOperator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ComparisonOperator findValueByNumber(int number) { + return ComparisonOperator.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 datacatalog.Datacatalog.SinglePropertyFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final ComparisonOperator[] VALUES = values(); + + public static ComparisonOperator 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 ComparisonOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datacatalog.SinglePropertyFilter.ComparisonOperator) + } + + private int propertyFilterCase_ = 0; + private java.lang.Object propertyFilter_; + public enum PropertyFilterCase + implements com.google.protobuf.Internal.EnumLite { + TAG_FILTER(1), + PARTITION_FILTER(2), + ARTIFACT_FILTER(3), + DATASET_FILTER(4), + PROPERTYFILTER_NOT_SET(0); + private final int value; + private PropertyFilterCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PropertyFilterCase valueOf(int value) { + return forNumber(value); + } + + public static PropertyFilterCase forNumber(int value) { + switch (value) { + case 1: return TAG_FILTER; + case 2: return PARTITION_FILTER; + case 3: return ARTIFACT_FILTER; + case 4: return DATASET_FILTER; + case 0: return PROPERTYFILTER_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public PropertyFilterCase + getPropertyFilterCase() { + return PropertyFilterCase.forNumber( + propertyFilterCase_); + } + + public static final int TAG_FILTER_FIELD_NUMBER = 1; + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public boolean hasTagFilter() { + return propertyFilterCase_ == 1; + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public datacatalog.Datacatalog.TagPropertyFilter getTagFilter() { + if (propertyFilterCase_ == 1) { + return (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public datacatalog.Datacatalog.TagPropertyFilterOrBuilder getTagFilterOrBuilder() { + if (propertyFilterCase_ == 1) { + return (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); + } + + public static final int PARTITION_FILTER_FIELD_NUMBER = 2; + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public boolean hasPartitionFilter() { + return propertyFilterCase_ == 2; + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public datacatalog.Datacatalog.PartitionPropertyFilter getPartitionFilter() { + if (propertyFilterCase_ == 2) { + return (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder getPartitionFilterOrBuilder() { + if (propertyFilterCase_ == 2) { + return (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); + } + + public static final int ARTIFACT_FILTER_FIELD_NUMBER = 3; + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public boolean hasArtifactFilter() { + return propertyFilterCase_ == 3; + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public datacatalog.Datacatalog.ArtifactPropertyFilter getArtifactFilter() { + if (propertyFilterCase_ == 3) { + return (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder getArtifactFilterOrBuilder() { + if (propertyFilterCase_ == 3) { + return (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); + } + + public static final int DATASET_FILTER_FIELD_NUMBER = 4; + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public boolean hasDatasetFilter() { + return propertyFilterCase_ == 4; + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public datacatalog.Datacatalog.DatasetPropertyFilter getDatasetFilter() { + if (propertyFilterCase_ == 4) { + return (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder getDatasetFilterOrBuilder() { + if (propertyFilterCase_ == 4) { + return (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); + } + + public static final int OPERATOR_FIELD_NUMBER = 10; + private int operator_; + /** + *
+     * field 10 in case we add more entities to query
+     * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + public int getOperatorValue() { + return operator_; + } + /** + *
+     * field 10 in case we add more entities to query
+     * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + public datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator getOperator() { + @SuppressWarnings("deprecation") + datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator result = datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.valueOf(operator_); + return result == null ? datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.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 (propertyFilterCase_ == 1) { + output.writeMessage(1, (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_); + } + if (propertyFilterCase_ == 2) { + output.writeMessage(2, (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_); + } + if (propertyFilterCase_ == 3) { + output.writeMessage(3, (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_); + } + if (propertyFilterCase_ == 4) { + output.writeMessage(4, (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_); + } + if (operator_ != datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.EQUALS.getNumber()) { + output.writeEnum(10, operator_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (propertyFilterCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_); + } + if (propertyFilterCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_); + } + if (propertyFilterCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_); + } + if (propertyFilterCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_); + } + if (operator_ != datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.EQUALS.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, 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 datacatalog.Datacatalog.SinglePropertyFilter)) { + return super.equals(obj); + } + datacatalog.Datacatalog.SinglePropertyFilter other = (datacatalog.Datacatalog.SinglePropertyFilter) obj; + + if (operator_ != other.operator_) return false; + if (!getPropertyFilterCase().equals(other.getPropertyFilterCase())) return false; + switch (propertyFilterCase_) { + case 1: + if (!getTagFilter() + .equals(other.getTagFilter())) return false; + break; + case 2: + if (!getPartitionFilter() + .equals(other.getPartitionFilter())) return false; + break; + case 3: + if (!getArtifactFilter() + .equals(other.getArtifactFilter())) return false; + break; + case 4: + if (!getDatasetFilter() + .equals(other.getDatasetFilter())) 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(); + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + switch (propertyFilterCase_) { + case 1: + hash = (37 * hash) + TAG_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getTagFilter().hashCode(); + break; + case 2: + hash = (37 * hash) + PARTITION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getPartitionFilter().hashCode(); + break; + case 3: + hash = (37 * hash) + ARTIFACT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getArtifactFilter().hashCode(); + break; + case 4: + hash = (37 * hash) + DATASET_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getDatasetFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.SinglePropertyFilter 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 datacatalog.Datacatalog.SinglePropertyFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.SinglePropertyFilter 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 datacatalog.Datacatalog.SinglePropertyFilter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.SinglePropertyFilter 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(datacatalog.Datacatalog.SinglePropertyFilter 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; + } + /** + *
+     * A single property to filter on.
+     * 
+ * + * Protobuf type {@code datacatalog.SinglePropertyFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.SinglePropertyFilter) + datacatalog.Datacatalog.SinglePropertyFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_SinglePropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_SinglePropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.SinglePropertyFilter.class, datacatalog.Datacatalog.SinglePropertyFilter.Builder.class); + } + + // Construct using datacatalog.Datacatalog.SinglePropertyFilter.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(); + operator_ = 0; + + propertyFilterCase_ = 0; + propertyFilter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_SinglePropertyFilter_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.SinglePropertyFilter getDefaultInstanceForType() { + return datacatalog.Datacatalog.SinglePropertyFilter.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.SinglePropertyFilter build() { + datacatalog.Datacatalog.SinglePropertyFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.SinglePropertyFilter buildPartial() { + datacatalog.Datacatalog.SinglePropertyFilter result = new datacatalog.Datacatalog.SinglePropertyFilter(this); + if (propertyFilterCase_ == 1) { + if (tagFilterBuilder_ == null) { + result.propertyFilter_ = propertyFilter_; + } else { + result.propertyFilter_ = tagFilterBuilder_.build(); + } + } + if (propertyFilterCase_ == 2) { + if (partitionFilterBuilder_ == null) { + result.propertyFilter_ = propertyFilter_; + } else { + result.propertyFilter_ = partitionFilterBuilder_.build(); + } + } + if (propertyFilterCase_ == 3) { + if (artifactFilterBuilder_ == null) { + result.propertyFilter_ = propertyFilter_; + } else { + result.propertyFilter_ = artifactFilterBuilder_.build(); + } + } + if (propertyFilterCase_ == 4) { + if (datasetFilterBuilder_ == null) { + result.propertyFilter_ = propertyFilter_; + } else { + result.propertyFilter_ = datasetFilterBuilder_.build(); + } + } + result.operator_ = operator_; + result.propertyFilterCase_ = propertyFilterCase_; + 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 datacatalog.Datacatalog.SinglePropertyFilter) { + return mergeFrom((datacatalog.Datacatalog.SinglePropertyFilter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.SinglePropertyFilter other) { + if (other == datacatalog.Datacatalog.SinglePropertyFilter.getDefaultInstance()) return this; + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + switch (other.getPropertyFilterCase()) { + case TAG_FILTER: { + mergeTagFilter(other.getTagFilter()); + break; + } + case PARTITION_FILTER: { + mergePartitionFilter(other.getPartitionFilter()); + break; + } + case ARTIFACT_FILTER: { + mergeArtifactFilter(other.getArtifactFilter()); + break; + } + case DATASET_FILTER: { + mergeDatasetFilter(other.getDatasetFilter()); + break; + } + case PROPERTYFILTER_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 { + datacatalog.Datacatalog.SinglePropertyFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.SinglePropertyFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int propertyFilterCase_ = 0; + private java.lang.Object propertyFilter_; + public PropertyFilterCase + getPropertyFilterCase() { + return PropertyFilterCase.forNumber( + propertyFilterCase_); + } + + public Builder clearPropertyFilter() { + propertyFilterCase_ = 0; + propertyFilter_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.TagPropertyFilter, datacatalog.Datacatalog.TagPropertyFilter.Builder, datacatalog.Datacatalog.TagPropertyFilterOrBuilder> tagFilterBuilder_; + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public boolean hasTagFilter() { + return propertyFilterCase_ == 1; + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public datacatalog.Datacatalog.TagPropertyFilter getTagFilter() { + if (tagFilterBuilder_ == null) { + if (propertyFilterCase_ == 1) { + return (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); + } else { + if (propertyFilterCase_ == 1) { + return tagFilterBuilder_.getMessage(); + } + return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public Builder setTagFilter(datacatalog.Datacatalog.TagPropertyFilter value) { + if (tagFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + propertyFilter_ = value; + onChanged(); + } else { + tagFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 1; + return this; + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public Builder setTagFilter( + datacatalog.Datacatalog.TagPropertyFilter.Builder builderForValue) { + if (tagFilterBuilder_ == null) { + propertyFilter_ = builderForValue.build(); + onChanged(); + } else { + tagFilterBuilder_.setMessage(builderForValue.build()); + } + propertyFilterCase_ = 1; + return this; + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public Builder mergeTagFilter(datacatalog.Datacatalog.TagPropertyFilter value) { + if (tagFilterBuilder_ == null) { + if (propertyFilterCase_ == 1 && + propertyFilter_ != datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance()) { + propertyFilter_ = datacatalog.Datacatalog.TagPropertyFilter.newBuilder((datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_) + .mergeFrom(value).buildPartial(); + } else { + propertyFilter_ = value; + } + onChanged(); + } else { + if (propertyFilterCase_ == 1) { + tagFilterBuilder_.mergeFrom(value); + } + tagFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 1; + return this; + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public Builder clearTagFilter() { + if (tagFilterBuilder_ == null) { + if (propertyFilterCase_ == 1) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + onChanged(); + } + } else { + if (propertyFilterCase_ == 1) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + } + tagFilterBuilder_.clear(); + } + return this; + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public datacatalog.Datacatalog.TagPropertyFilter.Builder getTagFilterBuilder() { + return getTagFilterFieldBuilder().getBuilder(); + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public datacatalog.Datacatalog.TagPropertyFilterOrBuilder getTagFilterOrBuilder() { + if ((propertyFilterCase_ == 1) && (tagFilterBuilder_ != null)) { + return tagFilterBuilder_.getMessageOrBuilder(); + } else { + if (propertyFilterCase_ == 1) { + return (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.TagPropertyFilter, datacatalog.Datacatalog.TagPropertyFilter.Builder, datacatalog.Datacatalog.TagPropertyFilterOrBuilder> + getTagFilterFieldBuilder() { + if (tagFilterBuilder_ == null) { + if (!(propertyFilterCase_ == 1)) { + propertyFilter_ = datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); + } + tagFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.TagPropertyFilter, datacatalog.Datacatalog.TagPropertyFilter.Builder, datacatalog.Datacatalog.TagPropertyFilterOrBuilder>( + (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_, + getParentForChildren(), + isClean()); + propertyFilter_ = null; + } + propertyFilterCase_ = 1; + onChanged();; + return tagFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PartitionPropertyFilter, datacatalog.Datacatalog.PartitionPropertyFilter.Builder, datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder> partitionFilterBuilder_; + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public boolean hasPartitionFilter() { + return propertyFilterCase_ == 2; + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public datacatalog.Datacatalog.PartitionPropertyFilter getPartitionFilter() { + if (partitionFilterBuilder_ == null) { + if (propertyFilterCase_ == 2) { + return (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); + } else { + if (propertyFilterCase_ == 2) { + return partitionFilterBuilder_.getMessage(); + } + return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public Builder setPartitionFilter(datacatalog.Datacatalog.PartitionPropertyFilter value) { + if (partitionFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + propertyFilter_ = value; + onChanged(); + } else { + partitionFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 2; + return this; + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public Builder setPartitionFilter( + datacatalog.Datacatalog.PartitionPropertyFilter.Builder builderForValue) { + if (partitionFilterBuilder_ == null) { + propertyFilter_ = builderForValue.build(); + onChanged(); + } else { + partitionFilterBuilder_.setMessage(builderForValue.build()); + } + propertyFilterCase_ = 2; + return this; + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public Builder mergePartitionFilter(datacatalog.Datacatalog.PartitionPropertyFilter value) { + if (partitionFilterBuilder_ == null) { + if (propertyFilterCase_ == 2 && + propertyFilter_ != datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance()) { + propertyFilter_ = datacatalog.Datacatalog.PartitionPropertyFilter.newBuilder((datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_) + .mergeFrom(value).buildPartial(); + } else { + propertyFilter_ = value; + } + onChanged(); + } else { + if (propertyFilterCase_ == 2) { + partitionFilterBuilder_.mergeFrom(value); + } + partitionFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 2; + return this; + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public Builder clearPartitionFilter() { + if (partitionFilterBuilder_ == null) { + if (propertyFilterCase_ == 2) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + onChanged(); + } + } else { + if (propertyFilterCase_ == 2) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + } + partitionFilterBuilder_.clear(); + } + return this; + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public datacatalog.Datacatalog.PartitionPropertyFilter.Builder getPartitionFilterBuilder() { + return getPartitionFilterFieldBuilder().getBuilder(); + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder getPartitionFilterOrBuilder() { + if ((propertyFilterCase_ == 2) && (partitionFilterBuilder_ != null)) { + return partitionFilterBuilder_.getMessageOrBuilder(); + } else { + if (propertyFilterCase_ == 2) { + return (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PartitionPropertyFilter, datacatalog.Datacatalog.PartitionPropertyFilter.Builder, datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder> + getPartitionFilterFieldBuilder() { + if (partitionFilterBuilder_ == null) { + if (!(propertyFilterCase_ == 2)) { + propertyFilter_ = datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); + } + partitionFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PartitionPropertyFilter, datacatalog.Datacatalog.PartitionPropertyFilter.Builder, datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder>( + (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_, + getParentForChildren(), + isClean()); + propertyFilter_ = null; + } + propertyFilterCase_ = 2; + onChanged();; + return partitionFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ArtifactPropertyFilter, datacatalog.Datacatalog.ArtifactPropertyFilter.Builder, datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder> artifactFilterBuilder_; + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public boolean hasArtifactFilter() { + return propertyFilterCase_ == 3; + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public datacatalog.Datacatalog.ArtifactPropertyFilter getArtifactFilter() { + if (artifactFilterBuilder_ == null) { + if (propertyFilterCase_ == 3) { + return (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); + } else { + if (propertyFilterCase_ == 3) { + return artifactFilterBuilder_.getMessage(); + } + return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public Builder setArtifactFilter(datacatalog.Datacatalog.ArtifactPropertyFilter value) { + if (artifactFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + propertyFilter_ = value; + onChanged(); + } else { + artifactFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 3; + return this; + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public Builder setArtifactFilter( + datacatalog.Datacatalog.ArtifactPropertyFilter.Builder builderForValue) { + if (artifactFilterBuilder_ == null) { + propertyFilter_ = builderForValue.build(); + onChanged(); + } else { + artifactFilterBuilder_.setMessage(builderForValue.build()); + } + propertyFilterCase_ = 3; + return this; + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public Builder mergeArtifactFilter(datacatalog.Datacatalog.ArtifactPropertyFilter value) { + if (artifactFilterBuilder_ == null) { + if (propertyFilterCase_ == 3 && + propertyFilter_ != datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance()) { + propertyFilter_ = datacatalog.Datacatalog.ArtifactPropertyFilter.newBuilder((datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_) + .mergeFrom(value).buildPartial(); + } else { + propertyFilter_ = value; + } + onChanged(); + } else { + if (propertyFilterCase_ == 3) { + artifactFilterBuilder_.mergeFrom(value); + } + artifactFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 3; + return this; + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public Builder clearArtifactFilter() { + if (artifactFilterBuilder_ == null) { + if (propertyFilterCase_ == 3) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + onChanged(); + } + } else { + if (propertyFilterCase_ == 3) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + } + artifactFilterBuilder_.clear(); + } + return this; + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public datacatalog.Datacatalog.ArtifactPropertyFilter.Builder getArtifactFilterBuilder() { + return getArtifactFilterFieldBuilder().getBuilder(); + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder getArtifactFilterOrBuilder() { + if ((propertyFilterCase_ == 3) && (artifactFilterBuilder_ != null)) { + return artifactFilterBuilder_.getMessageOrBuilder(); + } else { + if (propertyFilterCase_ == 3) { + return (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ArtifactPropertyFilter, datacatalog.Datacatalog.ArtifactPropertyFilter.Builder, datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder> + getArtifactFilterFieldBuilder() { + if (artifactFilterBuilder_ == null) { + if (!(propertyFilterCase_ == 3)) { + propertyFilter_ = datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); + } + artifactFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ArtifactPropertyFilter, datacatalog.Datacatalog.ArtifactPropertyFilter.Builder, datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder>( + (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_, + getParentForChildren(), + isClean()); + propertyFilter_ = null; + } + propertyFilterCase_ = 3; + onChanged();; + return artifactFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetPropertyFilter, datacatalog.Datacatalog.DatasetPropertyFilter.Builder, datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder> datasetFilterBuilder_; + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public boolean hasDatasetFilter() { + return propertyFilterCase_ == 4; + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public datacatalog.Datacatalog.DatasetPropertyFilter getDatasetFilter() { + if (datasetFilterBuilder_ == null) { + if (propertyFilterCase_ == 4) { + return (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); + } else { + if (propertyFilterCase_ == 4) { + return datasetFilterBuilder_.getMessage(); + } + return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public Builder setDatasetFilter(datacatalog.Datacatalog.DatasetPropertyFilter value) { + if (datasetFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + propertyFilter_ = value; + onChanged(); + } else { + datasetFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 4; + return this; + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public Builder setDatasetFilter( + datacatalog.Datacatalog.DatasetPropertyFilter.Builder builderForValue) { + if (datasetFilterBuilder_ == null) { + propertyFilter_ = builderForValue.build(); + onChanged(); + } else { + datasetFilterBuilder_.setMessage(builderForValue.build()); + } + propertyFilterCase_ = 4; + return this; + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public Builder mergeDatasetFilter(datacatalog.Datacatalog.DatasetPropertyFilter value) { + if (datasetFilterBuilder_ == null) { + if (propertyFilterCase_ == 4 && + propertyFilter_ != datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance()) { + propertyFilter_ = datacatalog.Datacatalog.DatasetPropertyFilter.newBuilder((datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_) + .mergeFrom(value).buildPartial(); + } else { + propertyFilter_ = value; + } + onChanged(); + } else { + if (propertyFilterCase_ == 4) { + datasetFilterBuilder_.mergeFrom(value); + } + datasetFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 4; + return this; + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public Builder clearDatasetFilter() { + if (datasetFilterBuilder_ == null) { + if (propertyFilterCase_ == 4) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + onChanged(); + } + } else { + if (propertyFilterCase_ == 4) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + } + datasetFilterBuilder_.clear(); + } + return this; + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public datacatalog.Datacatalog.DatasetPropertyFilter.Builder getDatasetFilterBuilder() { + return getDatasetFilterFieldBuilder().getBuilder(); + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder getDatasetFilterOrBuilder() { + if ((propertyFilterCase_ == 4) && (datasetFilterBuilder_ != null)) { + return datasetFilterBuilder_.getMessageOrBuilder(); + } else { + if (propertyFilterCase_ == 4) { + return (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetPropertyFilter, datacatalog.Datacatalog.DatasetPropertyFilter.Builder, datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder> + getDatasetFilterFieldBuilder() { + if (datasetFilterBuilder_ == null) { + if (!(propertyFilterCase_ == 4)) { + propertyFilter_ = datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); + } + datasetFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetPropertyFilter, datacatalog.Datacatalog.DatasetPropertyFilter.Builder, datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder>( + (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_, + getParentForChildren(), + isClean()); + propertyFilter_ = null; + } + propertyFilterCase_ = 4; + onChanged();; + return datasetFilterBuilder_; + } + + private int operator_ = 0; + /** + *
+       * field 10 in case we add more entities to query
+       * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + public int getOperatorValue() { + return operator_; + } + /** + *
+       * field 10 in case we add more entities to query
+       * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + *
+       * field 10 in case we add more entities to query
+       * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + public datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator getOperator() { + @SuppressWarnings("deprecation") + datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator result = datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.valueOf(operator_); + return result == null ? datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.UNRECOGNIZED : result; + } + /** + *
+       * field 10 in case we add more entities to query
+       * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + public Builder setOperator(datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * field 10 in case we add more entities to query
+       * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + 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:datacatalog.SinglePropertyFilter) + } + + // @@protoc_insertion_point(class_scope:datacatalog.SinglePropertyFilter) + private static final datacatalog.Datacatalog.SinglePropertyFilter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.SinglePropertyFilter(); + } + + public static datacatalog.Datacatalog.SinglePropertyFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SinglePropertyFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SinglePropertyFilter(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 datacatalog.Datacatalog.SinglePropertyFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ArtifactPropertyFilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ArtifactPropertyFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * string artifact_id = 1; + */ + java.lang.String getArtifactId(); + /** + * string artifact_id = 1; + */ + com.google.protobuf.ByteString + getArtifactIdBytes(); + + public datacatalog.Datacatalog.ArtifactPropertyFilter.PropertyCase getPropertyCase(); + } + /** + *
+   * Artifact properties we can filter by
+   * 
+ * + * Protobuf type {@code datacatalog.ArtifactPropertyFilter} + */ + public static final class ArtifactPropertyFilter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ArtifactPropertyFilter) + ArtifactPropertyFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArtifactPropertyFilter.newBuilder() to construct. + private ArtifactPropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ArtifactPropertyFilter() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ArtifactPropertyFilter( + 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(); + propertyCase_ = 1; + property_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_ArtifactPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ArtifactPropertyFilter.class, datacatalog.Datacatalog.ArtifactPropertyFilter.Builder.class); + } + + private int propertyCase_ = 0; + private java.lang.Object property_; + public enum PropertyCase + implements com.google.protobuf.Internal.EnumLite { + ARTIFACT_ID(1), + PROPERTY_NOT_SET(0); + private final int value; + private PropertyCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PropertyCase valueOf(int value) { + return forNumber(value); + } + + public static PropertyCase forNumber(int value) { + switch (value) { + case 1: return ARTIFACT_ID; + case 0: return PROPERTY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public static final int ARTIFACT_ID_FIELD_NUMBER = 1; + /** + * string artifact_id = 1; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + 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 (propertyCase_ == 1) { + property_ = s; + } + return s; + } + } + /** + * string artifact_id = 1; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 1) { + property_ = 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 (propertyCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (propertyCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + 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 datacatalog.Datacatalog.ArtifactPropertyFilter)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ArtifactPropertyFilter other = (datacatalog.Datacatalog.ArtifactPropertyFilter) obj; + + if (!getPropertyCase().equals(other.getPropertyCase())) return false; + switch (propertyCase_) { + case 1: + 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 (propertyCase_) { + case 1: + 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 datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter 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 datacatalog.Datacatalog.ArtifactPropertyFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter 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 datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter 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(datacatalog.Datacatalog.ArtifactPropertyFilter 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; + } + /** + *
+     * Artifact properties we can filter by
+     * 
+ * + * Protobuf type {@code datacatalog.ArtifactPropertyFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ArtifactPropertyFilter) + datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ArtifactPropertyFilter.class, datacatalog.Datacatalog.ArtifactPropertyFilter.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ArtifactPropertyFilter.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(); + propertyCase_ = 0; + property_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactPropertyFilter_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ArtifactPropertyFilter getDefaultInstanceForType() { + return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ArtifactPropertyFilter build() { + datacatalog.Datacatalog.ArtifactPropertyFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ArtifactPropertyFilter buildPartial() { + datacatalog.Datacatalog.ArtifactPropertyFilter result = new datacatalog.Datacatalog.ArtifactPropertyFilter(this); + if (propertyCase_ == 1) { + result.property_ = property_; + } + result.propertyCase_ = propertyCase_; + 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 datacatalog.Datacatalog.ArtifactPropertyFilter) { + return mergeFrom((datacatalog.Datacatalog.ArtifactPropertyFilter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ArtifactPropertyFilter other) { + if (other == datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance()) return this; + switch (other.getPropertyCase()) { + case ARTIFACT_ID: { + propertyCase_ = 1; + property_ = other.property_; + onChanged(); + break; + } + case PROPERTY_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 { + datacatalog.Datacatalog.ArtifactPropertyFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ArtifactPropertyFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int propertyCase_ = 0; + private java.lang.Object property_; + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public Builder clearProperty() { + propertyCase_ = 0; + property_ = null; + onChanged(); + return this; + } + + + /** + * string artifact_id = 1; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 1) { + property_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string artifact_id = 1; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 1) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string artifact_id = 1; + */ + public Builder setArtifactId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + propertyCase_ = 1; + property_ = value; + onChanged(); + return this; + } + /** + * string artifact_id = 1; + */ + public Builder clearArtifactId() { + if (propertyCase_ == 1) { + propertyCase_ = 0; + property_ = null; + onChanged(); + } + return this; + } + /** + * string artifact_id = 1; + */ + public Builder setArtifactIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + propertyCase_ = 1; + property_ = 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:datacatalog.ArtifactPropertyFilter) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ArtifactPropertyFilter) + private static final datacatalog.Datacatalog.ArtifactPropertyFilter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ArtifactPropertyFilter(); + } + + public static datacatalog.Datacatalog.ArtifactPropertyFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArtifactPropertyFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArtifactPropertyFilter(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 datacatalog.Datacatalog.ArtifactPropertyFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TagPropertyFilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.TagPropertyFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * string tag_name = 1; + */ + java.lang.String getTagName(); + /** + * string tag_name = 1; + */ + com.google.protobuf.ByteString + getTagNameBytes(); + + public datacatalog.Datacatalog.TagPropertyFilter.PropertyCase getPropertyCase(); + } + /** + *
+   * Tag properties we can filter by
+   * 
+ * + * Protobuf type {@code datacatalog.TagPropertyFilter} + */ + public static final class TagPropertyFilter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.TagPropertyFilter) + TagPropertyFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use TagPropertyFilter.newBuilder() to construct. + private TagPropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TagPropertyFilter() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TagPropertyFilter( + 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(); + propertyCase_ = 1; + property_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_TagPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_TagPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.TagPropertyFilter.class, datacatalog.Datacatalog.TagPropertyFilter.Builder.class); + } + + private int propertyCase_ = 0; + private java.lang.Object property_; + public enum PropertyCase + implements com.google.protobuf.Internal.EnumLite { + TAG_NAME(1), + PROPERTY_NOT_SET(0); + private final int value; + private PropertyCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PropertyCase valueOf(int value) { + return forNumber(value); + } + + public static PropertyCase forNumber(int value) { + switch (value) { + case 1: return TAG_NAME; + case 0: return PROPERTY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public static final int TAG_NAME_FIELD_NUMBER = 1; + /** + * string tag_name = 1; + */ + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + 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 (propertyCase_ == 1) { + property_ = s; + } + return s; + } + } + /** + * string tag_name = 1; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 1) { + property_ = 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 (propertyCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (propertyCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + 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 datacatalog.Datacatalog.TagPropertyFilter)) { + return super.equals(obj); + } + datacatalog.Datacatalog.TagPropertyFilter other = (datacatalog.Datacatalog.TagPropertyFilter) obj; + + if (!getPropertyCase().equals(other.getPropertyCase())) return false; + switch (propertyCase_) { + case 1: + if (!getTagName() + .equals(other.getTagName())) 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 (propertyCase_) { + case 1: + hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTagName().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.TagPropertyFilter 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 datacatalog.Datacatalog.TagPropertyFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.TagPropertyFilter 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 datacatalog.Datacatalog.TagPropertyFilter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.TagPropertyFilter 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(datacatalog.Datacatalog.TagPropertyFilter 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; + } + /** + *
+     * Tag properties we can filter by
+     * 
+ * + * Protobuf type {@code datacatalog.TagPropertyFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.TagPropertyFilter) + datacatalog.Datacatalog.TagPropertyFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_TagPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_TagPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.TagPropertyFilter.class, datacatalog.Datacatalog.TagPropertyFilter.Builder.class); + } + + // Construct using datacatalog.Datacatalog.TagPropertyFilter.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(); + propertyCase_ = 0; + property_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_TagPropertyFilter_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.TagPropertyFilter getDefaultInstanceForType() { + return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.TagPropertyFilter build() { + datacatalog.Datacatalog.TagPropertyFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.TagPropertyFilter buildPartial() { + datacatalog.Datacatalog.TagPropertyFilter result = new datacatalog.Datacatalog.TagPropertyFilter(this); + if (propertyCase_ == 1) { + result.property_ = property_; + } + result.propertyCase_ = propertyCase_; + 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 datacatalog.Datacatalog.TagPropertyFilter) { + return mergeFrom((datacatalog.Datacatalog.TagPropertyFilter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.TagPropertyFilter other) { + if (other == datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance()) return this; + switch (other.getPropertyCase()) { + case TAG_NAME: { + propertyCase_ = 1; + property_ = other.property_; + onChanged(); + break; + } + case PROPERTY_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 { + datacatalog.Datacatalog.TagPropertyFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.TagPropertyFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int propertyCase_ = 0; + private java.lang.Object property_; + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public Builder clearProperty() { + propertyCase_ = 0; + property_ = null; + onChanged(); + return this; + } + + + /** + * string tag_name = 1; + */ + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 1) { + property_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tag_name = 1; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 1) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tag_name = 1; + */ + public Builder setTagName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + propertyCase_ = 1; + property_ = value; + onChanged(); + return this; + } + /** + * string tag_name = 1; + */ + public Builder clearTagName() { + if (propertyCase_ == 1) { + propertyCase_ = 0; + property_ = null; + onChanged(); + } + return this; + } + /** + * string tag_name = 1; + */ + public Builder setTagNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + propertyCase_ = 1; + property_ = 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:datacatalog.TagPropertyFilter) + } + + // @@protoc_insertion_point(class_scope:datacatalog.TagPropertyFilter) + private static final datacatalog.Datacatalog.TagPropertyFilter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.TagPropertyFilter(); + } + + public static datacatalog.Datacatalog.TagPropertyFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TagPropertyFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TagPropertyFilter(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 datacatalog.Datacatalog.TagPropertyFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PartitionPropertyFilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.PartitionPropertyFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + boolean hasKeyVal(); + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + datacatalog.Datacatalog.KeyValuePair getKeyVal(); + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + datacatalog.Datacatalog.KeyValuePairOrBuilder getKeyValOrBuilder(); + + public datacatalog.Datacatalog.PartitionPropertyFilter.PropertyCase getPropertyCase(); + } + /** + *
+   * Partition properties we can filter by
+   * 
+ * + * Protobuf type {@code datacatalog.PartitionPropertyFilter} + */ + public static final class PartitionPropertyFilter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.PartitionPropertyFilter) + PartitionPropertyFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use PartitionPropertyFilter.newBuilder() to construct. + private PartitionPropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PartitionPropertyFilter() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PartitionPropertyFilter( + 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: { + datacatalog.Datacatalog.KeyValuePair.Builder subBuilder = null; + if (propertyCase_ == 1) { + subBuilder = ((datacatalog.Datacatalog.KeyValuePair) property_).toBuilder(); + } + property_ = + input.readMessage(datacatalog.Datacatalog.KeyValuePair.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((datacatalog.Datacatalog.KeyValuePair) property_); + property_ = subBuilder.buildPartial(); + } + propertyCase_ = 1; + 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 datacatalog.Datacatalog.internal_static_datacatalog_PartitionPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_PartitionPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.PartitionPropertyFilter.class, datacatalog.Datacatalog.PartitionPropertyFilter.Builder.class); + } + + private int propertyCase_ = 0; + private java.lang.Object property_; + public enum PropertyCase + implements com.google.protobuf.Internal.EnumLite { + KEY_VAL(1), + PROPERTY_NOT_SET(0); + private final int value; + private PropertyCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PropertyCase valueOf(int value) { + return forNumber(value); + } + + public static PropertyCase forNumber(int value) { + switch (value) { + case 1: return KEY_VAL; + case 0: return PROPERTY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public static final int KEY_VAL_FIELD_NUMBER = 1; + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public boolean hasKeyVal() { + return propertyCase_ == 1; + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public datacatalog.Datacatalog.KeyValuePair getKeyVal() { + if (propertyCase_ == 1) { + return (datacatalog.Datacatalog.KeyValuePair) property_; + } + return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public datacatalog.Datacatalog.KeyValuePairOrBuilder getKeyValOrBuilder() { + if (propertyCase_ == 1) { + return (datacatalog.Datacatalog.KeyValuePair) property_; + } + return datacatalog.Datacatalog.KeyValuePair.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 (propertyCase_ == 1) { + output.writeMessage(1, (datacatalog.Datacatalog.KeyValuePair) property_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (propertyCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (datacatalog.Datacatalog.KeyValuePair) property_); + } + 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 datacatalog.Datacatalog.PartitionPropertyFilter)) { + return super.equals(obj); + } + datacatalog.Datacatalog.PartitionPropertyFilter other = (datacatalog.Datacatalog.PartitionPropertyFilter) obj; + + if (!getPropertyCase().equals(other.getPropertyCase())) return false; + switch (propertyCase_) { + case 1: + if (!getKeyVal() + .equals(other.getKeyVal())) 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 (propertyCase_) { + case 1: + hash = (37 * hash) + KEY_VAL_FIELD_NUMBER; + hash = (53 * hash) + getKeyVal().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter 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 datacatalog.Datacatalog.PartitionPropertyFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter 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 datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter 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(datacatalog.Datacatalog.PartitionPropertyFilter 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; + } + /** + *
+     * Partition properties we can filter by
+     * 
+ * + * Protobuf type {@code datacatalog.PartitionPropertyFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.PartitionPropertyFilter) + datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_PartitionPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_PartitionPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.PartitionPropertyFilter.class, datacatalog.Datacatalog.PartitionPropertyFilter.Builder.class); + } + + // Construct using datacatalog.Datacatalog.PartitionPropertyFilter.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(); + propertyCase_ = 0; + property_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_PartitionPropertyFilter_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.PartitionPropertyFilter getDefaultInstanceForType() { + return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.PartitionPropertyFilter build() { + datacatalog.Datacatalog.PartitionPropertyFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.PartitionPropertyFilter buildPartial() { + datacatalog.Datacatalog.PartitionPropertyFilter result = new datacatalog.Datacatalog.PartitionPropertyFilter(this); + if (propertyCase_ == 1) { + if (keyValBuilder_ == null) { + result.property_ = property_; + } else { + result.property_ = keyValBuilder_.build(); + } + } + result.propertyCase_ = propertyCase_; + 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 datacatalog.Datacatalog.PartitionPropertyFilter) { + return mergeFrom((datacatalog.Datacatalog.PartitionPropertyFilter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.PartitionPropertyFilter other) { + if (other == datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance()) return this; + switch (other.getPropertyCase()) { + case KEY_VAL: { + mergeKeyVal(other.getKeyVal()); + break; + } + case PROPERTY_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 { + datacatalog.Datacatalog.PartitionPropertyFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.PartitionPropertyFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int propertyCase_ = 0; + private java.lang.Object property_; + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public Builder clearProperty() { + propertyCase_ = 0; + property_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.KeyValuePair, datacatalog.Datacatalog.KeyValuePair.Builder, datacatalog.Datacatalog.KeyValuePairOrBuilder> keyValBuilder_; + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public boolean hasKeyVal() { + return propertyCase_ == 1; + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public datacatalog.Datacatalog.KeyValuePair getKeyVal() { + if (keyValBuilder_ == null) { + if (propertyCase_ == 1) { + return (datacatalog.Datacatalog.KeyValuePair) property_; + } + return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); + } else { + if (propertyCase_ == 1) { + return keyValBuilder_.getMessage(); + } + return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); + } + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public Builder setKeyVal(datacatalog.Datacatalog.KeyValuePair value) { + if (keyValBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + onChanged(); + } else { + keyValBuilder_.setMessage(value); + } + propertyCase_ = 1; + return this; + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public Builder setKeyVal( + datacatalog.Datacatalog.KeyValuePair.Builder builderForValue) { + if (keyValBuilder_ == null) { + property_ = builderForValue.build(); + onChanged(); + } else { + keyValBuilder_.setMessage(builderForValue.build()); + } + propertyCase_ = 1; + return this; + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public Builder mergeKeyVal(datacatalog.Datacatalog.KeyValuePair value) { + if (keyValBuilder_ == null) { + if (propertyCase_ == 1 && + property_ != datacatalog.Datacatalog.KeyValuePair.getDefaultInstance()) { + property_ = datacatalog.Datacatalog.KeyValuePair.newBuilder((datacatalog.Datacatalog.KeyValuePair) property_) + .mergeFrom(value).buildPartial(); + } else { + property_ = value; + } + onChanged(); + } else { + if (propertyCase_ == 1) { + keyValBuilder_.mergeFrom(value); + } + keyValBuilder_.setMessage(value); + } + propertyCase_ = 1; + return this; + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public Builder clearKeyVal() { + if (keyValBuilder_ == null) { + if (propertyCase_ == 1) { + propertyCase_ = 0; + property_ = null; + onChanged(); + } + } else { + if (propertyCase_ == 1) { + propertyCase_ = 0; + property_ = null; + } + keyValBuilder_.clear(); + } + return this; + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public datacatalog.Datacatalog.KeyValuePair.Builder getKeyValBuilder() { + return getKeyValFieldBuilder().getBuilder(); + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public datacatalog.Datacatalog.KeyValuePairOrBuilder getKeyValOrBuilder() { + if ((propertyCase_ == 1) && (keyValBuilder_ != null)) { + return keyValBuilder_.getMessageOrBuilder(); + } else { + if (propertyCase_ == 1) { + return (datacatalog.Datacatalog.KeyValuePair) property_; + } + return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); + } + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.KeyValuePair, datacatalog.Datacatalog.KeyValuePair.Builder, datacatalog.Datacatalog.KeyValuePairOrBuilder> + getKeyValFieldBuilder() { + if (keyValBuilder_ == null) { + if (!(propertyCase_ == 1)) { + property_ = datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); + } + keyValBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.KeyValuePair, datacatalog.Datacatalog.KeyValuePair.Builder, datacatalog.Datacatalog.KeyValuePairOrBuilder>( + (datacatalog.Datacatalog.KeyValuePair) property_, + getParentForChildren(), + isClean()); + property_ = null; + } + propertyCase_ = 1; + onChanged();; + return keyValBuilder_; + } + @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:datacatalog.PartitionPropertyFilter) + } + + // @@protoc_insertion_point(class_scope:datacatalog.PartitionPropertyFilter) + private static final datacatalog.Datacatalog.PartitionPropertyFilter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.PartitionPropertyFilter(); + } + + public static datacatalog.Datacatalog.PartitionPropertyFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionPropertyFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PartitionPropertyFilter(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 datacatalog.Datacatalog.PartitionPropertyFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface KeyValuePairOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.KeyValuePair) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + */ + java.lang.String getKey(); + /** + * string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * string value = 2; + */ + java.lang.String getValue(); + /** + * string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code datacatalog.KeyValuePair} + */ + public static final class KeyValuePair extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.KeyValuePair) + KeyValuePairOrBuilder { + private static final long serialVersionUID = 0L; + // Use KeyValuePair.newBuilder() to construct. + private KeyValuePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private KeyValuePair() { + key_ = ""; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KeyValuePair( + 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(); + + key_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_KeyValuePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.KeyValuePair.class, datacatalog.Datacatalog.KeyValuePair.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } + } + /** + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = 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 (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + 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 (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + 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 datacatalog.Datacatalog.KeyValuePair)) { + return super.equals(obj); + } + datacatalog.Datacatalog.KeyValuePair other = (datacatalog.Datacatalog.KeyValuePair) obj; + + if (!getKey() + .equals(other.getKey())) 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.KeyValuePair parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.KeyValuePair parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.KeyValuePair parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.KeyValuePair parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.KeyValuePair parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.KeyValuePair parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.KeyValuePair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.KeyValuePair 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 datacatalog.Datacatalog.KeyValuePair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.KeyValuePair 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 datacatalog.Datacatalog.KeyValuePair parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.KeyValuePair 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(datacatalog.Datacatalog.KeyValuePair 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 datacatalog.KeyValuePair} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.KeyValuePair) + datacatalog.Datacatalog.KeyValuePairOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_KeyValuePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.KeyValuePair.class, datacatalog.Datacatalog.KeyValuePair.Builder.class); + } + + // Construct using datacatalog.Datacatalog.KeyValuePair.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(); + key_ = ""; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_KeyValuePair_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.KeyValuePair getDefaultInstanceForType() { + return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.KeyValuePair build() { + datacatalog.Datacatalog.KeyValuePair result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.KeyValuePair buildPartial() { + datacatalog.Datacatalog.KeyValuePair result = new datacatalog.Datacatalog.KeyValuePair(this); + result.key_ = key_; + 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 datacatalog.Datacatalog.KeyValuePair) { + return mergeFrom((datacatalog.Datacatalog.KeyValuePair)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.KeyValuePair other) { + if (other == datacatalog.Datacatalog.KeyValuePair.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + 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 { + datacatalog.Datacatalog.KeyValuePair parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.KeyValuePair) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * string key = 1; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = 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:datacatalog.KeyValuePair) + } + + // @@protoc_insertion_point(class_scope:datacatalog.KeyValuePair) + private static final datacatalog.Datacatalog.KeyValuePair DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.KeyValuePair(); + } + + public static datacatalog.Datacatalog.KeyValuePair getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyValuePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyValuePair(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 datacatalog.Datacatalog.KeyValuePair getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DatasetPropertyFilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.DatasetPropertyFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * string project = 1; + */ + java.lang.String getProject(); + /** + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + * string name = 2; + */ + java.lang.String getName(); + /** + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string domain = 3; + */ + java.lang.String getDomain(); + /** + * string domain = 3; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + * string version = 4; + */ + java.lang.String getVersion(); + /** + * string version = 4; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + public datacatalog.Datacatalog.DatasetPropertyFilter.PropertyCase getPropertyCase(); + } + /** + *
+   * Dataset properties we can filter by
+   * 
+ * + * Protobuf type {@code datacatalog.DatasetPropertyFilter} + */ + public static final class DatasetPropertyFilter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.DatasetPropertyFilter) + DatasetPropertyFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatasetPropertyFilter.newBuilder() to construct. + private DatasetPropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DatasetPropertyFilter() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DatasetPropertyFilter( + 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(); + propertyCase_ = 1; + property_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + propertyCase_ = 2; + property_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + propertyCase_ = 3; + property_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + propertyCase_ = 4; + property_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_DatasetPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.DatasetPropertyFilter.class, datacatalog.Datacatalog.DatasetPropertyFilter.Builder.class); + } + + private int propertyCase_ = 0; + private java.lang.Object property_; + public enum PropertyCase + implements com.google.protobuf.Internal.EnumLite { + PROJECT(1), + NAME(2), + DOMAIN(3), + VERSION(4), + PROPERTY_NOT_SET(0); + private final int value; + private PropertyCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PropertyCase valueOf(int value) { + return forNumber(value); + } + + public static PropertyCase forNumber(int value) { + switch (value) { + case 1: return PROJECT; + case 2: return NAME; + case 3: return DOMAIN; + case 4: return VERSION; + case 0: return PROPERTY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + /** + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + 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 (propertyCase_ == 1) { + property_ = s; + } + return s; + } + } + /** + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 1) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + /** + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = ""; + if (propertyCase_ == 2) { + ref = property_; + } + 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 (propertyCase_ == 2) { + property_ = s; + } + return s; + } + } + /** + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 2) { + ref = property_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 2) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 3; + /** + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = ""; + if (propertyCase_ == 3) { + ref = property_; + } + 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 (propertyCase_ == 3) { + property_ = s; + } + return s; + } + } + /** + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 3) { + ref = property_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 3) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 4; + /** + * string version = 4; + */ + public java.lang.String getVersion() { + java.lang.Object ref = ""; + if (propertyCase_ == 4) { + ref = property_; + } + 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 (propertyCase_ == 4) { + property_ = s; + } + return s; + } + } + /** + * string version = 4; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 4) { + ref = property_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 4) { + property_ = 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 (propertyCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + if (propertyCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, property_); + } + if (propertyCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, property_); + } + if (propertyCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, property_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (propertyCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + if (propertyCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, property_); + } + if (propertyCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, property_); + } + if (propertyCase_ == 4) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, property_); + } + 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 datacatalog.Datacatalog.DatasetPropertyFilter)) { + return super.equals(obj); + } + datacatalog.Datacatalog.DatasetPropertyFilter other = (datacatalog.Datacatalog.DatasetPropertyFilter) obj; + + if (!getPropertyCase().equals(other.getPropertyCase())) return false; + switch (propertyCase_) { + case 1: + if (!getProject() + .equals(other.getProject())) return false; + break; + case 2: + if (!getName() + .equals(other.getName())) return false; + break; + case 3: + if (!getDomain() + .equals(other.getDomain())) return false; + break; + case 4: + if (!getVersion() + .equals(other.getVersion())) 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 (propertyCase_) { + case 1: + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + break; + case 2: + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + break; + case 3: + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + break; + case 4: + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter 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 datacatalog.Datacatalog.DatasetPropertyFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter 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 datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter 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(datacatalog.Datacatalog.DatasetPropertyFilter 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; + } + /** + *
+     * Dataset properties we can filter by
+     * 
+ * + * Protobuf type {@code datacatalog.DatasetPropertyFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.DatasetPropertyFilter) + datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.DatasetPropertyFilter.class, datacatalog.Datacatalog.DatasetPropertyFilter.Builder.class); + } + + // Construct using datacatalog.Datacatalog.DatasetPropertyFilter.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(); + propertyCase_ = 0; + property_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetPropertyFilter_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.DatasetPropertyFilter getDefaultInstanceForType() { + return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.DatasetPropertyFilter build() { + datacatalog.Datacatalog.DatasetPropertyFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.DatasetPropertyFilter buildPartial() { + datacatalog.Datacatalog.DatasetPropertyFilter result = new datacatalog.Datacatalog.DatasetPropertyFilter(this); + if (propertyCase_ == 1) { + result.property_ = property_; + } + if (propertyCase_ == 2) { + result.property_ = property_; + } + if (propertyCase_ == 3) { + result.property_ = property_; + } + if (propertyCase_ == 4) { + result.property_ = property_; + } + result.propertyCase_ = propertyCase_; + 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 datacatalog.Datacatalog.DatasetPropertyFilter) { + return mergeFrom((datacatalog.Datacatalog.DatasetPropertyFilter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.DatasetPropertyFilter other) { + if (other == datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance()) return this; + switch (other.getPropertyCase()) { + case PROJECT: { + propertyCase_ = 1; + property_ = other.property_; + onChanged(); + break; + } + case NAME: { + propertyCase_ = 2; + property_ = other.property_; + onChanged(); + break; + } + case DOMAIN: { + propertyCase_ = 3; + property_ = other.property_; + onChanged(); + break; + } + case VERSION: { + propertyCase_ = 4; + property_ = other.property_; + onChanged(); + break; + } + case PROPERTY_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 { + datacatalog.Datacatalog.DatasetPropertyFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.DatasetPropertyFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int propertyCase_ = 0; + private java.lang.Object property_; + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public Builder clearProperty() { + propertyCase_ = 0; + property_ = null; + onChanged(); + return this; + } + + + /** + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 1) { + property_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 1) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + propertyCase_ = 1; + property_ = value; + onChanged(); + return this; + } + /** + * string project = 1; + */ + public Builder clearProject() { + if (propertyCase_ == 1) { + propertyCase_ = 0; + property_ = null; + onChanged(); + } + return this; + } + /** + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + propertyCase_ = 1; + property_ = value; + onChanged(); + return this; + } + + /** + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = ""; + if (propertyCase_ == 2) { + ref = property_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 2) { + property_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 2) { + ref = property_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 2) { + property_ = 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(); + } + propertyCase_ = 2; + property_ = value; + onChanged(); + return this; + } + /** + * string name = 2; + */ + public Builder clearName() { + if (propertyCase_ == 2) { + propertyCase_ = 0; + property_ = null; + onChanged(); + } + return this; + } + /** + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + propertyCase_ = 2; + property_ = value; + onChanged(); + return this; + } + + /** + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = ""; + if (propertyCase_ == 3) { + ref = property_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 3) { + property_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 3) { + ref = property_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 3) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string domain = 3; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + propertyCase_ = 3; + property_ = value; + onChanged(); + return this; + } + /** + * string domain = 3; + */ + public Builder clearDomain() { + if (propertyCase_ == 3) { + propertyCase_ = 0; + property_ = null; + onChanged(); + } + return this; + } + /** + * string domain = 3; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + propertyCase_ = 3; + property_ = value; + onChanged(); + return this; + } + + /** + * string version = 4; + */ + public java.lang.String getVersion() { + java.lang.Object ref = ""; + if (propertyCase_ == 4) { + ref = property_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 4) { + property_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string version = 4; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 4) { + ref = property_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 4) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string version = 4; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + propertyCase_ = 4; + property_ = value; + onChanged(); + return this; + } + /** + * string version = 4; + */ + public Builder clearVersion() { + if (propertyCase_ == 4) { + propertyCase_ = 0; + property_ = null; + onChanged(); + } + return this; + } + /** + * string version = 4; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + propertyCase_ = 4; + property_ = 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:datacatalog.DatasetPropertyFilter) + } + + // @@protoc_insertion_point(class_scope:datacatalog.DatasetPropertyFilter) + private static final datacatalog.Datacatalog.DatasetPropertyFilter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.DatasetPropertyFilter(); + } + + public static datacatalog.Datacatalog.DatasetPropertyFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetPropertyFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DatasetPropertyFilter(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 datacatalog.Datacatalog.DatasetPropertyFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PaginationOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.PaginationOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * the max number of results to return
+     * 
+ * + * uint32 limit = 1; + */ + int getLimit(); + + /** + *
+     * the token to pass to fetch the next page
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * the token to pass to fetch the next page
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * the property that we want to sort the results by
+     * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + int getSortKeyValue(); + /** + *
+     * the property that we want to sort the results by
+     * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + datacatalog.Datacatalog.PaginationOptions.SortKey getSortKey(); + + /** + *
+     * the sort order of the results
+     * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + int getSortOrderValue(); + /** + *
+     * the sort order of the results
+     * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + datacatalog.Datacatalog.PaginationOptions.SortOrder getSortOrder(); + } + /** + *
+   * Pagination options for making list requests
+   * 
+ * + * Protobuf type {@code datacatalog.PaginationOptions} + */ + public static final class PaginationOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.PaginationOptions) + PaginationOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PaginationOptions.newBuilder() to construct. + private PaginationOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PaginationOptions() { + token_ = ""; + sortKey_ = 0; + sortOrder_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PaginationOptions( + 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: { + + limit_ = input.readUInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + sortKey_ = rawValue; + break; + } + case 32: { + int rawValue = input.readEnum(); + + sortOrder_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_PaginationOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_PaginationOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.PaginationOptions.class, datacatalog.Datacatalog.PaginationOptions.Builder.class); + } + + /** + * Protobuf enum {@code datacatalog.PaginationOptions.SortOrder} + */ + public enum SortOrder + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DESCENDING = 0; + */ + DESCENDING(0), + /** + * ASCENDING = 1; + */ + ASCENDING(1), + UNRECOGNIZED(-1), + ; + + /** + * DESCENDING = 0; + */ + public static final int DESCENDING_VALUE = 0; + /** + * ASCENDING = 1; + */ + public static final int ASCENDING_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 SortOrder valueOf(int value) { + return forNumber(value); + } + + public static SortOrder forNumber(int value) { + switch (value) { + case 0: return DESCENDING; + case 1: return ASCENDING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SortOrder> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SortOrder findValueByNumber(int number) { + return SortOrder.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 datacatalog.Datacatalog.PaginationOptions.getDescriptor().getEnumTypes().get(0); + } + + private static final SortOrder[] VALUES = values(); + + public static SortOrder 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 SortOrder(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datacatalog.PaginationOptions.SortOrder) + } + + /** + * Protobuf enum {@code datacatalog.PaginationOptions.SortKey} + */ + public enum SortKey + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CREATION_TIME = 0; + */ + CREATION_TIME(0), + UNRECOGNIZED(-1), + ; + + /** + * CREATION_TIME = 0; + */ + public static final int CREATION_TIME_VALUE = 0; + + + 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 SortKey valueOf(int value) { + return forNumber(value); + } + + public static SortKey forNumber(int value) { + switch (value) { + case 0: return CREATION_TIME; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SortKey> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SortKey findValueByNumber(int number) { + return SortKey.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 datacatalog.Datacatalog.PaginationOptions.getDescriptor().getEnumTypes().get(1); + } + + private static final SortKey[] VALUES = values(); + + public static SortKey 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 SortKey(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datacatalog.PaginationOptions.SortKey) + } + + public static final int LIMIT_FIELD_NUMBER = 1; + private int limit_; + /** + *
+     * the max number of results to return
+     * 
+ * + * uint32 limit = 1; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * the token to pass to fetch the next page
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * the token to pass to fetch the next page
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORTKEY_FIELD_NUMBER = 3; + private int sortKey_; + /** + *
+     * the property that we want to sort the results by
+     * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + public int getSortKeyValue() { + return sortKey_; + } + /** + *
+     * the property that we want to sort the results by
+     * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + public datacatalog.Datacatalog.PaginationOptions.SortKey getSortKey() { + @SuppressWarnings("deprecation") + datacatalog.Datacatalog.PaginationOptions.SortKey result = datacatalog.Datacatalog.PaginationOptions.SortKey.valueOf(sortKey_); + return result == null ? datacatalog.Datacatalog.PaginationOptions.SortKey.UNRECOGNIZED : result; + } + + public static final int SORTORDER_FIELD_NUMBER = 4; + private int sortOrder_; + /** + *
+     * the sort order of the results
+     * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + public int getSortOrderValue() { + return sortOrder_; + } + /** + *
+     * the sort order of the results
+     * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + public datacatalog.Datacatalog.PaginationOptions.SortOrder getSortOrder() { + @SuppressWarnings("deprecation") + datacatalog.Datacatalog.PaginationOptions.SortOrder result = datacatalog.Datacatalog.PaginationOptions.SortOrder.valueOf(sortOrder_); + return result == null ? datacatalog.Datacatalog.PaginationOptions.SortOrder.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 (limit_ != 0) { + output.writeUInt32(1, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + if (sortKey_ != datacatalog.Datacatalog.PaginationOptions.SortKey.CREATION_TIME.getNumber()) { + output.writeEnum(3, sortKey_); + } + if (sortOrder_ != datacatalog.Datacatalog.PaginationOptions.SortOrder.DESCENDING.getNumber()) { + output.writeEnum(4, sortOrder_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + if (sortKey_ != datacatalog.Datacatalog.PaginationOptions.SortKey.CREATION_TIME.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, sortKey_); + } + if (sortOrder_ != datacatalog.Datacatalog.PaginationOptions.SortOrder.DESCENDING.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, sortOrder_); + } + 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 datacatalog.Datacatalog.PaginationOptions)) { + return super.equals(obj); + } + datacatalog.Datacatalog.PaginationOptions other = (datacatalog.Datacatalog.PaginationOptions) obj; + + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (sortKey_ != other.sortKey_) return false; + if (sortOrder_ != other.sortOrder_) 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) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + SORTKEY_FIELD_NUMBER; + hash = (53 * hash) + sortKey_; + hash = (37 * hash) + SORTORDER_FIELD_NUMBER; + hash = (53 * hash) + sortOrder_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.PaginationOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.PaginationOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.PaginationOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.PaginationOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.PaginationOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.PaginationOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.PaginationOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.PaginationOptions 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 datacatalog.Datacatalog.PaginationOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.PaginationOptions 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 datacatalog.Datacatalog.PaginationOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.PaginationOptions 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(datacatalog.Datacatalog.PaginationOptions 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; + } + /** + *
+     * Pagination options for making list requests
+     * 
+ * + * Protobuf type {@code datacatalog.PaginationOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.PaginationOptions) + datacatalog.Datacatalog.PaginationOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_PaginationOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_PaginationOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.PaginationOptions.class, datacatalog.Datacatalog.PaginationOptions.Builder.class); + } + + // Construct using datacatalog.Datacatalog.PaginationOptions.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(); + limit_ = 0; + + token_ = ""; + + sortKey_ = 0; + + sortOrder_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_PaginationOptions_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.PaginationOptions getDefaultInstanceForType() { + return datacatalog.Datacatalog.PaginationOptions.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.PaginationOptions build() { + datacatalog.Datacatalog.PaginationOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.PaginationOptions buildPartial() { + datacatalog.Datacatalog.PaginationOptions result = new datacatalog.Datacatalog.PaginationOptions(this); + result.limit_ = limit_; + result.token_ = token_; + result.sortKey_ = sortKey_; + result.sortOrder_ = sortOrder_; + 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 datacatalog.Datacatalog.PaginationOptions) { + return mergeFrom((datacatalog.Datacatalog.PaginationOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.PaginationOptions other) { + if (other == datacatalog.Datacatalog.PaginationOptions.getDefaultInstance()) return this; + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.sortKey_ != 0) { + setSortKeyValue(other.getSortKeyValue()); + } + if (other.sortOrder_ != 0) { + setSortOrderValue(other.getSortOrderValue()); + } + 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 { + datacatalog.Datacatalog.PaginationOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.PaginationOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int limit_ ; + /** + *
+       * the max number of results to return
+       * 
+ * + * uint32 limit = 1; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * the max number of results to return
+       * 
+ * + * uint32 limit = 1; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * the max number of results to return
+       * 
+ * + * uint32 limit = 1; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * the token to pass to fetch the next page
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * the token to pass to fetch the next page
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * the token to pass to fetch the next page
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * the token to pass to fetch the next page
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * the token to pass to fetch the next page
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private int sortKey_ = 0; + /** + *
+       * the property that we want to sort the results by
+       * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + public int getSortKeyValue() { + return sortKey_; + } + /** + *
+       * the property that we want to sort the results by
+       * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + public Builder setSortKeyValue(int value) { + sortKey_ = value; + onChanged(); + return this; + } + /** + *
+       * the property that we want to sort the results by
+       * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + public datacatalog.Datacatalog.PaginationOptions.SortKey getSortKey() { + @SuppressWarnings("deprecation") + datacatalog.Datacatalog.PaginationOptions.SortKey result = datacatalog.Datacatalog.PaginationOptions.SortKey.valueOf(sortKey_); + return result == null ? datacatalog.Datacatalog.PaginationOptions.SortKey.UNRECOGNIZED : result; + } + /** + *
+       * the property that we want to sort the results by
+       * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + public Builder setSortKey(datacatalog.Datacatalog.PaginationOptions.SortKey value) { + if (value == null) { + throw new NullPointerException(); + } + + sortKey_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * the property that we want to sort the results by
+       * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + public Builder clearSortKey() { + + sortKey_ = 0; + onChanged(); + return this; + } + + private int sortOrder_ = 0; + /** + *
+       * the sort order of the results
+       * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + public int getSortOrderValue() { + return sortOrder_; + } + /** + *
+       * the sort order of the results
+       * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + public Builder setSortOrderValue(int value) { + sortOrder_ = value; + onChanged(); + return this; + } + /** + *
+       * the sort order of the results
+       * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + public datacatalog.Datacatalog.PaginationOptions.SortOrder getSortOrder() { + @SuppressWarnings("deprecation") + datacatalog.Datacatalog.PaginationOptions.SortOrder result = datacatalog.Datacatalog.PaginationOptions.SortOrder.valueOf(sortOrder_); + return result == null ? datacatalog.Datacatalog.PaginationOptions.SortOrder.UNRECOGNIZED : result; + } + /** + *
+       * the sort order of the results
+       * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + public Builder setSortOrder(datacatalog.Datacatalog.PaginationOptions.SortOrder value) { + if (value == null) { + throw new NullPointerException(); + } + + sortOrder_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * the sort order of the results
+       * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + public Builder clearSortOrder() { + + sortOrder_ = 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:datacatalog.PaginationOptions) + } + + // @@protoc_insertion_point(class_scope:datacatalog.PaginationOptions) + private static final datacatalog.Datacatalog.PaginationOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.PaginationOptions(); + } + + public static datacatalog.Datacatalog.PaginationOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PaginationOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PaginationOptions(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 datacatalog.Datacatalog.PaginationOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_CreateDatasetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_CreateDatasetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_CreateDatasetResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_CreateDatasetResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_GetDatasetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_GetDatasetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_GetDatasetResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_GetDatasetResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_GetArtifactRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_GetArtifactRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_GetArtifactResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_GetArtifactResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_CreateArtifactRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_CreateArtifactRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_CreateArtifactResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_CreateArtifactResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_AddTagRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_AddTagRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_AddTagResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_AddTagResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ListArtifactsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ListArtifactsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ListArtifactsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ListArtifactsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ListDatasetsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ListDatasetsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ListDatasetsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ListDatasetsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_Dataset_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_Dataset_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_Partition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_Partition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_DatasetID_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_DatasetID_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_Artifact_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_Artifact_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ArtifactData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ArtifactData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_Tag_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_Tag_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_Metadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_Metadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_Metadata_KeyMapEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_Metadata_KeyMapEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_FilterExpression_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_FilterExpression_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_SinglePropertyFilter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_SinglePropertyFilter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ArtifactPropertyFilter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ArtifactPropertyFilter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_TagPropertyFilter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_TagPropertyFilter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_PartitionPropertyFilter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_PartitionPropertyFilter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_KeyValuePair_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_KeyValuePair_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_DatasetPropertyFilter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_DatasetPropertyFilter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_PaginationOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_PaginationOptions_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\013datacatalog\032\034flyteidl/core/literals.pr" + + "oto\032\037google/protobuf/timestamp.proto\"=\n\024" + + "CreateDatasetRequest\022%\n\007dataset\030\001 \001(\0132\024." + + "datacatalog.Dataset\"\027\n\025CreateDatasetResp" + + "onse\"<\n\021GetDatasetRequest\022\'\n\007dataset\030\001 \001" + + "(\0132\026.datacatalog.DatasetID\";\n\022GetDataset" + + "Response\022%\n\007dataset\030\001 \001(\0132\024.datacatalog." + + "Dataset\"x\n\022GetArtifactRequest\022\'\n\007dataset" + + "\030\001 \001(\0132\026.datacatalog.DatasetID\022\025\n\013artifa" + + "ct_id\030\002 \001(\tH\000\022\022\n\010tag_name\030\003 \001(\tH\000B\016\n\014que" + + "ry_handle\">\n\023GetArtifactResponse\022\'\n\010arti" + + "fact\030\001 \001(\0132\025.datacatalog.Artifact\"@\n\025Cre" + + "ateArtifactRequest\022\'\n\010artifact\030\001 \001(\0132\025.d" + + "atacatalog.Artifact\"\030\n\026CreateArtifactRes" + + "ponse\".\n\rAddTagRequest\022\035\n\003tag\030\001 \001(\0132\020.da" + + "tacatalog.Tag\"\020\n\016AddTagResponse\"\242\001\n\024List" + + "ArtifactsRequest\022\'\n\007dataset\030\001 \001(\0132\026.data" + + "catalog.DatasetID\022-\n\006filter\030\002 \001(\0132\035.data" + + "catalog.FilterExpression\0222\n\npagination\030\003" + + " \001(\0132\036.datacatalog.PaginationOptions\"U\n\025" + + "ListArtifactsResponse\022(\n\tartifacts\030\001 \003(\013" + + "2\025.datacatalog.Artifact\022\022\n\nnext_token\030\002 " + + "\001(\t\"x\n\023ListDatasetsRequest\022-\n\006filter\030\001 \001" + + "(\0132\035.datacatalog.FilterExpression\0222\n\npag" + + "ination\030\002 \001(\0132\036.datacatalog.PaginationOp" + + "tions\"R\n\024ListDatasetsResponse\022&\n\010dataset" + + "s\030\001 \003(\0132\024.datacatalog.Dataset\022\022\n\nnext_to" + + "ken\030\002 \001(\t\"m\n\007Dataset\022\"\n\002id\030\001 \001(\0132\026.datac" + + "atalog.DatasetID\022\'\n\010metadata\030\002 \001(\0132\025.dat" + + "acatalog.Metadata\022\025\n\rpartitionKeys\030\003 \003(\t" + + "\"\'\n\tPartition\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t\"Y\n\tDatasetID\022\017\n\007project\030\001 \001(\t\022\014\n\004name\030" + + "\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\022\014" + + "\n\004UUID\030\005 \001(\t\"\215\002\n\010Artifact\022\n\n\002id\030\001 \001(\t\022\'\n" + + "\007dataset\030\002 \001(\0132\026.datacatalog.DatasetID\022\'" + + "\n\004data\030\003 \003(\0132\031.datacatalog.ArtifactData\022" + + "\'\n\010metadata\030\004 \001(\0132\025.datacatalog.Metadata" + + "\022*\n\npartitions\030\005 \003(\0132\026.datacatalog.Parti" + + "tion\022\036\n\004tags\030\006 \003(\0132\020.datacatalog.Tag\022.\n\n" + + "created_at\030\007 \001(\0132\032.google.protobuf.Times" + + "tamp\"C\n\014ArtifactData\022\014\n\004name\030\001 \001(\t\022%\n\005va" + + "lue\030\002 \001(\0132\026.flyteidl.core.Literal\"Q\n\003Tag" + + "\022\014\n\004name\030\001 \001(\t\022\023\n\013artifact_id\030\002 \001(\t\022\'\n\007d" + + "ataset\030\003 \001(\0132\026.datacatalog.DatasetID\"m\n\010" + + "Metadata\0222\n\007key_map\030\001 \003(\0132!.datacatalog." + + "Metadata.KeyMapEntry\032-\n\013KeyMapEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\020FilterExp" + + "ression\0222\n\007filters\030\001 \003(\0132!.datacatalog.S" + + "inglePropertyFilter\"\211\003\n\024SinglePropertyFi" + + "lter\0224\n\ntag_filter\030\001 \001(\0132\036.datacatalog.T" + + "agPropertyFilterH\000\022@\n\020partition_filter\030\002" + + " \001(\0132$.datacatalog.PartitionPropertyFilt" + + "erH\000\022>\n\017artifact_filter\030\003 \001(\0132#.datacata" + + "log.ArtifactPropertyFilterH\000\022<\n\016dataset_" + + "filter\030\004 \001(\0132\".datacatalog.DatasetProper" + + "tyFilterH\000\022F\n\010operator\030\n \001(\01624.datacatal" + + "og.SinglePropertyFilter.ComparisonOperat" + + "or\" \n\022ComparisonOperator\022\n\n\006EQUALS\020\000B\021\n\017" + + "property_filter\";\n\026ArtifactPropertyFilte" + + "r\022\025\n\013artifact_id\030\001 \001(\tH\000B\n\n\010property\"3\n\021" + + "TagPropertyFilter\022\022\n\010tag_name\030\001 \001(\tH\000B\n\n" + + "\010property\"S\n\027PartitionPropertyFilter\022,\n\007" + + "key_val\030\001 \001(\0132\031.datacatalog.KeyValuePair" + + "H\000B\n\n\010property\"*\n\014KeyValuePair\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t\"k\n\025DatasetPropertyFil" + + "ter\022\021\n\007project\030\001 \001(\tH\000\022\016\n\004name\030\002 \001(\tH\000\022\020" + + "\n\006domain\030\003 \001(\tH\000\022\021\n\007version\030\004 \001(\tH\000B\n\n\010p" + + "roperty\"\361\001\n\021PaginationOptions\022\r\n\005limit\030\001" + + " \001(\r\022\r\n\005token\030\002 \001(\t\0227\n\007sortKey\030\003 \001(\0162&.d" + + "atacatalog.PaginationOptions.SortKey\022;\n\t" + + "sortOrder\030\004 \001(\0162(.datacatalog.Pagination" + + "Options.SortOrder\"*\n\tSortOrder\022\016\n\nDESCEN" + + "DING\020\000\022\r\n\tASCENDING\020\001\"\034\n\007SortKey\022\021\n\rCREA" + + "TION_TIME\020\0002\321\004\n\013DataCatalog\022V\n\rCreateDat" + + "aset\022!.datacatalog.CreateDatasetRequest\032" + + "\".datacatalog.CreateDatasetResponse\022M\n\nG" + + "etDataset\022\036.datacatalog.GetDatasetReques" + + "t\032\037.datacatalog.GetDatasetResponse\022Y\n\016Cr" + + "eateArtifact\022\".datacatalog.CreateArtifac" + + "tRequest\032#.datacatalog.CreateArtifactRes" + + "ponse\022P\n\013GetArtifact\022\037.datacatalog.GetAr" + + "tifactRequest\032 .datacatalog.GetArtifactR" + + "esponse\022A\n\006AddTag\022\032.datacatalog.AddTagRe" + + "quest\032\033.datacatalog.AddTagResponse\022V\n\rLi" + + "stArtifacts\022!.datacatalog.ListArtifactsR" + + "equest\032\".datacatalog.ListArtifactsRespon" + + "se\022S\n\014ListDatasets\022 .datacatalog.ListDat" + + "asetsRequest\032!.datacatalog.ListDatasetsR" + + "esponseb\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[] { + flyteidl.core.Literals.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_datacatalog_CreateDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_datacatalog_CreateDatasetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_CreateDatasetRequest_descriptor, + new java.lang.String[] { "Dataset", }); + internal_static_datacatalog_CreateDatasetResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_datacatalog_CreateDatasetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_CreateDatasetResponse_descriptor, + new java.lang.String[] { }); + internal_static_datacatalog_GetDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_datacatalog_GetDatasetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_GetDatasetRequest_descriptor, + new java.lang.String[] { "Dataset", }); + internal_static_datacatalog_GetDatasetResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_datacatalog_GetDatasetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_GetDatasetResponse_descriptor, + new java.lang.String[] { "Dataset", }); + internal_static_datacatalog_GetArtifactRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_datacatalog_GetArtifactRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_GetArtifactRequest_descriptor, + new java.lang.String[] { "Dataset", "ArtifactId", "TagName", "QueryHandle", }); + internal_static_datacatalog_GetArtifactResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_datacatalog_GetArtifactResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_GetArtifactResponse_descriptor, + new java.lang.String[] { "Artifact", }); + internal_static_datacatalog_CreateArtifactRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_datacatalog_CreateArtifactRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_CreateArtifactRequest_descriptor, + new java.lang.String[] { "Artifact", }); + internal_static_datacatalog_CreateArtifactResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_datacatalog_CreateArtifactResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_CreateArtifactResponse_descriptor, + new java.lang.String[] { }); + internal_static_datacatalog_AddTagRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_datacatalog_AddTagRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_AddTagRequest_descriptor, + new java.lang.String[] { "Tag", }); + internal_static_datacatalog_AddTagResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_datacatalog_AddTagResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_AddTagResponse_descriptor, + new java.lang.String[] { }); + internal_static_datacatalog_ListArtifactsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_datacatalog_ListArtifactsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ListArtifactsRequest_descriptor, + new java.lang.String[] { "Dataset", "Filter", "Pagination", }); + internal_static_datacatalog_ListArtifactsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_datacatalog_ListArtifactsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ListArtifactsResponse_descriptor, + new java.lang.String[] { "Artifacts", "NextToken", }); + internal_static_datacatalog_ListDatasetsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_datacatalog_ListDatasetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ListDatasetsRequest_descriptor, + new java.lang.String[] { "Filter", "Pagination", }); + internal_static_datacatalog_ListDatasetsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_datacatalog_ListDatasetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ListDatasetsResponse_descriptor, + new java.lang.String[] { "Datasets", "NextToken", }); + internal_static_datacatalog_Dataset_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_datacatalog_Dataset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_Dataset_descriptor, + new java.lang.String[] { "Id", "Metadata", "PartitionKeys", }); + internal_static_datacatalog_Partition_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_datacatalog_Partition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_Partition_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datacatalog_DatasetID_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_datacatalog_DatasetID_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_DatasetID_descriptor, + new java.lang.String[] { "Project", "Name", "Domain", "Version", "UUID", }); + internal_static_datacatalog_Artifact_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_datacatalog_Artifact_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_Artifact_descriptor, + new java.lang.String[] { "Id", "Dataset", "Data", "Metadata", "Partitions", "Tags", "CreatedAt", }); + internal_static_datacatalog_ArtifactData_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_datacatalog_ArtifactData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ArtifactData_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_datacatalog_Tag_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_datacatalog_Tag_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_Tag_descriptor, + new java.lang.String[] { "Name", "ArtifactId", "Dataset", }); + internal_static_datacatalog_Metadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_datacatalog_Metadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_Metadata_descriptor, + new java.lang.String[] { "KeyMap", }); + internal_static_datacatalog_Metadata_KeyMapEntry_descriptor = + internal_static_datacatalog_Metadata_descriptor.getNestedTypes().get(0); + internal_static_datacatalog_Metadata_KeyMapEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_Metadata_KeyMapEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datacatalog_FilterExpression_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_datacatalog_FilterExpression_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_FilterExpression_descriptor, + new java.lang.String[] { "Filters", }); + internal_static_datacatalog_SinglePropertyFilter_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_datacatalog_SinglePropertyFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_SinglePropertyFilter_descriptor, + new java.lang.String[] { "TagFilter", "PartitionFilter", "ArtifactFilter", "DatasetFilter", "Operator", "PropertyFilter", }); + internal_static_datacatalog_ArtifactPropertyFilter_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_datacatalog_ArtifactPropertyFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ArtifactPropertyFilter_descriptor, + new java.lang.String[] { "ArtifactId", "Property", }); + internal_static_datacatalog_TagPropertyFilter_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_datacatalog_TagPropertyFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_TagPropertyFilter_descriptor, + new java.lang.String[] { "TagName", "Property", }); + internal_static_datacatalog_PartitionPropertyFilter_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_datacatalog_PartitionPropertyFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_PartitionPropertyFilter_descriptor, + new java.lang.String[] { "KeyVal", "Property", }); + internal_static_datacatalog_KeyValuePair_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_datacatalog_KeyValuePair_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_KeyValuePair_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datacatalog_DatasetPropertyFilter_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_datacatalog_DatasetPropertyFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_DatasetPropertyFilter_descriptor, + new java.lang.String[] { "Project", "Name", "Domain", "Version", "Property", }); + internal_static_datacatalog_PaginationOptions_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_datacatalog_PaginationOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_PaginationOptions_descriptor, + new java.lang.String[] { "Limit", "Token", "SortKey", "SortOrder", }); + flyteidl.core.Literals.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/gen/pb-java/pb/lyft/datacatalog/Datacatalog.java b/gen/pb-java/pb/lyft/datacatalog/Datacatalog.java deleted file mode 100644 index 0ae8a27ac..000000000 --- a/gen/pb-java/pb/lyft/datacatalog/Datacatalog.java +++ /dev/null @@ -1,12529 +0,0 @@ -// 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/gen/pb-protodoc/flyteidl/datacatalog/datacatalog.proto.rst b/gen/pb-protodoc/flyteidl/datacatalog/datacatalog.proto.rst index d33a137b9..7f3de4d90 100644 --- a/gen/pb-protodoc/flyteidl/datacatalog/datacatalog.proto.rst +++ b/gen/pb-protodoc/flyteidl/datacatalog/datacatalog.proto.rst @@ -3,503 +3,900 @@ datacatalog.proto ====================================== -.. _api_msg_pb.lyft.datacatalog.Parameter: +.. _api_msg_datacatalog.CreateDatasetRequest: -pb.lyft.datacatalog.Parameter +datacatalog.CreateDatasetRequest +-------------------------------- + +`[datacatalog.CreateDatasetRequest proto] `_ + + +.. code-block:: json + + { + "dataset": "{...}" + } + +.. _api_field_datacatalog.CreateDatasetRequest.dataset: + +dataset + (:ref:`datacatalog.Dataset `) + + + +.. _api_msg_datacatalog.CreateDatasetResponse: + +datacatalog.CreateDatasetResponse +--------------------------------- + +`[datacatalog.CreateDatasetResponse proto] `_ + + +.. code-block:: json + + {} + + + + +.. _api_msg_datacatalog.GetDatasetRequest: + +datacatalog.GetDatasetRequest ----------------------------- -`[pb.lyft.datacatalog.Parameter proto] `_ +`[datacatalog.GetDatasetRequest proto] `_ .. code-block:: json { - "name": "...", - "value": "..." + "dataset": "{...}" } -.. _api_field_pb.lyft.datacatalog.Parameter.name: +.. _api_field_datacatalog.GetDatasetRequest.dataset: -name - (`string `_) +dataset + (:ref:`datacatalog.DatasetID `) -.. _api_field_pb.lyft.datacatalog.Parameter.value: -value - (`string `_) + +.. _api_msg_datacatalog.GetDatasetResponse: + +datacatalog.GetDatasetResponse +------------------------------ + +`[datacatalog.GetDatasetResponse proto] `_ + + +.. code-block:: json + + { + "dataset": "{...}" + } + +.. _api_field_datacatalog.GetDatasetResponse.dataset: + +dataset + (:ref:`datacatalog.Dataset `) -.. _api_msg_pb.lyft.datacatalog.Artifact: +.. _api_msg_datacatalog.GetArtifactRequest: -pb.lyft.datacatalog.Artifact ----------------------------- +datacatalog.GetArtifactRequest +------------------------------ + +`[datacatalog.GetArtifactRequest proto] `_ -`[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": [] + "dataset": "{...}", + "artifact_id": "...", + "tag_name": "..." } -.. _api_field_pb.lyft.datacatalog.Artifact.provenance: +.. _api_field_datacatalog.GetArtifactRequest.dataset: -provenance - (`string `_) +dataset + (:ref:`datacatalog.DatasetID `) -.. _api_field_pb.lyft.datacatalog.Artifact.name: +.. _api_field_datacatalog.GetArtifactRequest.artifact_id: -name +artifact_id (`string `_) -.. _api_field_pb.lyft.datacatalog.Artifact.version: + + Only one of :ref:`artifact_id `, :ref:`tag_name ` may be set. + +.. _api_field_datacatalog.GetArtifactRequest.tag_name: -version +tag_name (`string `_) -.. _api_field_pb.lyft.datacatalog.Artifact.revision: + + Only one of :ref:`artifact_id `, :ref:`tag_name ` may be set. + + + +.. _api_msg_datacatalog.GetArtifactResponse: + +datacatalog.GetArtifactResponse +------------------------------- + +`[datacatalog.GetArtifactResponse proto] `_ + + +.. code-block:: json + + { + "artifact": "{...}" + } + +.. _api_field_datacatalog.GetArtifactResponse.artifact: -revision - (`int64 `_) +artifact + (:ref:`datacatalog.Artifact `) -.. _api_field_pb.lyft.datacatalog.Artifact.created_at: -created_at - (`int64 `_) + +.. _api_msg_datacatalog.CreateArtifactRequest: + +datacatalog.CreateArtifactRequest +--------------------------------- + +`[datacatalog.CreateArtifactRequest proto] `_ + + +.. code-block:: json + + { + "artifact": "{...}" + } + +.. _api_field_datacatalog.CreateArtifactRequest.artifact: + +artifact + (:ref:`datacatalog.Artifact `) -.. _api_field_pb.lyft.datacatalog.Artifact.reference_id: -reference_id - (`string `_) + +.. _api_msg_datacatalog.CreateArtifactResponse: + +datacatalog.CreateArtifactResponse +---------------------------------- + +`[datacatalog.CreateArtifactResponse proto] `_ + + +.. code-block:: json + + {} + + + + +.. _api_msg_datacatalog.AddTagRequest: + +datacatalog.AddTagRequest +------------------------- + +`[datacatalog.AddTagRequest proto] `_ + + +.. code-block:: json + + { + "tag": "{...}" + } + +.. _api_field_datacatalog.AddTagRequest.tag: + +tag + (:ref:`datacatalog.Tag `) + + + +.. _api_msg_datacatalog.AddTagResponse: + +datacatalog.AddTagResponse +-------------------------- + +`[datacatalog.AddTagResponse proto] `_ + + +.. code-block:: json + + {} + + + + +.. _api_msg_datacatalog.ListArtifactsRequest: + +datacatalog.ListArtifactsRequest +-------------------------------- + +`[datacatalog.ListArtifactsRequest proto] `_ + +List the artifacts that belong to the Dataset + +.. code-block:: json + + { + "dataset": "{...}", + "filter": "{...}", + "pagination": "{...}" + } + +.. _api_field_datacatalog.ListArtifactsRequest.dataset: + +dataset + (:ref:`datacatalog.DatasetID `) -.. _api_field_pb.lyft.datacatalog.Artifact.inputs: +.. _api_field_datacatalog.ListArtifactsRequest.filter: -inputs - (:ref:`pb.lyft.datacatalog.Parameter `) +filter + (:ref:`datacatalog.FilterExpression `) Apply the filter expression to this query + -.. _api_field_pb.lyft.datacatalog.Artifact.outputs: +.. _api_field_datacatalog.ListArtifactsRequest.pagination: -outputs - (:ref:`pb.lyft.datacatalog.Parameter `) +pagination + (:ref:`datacatalog.PaginationOptions `) Pagination options to get a page of artifacts + -.. _api_msg_pb.lyft.datacatalog.ArtifactId: +.. _api_msg_datacatalog.ListArtifactsResponse: -pb.lyft.datacatalog.ArtifactId ------------------------------- +datacatalog.ListArtifactsResponse +--------------------------------- -`[pb.lyft.datacatalog.ArtifactId proto] `_ +`[datacatalog.ListArtifactsResponse proto] `_ +Response to list artifacts .. code-block:: json { - "name": "...", - "version": "...", - "inputs": [] + "artifacts": [], + "next_token": "..." } -.. _api_field_pb.lyft.datacatalog.ArtifactId.name: +.. _api_field_datacatalog.ListArtifactsResponse.artifacts: -name - (`string `_) +artifacts + (:ref:`datacatalog.Artifact `) The list of artifacts -.. _api_field_pb.lyft.datacatalog.ArtifactId.version: - -version - (`string `_) -.. _api_field_pb.lyft.datacatalog.ArtifactId.inputs: +.. _api_field_datacatalog.ListArtifactsResponse.next_token: -inputs - (:ref:`pb.lyft.datacatalog.Parameter `) +next_token + (`string `_) Token to use to request the next page, pass this into the next requests PaginationOptions + -.. _api_msg_pb.lyft.datacatalog.GetRequest: +.. _api_msg_datacatalog.ListDatasetsRequest: -pb.lyft.datacatalog.GetRequest ------------------------------- +datacatalog.ListDatasetsRequest +------------------------------- -`[pb.lyft.datacatalog.GetRequest proto] `_ +`[datacatalog.ListDatasetsRequest proto] `_ +List the datasets for the given query .. code-block:: json { - "provenance": "...", - "artifact_id": "{...}" + "filter": "{...}", + "pagination": "{...}" } -.. _api_field_pb.lyft.datacatalog.GetRequest.provenance: +.. _api_field_datacatalog.ListDatasetsRequest.filter: -provenance - (`string `_) +filter + (:ref:`datacatalog.FilterExpression `) Apply the filter expression to this query - Only one of :ref:`provenance `, :ref:`artifact_id ` may be set. +.. _api_field_datacatalog.ListDatasetsRequest.pagination: + +pagination + (:ref:`datacatalog.PaginationOptions `) Pagination options to get a page of datasets + -.. _api_field_pb.lyft.datacatalog.GetRequest.artifact_id: -artifact_id - (:ref:`pb.lyft.datacatalog.ArtifactId `) + +.. _api_msg_datacatalog.ListDatasetsResponse: + +datacatalog.ListDatasetsResponse +-------------------------------- + +`[datacatalog.ListDatasetsResponse proto] `_ + +List the datasets response with token for next pagination + +.. code-block:: json + + { + "datasets": [], + "next_token": "..." + } + +.. _api_field_datacatalog.ListDatasetsResponse.datasets: + +datasets + (:ref:`datacatalog.Dataset `) The list of datasets + +.. _api_field_datacatalog.ListDatasetsResponse.next_token: + +next_token + (`string `_) Token to use to request the next page, pass this into the next requests PaginationOptions - Only one of :ref:`provenance `, :ref:`artifact_id ` may be set. -.. _api_msg_pb.lyft.datacatalog.GetResponse: +.. _api_msg_datacatalog.Dataset: -pb.lyft.datacatalog.GetResponse -------------------------------- +datacatalog.Dataset +------------------- -`[pb.lyft.datacatalog.GetResponse proto] `_ +`[datacatalog.Dataset proto] `_ .. code-block:: json { - "artifact": "{...}" + "id": "{...}", + "metadata": "{...}", + "partitionKeys": [] } -.. _api_field_pb.lyft.datacatalog.GetResponse.artifact: +.. _api_field_datacatalog.Dataset.id: -artifact - (:ref:`pb.lyft.datacatalog.Artifact `) +id + (:ref:`datacatalog.DatasetID `) +.. _api_field_datacatalog.Dataset.metadata: +metadata + (:ref:`datacatalog.Metadata `) + +.. _api_field_datacatalog.Dataset.partitionKeys: -.. _api_msg_pb.lyft.datacatalog.IntFilter: +partitionKeys + (`string `_) + -pb.lyft.datacatalog.IntFilter ------------------------------ -`[pb.lyft.datacatalog.IntFilter proto] `_ +.. _api_msg_datacatalog.Partition: + +datacatalog.Partition +--------------------- + +`[datacatalog.Partition proto] `_ .. code-block:: json { - "value": "...", - "operator": "..." + "key": "...", + "value": "..." } -.. _api_field_pb.lyft.datacatalog.IntFilter.value: +.. _api_field_datacatalog.Partition.key: -value - (`int64 `_) +key + (`string `_) -.. _api_field_pb.lyft.datacatalog.IntFilter.operator: +.. _api_field_datacatalog.Partition.value: -operator - (:ref:`pb.lyft.datacatalog.QueryOperator `) +value + (`string `_) -.. _api_msg_pb.lyft.datacatalog.IntRangeFilter: +.. _api_msg_datacatalog.DatasetID: -pb.lyft.datacatalog.IntRangeFilter ----------------------------------- +datacatalog.DatasetID +--------------------- -`[pb.lyft.datacatalog.IntRangeFilter proto] `_ +`[datacatalog.DatasetID proto] `_ .. code-block:: json { - "min": "...", - "max": "..." + "project": "...", + "name": "...", + "domain": "...", + "version": "...", + "UUID": "..." } -.. _api_field_pb.lyft.datacatalog.IntRangeFilter.min: +.. _api_field_datacatalog.DatasetID.project: + +project + (`string `_) + +.. _api_field_datacatalog.DatasetID.name: + +name + (`string `_) + +.. _api_field_datacatalog.DatasetID.domain: -min - (`int64 `_) +domain + (`string `_) -.. _api_field_pb.lyft.datacatalog.IntRangeFilter.max: +.. _api_field_datacatalog.DatasetID.version: -max - (`int64 `_) +version + (`string `_) +.. _api_field_datacatalog.DatasetID.UUID: +UUID + (`string `_) + -.. _api_msg_pb.lyft.datacatalog.IntQueryKey: -pb.lyft.datacatalog.IntQueryKey -------------------------------- +.. _api_msg_datacatalog.Artifact: -`[pb.lyft.datacatalog.IntQueryKey proto] `_ +datacatalog.Artifact +-------------------- + +`[datacatalog.Artifact proto] `_ .. code-block:: json { - "val": "{...}", - "range": "{...}" + "id": "...", + "dataset": "{...}", + "data": [], + "metadata": "{...}", + "partitions": [], + "tags": [], + "created_at": "{...}" } -.. _api_field_pb.lyft.datacatalog.IntQueryKey.val: +.. _api_field_datacatalog.Artifact.id: + +id + (`string `_) + +.. _api_field_datacatalog.Artifact.dataset: -val - (:ref:`pb.lyft.datacatalog.IntFilter `) +dataset + (:ref:`datacatalog.DatasetID `) +.. _api_field_datacatalog.Artifact.data: + +data + (:ref:`datacatalog.ArtifactData `) - Only one of :ref:`val `, :ref:`range ` may be set. +.. _api_field_datacatalog.Artifact.metadata: + +metadata + (:ref:`datacatalog.Metadata `) -.. _api_field_pb.lyft.datacatalog.IntQueryKey.range: +.. _api_field_datacatalog.Artifact.partitions: -range - (:ref:`pb.lyft.datacatalog.IntRangeFilter `) +partitions + (:ref:`datacatalog.Partition `) +.. _api_field_datacatalog.Artifact.tags: + +tags + (:ref:`datacatalog.Tag `) - Only one of :ref:`val `, :ref:`range ` may be set. +.. _api_field_datacatalog.Artifact.created_at: + +created_at + (:ref:`google.protobuf.Timestamp `) -.. _api_msg_pb.lyft.datacatalog.QueryRequest: +.. _api_msg_datacatalog.ArtifactData: -pb.lyft.datacatalog.QueryRequest --------------------------------- +datacatalog.ArtifactData +------------------------ -`[pb.lyft.datacatalog.QueryRequest proto] `_ +`[datacatalog.ArtifactData 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": "..." + "value": "{...}" } -.. _api_field_pb.lyft.datacatalog.QueryRequest.name: +.. _api_field_datacatalog.ArtifactData.name: name (`string `_) -.. _api_field_pb.lyft.datacatalog.QueryRequest.version: +.. _api_field_datacatalog.ArtifactData.value: -version +value + (:ref:`flyteidl.core.Literal `) + + + +.. _api_msg_datacatalog.Tag: + +datacatalog.Tag +--------------- + +`[datacatalog.Tag proto] `_ + + +.. code-block:: json + + { + "name": "...", + "artifact_id": "...", + "dataset": "{...}" + } + +.. _api_field_datacatalog.Tag.name: + +name (`string `_) -.. _api_field_pb.lyft.datacatalog.QueryRequest.revision: +.. _api_field_datacatalog.Tag.artifact_id: -revision - (:ref:`pb.lyft.datacatalog.IntQueryKey `) +artifact_id + (`string `_) -.. _api_field_pb.lyft.datacatalog.QueryRequest.created_at: +.. _api_field_datacatalog.Tag.dataset: -created_at - (`int64 `_) +dataset + (:ref:`datacatalog.DatasetID `) -.. _api_field_pb.lyft.datacatalog.QueryRequest.reference_id: -reference_id - (`string `_) + +.. _api_msg_datacatalog.Metadata: + +datacatalog.Metadata +-------------------- + +`[datacatalog.Metadata proto] `_ + + +.. code-block:: json + + { + "key_map": "{...}" + } + +.. _api_field_datacatalog.Metadata.key_map: + +key_map + (map<`string `_, `string `_>) -.. _api_msg_pb.lyft.datacatalog.QueryResponse: +.. _api_msg_datacatalog.FilterExpression: -pb.lyft.datacatalog.QueryResponse ---------------------------------- +datacatalog.FilterExpression +---------------------------- -`[pb.lyft.datacatalog.QueryResponse proto] `_ +`[datacatalog.FilterExpression proto] `_ +Filter expression that is composed of a combination of single filters .. code-block:: json { - "artifact": [] + "filters": [] } -.. _api_field_pb.lyft.datacatalog.QueryResponse.artifact: +.. _api_field_datacatalog.FilterExpression.filters: -artifact - (:ref:`pb.lyft.datacatalog.Artifact `) +filters + (:ref:`datacatalog.SinglePropertyFilter `) -.. _api_msg_pb.lyft.datacatalog.CreateRequest: +.. _api_msg_datacatalog.SinglePropertyFilter: -pb.lyft.datacatalog.CreateRequest ---------------------------------- +datacatalog.SinglePropertyFilter +-------------------------------- -`[pb.lyft.datacatalog.CreateRequest proto] `_ +`[datacatalog.SinglePropertyFilter proto] `_ +A single property to filter on. .. code-block:: json { - "ref": "{...}", - "reference_id": "...", - "revision": "...", - "outputs": [] + "tag_filter": "{...}", + "partition_filter": "{...}", + "artifact_filter": "{...}", + "dataset_filter": "{...}", + "operator": "..." } -.. _api_field_pb.lyft.datacatalog.CreateRequest.ref: +.. _api_field_datacatalog.SinglePropertyFilter.tag_filter: -ref - (:ref:`pb.lyft.datacatalog.ArtifactId `) +tag_filter + (:ref:`datacatalog.TagPropertyFilter `) + + + Only one of :ref:`tag_filter `, :ref:`partition_filter `, :ref:`artifact_filter `, :ref:`dataset_filter ` may be set. -.. _api_field_pb.lyft.datacatalog.CreateRequest.reference_id: +.. _api_field_datacatalog.SinglePropertyFilter.partition_filter: -reference_id - (`string `_) +partition_filter + (:ref:`datacatalog.PartitionPropertyFilter `) + + + Only one of :ref:`tag_filter `, :ref:`partition_filter `, :ref:`artifact_filter `, :ref:`dataset_filter ` may be set. + +.. _api_field_datacatalog.SinglePropertyFilter.artifact_filter: + +artifact_filter + (:ref:`datacatalog.ArtifactPropertyFilter `) -.. _api_field_pb.lyft.datacatalog.CreateRequest.revision: + + Only one of :ref:`tag_filter `, :ref:`partition_filter `, :ref:`artifact_filter `, :ref:`dataset_filter ` may be set. + +.. _api_field_datacatalog.SinglePropertyFilter.dataset_filter: -revision - (`int64 `_) +dataset_filter + (:ref:`datacatalog.DatasetPropertyFilter `) + -.. _api_field_pb.lyft.datacatalog.CreateRequest.outputs: + Only one of :ref:`tag_filter `, :ref:`partition_filter `, :ref:`artifact_filter `, :ref:`dataset_filter ` may be set. + +.. _api_field_datacatalog.SinglePropertyFilter.operator: -outputs - (:ref:`pb.lyft.datacatalog.Parameter `) +operator + (:ref:`datacatalog.SinglePropertyFilter.ComparisonOperator `) +.. _api_enum_datacatalog.SinglePropertyFilter.ComparisonOperator: + +Enum datacatalog.SinglePropertyFilter.ComparisonOperator +-------------------------------------------------------- + +`[datacatalog.SinglePropertyFilter.ComparisonOperator proto] `_ + +as use-cases come up we can add more operators, ex: gte, like, not eq etc. + +.. _api_enum_value_datacatalog.SinglePropertyFilter.ComparisonOperator.EQUALS: + +EQUALS + *(DEFAULT)* ⁣ + -.. _api_msg_pb.lyft.datacatalog.CreateResponse: +.. _api_msg_datacatalog.ArtifactPropertyFilter: -pb.lyft.datacatalog.CreateResponse +datacatalog.ArtifactPropertyFilter ---------------------------------- -`[pb.lyft.datacatalog.CreateResponse proto] `_ +`[datacatalog.ArtifactPropertyFilter proto] `_ +Artifact properties we can filter by .. code-block:: json { - "artifact": "{...}", - "status": "..." + "artifact_id": "..." } -.. _api_field_pb.lyft.datacatalog.CreateResponse.artifact: +.. _api_field_datacatalog.ArtifactPropertyFilter.artifact_id: -artifact - (:ref:`pb.lyft.datacatalog.Artifact `) +artifact_id + (`string `_) + oneof because we can add more properties in the future -.. _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 ----------------------------------------------- +.. _api_msg_datacatalog.TagPropertyFilter: -`[pb.lyft.datacatalog.CreateResponse.Status proto] `_ +datacatalog.TagPropertyFilter +----------------------------- +`[datacatalog.TagPropertyFilter proto] `_ -.. _api_enum_value_pb.lyft.datacatalog.CreateResponse.Status.ALREADY_EXISTS: +Tag properties we can filter by -ALREADY_EXISTS - *(DEFAULT)* ⁣ +.. code-block:: json + + { + "tag_name": "..." + } + +.. _api_field_datacatalog.TagPropertyFilter.tag_name: + +tag_name + (`string `_) + -.. _api_enum_value_pb.lyft.datacatalog.CreateResponse.Status.CREATED: -CREATED - ⁣ + +.. _api_msg_datacatalog.PartitionPropertyFilter: + +datacatalog.PartitionPropertyFilter +----------------------------------- + +`[datacatalog.PartitionPropertyFilter proto] `_ + +Partition properties we can filter by + +.. code-block:: json + + { + "key_val": "{...}" + } + +.. _api_field_datacatalog.PartitionPropertyFilter.key_val: + +key_val + (:ref:`datacatalog.KeyValuePair `) + -.. _api_msg_pb.lyft.datacatalog.GenerateProvenanceRequest: -pb.lyft.datacatalog.GenerateProvenanceRequest ---------------------------------------------- +.. _api_msg_datacatalog.KeyValuePair: -`[pb.lyft.datacatalog.GenerateProvenanceRequest proto] `_ +datacatalog.KeyValuePair +------------------------ + +`[datacatalog.KeyValuePair proto] `_ .. code-block:: json { - "id": "{...}" + "key": "...", + "value": "..." } -.. _api_field_pb.lyft.datacatalog.GenerateProvenanceRequest.id: +.. _api_field_datacatalog.KeyValuePair.key: -id - (:ref:`pb.lyft.datacatalog.ArtifactId `) +key + (`string `_) + +.. _api_field_datacatalog.KeyValuePair.value: + +value + (`string `_) -.. _api_msg_pb.lyft.datacatalog.GenerateProvenanceResponse: +.. _api_msg_datacatalog.DatasetPropertyFilter: -pb.lyft.datacatalog.GenerateProvenanceResponse ----------------------------------------------- +datacatalog.DatasetPropertyFilter +--------------------------------- -`[pb.lyft.datacatalog.GenerateProvenanceResponse proto] `_ +`[datacatalog.DatasetPropertyFilter proto] `_ +Dataset properties we can filter by .. code-block:: json { - "provenance": "..." + "project": "...", + "name": "...", + "domain": "...", + "version": "..." } -.. _api_field_pb.lyft.datacatalog.GenerateProvenanceResponse.provenance: +.. _api_field_datacatalog.DatasetPropertyFilter.project: + +project + (`string `_) + + + Only one of :ref:`project `, :ref:`name `, :ref:`domain `, :ref:`version ` may be set. + +.. _api_field_datacatalog.DatasetPropertyFilter.name: + +name + (`string `_) + + + Only one of :ref:`project `, :ref:`name `, :ref:`domain `, :ref:`version ` may be set. + +.. _api_field_datacatalog.DatasetPropertyFilter.domain: -provenance +domain + (`string `_) + + + Only one of :ref:`project `, :ref:`name `, :ref:`domain `, :ref:`version ` may be set. + +.. _api_field_datacatalog.DatasetPropertyFilter.version: + +version (`string `_) + + Only one of :ref:`project `, :ref:`name `, :ref:`domain `, :ref:`version ` may be set. + + + +.. _api_msg_datacatalog.PaginationOptions: + +datacatalog.PaginationOptions +----------------------------- + +`[datacatalog.PaginationOptions proto] `_ + +Pagination options for making list requests + +.. code-block:: json + + { + "limit": "...", + "token": "...", + "sortKey": "...", + "sortOrder": "..." + } + +.. _api_field_datacatalog.PaginationOptions.limit: + +limit + (`uint32 `_) the max number of results to return + + +.. _api_field_datacatalog.PaginationOptions.token: + +token + (`string `_) the token to pass to fetch the next page + + +.. _api_field_datacatalog.PaginationOptions.sortKey: + +sortKey + (:ref:`datacatalog.PaginationOptions.SortKey `) the property that we want to sort the results by + + +.. _api_field_datacatalog.PaginationOptions.sortOrder: + +sortOrder + (:ref:`datacatalog.PaginationOptions.SortOrder `) the sort order of the results + + -.. _api_enum_pb.lyft.datacatalog.QueryOperator: +.. _api_enum_datacatalog.PaginationOptions.SortOrder: -Enum pb.lyft.datacatalog.QueryOperator --------------------------------------- +Enum datacatalog.PaginationOptions.SortOrder +-------------------------------------------- -`[pb.lyft.datacatalog.QueryOperator proto] `_ +`[datacatalog.PaginationOptions.SortOrder proto] `_ -.. _api_enum_value_pb.lyft.datacatalog.QueryOperator.EQUAL: +.. _api_enum_value_datacatalog.PaginationOptions.SortOrder.DESCENDING: -EQUAL +DESCENDING *(DEFAULT)* ⁣ -.. _api_enum_value_pb.lyft.datacatalog.QueryOperator.GREATER_THAN: +.. _api_enum_value_datacatalog.PaginationOptions.SortOrder.ASCENDING: -GREATER_THAN +ASCENDING ⁣ -.. _api_enum_value_pb.lyft.datacatalog.QueryOperator.LESSER_THAN: -LESSER_THAN - ⁣ +.. _api_enum_datacatalog.PaginationOptions.SortKey: + +Enum datacatalog.PaginationOptions.SortKey +------------------------------------------ + +`[datacatalog.PaginationOptions.SortKey proto] `_ + + +.. _api_enum_value_datacatalog.PaginationOptions.SortKey.CREATION_TIME: + +CREATION_TIME + *(DEFAULT)* ⁣ diff --git a/gen/pb-protodoc/flyteidl/datacatalog/index.rst b/gen/pb-protodoc/flyteidl/datacatalog/index.rst index 54aac113e..6940ce64d 100644 --- a/gen/pb-protodoc/flyteidl/datacatalog/index.rst +++ b/gen/pb-protodoc/flyteidl/datacatalog/index.rst @@ -1,9 +1,5 @@ -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. - +datacatalog +=========== .. toctree:: :maxdepth: 1 diff --git a/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py b/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py index e085b81b5..6d50252f2 100644 --- a/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py +++ b/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py @@ -4,100 +4,675 @@ 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() +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='flyteidl/datacatalog/datacatalog.proto', - package='pb.lyft.datacatalog', + package='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') -) + serialized_options=None, + serialized_pb=_b('\n&flyteidl/datacatalog/datacatalog.proto\x12\x0b\x64\x61tacatalog\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"=\n\x14\x43reateDatasetRequest\x12%\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.Dataset\"\x17\n\x15\x43reateDatasetResponse\"<\n\x11GetDatasetRequest\x12\'\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\";\n\x12GetDatasetResponse\x12%\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.Dataset\"x\n\x12GetArtifactRequest\x12\'\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12\x15\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00\x12\x12\n\x08tag_name\x18\x03 \x01(\tH\x00\x42\x0e\n\x0cquery_handle\">\n\x13GetArtifactResponse\x12\'\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.Artifact\"@\n\x15\x43reateArtifactRequest\x12\'\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.Artifact\"\x18\n\x16\x43reateArtifactResponse\".\n\rAddTagRequest\x12\x1d\n\x03tag\x18\x01 \x01(\x0b\x32\x10.datacatalog.Tag\"\x10\n\x0e\x41\x64\x64TagResponse\"\xa2\x01\n\x14ListArtifactsRequest\x12\'\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12-\n\x06\x66ilter\x18\x02 \x01(\x0b\x32\x1d.datacatalog.FilterExpression\x12\x32\n\npagination\x18\x03 \x01(\x0b\x32\x1e.datacatalog.PaginationOptions\"U\n\x15ListArtifactsResponse\x12(\n\tartifacts\x18\x01 \x03(\x0b\x32\x15.datacatalog.Artifact\x12\x12\n\nnext_token\x18\x02 \x01(\t\"x\n\x13ListDatasetsRequest\x12-\n\x06\x66ilter\x18\x01 \x01(\x0b\x32\x1d.datacatalog.FilterExpression\x12\x32\n\npagination\x18\x02 \x01(\x0b\x32\x1e.datacatalog.PaginationOptions\"R\n\x14ListDatasetsResponse\x12&\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32\x14.datacatalog.Dataset\x12\x12\n\nnext_token\x18\x02 \x01(\t\"m\n\x07\x44\x61taset\x12\"\n\x02id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12\'\n\x08metadata\x18\x02 \x01(\x0b\x32\x15.datacatalog.Metadata\x12\x15\n\rpartitionKeys\x18\x03 \x03(\t\"\'\n\tPartition\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"Y\n\tDatasetID\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06\x64omain\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\x12\x0c\n\x04UUID\x18\x05 \x01(\t\"\x8d\x02\n\x08\x41rtifact\x12\n\n\x02id\x18\x01 \x01(\t\x12\'\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32\x16.datacatalog.DatasetID\x12\'\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x19.datacatalog.ArtifactData\x12\'\n\x08metadata\x18\x04 \x01(\x0b\x32\x15.datacatalog.Metadata\x12*\n\npartitions\x18\x05 \x03(\x0b\x32\x16.datacatalog.Partition\x12\x1e\n\x04tags\x18\x06 \x03(\x0b\x32\x10.datacatalog.Tag\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"C\n\x0c\x41rtifactData\x12\x0c\n\x04name\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.Literal\"Q\n\x03Tag\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x61rtifact_id\x18\x02 \x01(\t\x12\'\n\x07\x64\x61taset\x18\x03 \x01(\x0b\x32\x16.datacatalog.DatasetID\"m\n\x08Metadata\x12\x32\n\x07key_map\x18\x01 \x03(\x0b\x32!.datacatalog.Metadata.KeyMapEntry\x1a-\n\x0bKeyMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"F\n\x10\x46ilterExpression\x12\x32\n\x07\x66ilters\x18\x01 \x03(\x0b\x32!.datacatalog.SinglePropertyFilter\"\x89\x03\n\x14SinglePropertyFilter\x12\x34\n\ntag_filter\x18\x01 \x01(\x0b\x32\x1e.datacatalog.TagPropertyFilterH\x00\x12@\n\x10partition_filter\x18\x02 \x01(\x0b\x32$.datacatalog.PartitionPropertyFilterH\x00\x12>\n\x0f\x61rtifact_filter\x18\x03 \x01(\x0b\x32#.datacatalog.ArtifactPropertyFilterH\x00\x12<\n\x0e\x64\x61taset_filter\x18\x04 \x01(\x0b\x32\".datacatalog.DatasetPropertyFilterH\x00\x12\x46\n\x08operator\x18\n \x01(\x0e\x32\x34.datacatalog.SinglePropertyFilter.ComparisonOperator\" \n\x12\x43omparisonOperator\x12\n\n\x06\x45QUALS\x10\x00\x42\x11\n\x0fproperty_filter\";\n\x16\x41rtifactPropertyFilter\x12\x15\n\x0b\x61rtifact_id\x18\x01 \x01(\tH\x00\x42\n\n\x08property\"3\n\x11TagPropertyFilter\x12\x12\n\x08tag_name\x18\x01 \x01(\tH\x00\x42\n\n\x08property\"S\n\x17PartitionPropertyFilter\x12,\n\x07key_val\x18\x01 \x01(\x0b\x32\x19.datacatalog.KeyValuePairH\x00\x42\n\n\x08property\"*\n\x0cKeyValuePair\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"k\n\x15\x44\x61tasetPropertyFilter\x12\x11\n\x07project\x18\x01 \x01(\tH\x00\x12\x0e\n\x04name\x18\x02 \x01(\tH\x00\x12\x10\n\x06\x64omain\x18\x03 \x01(\tH\x00\x12\x11\n\x07version\x18\x04 \x01(\tH\x00\x42\n\n\x08property\"\xf1\x01\n\x11PaginationOptions\x12\r\n\x05limit\x18\x01 \x01(\r\x12\r\n\x05token\x18\x02 \x01(\t\x12\x37\n\x07sortKey\x18\x03 \x01(\x0e\x32&.datacatalog.PaginationOptions.SortKey\x12;\n\tsortOrder\x18\x04 \x01(\x0e\x32(.datacatalog.PaginationOptions.SortOrder\"*\n\tSortOrder\x12\x0e\n\nDESCENDING\x10\x00\x12\r\n\tASCENDING\x10\x01\"\x1c\n\x07SortKey\x12\x11\n\rCREATION_TIME\x10\x00\x32\xd1\x04\n\x0b\x44\x61taCatalog\x12V\n\rCreateDataset\x12!.datacatalog.CreateDatasetRequest\x1a\".datacatalog.CreateDatasetResponse\x12M\n\nGetDataset\x12\x1e.datacatalog.GetDatasetRequest\x1a\x1f.datacatalog.GetDatasetResponse\x12Y\n\x0e\x43reateArtifact\x12\".datacatalog.CreateArtifactRequest\x1a#.datacatalog.CreateArtifactResponse\x12P\n\x0bGetArtifact\x12\x1f.datacatalog.GetArtifactRequest\x1a .datacatalog.GetArtifactResponse\x12\x41\n\x06\x41\x64\x64Tag\x12\x1a.datacatalog.AddTagRequest\x1a\x1b.datacatalog.AddTagResponse\x12V\n\rListArtifacts\x12!.datacatalog.ListArtifactsRequest\x1a\".datacatalog.ListArtifactsResponse\x12S\n\x0cListDatasets\x12 .datacatalog.ListDatasetsRequest\x1a!.datacatalog.ListDatasetsResponseb\x06proto3') + , + dependencies=[flyteidl_dot_core_dot_literals__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + + -_QUERYOPERATOR = _descriptor.EnumDescriptor( - name='QueryOperator', - full_name='pb.lyft.datacatalog.QueryOperator', +_SINGLEPROPERTYFILTER_COMPARISONOPERATOR = _descriptor.EnumDescriptor( + name='ComparisonOperator', + full_name='datacatalog.SinglePropertyFilter.ComparisonOperator', filename=None, file=DESCRIPTOR, values=[ _descriptor.EnumValueDescriptor( - name='EQUAL', index=0, number=0, + name='EQUALS', index=0, number=0, serialized_options=None, type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=2324, + serialized_end=2356, +) +_sym_db.RegisterEnumDescriptor(_SINGLEPROPERTYFILTER_COMPARISONOPERATOR) + +_PAGINATIONOPTIONS_SORTORDER = _descriptor.EnumDescriptor( + name='SortOrder', + full_name='datacatalog.PaginationOptions.SortOrder', + filename=None, + file=DESCRIPTOR, + values=[ _descriptor.EnumValueDescriptor( - name='GREATER_THAN', index=1, number=1, + name='DESCENDING', index=0, number=0, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='LESSER_THAN', index=2, number=2, + name='ASCENDING', index=1, number=1, serialized_options=None, type=None), ], containing_type=None, serialized_options=None, - serialized_start=1489, - serialized_end=1550, + serialized_start=2899, + serialized_end=2941, ) -_sym_db.RegisterEnumDescriptor(_QUERYOPERATOR) +_sym_db.RegisterEnumDescriptor(_PAGINATIONOPTIONS_SORTORDER) -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', +_PAGINATIONOPTIONS_SORTKEY = _descriptor.EnumDescriptor( + name='SortKey', + full_name='datacatalog.PaginationOptions.SortKey', 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, + name='CREATION_TIME', index=0, number=0, serialized_options=None, type=None), ], containing_type=None, serialized_options=None, - serialized_start=1322, - serialized_end=1363, + serialized_start=2943, + serialized_end=2971, +) +_sym_db.RegisterEnumDescriptor(_PAGINATIONOPTIONS_SORTKEY) + + +_CREATEDATASETREQUEST = _descriptor.Descriptor( + name='CreateDatasetRequest', + full_name='datacatalog.CreateDatasetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='dataset', full_name='datacatalog.CreateDatasetRequest.dataset', 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=118, + serialized_end=179, +) + + +_CREATEDATASETRESPONSE = _descriptor.Descriptor( + name='CreateDatasetResponse', + full_name='datacatalog.CreateDatasetResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=181, + serialized_end=204, +) + + +_GETDATASETREQUEST = _descriptor.Descriptor( + name='GetDatasetRequest', + full_name='datacatalog.GetDatasetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='dataset', full_name='datacatalog.GetDatasetRequest.dataset', 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=206, + serialized_end=266, +) + + +_GETDATASETRESPONSE = _descriptor.Descriptor( + name='GetDatasetResponse', + full_name='datacatalog.GetDatasetResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='dataset', full_name='datacatalog.GetDatasetResponse.dataset', 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=268, + serialized_end=327, +) + + +_GETARTIFACTREQUEST = _descriptor.Descriptor( + name='GetArtifactRequest', + full_name='datacatalog.GetArtifactRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='dataset', full_name='datacatalog.GetArtifactRequest.dataset', 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='artifact_id', full_name='datacatalog.GetArtifactRequest.artifact_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='tag_name', full_name='datacatalog.GetArtifactRequest.tag_name', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='query_handle', full_name='datacatalog.GetArtifactRequest.query_handle', + index=0, containing_type=None, fields=[]), + ], + serialized_start=329, + serialized_end=449, +) + + +_GETARTIFACTRESPONSE = _descriptor.Descriptor( + name='GetArtifactResponse', + full_name='datacatalog.GetArtifactResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='artifact', full_name='datacatalog.GetArtifactResponse.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=451, + serialized_end=513, +) + + +_CREATEARTIFACTREQUEST = _descriptor.Descriptor( + name='CreateArtifactRequest', + full_name='datacatalog.CreateArtifactRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='artifact', full_name='datacatalog.CreateArtifactRequest.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=515, + serialized_end=579, +) + + +_CREATEARTIFACTRESPONSE = _descriptor.Descriptor( + name='CreateArtifactResponse', + full_name='datacatalog.CreateArtifactResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=581, + serialized_end=605, +) + + +_ADDTAGREQUEST = _descriptor.Descriptor( + name='AddTagRequest', + full_name='datacatalog.AddTagRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='tag', full_name='datacatalog.AddTagRequest.tag', 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=607, + serialized_end=653, +) + + +_ADDTAGRESPONSE = _descriptor.Descriptor( + name='AddTagResponse', + full_name='datacatalog.AddTagResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=655, + serialized_end=671, +) + + +_LISTARTIFACTSREQUEST = _descriptor.Descriptor( + name='ListArtifactsRequest', + full_name='datacatalog.ListArtifactsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='dataset', full_name='datacatalog.ListArtifactsRequest.dataset', 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='filter', full_name='datacatalog.ListArtifactsRequest.filter', 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), + _descriptor.FieldDescriptor( + name='pagination', full_name='datacatalog.ListArtifactsRequest.pagination', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=674, + serialized_end=836, +) + + +_LISTARTIFACTSRESPONSE = _descriptor.Descriptor( + name='ListArtifactsResponse', + full_name='datacatalog.ListArtifactsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='artifacts', full_name='datacatalog.ListArtifactsResponse.artifacts', 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), + _descriptor.FieldDescriptor( + name='next_token', full_name='datacatalog.ListArtifactsResponse.next_token', 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=838, + serialized_end=923, +) + + +_LISTDATASETSREQUEST = _descriptor.Descriptor( + name='ListDatasetsRequest', + full_name='datacatalog.ListDatasetsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='filter', full_name='datacatalog.ListDatasetsRequest.filter', 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='pagination', full_name='datacatalog.ListDatasetsRequest.pagination', 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=[ + ], + serialized_start=925, + serialized_end=1045, +) + + +_LISTDATASETSRESPONSE = _descriptor.Descriptor( + name='ListDatasetsResponse', + full_name='datacatalog.ListDatasetsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='datasets', full_name='datacatalog.ListDatasetsResponse.datasets', 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), + _descriptor.FieldDescriptor( + name='next_token', full_name='datacatalog.ListDatasetsResponse.next_token', 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=1047, + serialized_end=1129, +) + + +_DATASET = _descriptor.Descriptor( + name='Dataset', + full_name='datacatalog.Dataset', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='datacatalog.Dataset.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), + _descriptor.FieldDescriptor( + name='metadata', full_name='datacatalog.Dataset.metadata', 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), + _descriptor.FieldDescriptor( + name='partitionKeys', full_name='datacatalog.Dataset.partitionKeys', index=2, + number=3, type=9, cpp_type=9, 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=1131, + serialized_end=1240, +) + + +_PARTITION = _descriptor.Descriptor( + name='Partition', + full_name='datacatalog.Partition', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='datacatalog.Partition.key', 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='datacatalog.Partition.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=1242, + serialized_end=1281, ) -_sym_db.RegisterEnumDescriptor(_CREATERESPONSE_STATUS) -_PARAMETER = _descriptor.Descriptor( - name='Parameter', - full_name='pb.lyft.datacatalog.Parameter', +_DATASETID = _descriptor.Descriptor( + name='DatasetID', + full_name='datacatalog.DatasetID', 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, + name='project', full_name='datacatalog.DatasetID.project', 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='datacatalog.DatasetID.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='domain', full_name='datacatalog.DatasetID.domain', 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='version', full_name='datacatalog.DatasetID.version', index=3, + number=4, 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, + name='UUID', full_name='datacatalog.DatasetID.UUID', 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, @@ -114,71 +689,64 @@ extension_ranges=[], oneofs=[ ], - serialized_start=63, - serialized_end=103, + serialized_start=1283, + serialized_end=1372, ) _ARTIFACT = _descriptor.Descriptor( name='Artifact', - full_name='pb.lyft.datacatalog.Artifact', + full_name='datacatalog.Artifact', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='provenance', full_name='pb.lyft.datacatalog.Artifact.provenance', index=0, + name='id', full_name='datacatalog.Artifact.id', 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'), + name='dataset', full_name='datacatalog.Artifact.dataset', 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), _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, + name='data', full_name='datacatalog.Artifact.data', 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), _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, + name='metadata', full_name='datacatalog.Artifact.metadata', index=3, + number=4, 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.Artifact.reference_id', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + name='partitions', full_name='datacatalog.Artifact.partitions', index=4, + number=5, 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='inputs', full_name='pb.lyft.datacatalog.Artifact.inputs', index=6, - number=7, type=11, cpp_type=10, label=3, + name='tags', full_name='datacatalog.Artifact.tags', index=5, + number=6, 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=[], + name='created_at', full_name='datacatalog.Artifact.created_at', index=6, + number=7, 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), @@ -194,36 +762,29 @@ extension_ranges=[], oneofs=[ ], - serialized_start=106, - serialized_end=324, + serialized_start=1375, + serialized_end=1644, ) -_ARTIFACTID = _descriptor.Descriptor( - name='ArtifactId', - full_name='pb.lyft.datacatalog.ArtifactId', +_ARTIFACTDATA = _descriptor.Descriptor( + name='ArtifactData', + full_name='datacatalog.ArtifactData', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='name', full_name='pb.lyft.datacatalog.ArtifactId.name', index=0, + name='name', full_name='datacatalog.ArtifactData.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=[], + name='value', full_name='datacatalog.ArtifactData.value', 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), @@ -239,28 +800,35 @@ extension_ranges=[], oneofs=[ ], - serialized_start=326, - serialized_end=417, + serialized_start=1646, + serialized_end=1713, ) -_GETREQUEST = _descriptor.Descriptor( - name='GetRequest', - full_name='pb.lyft.datacatalog.GetRequest', +_TAG = _descriptor.Descriptor( + name='Tag', + full_name='datacatalog.Tag', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='provenance', full_name='pb.lyft.datacatalog.GetRequest.provenance', index=0, + name='name', full_name='datacatalog.Tag.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='artifact_id', full_name='pb.lyft.datacatalog.GetRequest.artifact_id', index=1, - number=2, type=11, cpp_type=10, label=1, + name='artifact_id', full_name='datacatalog.Tag.artifact_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='dataset', full_name='datacatalog.Tag.dataset', 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, @@ -276,26 +844,30 @@ 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, + serialized_start=1715, + serialized_end=1796, ) -_GETRESPONSE = _descriptor.Descriptor( - name='GetResponse', - full_name='pb.lyft.datacatalog.GetResponse', +_METADATA_KEYMAPENTRY = _descriptor.Descriptor( + name='KeyMapEntry', + full_name='datacatalog.Metadata.KeyMapEntry', 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, + name='key', full_name='datacatalog.Metadata.KeyMapEntry.key', 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='datacatalog.Metadata.KeyMapEntry.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), @@ -305,42 +877,34 @@ nested_types=[], enum_types=[ ], - serialized_options=None, + serialized_options=_b('8\001'), is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=517, - serialized_end=579, + serialized_start=1862, + serialized_end=1907, ) - -_INTFILTER = _descriptor.Descriptor( - name='IntFilter', - full_name='pb.lyft.datacatalog.IntFilter', +_METADATA = _descriptor.Descriptor( + name='Metadata', + full_name='datacatalog.Metadata', 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, + name='key_map', full_name='datacatalog.Metadata.key_map', 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=[], + nested_types=[_METADATA_KEYMAPENTRY, ], enum_types=[ ], serialized_options=None, @@ -349,29 +913,22 @@ extension_ranges=[], oneofs=[ ], - serialized_start=581, - serialized_end=661, + serialized_start=1798, + serialized_end=1907, ) -_INTRANGEFILTER = _descriptor.Descriptor( - name='IntRangeFilter', - full_name='pb.lyft.datacatalog.IntRangeFilter', +_FILTEREXPRESSION = _descriptor.Descriptor( + name='FilterExpression', + full_name='datacatalog.FilterExpression', 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, + name='filters', full_name='datacatalog.FilterExpression.filters', 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), @@ -387,37 +944,59 @@ extension_ranges=[], oneofs=[ ], - serialized_start=663, - serialized_end=705, + serialized_start=1909, + serialized_end=1979, ) -_INTQUERYKEY = _descriptor.Descriptor( - name='IntQueryKey', - full_name='pb.lyft.datacatalog.IntQueryKey', +_SINGLEPROPERTYFILTER = _descriptor.Descriptor( + name='SinglePropertyFilter', + full_name='datacatalog.SinglePropertyFilter', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='val', full_name='pb.lyft.datacatalog.IntQueryKey.val', index=0, + name='tag_filter', full_name='datacatalog.SinglePropertyFilter.tag_filter', 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, + name='partition_filter', full_name='datacatalog.SinglePropertyFilter.partition_filter', 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), + _descriptor.FieldDescriptor( + name='artifact_filter', full_name='datacatalog.SinglePropertyFilter.artifact_filter', 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='dataset_filter', full_name='datacatalog.SinglePropertyFilter.dataset_filter', index=3, + number=4, 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='operator', full_name='datacatalog.SinglePropertyFilter.operator', index=4, + number=10, 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=[ + _SINGLEPROPERTYFILTER_COMPARISONOPERATOR, ], serialized_options=None, is_extendable=False, @@ -425,56 +1004,28 @@ extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( - name='filter', full_name='pb.lyft.datacatalog.IntQueryKey.filter', + name='property_filter', full_name='datacatalog.SinglePropertyFilter.property_filter', index=0, containing_type=None, fields=[]), ], - serialized_start=707, - serialized_end=831, + serialized_start=1982, + serialized_end=2375, ) -_QUERYREQUEST = _descriptor.Descriptor( - name='QueryRequest', - full_name='pb.lyft.datacatalog.QueryRequest', +_ARTIFACTPROPERTYFILTER = _descriptor.Descriptor( + name='ArtifactPropertyFilter', + full_name='datacatalog.ArtifactPropertyFilter', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='name', full_name='pb.lyft.datacatalog.QueryRequest.name', index=0, + name='artifact_id', full_name='datacatalog.ArtifactPropertyFilter.artifact_id', 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=[ ], @@ -486,23 +1037,26 @@ syntax='proto3', extension_ranges=[], oneofs=[ + _descriptor.OneofDescriptor( + name='property', full_name='datacatalog.ArtifactPropertyFilter.property', + index=0, containing_type=None, fields=[]), ], - serialized_start=834, - serialized_end=973, + serialized_start=2377, + serialized_end=2436, ) -_QUERYRESPONSE = _descriptor.Descriptor( - name='QueryResponse', - full_name='pb.lyft.datacatalog.QueryResponse', +_TAGPROPERTYFILTER = _descriptor.Descriptor( + name='TagPropertyFilter', + full_name='datacatalog.TagPropertyFilter', 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=[], + name='tag_name', full_name='datacatalog.TagPropertyFilter.tag_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), @@ -517,47 +1071,29 @@ syntax='proto3', extension_ranges=[], oneofs=[ + _descriptor.OneofDescriptor( + name='property', full_name='datacatalog.TagPropertyFilter.property', + index=0, containing_type=None, fields=[]), ], - serialized_start=975, - serialized_end=1039, + serialized_start=2438, + serialized_end=2489, ) -_CREATEREQUEST = _descriptor.Descriptor( - name='CreateRequest', - full_name='pb.lyft.datacatalog.CreateRequest', +_PARTITIONPROPERTYFILTER = _descriptor.Descriptor( + name='PartitionPropertyFilter', + full_name='datacatalog.PartitionPropertyFilter', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='ref', full_name='pb.lyft.datacatalog.CreateRequest.ref', index=0, + name='key_val', full_name='datacatalog.PartitionPropertyFilter.key_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='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=[ ], @@ -569,30 +1105,33 @@ syntax='proto3', extension_ranges=[], oneofs=[ + _descriptor.OneofDescriptor( + name='property', full_name='datacatalog.PartitionPropertyFilter.property', + index=0, containing_type=None, fields=[]), ], - serialized_start=1042, - serialized_end=1192, + serialized_start=2491, + serialized_end=2574, ) -_CREATERESPONSE = _descriptor.Descriptor( - name='CreateResponse', - full_name='pb.lyft.datacatalog.CreateResponse', +_KEYVALUEPAIR = _descriptor.Descriptor( + name='KeyValuePair', + full_name='datacatalog.KeyValuePair', 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, + name='key', full_name='datacatalog.KeyValuePair.key', 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='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, + name='value', full_name='datacatalog.KeyValuePair.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), @@ -601,7 +1140,6 @@ ], nested_types=[], enum_types=[ - _CREATERESPONSE_STATUS, ], serialized_options=None, is_extendable=False, @@ -609,22 +1147,43 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1195, - serialized_end=1363, + serialized_start=2576, + serialized_end=2618, ) -_GENERATEPROVENANCEREQUEST = _descriptor.Descriptor( - name='GenerateProvenanceRequest', - full_name='pb.lyft.datacatalog.GenerateProvenanceRequest', +_DATASETPROPERTYFILTER = _descriptor.Descriptor( + name='DatasetPropertyFilter', + full_name='datacatalog.DatasetPropertyFilter', 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, + name='project', full_name='datacatalog.DatasetPropertyFilter.project', 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='datacatalog.DatasetPropertyFilter.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='domain', full_name='datacatalog.DatasetPropertyFilter.domain', 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='version', full_name='datacatalog.DatasetPropertyFilter.version', index=3, + number=4, 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), @@ -639,31 +1198,57 @@ syntax='proto3', extension_ranges=[], oneofs=[ + _descriptor.OneofDescriptor( + name='property', full_name='datacatalog.DatasetPropertyFilter.property', + index=0, containing_type=None, fields=[]), ], - serialized_start=1365, - serialized_end=1437, + serialized_start=2620, + serialized_end=2727, ) -_GENERATEPROVENANCERESPONSE = _descriptor.Descriptor( - name='GenerateProvenanceResponse', - full_name='pb.lyft.datacatalog.GenerateProvenanceResponse', +_PAGINATIONOPTIONS = _descriptor.Descriptor( + name='PaginationOptions', + full_name='datacatalog.PaginationOptions', 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, + name='limit', full_name='datacatalog.PaginationOptions.limit', index=0, + number=1, type=13, cpp_type=3, 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='token', full_name='datacatalog.PaginationOptions.token', 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='sortKey', full_name='datacatalog.PaginationOptions.sortKey', index=2, + number=3, 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), + _descriptor.FieldDescriptor( + name='sortOrder', full_name='datacatalog.PaginationOptions.sortOrder', index=3, + number=4, 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=[ + _PAGINATIONOPTIONS_SORTORDER, + _PAGINATIONOPTIONS_SORTKEY, ], serialized_options=None, is_extendable=False, @@ -671,215 +1256,407 @@ 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 + serialized_start=2730, + serialized_end=2971, +) + +_CREATEDATASETREQUEST.fields_by_name['dataset'].message_type = _DATASET +_GETDATASETREQUEST.fields_by_name['dataset'].message_type = _DATASETID +_GETDATASETRESPONSE.fields_by_name['dataset'].message_type = _DATASET +_GETARTIFACTREQUEST.fields_by_name['dataset'].message_type = _DATASETID +_GETARTIFACTREQUEST.oneofs_by_name['query_handle'].fields.append( + _GETARTIFACTREQUEST.fields_by_name['artifact_id']) +_GETARTIFACTREQUEST.fields_by_name['artifact_id'].containing_oneof = _GETARTIFACTREQUEST.oneofs_by_name['query_handle'] +_GETARTIFACTREQUEST.oneofs_by_name['query_handle'].fields.append( + _GETARTIFACTREQUEST.fields_by_name['tag_name']) +_GETARTIFACTREQUEST.fields_by_name['tag_name'].containing_oneof = _GETARTIFACTREQUEST.oneofs_by_name['query_handle'] +_GETARTIFACTRESPONSE.fields_by_name['artifact'].message_type = _ARTIFACT +_CREATEARTIFACTREQUEST.fields_by_name['artifact'].message_type = _ARTIFACT +_ADDTAGREQUEST.fields_by_name['tag'].message_type = _TAG +_LISTARTIFACTSREQUEST.fields_by_name['dataset'].message_type = _DATASETID +_LISTARTIFACTSREQUEST.fields_by_name['filter'].message_type = _FILTEREXPRESSION +_LISTARTIFACTSREQUEST.fields_by_name['pagination'].message_type = _PAGINATIONOPTIONS +_LISTARTIFACTSRESPONSE.fields_by_name['artifacts'].message_type = _ARTIFACT +_LISTDATASETSREQUEST.fields_by_name['filter'].message_type = _FILTEREXPRESSION +_LISTDATASETSREQUEST.fields_by_name['pagination'].message_type = _PAGINATIONOPTIONS +_LISTDATASETSRESPONSE.fields_by_name['datasets'].message_type = _DATASET +_DATASET.fields_by_name['id'].message_type = _DATASETID +_DATASET.fields_by_name['metadata'].message_type = _METADATA +_ARTIFACT.fields_by_name['dataset'].message_type = _DATASETID +_ARTIFACT.fields_by_name['data'].message_type = _ARTIFACTDATA +_ARTIFACT.fields_by_name['metadata'].message_type = _METADATA +_ARTIFACT.fields_by_name['partitions'].message_type = _PARTITION +_ARTIFACT.fields_by_name['tags'].message_type = _TAG +_ARTIFACT.fields_by_name['created_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ARTIFACTDATA.fields_by_name['value'].message_type = flyteidl_dot_core_dot_literals__pb2._LITERAL +_TAG.fields_by_name['dataset'].message_type = _DATASETID +_METADATA_KEYMAPENTRY.containing_type = _METADATA +_METADATA.fields_by_name['key_map'].message_type = _METADATA_KEYMAPENTRY +_FILTEREXPRESSION.fields_by_name['filters'].message_type = _SINGLEPROPERTYFILTER +_SINGLEPROPERTYFILTER.fields_by_name['tag_filter'].message_type = _TAGPROPERTYFILTER +_SINGLEPROPERTYFILTER.fields_by_name['partition_filter'].message_type = _PARTITIONPROPERTYFILTER +_SINGLEPROPERTYFILTER.fields_by_name['artifact_filter'].message_type = _ARTIFACTPROPERTYFILTER +_SINGLEPROPERTYFILTER.fields_by_name['dataset_filter'].message_type = _DATASETPROPERTYFILTER +_SINGLEPROPERTYFILTER.fields_by_name['operator'].enum_type = _SINGLEPROPERTYFILTER_COMPARISONOPERATOR +_SINGLEPROPERTYFILTER_COMPARISONOPERATOR.containing_type = _SINGLEPROPERTYFILTER +_SINGLEPROPERTYFILTER.oneofs_by_name['property_filter'].fields.append( + _SINGLEPROPERTYFILTER.fields_by_name['tag_filter']) +_SINGLEPROPERTYFILTER.fields_by_name['tag_filter'].containing_oneof = _SINGLEPROPERTYFILTER.oneofs_by_name['property_filter'] +_SINGLEPROPERTYFILTER.oneofs_by_name['property_filter'].fields.append( + _SINGLEPROPERTYFILTER.fields_by_name['partition_filter']) +_SINGLEPROPERTYFILTER.fields_by_name['partition_filter'].containing_oneof = _SINGLEPROPERTYFILTER.oneofs_by_name['property_filter'] +_SINGLEPROPERTYFILTER.oneofs_by_name['property_filter'].fields.append( + _SINGLEPROPERTYFILTER.fields_by_name['artifact_filter']) +_SINGLEPROPERTYFILTER.fields_by_name['artifact_filter'].containing_oneof = _SINGLEPROPERTYFILTER.oneofs_by_name['property_filter'] +_SINGLEPROPERTYFILTER.oneofs_by_name['property_filter'].fields.append( + _SINGLEPROPERTYFILTER.fields_by_name['dataset_filter']) +_SINGLEPROPERTYFILTER.fields_by_name['dataset_filter'].containing_oneof = _SINGLEPROPERTYFILTER.oneofs_by_name['property_filter'] +_ARTIFACTPROPERTYFILTER.oneofs_by_name['property'].fields.append( + _ARTIFACTPROPERTYFILTER.fields_by_name['artifact_id']) +_ARTIFACTPROPERTYFILTER.fields_by_name['artifact_id'].containing_oneof = _ARTIFACTPROPERTYFILTER.oneofs_by_name['property'] +_TAGPROPERTYFILTER.oneofs_by_name['property'].fields.append( + _TAGPROPERTYFILTER.fields_by_name['tag_name']) +_TAGPROPERTYFILTER.fields_by_name['tag_name'].containing_oneof = _TAGPROPERTYFILTER.oneofs_by_name['property'] +_PARTITIONPROPERTYFILTER.fields_by_name['key_val'].message_type = _KEYVALUEPAIR +_PARTITIONPROPERTYFILTER.oneofs_by_name['property'].fields.append( + _PARTITIONPROPERTYFILTER.fields_by_name['key_val']) +_PARTITIONPROPERTYFILTER.fields_by_name['key_val'].containing_oneof = _PARTITIONPROPERTYFILTER.oneofs_by_name['property'] +_DATASETPROPERTYFILTER.oneofs_by_name['property'].fields.append( + _DATASETPROPERTYFILTER.fields_by_name['project']) +_DATASETPROPERTYFILTER.fields_by_name['project'].containing_oneof = _DATASETPROPERTYFILTER.oneofs_by_name['property'] +_DATASETPROPERTYFILTER.oneofs_by_name['property'].fields.append( + _DATASETPROPERTYFILTER.fields_by_name['name']) +_DATASETPROPERTYFILTER.fields_by_name['name'].containing_oneof = _DATASETPROPERTYFILTER.oneofs_by_name['property'] +_DATASETPROPERTYFILTER.oneofs_by_name['property'].fields.append( + _DATASETPROPERTYFILTER.fields_by_name['domain']) +_DATASETPROPERTYFILTER.fields_by_name['domain'].containing_oneof = _DATASETPROPERTYFILTER.oneofs_by_name['property'] +_DATASETPROPERTYFILTER.oneofs_by_name['property'].fields.append( + _DATASETPROPERTYFILTER.fields_by_name['version']) +_DATASETPROPERTYFILTER.fields_by_name['version'].containing_oneof = _DATASETPROPERTYFILTER.oneofs_by_name['property'] +_PAGINATIONOPTIONS.fields_by_name['sortKey'].enum_type = _PAGINATIONOPTIONS_SORTKEY +_PAGINATIONOPTIONS.fields_by_name['sortOrder'].enum_type = _PAGINATIONOPTIONS_SORTORDER +_PAGINATIONOPTIONS_SORTORDER.containing_type = _PAGINATIONOPTIONS +_PAGINATIONOPTIONS_SORTKEY.containing_type = _PAGINATIONOPTIONS +DESCRIPTOR.message_types_by_name['CreateDatasetRequest'] = _CREATEDATASETREQUEST +DESCRIPTOR.message_types_by_name['CreateDatasetResponse'] = _CREATEDATASETRESPONSE +DESCRIPTOR.message_types_by_name['GetDatasetRequest'] = _GETDATASETREQUEST +DESCRIPTOR.message_types_by_name['GetDatasetResponse'] = _GETDATASETRESPONSE +DESCRIPTOR.message_types_by_name['GetArtifactRequest'] = _GETARTIFACTREQUEST +DESCRIPTOR.message_types_by_name['GetArtifactResponse'] = _GETARTIFACTRESPONSE +DESCRIPTOR.message_types_by_name['CreateArtifactRequest'] = _CREATEARTIFACTREQUEST +DESCRIPTOR.message_types_by_name['CreateArtifactResponse'] = _CREATEARTIFACTRESPONSE +DESCRIPTOR.message_types_by_name['AddTagRequest'] = _ADDTAGREQUEST +DESCRIPTOR.message_types_by_name['AddTagResponse'] = _ADDTAGRESPONSE +DESCRIPTOR.message_types_by_name['ListArtifactsRequest'] = _LISTARTIFACTSREQUEST +DESCRIPTOR.message_types_by_name['ListArtifactsResponse'] = _LISTARTIFACTSRESPONSE +DESCRIPTOR.message_types_by_name['ListDatasetsRequest'] = _LISTDATASETSREQUEST +DESCRIPTOR.message_types_by_name['ListDatasetsResponse'] = _LISTDATASETSRESPONSE +DESCRIPTOR.message_types_by_name['Dataset'] = _DATASET +DESCRIPTOR.message_types_by_name['Partition'] = _PARTITION +DESCRIPTOR.message_types_by_name['DatasetID'] = _DATASETID 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 +DESCRIPTOR.message_types_by_name['ArtifactData'] = _ARTIFACTDATA +DESCRIPTOR.message_types_by_name['Tag'] = _TAG +DESCRIPTOR.message_types_by_name['Metadata'] = _METADATA +DESCRIPTOR.message_types_by_name['FilterExpression'] = _FILTEREXPRESSION +DESCRIPTOR.message_types_by_name['SinglePropertyFilter'] = _SINGLEPROPERTYFILTER +DESCRIPTOR.message_types_by_name['ArtifactPropertyFilter'] = _ARTIFACTPROPERTYFILTER +DESCRIPTOR.message_types_by_name['TagPropertyFilter'] = _TAGPROPERTYFILTER +DESCRIPTOR.message_types_by_name['PartitionPropertyFilter'] = _PARTITIONPROPERTYFILTER +DESCRIPTOR.message_types_by_name['KeyValuePair'] = _KEYVALUEPAIR +DESCRIPTOR.message_types_by_name['DatasetPropertyFilter'] = _DATASETPROPERTYFILTER +DESCRIPTOR.message_types_by_name['PaginationOptions'] = _PAGINATIONOPTIONS _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Parameter = _reflection.GeneratedProtocolMessageType('Parameter', (_message.Message,), dict( - DESCRIPTOR = _PARAMETER, +CreateDatasetRequest = _reflection.GeneratedProtocolMessageType('CreateDatasetRequest', (_message.Message,), dict( + DESCRIPTOR = _CREATEDATASETREQUEST, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.CreateDatasetRequest) + )) +_sym_db.RegisterMessage(CreateDatasetRequest) + +CreateDatasetResponse = _reflection.GeneratedProtocolMessageType('CreateDatasetResponse', (_message.Message,), dict( + DESCRIPTOR = _CREATEDATASETRESPONSE, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.CreateDatasetResponse) + )) +_sym_db.RegisterMessage(CreateDatasetResponse) + +GetDatasetRequest = _reflection.GeneratedProtocolMessageType('GetDatasetRequest', (_message.Message,), dict( + DESCRIPTOR = _GETDATASETREQUEST, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.GetDatasetRequest) + )) +_sym_db.RegisterMessage(GetDatasetRequest) + +GetDatasetResponse = _reflection.GeneratedProtocolMessageType('GetDatasetResponse', (_message.Message,), dict( + DESCRIPTOR = _GETDATASETRESPONSE, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.GetDatasetResponse) + )) +_sym_db.RegisterMessage(GetDatasetResponse) + +GetArtifactRequest = _reflection.GeneratedProtocolMessageType('GetArtifactRequest', (_message.Message,), dict( + DESCRIPTOR = _GETARTIFACTREQUEST, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.GetArtifactRequest) + )) +_sym_db.RegisterMessage(GetArtifactRequest) + +GetArtifactResponse = _reflection.GeneratedProtocolMessageType('GetArtifactResponse', (_message.Message,), dict( + DESCRIPTOR = _GETARTIFACTRESPONSE, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.GetArtifactResponse) + )) +_sym_db.RegisterMessage(GetArtifactResponse) + +CreateArtifactRequest = _reflection.GeneratedProtocolMessageType('CreateArtifactRequest', (_message.Message,), dict( + DESCRIPTOR = _CREATEARTIFACTREQUEST, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.CreateArtifactRequest) + )) +_sym_db.RegisterMessage(CreateArtifactRequest) + +CreateArtifactResponse = _reflection.GeneratedProtocolMessageType('CreateArtifactResponse', (_message.Message,), dict( + DESCRIPTOR = _CREATEARTIFACTRESPONSE, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.CreateArtifactResponse) + )) +_sym_db.RegisterMessage(CreateArtifactResponse) + +AddTagRequest = _reflection.GeneratedProtocolMessageType('AddTagRequest', (_message.Message,), dict( + DESCRIPTOR = _ADDTAGREQUEST, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.AddTagRequest) + )) +_sym_db.RegisterMessage(AddTagRequest) + +AddTagResponse = _reflection.GeneratedProtocolMessageType('AddTagResponse', (_message.Message,), dict( + DESCRIPTOR = _ADDTAGRESPONSE, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.AddTagResponse) + )) +_sym_db.RegisterMessage(AddTagResponse) + +ListArtifactsRequest = _reflection.GeneratedProtocolMessageType('ListArtifactsRequest', (_message.Message,), dict( + DESCRIPTOR = _LISTARTIFACTSREQUEST, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.ListArtifactsRequest) + )) +_sym_db.RegisterMessage(ListArtifactsRequest) + +ListArtifactsResponse = _reflection.GeneratedProtocolMessageType('ListArtifactsResponse', (_message.Message,), dict( + DESCRIPTOR = _LISTARTIFACTSRESPONSE, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.ListArtifactsResponse) + )) +_sym_db.RegisterMessage(ListArtifactsResponse) + +ListDatasetsRequest = _reflection.GeneratedProtocolMessageType('ListDatasetsRequest', (_message.Message,), dict( + DESCRIPTOR = _LISTDATASETSREQUEST, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.ListDatasetsRequest) + )) +_sym_db.RegisterMessage(ListDatasetsRequest) + +ListDatasetsResponse = _reflection.GeneratedProtocolMessageType('ListDatasetsResponse', (_message.Message,), dict( + DESCRIPTOR = _LISTDATASETSRESPONSE, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.ListDatasetsResponse) + )) +_sym_db.RegisterMessage(ListDatasetsResponse) + +Dataset = _reflection.GeneratedProtocolMessageType('Dataset', (_message.Message,), dict( + DESCRIPTOR = _DATASET, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.Dataset) + )) +_sym_db.RegisterMessage(Dataset) + +Partition = _reflection.GeneratedProtocolMessageType('Partition', (_message.Message,), dict( + DESCRIPTOR = _PARTITION, __module__ = 'flyteidl.datacatalog.datacatalog_pb2' - # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.Parameter) + # @@protoc_insertion_point(class_scope:datacatalog.Partition) )) -_sym_db.RegisterMessage(Parameter) +_sym_db.RegisterMessage(Partition) + +DatasetID = _reflection.GeneratedProtocolMessageType('DatasetID', (_message.Message,), dict( + DESCRIPTOR = _DATASETID, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.DatasetID) + )) +_sym_db.RegisterMessage(DatasetID) Artifact = _reflection.GeneratedProtocolMessageType('Artifact', (_message.Message,), dict( DESCRIPTOR = _ARTIFACT, __module__ = 'flyteidl.datacatalog.datacatalog_pb2' - # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.Artifact) + # @@protoc_insertion_point(class_scope:datacatalog.Artifact) )) _sym_db.RegisterMessage(Artifact) -ArtifactId = _reflection.GeneratedProtocolMessageType('ArtifactId', (_message.Message,), dict( - DESCRIPTOR = _ARTIFACTID, +ArtifactData = _reflection.GeneratedProtocolMessageType('ArtifactData', (_message.Message,), dict( + DESCRIPTOR = _ARTIFACTDATA, __module__ = 'flyteidl.datacatalog.datacatalog_pb2' - # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.ArtifactId) + # @@protoc_insertion_point(class_scope:datacatalog.ArtifactData) )) -_sym_db.RegisterMessage(ArtifactId) +_sym_db.RegisterMessage(ArtifactData) -GetRequest = _reflection.GeneratedProtocolMessageType('GetRequest', (_message.Message,), dict( - DESCRIPTOR = _GETREQUEST, +Tag = _reflection.GeneratedProtocolMessageType('Tag', (_message.Message,), dict( + DESCRIPTOR = _TAG, __module__ = 'flyteidl.datacatalog.datacatalog_pb2' - # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GetRequest) + # @@protoc_insertion_point(class_scope:datacatalog.Tag) )) -_sym_db.RegisterMessage(GetRequest) +_sym_db.RegisterMessage(Tag) -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) +Metadata = _reflection.GeneratedProtocolMessageType('Metadata', (_message.Message,), dict( -IntFilter = _reflection.GeneratedProtocolMessageType('IntFilter', (_message.Message,), dict( - DESCRIPTOR = _INTFILTER, + KeyMapEntry = _reflection.GeneratedProtocolMessageType('KeyMapEntry', (_message.Message,), dict( + DESCRIPTOR = _METADATA_KEYMAPENTRY, + __module__ = 'flyteidl.datacatalog.datacatalog_pb2' + # @@protoc_insertion_point(class_scope:datacatalog.Metadata.KeyMapEntry) + )) + , + DESCRIPTOR = _METADATA, __module__ = 'flyteidl.datacatalog.datacatalog_pb2' - # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.IntFilter) + # @@protoc_insertion_point(class_scope:datacatalog.Metadata) )) -_sym_db.RegisterMessage(IntFilter) +_sym_db.RegisterMessage(Metadata) +_sym_db.RegisterMessage(Metadata.KeyMapEntry) -IntRangeFilter = _reflection.GeneratedProtocolMessageType('IntRangeFilter', (_message.Message,), dict( - DESCRIPTOR = _INTRANGEFILTER, +FilterExpression = _reflection.GeneratedProtocolMessageType('FilterExpression', (_message.Message,), dict( + DESCRIPTOR = _FILTEREXPRESSION, __module__ = 'flyteidl.datacatalog.datacatalog_pb2' - # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.IntRangeFilter) + # @@protoc_insertion_point(class_scope:datacatalog.FilterExpression) )) -_sym_db.RegisterMessage(IntRangeFilter) +_sym_db.RegisterMessage(FilterExpression) -IntQueryKey = _reflection.GeneratedProtocolMessageType('IntQueryKey', (_message.Message,), dict( - DESCRIPTOR = _INTQUERYKEY, +SinglePropertyFilter = _reflection.GeneratedProtocolMessageType('SinglePropertyFilter', (_message.Message,), dict( + DESCRIPTOR = _SINGLEPROPERTYFILTER, __module__ = 'flyteidl.datacatalog.datacatalog_pb2' - # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.IntQueryKey) + # @@protoc_insertion_point(class_scope:datacatalog.SinglePropertyFilter) )) -_sym_db.RegisterMessage(IntQueryKey) +_sym_db.RegisterMessage(SinglePropertyFilter) -QueryRequest = _reflection.GeneratedProtocolMessageType('QueryRequest', (_message.Message,), dict( - DESCRIPTOR = _QUERYREQUEST, +ArtifactPropertyFilter = _reflection.GeneratedProtocolMessageType('ArtifactPropertyFilter', (_message.Message,), dict( + DESCRIPTOR = _ARTIFACTPROPERTYFILTER, __module__ = 'flyteidl.datacatalog.datacatalog_pb2' - # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.QueryRequest) + # @@protoc_insertion_point(class_scope:datacatalog.ArtifactPropertyFilter) )) -_sym_db.RegisterMessage(QueryRequest) +_sym_db.RegisterMessage(ArtifactPropertyFilter) -QueryResponse = _reflection.GeneratedProtocolMessageType('QueryResponse', (_message.Message,), dict( - DESCRIPTOR = _QUERYRESPONSE, +TagPropertyFilter = _reflection.GeneratedProtocolMessageType('TagPropertyFilter', (_message.Message,), dict( + DESCRIPTOR = _TAGPROPERTYFILTER, __module__ = 'flyteidl.datacatalog.datacatalog_pb2' - # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.QueryResponse) + # @@protoc_insertion_point(class_scope:datacatalog.TagPropertyFilter) )) -_sym_db.RegisterMessage(QueryResponse) +_sym_db.RegisterMessage(TagPropertyFilter) -CreateRequest = _reflection.GeneratedProtocolMessageType('CreateRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEREQUEST, +PartitionPropertyFilter = _reflection.GeneratedProtocolMessageType('PartitionPropertyFilter', (_message.Message,), dict( + DESCRIPTOR = _PARTITIONPROPERTYFILTER, __module__ = 'flyteidl.datacatalog.datacatalog_pb2' - # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.CreateRequest) + # @@protoc_insertion_point(class_scope:datacatalog.PartitionPropertyFilter) )) -_sym_db.RegisterMessage(CreateRequest) +_sym_db.RegisterMessage(PartitionPropertyFilter) -CreateResponse = _reflection.GeneratedProtocolMessageType('CreateResponse', (_message.Message,), dict( - DESCRIPTOR = _CREATERESPONSE, +KeyValuePair = _reflection.GeneratedProtocolMessageType('KeyValuePair', (_message.Message,), dict( + DESCRIPTOR = _KEYVALUEPAIR, __module__ = 'flyteidl.datacatalog.datacatalog_pb2' - # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.CreateResponse) + # @@protoc_insertion_point(class_scope:datacatalog.KeyValuePair) )) -_sym_db.RegisterMessage(CreateResponse) +_sym_db.RegisterMessage(KeyValuePair) -GenerateProvenanceRequest = _reflection.GeneratedProtocolMessageType('GenerateProvenanceRequest', (_message.Message,), dict( - DESCRIPTOR = _GENERATEPROVENANCEREQUEST, +DatasetPropertyFilter = _reflection.GeneratedProtocolMessageType('DatasetPropertyFilter', (_message.Message,), dict( + DESCRIPTOR = _DATASETPROPERTYFILTER, __module__ = 'flyteidl.datacatalog.datacatalog_pb2' - # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GenerateProvenanceRequest) + # @@protoc_insertion_point(class_scope:datacatalog.DatasetPropertyFilter) )) -_sym_db.RegisterMessage(GenerateProvenanceRequest) +_sym_db.RegisterMessage(DatasetPropertyFilter) -GenerateProvenanceResponse = _reflection.GeneratedProtocolMessageType('GenerateProvenanceResponse', (_message.Message,), dict( - DESCRIPTOR = _GENERATEPROVENANCERESPONSE, +PaginationOptions = _reflection.GeneratedProtocolMessageType('PaginationOptions', (_message.Message,), dict( + DESCRIPTOR = _PAGINATIONOPTIONS, __module__ = 'flyteidl.datacatalog.datacatalog_pb2' - # @@protoc_insertion_point(class_scope:pb.lyft.datacatalog.GenerateProvenanceResponse) + # @@protoc_insertion_point(class_scope:datacatalog.PaginationOptions) )) -_sym_db.RegisterMessage(GenerateProvenanceResponse) +_sym_db.RegisterMessage(PaginationOptions) -DESCRIPTOR._options = None +_METADATA_KEYMAPENTRY._options = None -_ARTIFACTS = _descriptor.ServiceDescriptor( - name='Artifacts', - full_name='pb.lyft.datacatalog.Artifacts', +_DATACATALOG = _descriptor.ServiceDescriptor( + name='DataCatalog', + full_name='datacatalog.DataCatalog', file=DESCRIPTOR, index=0, serialized_options=None, - serialized_start=1553, - serialized_end=1928, + serialized_start=2974, + serialized_end=3567, methods=[ _descriptor.MethodDescriptor( - name='Get', - full_name='pb.lyft.datacatalog.Artifacts.Get', + name='CreateDataset', + full_name='datacatalog.DataCatalog.CreateDataset', index=0, containing_service=None, - input_type=_GETREQUEST, - output_type=_GETRESPONSE, + input_type=_CREATEDATASETREQUEST, + output_type=_CREATEDATASETRESPONSE, serialized_options=None, ), _descriptor.MethodDescriptor( - name='Query', - full_name='pb.lyft.datacatalog.Artifacts.Query', + name='GetDataset', + full_name='datacatalog.DataCatalog.GetDataset', index=1, containing_service=None, - input_type=_QUERYREQUEST, - output_type=_QUERYRESPONSE, + input_type=_GETDATASETREQUEST, + output_type=_GETDATASETRESPONSE, serialized_options=None, ), _descriptor.MethodDescriptor( - name='Create', - full_name='pb.lyft.datacatalog.Artifacts.Create', + name='CreateArtifact', + full_name='datacatalog.DataCatalog.CreateArtifact', index=2, containing_service=None, - input_type=_CREATEREQUEST, - output_type=_CREATERESPONSE, + input_type=_CREATEARTIFACTREQUEST, + output_type=_CREATEARTIFACTRESPONSE, serialized_options=None, ), _descriptor.MethodDescriptor( - name='GenerateProvenance', - full_name='pb.lyft.datacatalog.Artifacts.GenerateProvenance', + name='GetArtifact', + full_name='datacatalog.DataCatalog.GetArtifact', index=3, containing_service=None, - input_type=_GENERATEPROVENANCEREQUEST, - output_type=_GENERATEPROVENANCERESPONSE, + input_type=_GETARTIFACTREQUEST, + output_type=_GETARTIFACTRESPONSE, + serialized_options=None, + ), + _descriptor.MethodDescriptor( + name='AddTag', + full_name='datacatalog.DataCatalog.AddTag', + index=4, + containing_service=None, + input_type=_ADDTAGREQUEST, + output_type=_ADDTAGRESPONSE, + serialized_options=None, + ), + _descriptor.MethodDescriptor( + name='ListArtifacts', + full_name='datacatalog.DataCatalog.ListArtifacts', + index=5, + containing_service=None, + input_type=_LISTARTIFACTSREQUEST, + output_type=_LISTARTIFACTSRESPONSE, + serialized_options=None, + ), + _descriptor.MethodDescriptor( + name='ListDatasets', + full_name='datacatalog.DataCatalog.ListDatasets', + index=6, + containing_service=None, + input_type=_LISTDATASETSREQUEST, + output_type=_LISTDATASETSRESPONSE, 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' - )) +_sym_db.RegisterServiceDescriptor(_DATACATALOG) +DESCRIPTOR.services_by_name['DataCatalog'] = _DATACATALOG # @@protoc_insertion_point(module_scope) diff --git a/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py b/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py index 574ce939a..b87b1905b 100644 --- a/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py +++ b/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py @@ -4,7 +4,7 @@ from flyteidl.datacatalog import datacatalog_pb2 as flyteidl_dot_datacatalog_dot_datacatalog__pb2 -class ArtifactsStub(object): +class DataCatalogStub(object): # missing associated documentation comment in .proto file pass @@ -14,54 +14,90 @@ def __init__(self, channel): 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.CreateDataset = channel.unary_unary( + '/datacatalog.DataCatalog/CreateDataset', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetResponse.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.GetDataset = channel.unary_unary( + '/datacatalog.DataCatalog/GetDataset', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetResponse.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.CreateArtifact = channel.unary_unary( + '/datacatalog.DataCatalog/CreateArtifact', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactResponse.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, + self.GetArtifact = channel.unary_unary( + '/datacatalog.DataCatalog/GetArtifact', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactResponse.FromString, + ) + self.AddTag = channel.unary_unary( + '/datacatalog.DataCatalog/AddTag', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagResponse.FromString, + ) + self.ListArtifacts = channel.unary_unary( + '/datacatalog.DataCatalog/ListArtifacts', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsResponse.FromString, + ) + self.ListDatasets = channel.unary_unary( + '/datacatalog.DataCatalog/ListDatasets', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.FromString, ) -class ArtifactsServicer(object): +class DataCatalogServicer(object): # missing associated documentation comment in .proto file pass - def Get(self, request, context): + def CreateDataset(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 GetDataset(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 CreateArtifact(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 GetArtifact(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): + def AddTag(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): + def ListArtifacts(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): + def ListDatasets(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) @@ -69,29 +105,44 @@ def GenerateProvenance(self, request, context): raise NotImplementedError('Method not implemented!') -def add_ArtifactsServicer_to_server(servicer, server): +def add_DataCatalogServicer_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, + 'CreateDataset': grpc.unary_unary_rpc_method_handler( + servicer.CreateDataset, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetResponse.SerializeToString, + ), + 'GetDataset': grpc.unary_unary_rpc_method_handler( + servicer.GetDataset, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetResponse.SerializeToString, + ), + 'CreateArtifact': grpc.unary_unary_rpc_method_handler( + servicer.CreateArtifact, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactResponse.SerializeToString, + ), + 'GetArtifact': grpc.unary_unary_rpc_method_handler( + servicer.GetArtifact, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactResponse.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, + 'AddTag': grpc.unary_unary_rpc_method_handler( + servicer.AddTag, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagResponse.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, + 'ListArtifacts': grpc.unary_unary_rpc_method_handler( + servicer.ListArtifacts, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsResponse.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, + 'ListDatasets': grpc.unary_unary_rpc_method_handler( + servicer.ListDatasets, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'pb.lyft.datacatalog.Artifacts', rpc_method_handlers) + 'datacatalog.DataCatalog', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/mocks/DataCatalogClient.go b/mocks/DataCatalogClient.go new file mode 100644 index 000000000..972497a2f --- /dev/null +++ b/mocks/DataCatalogClient.go @@ -0,0 +1,353 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + datacatalog "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/datacatalog" + grpc "google.golang.org/grpc" + + mock "github.com/stretchr/testify/mock" +) + +// DataCatalogClient is an autogenerated mock type for the DataCatalogClient type +type DataCatalogClient struct { + mock.Mock +} + +type DataCatalogClient_AddTag struct { + *mock.Call +} + +func (_m DataCatalogClient_AddTag) Return(_a0 *datacatalog.AddTagResponse, _a1 error) *DataCatalogClient_AddTag { + return &DataCatalogClient_AddTag{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnAddTag(ctx context.Context, in *datacatalog.AddTagRequest, opts ...grpc.CallOption) *DataCatalogClient_AddTag { + c := _m.On("AddTag", ctx, in, opts) + return &DataCatalogClient_AddTag{Call: c} +} + +func (_m *DataCatalogClient) OnAddTagMatch(matchers ...interface{}) *DataCatalogClient_AddTag { + c := _m.On("AddTag", matchers...) + return &DataCatalogClient_AddTag{Call: c} +} + +// AddTag provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) AddTag(ctx context.Context, in *datacatalog.AddTagRequest, opts ...grpc.CallOption) (*datacatalog.AddTagResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.AddTagResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.AddTagRequest, ...grpc.CallOption) *datacatalog.AddTagResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.AddTagResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.AddTagRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_CreateArtifact struct { + *mock.Call +} + +func (_m DataCatalogClient_CreateArtifact) Return(_a0 *datacatalog.CreateArtifactResponse, _a1 error) *DataCatalogClient_CreateArtifact { + return &DataCatalogClient_CreateArtifact{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnCreateArtifact(ctx context.Context, in *datacatalog.CreateArtifactRequest, opts ...grpc.CallOption) *DataCatalogClient_CreateArtifact { + c := _m.On("CreateArtifact", ctx, in, opts) + return &DataCatalogClient_CreateArtifact{Call: c} +} + +func (_m *DataCatalogClient) OnCreateArtifactMatch(matchers ...interface{}) *DataCatalogClient_CreateArtifact { + c := _m.On("CreateArtifact", matchers...) + return &DataCatalogClient_CreateArtifact{Call: c} +} + +// CreateArtifact provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) CreateArtifact(ctx context.Context, in *datacatalog.CreateArtifactRequest, opts ...grpc.CallOption) (*datacatalog.CreateArtifactResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.CreateArtifactResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.CreateArtifactRequest, ...grpc.CallOption) *datacatalog.CreateArtifactResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.CreateArtifactResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.CreateArtifactRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_CreateDataset struct { + *mock.Call +} + +func (_m DataCatalogClient_CreateDataset) Return(_a0 *datacatalog.CreateDatasetResponse, _a1 error) *DataCatalogClient_CreateDataset { + return &DataCatalogClient_CreateDataset{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnCreateDataset(ctx context.Context, in *datacatalog.CreateDatasetRequest, opts ...grpc.CallOption) *DataCatalogClient_CreateDataset { + c := _m.On("CreateDataset", ctx, in, opts) + return &DataCatalogClient_CreateDataset{Call: c} +} + +func (_m *DataCatalogClient) OnCreateDatasetMatch(matchers ...interface{}) *DataCatalogClient_CreateDataset { + c := _m.On("CreateDataset", matchers...) + return &DataCatalogClient_CreateDataset{Call: c} +} + +// CreateDataset provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) CreateDataset(ctx context.Context, in *datacatalog.CreateDatasetRequest, opts ...grpc.CallOption) (*datacatalog.CreateDatasetResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.CreateDatasetResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.CreateDatasetRequest, ...grpc.CallOption) *datacatalog.CreateDatasetResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.CreateDatasetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.CreateDatasetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_GetArtifact struct { + *mock.Call +} + +func (_m DataCatalogClient_GetArtifact) Return(_a0 *datacatalog.GetArtifactResponse, _a1 error) *DataCatalogClient_GetArtifact { + return &DataCatalogClient_GetArtifact{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnGetArtifact(ctx context.Context, in *datacatalog.GetArtifactRequest, opts ...grpc.CallOption) *DataCatalogClient_GetArtifact { + c := _m.On("GetArtifact", ctx, in, opts) + return &DataCatalogClient_GetArtifact{Call: c} +} + +func (_m *DataCatalogClient) OnGetArtifactMatch(matchers ...interface{}) *DataCatalogClient_GetArtifact { + c := _m.On("GetArtifact", matchers...) + return &DataCatalogClient_GetArtifact{Call: c} +} + +// GetArtifact provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) GetArtifact(ctx context.Context, in *datacatalog.GetArtifactRequest, opts ...grpc.CallOption) (*datacatalog.GetArtifactResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.GetArtifactResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.GetArtifactRequest, ...grpc.CallOption) *datacatalog.GetArtifactResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.GetArtifactResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.GetArtifactRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_GetDataset struct { + *mock.Call +} + +func (_m DataCatalogClient_GetDataset) Return(_a0 *datacatalog.GetDatasetResponse, _a1 error) *DataCatalogClient_GetDataset { + return &DataCatalogClient_GetDataset{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnGetDataset(ctx context.Context, in *datacatalog.GetDatasetRequest, opts ...grpc.CallOption) *DataCatalogClient_GetDataset { + c := _m.On("GetDataset", ctx, in, opts) + return &DataCatalogClient_GetDataset{Call: c} +} + +func (_m *DataCatalogClient) OnGetDatasetMatch(matchers ...interface{}) *DataCatalogClient_GetDataset { + c := _m.On("GetDataset", matchers...) + return &DataCatalogClient_GetDataset{Call: c} +} + +// GetDataset provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) GetDataset(ctx context.Context, in *datacatalog.GetDatasetRequest, opts ...grpc.CallOption) (*datacatalog.GetDatasetResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.GetDatasetResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.GetDatasetRequest, ...grpc.CallOption) *datacatalog.GetDatasetResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.GetDatasetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.GetDatasetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_ListArtifacts struct { + *mock.Call +} + +func (_m DataCatalogClient_ListArtifacts) Return(_a0 *datacatalog.ListArtifactsResponse, _a1 error) *DataCatalogClient_ListArtifacts { + return &DataCatalogClient_ListArtifacts{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnListArtifacts(ctx context.Context, in *datacatalog.ListArtifactsRequest, opts ...grpc.CallOption) *DataCatalogClient_ListArtifacts { + c := _m.On("ListArtifacts", ctx, in, opts) + return &DataCatalogClient_ListArtifacts{Call: c} +} + +func (_m *DataCatalogClient) OnListArtifactsMatch(matchers ...interface{}) *DataCatalogClient_ListArtifacts { + c := _m.On("ListArtifacts", matchers...) + return &DataCatalogClient_ListArtifacts{Call: c} +} + +// ListArtifacts provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) ListArtifacts(ctx context.Context, in *datacatalog.ListArtifactsRequest, opts ...grpc.CallOption) (*datacatalog.ListArtifactsResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.ListArtifactsResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.ListArtifactsRequest, ...grpc.CallOption) *datacatalog.ListArtifactsResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.ListArtifactsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.ListArtifactsRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_ListDatasets struct { + *mock.Call +} + +func (_m DataCatalogClient_ListDatasets) Return(_a0 *datacatalog.ListDatasetsResponse, _a1 error) *DataCatalogClient_ListDatasets { + return &DataCatalogClient_ListDatasets{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnListDatasets(ctx context.Context, in *datacatalog.ListDatasetsRequest, opts ...grpc.CallOption) *DataCatalogClient_ListDatasets { + c := _m.On("ListDatasets", ctx, in, opts) + return &DataCatalogClient_ListDatasets{Call: c} +} + +func (_m *DataCatalogClient) OnListDatasetsMatch(matchers ...interface{}) *DataCatalogClient_ListDatasets { + c := _m.On("ListDatasets", matchers...) + return &DataCatalogClient_ListDatasets{Call: c} +} + +// ListDatasets provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) ListDatasets(ctx context.Context, in *datacatalog.ListDatasetsRequest, opts ...grpc.CallOption) (*datacatalog.ListDatasetsResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.ListDatasetsResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.ListDatasetsRequest, ...grpc.CallOption) *datacatalog.ListDatasetsResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.ListDatasetsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.ListDatasetsRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +}